/* 書体は同じサーバーに置く。第三者への通信はゼロ（追補4 §158）。

   欧文と和文を一つの family でまとめず、@font-face を分けて
   `unicode-range` で振り分ける。こうすると、英字しかない要素のために
   和文の巨大なファイルを取りに行くことがなくなる。

   和文は「このページに実際に出てくる字」だけに絞ってある（部分集合化）。
   Zen Old Mincho は元が 5.4 MB、絞ると 80 KB。文言を書き換えたら
   tools/subset-jp-fonts.sh を流し直すこと。追加した字が抜け落ちる。 */

/* --- 欧文：Playfair Display（見出し） --- */
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/site/fonts/playfair-display-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/site/fonts/playfair-display-600-latin.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 欧文：Cormorant Garamond（社名だけ） ---
   旧サイトから使っている社名の書体。ここに戻す。
   使うのは「Harmony Horizon」の一語だけなので、その字だけに絞ってある
   （15文字ぶん = 1.5 KB）。社名の文字列を変えたら作り直すこと。 */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/site/fonts/cormorant-garamond-600-latin.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  /* 「Harmony Horizon」に出てくる字だけ。書体側もこの字しか持っていない。
     ここに書き漏らすと、その字だけ既定の書体で出る（例：i を落とすと
     Horizon の i だけ形が変わる）。 */
  unicode-range: U+0020, U+0048, U+0061, U+0069, U+006D, U+006E, U+006F,
    U+0072, U+0079, U+007A;
}

/* --- 欧文：Cormorant Garamond 斜体（引用の英文の一行） ---
   社名用の 600 とは範囲が違う。こちらは**文**を組むので欧文一式を持つ。
   同じ family だが font-style が違うので、書体の選択はこれで正しく分かれる。 */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/site/fonts/cormorant-garamond-500-italic-latin.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+2010-2019, U+201C-201D, U+2013-2014, U+2026;
}

/* --- 欧文：Inter（本文・操作部） --- */
@font-face {
  font-family: "Inter";
  src: url("/assets/site/fonts/inter-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/site/fonts/inter-500-latin.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 和文：Zen Old Mincho（見出し） --- */
@font-face {
  font-family: "Zen Old Mincho";
  src: url("/assets/site/fonts/zen-old-mincho-400-jp.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Zen Old Mincho";
  src: url("/assets/site/fonts/zen-old-mincho-600-jp.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* --- 和文：Zen Kaku Gothic New（本文・操作部） --- */
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("/assets/site/fonts/zen-kaku-400-jp.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("/assets/site/fonts/zen-kaku-500-jp.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
