/* ローカルフォント定義 */

/* Noto Sans JP - self-hosted方式 */
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  font-feature-settings: "rlig" 1, "calt" 1;
  src: local('Noto Sans JP Light'),
    local('Noto Sans JP'),
    url('/fonts/NotoSansJP-Light-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+3040-309F, U+30A0-30FF, U+4E00-9FAF;
}

@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  font-feature-settings: "rlig" 1, "calt" 1;
  src: local('Noto Sans JP Regular'),
    local('Noto Sans JP'),
    url('/fonts/NotoSansJP-Regular-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+3040-309F, U+30A0-30FF, U+4E00-9FAF;
}

@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  font-feature-settings: "rlig" 1, "calt" 1;
  src: local('Noto Sans JP SemiBold'),
    local('Noto Sans JP'),
    url('/fonts/NotoSansJP-SemiBold-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+3040-309F, U+30A0-30FF, U+4E00-9FAF;
}

@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  font-feature-settings: "rlig" 1, "calt" 1;
  src: local('Noto Sans JP Bold'),
    local('Noto Sans JP'),
    url('/fonts/NotoSansJP-Bold-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+3040-309F, U+30A0-30FF, U+4E00-9FAF;
}

/* Noto Serif JP - self-hosted方式 */
@font-face {
  font-family: 'Noto Serif JP';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  font-feature-settings: "rlig" 1, "calt" 1;
  src: local('Noto Serif JP Regular'),
    local('Noto Serif JP'),
    url('/fonts/NotoSerifJP-Regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+3040-309F, U+30A0-30FF, U+4E00-9FAF;
}

@font-face {
  font-family: 'Noto Serif JP';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  font-feature-settings: "rlig" 1, "calt" 1;
  src: local('Noto Serif JP Bold'),
    local('Noto Serif JP'),
    url('/fonts/NotoSerifJP-Bold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+3040-309F, U+30A0-30FF, U+4E00-9FAF;
}

@font-face {
  font-family: 'Noto Serif JP';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  font-feature-settings: "rlig" 1, "calt" 1;
  src: local('Noto Serif JP Black'),
    local('Noto Serif JP'),
    url('/fonts/NotoSerifJP-Black.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+3040-309F, U+30A0-30FF, U+4E00-9FAF;
}

/* メインフォント */
.font-noto-sans {
  font-family:
    /* システムフォント優先 */
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Hiragino Kaku Gothic Pro",
    /* セカンダリシステムフォント */
    "Yu Gothic",
    "Yu Gothic UI",
    "Meiryo",
    "Takao",
    /* 汎用フォント */
    "Noto Sans JP",
    Roboto,
    /* フォールバック */
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-feature-settings: "rlig" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* フォント最適化用 */
.font-optimized {
  font-display: swap;
  font-feature-settings: "rlig" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}