@charset "UTF-8";

/*=================================
    ページ固有CSS
    読み込み順は base.css → page.css → index.css（共通CSS）。
    共通CSSが後から読み込まれるため、上書きが必要な箇所は詳細度を上げている。
    共通CSSで足りる部分（フォント、本文色、.content-inner、.mod-hdg-3、
    .mod-media-mov、.mod-link-btn、.mod-text-normal のPDFアイコン）はそのまま使い、
    ここではレイアウトと、共通CSSにない部品だけを定義する。
    ブレイクポイントは共通CSSに合わせて 959px / 478px。
=================================*/
:root {
  --red: #dc0032;
  --line: #ddd;
  --footer-bg: #f5f4f5;
}

:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}

img {
  display: block;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  /* ヘッダー（60）・メニューの暗幕（50）より上に表示する */
  padding: 8px 16px;
  background: #fff;
  border: 2px solid #333;
  color: #333;
}

.skip:focus {
  top: 16px;
}

/* ヘッダー
=========================================*/
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px;
  padding: 0 40px;
}

.site-logo {
  width: 125px;
}

.site-nav ul {
  display: flex;
  gap: 40px;
}

.site-nav a {
  color: #dc0032;
  font-size: 1rem;
}

.site-nav a:hover {
  color: var(--red);
}

/* ヘッダー追加 */
.site-nav ul li a {
  position: relative;
  display: inline-block;
  padding-bottom: 0.7em;
  /* 点のためのスペース */
  text-decoration: none;
}

.site-nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background-color: #dc0032;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s;
}

.site-nav ul li a:hover::after {
  transform: translateX(-50%) scale(1);
}

/* スクロールでヘッダーを出し入れ（全画面幅。JSで .is-hidden を付け外し） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  transition: transform .3s ease-out;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion:reduce) {
  .site-header {
    transition: none;
  }
}

/* ナビの右矢印アイコンはスマホのメニュー内だけで使う */
.site-nav-icon {
  display: none;
}

/* スマホ用メニューボタン（PC・タブレットでは非表示） */
.site-menu-btn {
  display: none;
}

/* KV
=========================================*/
.kv {
  position: relative;
  margin-bottom: 159px;
  /* タイトルボックスのはみ出し54px＋リードまで105px */
}

.kv-img {
  width: 100%;
}

/* タイトルボックス：赤地に白文字。幅はKVに対する比率で伸縮し、文字も画面幅に合わせて縮む */
.kv-title {
  position: absolute;
  left: 0;
  bottom: -54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 2.1vw, 59px);
  width: min(530px, 36.8%);
  min-height: min(428px, 29.7vw);
  padding: clamp(24px, 4.4vw, 64px) clamp(20px, 3.3vw, 48px);
  background: #dc0032;
  color: #fff;
}

.kv-title-main {
  font-size: clamp(22px, 3.05vw, 44px);
  font-weight: 700;
  line-height: 1.25;
}

.kv-title-info {
  font-size: clamp(14px, 1.53vw, 22px);
  line-height: 1.8;
}

.kv-title-main span,
.kv-title-info span {
  display: block;
}

/* 区切り線 */
.divider {
  height: 0;
  margin: 105px 10px 116px;
  border: 0;
  border-top: 1px solid var(--line);
}

.divider-strong {
  margin: 95px 10px 37px;
  border-top-color: #999;
}

/* 目次：カテゴリカード（画像＋下に矢印付きラベル）
=========================================*/
.toc-title {
  max-width: 100%;
}

.toc-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 0 10px;
  margin-top: 41px;
}

.toc-cards a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333;
  text-decoration: none;
}

.toc-card-img {
  display: block;
  aspect-ratio: 232 / 164;
  overflow: hidden;
  background: #eee;
}

.toc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease-out;
}

/* ラベル帯：画像の下、右端を少し空けて配置 */
.toc-card-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -2rem 0;
  flex-grow: 1;
  width: 94%;
  min-height: 68px;
  padding: 12px 16px 12px 0;
  background: #ffffff;
  /* フレックスアイテムなので position なしでも z-index が効く。
     ホバーで拡大する画像より上に重ねる。ヘッダー（60）より下にするため 1 */
  z-index: 1;
}

/* 丸に「＞」：フッターと同じ共通の .mod-link-arrow を使う。
   共通CSSが後から読み込まれるため、リンク用の余白は詳細度を上げて打ち消す */
.toc-cards .toc-card-label .mod-link-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
}

.toc-cards .toc-card-label .mod-link-arrow .arrow {
  top: 0;
}

.toc-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ホバー：フッターと同じアニメーション（円を描く＋矢印がスライドイン）。
   アニメーション本体は共通CSSの anim-circle / anim-arrow をそのまま使う */
@media screen and (min-width:960px) {
  .toc-cards a:hover .toc-card-name {
    color: var(--red);
  }

  .toc-cards a:hover .mod-link-arrow .arrow,
  .toc-cards a:focus-visible .mod-link-arrow .arrow {
    border: none;
  }

  .toc-cards a:hover .mod-link-arrow .arrow:before,
  .toc-cards a:focus-visible .mod-link-arrow .arrow:before {
    animation: anim-arrow .4s forwards;
  }

  .toc-cards a:hover .mod-link-arrow .arrow circle,
  .toc-cards a:focus-visible .mod-link-arrow .arrow circle {
    stroke-width: 1;
    animation: anim-circle .4s forwards;
  }
}

@media (prefers-reduced-motion:no-preference) {
  .toc-cards a:hover .toc-card-img img {
    transform: scale(1.03);
  }
}

/* カテゴリ
=========================================*/
.category {
  scroll-margin-top: 24px;
}

/* 見出しは共通の .mod-hdg-3（赤い短線付き）を使い、余白と文字サイズをページに合わせる。
   h3（カテゴリ）: h4（項目）を約1.3倍に保つ
     PC 40px : 32px ／ タブレット 32px : 24px ／ スマホ 26px : 20px */
.category .cat-title {
  margin: 138px 10px 28px;
  padding-top: 32px;
  font-size: 2.5rem;
}

/* 各コンテンツ */
.item {
  margin: 0 10px;
  scroll-margin-top: 24px;
}

.item+.item {
  margin-top: 50px;
}

/* 小見出し：赤い点＋タイトル
   2行以上になっても、赤い点は1行目の中央にそろえる
   （行の高さ 1.4 の半分＝0.7em の位置に点の中心を置く） */
.item-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 0 1rem 0.5rem;
  font-size: 2rem;
  line-height: 1.4;
}

.item-title::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.7em;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--red);
}

/* 長いタイトル（.title-fit）
   ・入るあいだは、項目の幅に合わせて文字を縮め、1行で表示する
   ・下限サイズまで縮めても入らないときは、2つの .title-part の間でだけ改行する
   --fit-chars：タイトルの文字数の目安（61文字＋太字の字幅ぶり）。
                実フォントで1行に収まらない／余りすぎる場合はこの値を調整する
   --fit-max / --fit-min：画面幅ごとの最大・最小の文字サイズ */
.item {
  container-type: inline-size;
}

.item-title--fit {
  --fit-chars: 36;
  --fit-max: 32px;
  --fit-min: 24px;
  --fit-fs: clamp(var(--fit-min), (100cqi - 40px) / var(--fit-chars), var(--fit-max));
}

.item-title--fit .title-fit {
  font-size: var(--fit-fs);
  line-height: 1.4;
}

/* 文字サイズが見出し本体と異なるため、点の位置だけこの文字サイズで計算する */
.item-title--fit::before {
  margin-top: calc(var(--fit-fs) * 0.7);
}

.title-part {
  display: inline-block;
}

/* 動画（共通の .mod-media-mov で16:9の枠を作る）
   上下の余白は外側の .si-pb-40 で取るため、共通CSSの margin-bottom を打ち消す。
   共通CSSが後から読み込まれるため、詳細度を上げている */
.category .mod-media-mov {
  margin: 0;
}

/* 資料：サムネイル＋PDFリンク */
.item-doc {
  display: flex;
  align-items: center;
  gap: 77px;
}

.item-doc-thumb {
  flex-shrink: 0;
  width: 211px;
}

.item-doc-thumb img {
  width: 100%;
  border: 2px solid #f5f4f5;
}

/* PDFアイコンは共通CSS（.mod-text-normal a[href*=".pdf"]:before）で付く */
.item-doc-links li.mod-text-normal {
  margin-bottom: 0;
}

.item-doc-links li+li {
  margin-top: 16px;
}

.item-doc-links a {
  display: inline-flex;
  align-items: baseline;
  border-bottom: none !important;
}

/* 共通CSSの word-break: break-all を打ち消し、単語の途中で改行しない */
.item-doc-links li.mod-text-normal a {
  word-break: normal;
  overflow-wrap: normal;
}

.dl-lang {
  display: inline-block;
}

.item-doc-links a:hover,
.item-doc-links a:hover .dl-lang {
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* 右寄せのボタン */
.item-btn {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
  gap: 0.5rem;
}

.item-btn a {
  display: block;
  max-width: 100%;
}

/* お問い合わせ
=========================================*/
.contact {
  margin: 0 10px;
}

.contact-txt {
  display: flex;
}

.contact-title {
  width: 258px;
  max-width: 100%;
  margin-bottom: 20px;
}

/* 共通の .mod-link-btn（赤枠ボタン）を使い、大きさだけ調整 */
.contact-btn {
  flex-shrink: 0;
}

.contact-btn a {
  margin: 0;
  padding: 28px 64px;
}

/* フッター
=========================================*/
.site-footer {
  margin-top: 120px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 89px;
  min-height: 215px;
  padding: 0 107px;
  background: var(--footer-bg);
}

.footer-logo {
  flex-shrink: 0;
  width: 150px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 共通の .mod-link-arrow（丸に＞）を使い、余白だけ調整 */
.footer-nav .mod-link-arrow {
  margin-bottom: 0;
  font-size: 1rem;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/* スマホ用 追従ボタン（PC・タブレットでは非表示） */
.sp-fixed-btn {
  display: none;
}

/* タブレット（959px以下）
=========================================*/
@media screen and (max-width:959px) {
  .site-header {
    height: 64px;
    padding: 0 0 0 16px;
  }

  .site-logo {
    width: 96px;
  }

  .site-nav ul {
    gap: 20px;
  }

  .site-nav a {
    font-size: .875rem;
  }

  .kv {
    margin-bottom: 120px;
  }

  .kv-title {
    position: relative;
    top: -3rem;
    width: calc(100% - 40px);
    min-height: 0;
    gap: 20px;
    padding: 32px 16px;
  }

  .divider {
    margin: 72px 0 80px;
  }

  .divider-strong {
    margin: 72px 0 32px;
  }

  .toc-title {
    width: 240px;
  }

  /* カテゴリカード：画像を左、矢印＋カテゴリ名を右に置いた1列 */
  .toc-cards {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
  }

  .toc-cards a {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .toc-card-img {
    flex-shrink: 0;
    width: 45%;
    aspect-ratio: 1 / 0.93;
  }

  .toc-card-label {
    flex: 1;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    gap: 10px;
    background: none;
  }

  .toc-card-name {
    font-size: 1rem;
  }

  .category .cat-title {
    margin: 96px 0 24px;
    padding-top: 24px;
    font-size: 2rem;
  }

  .item-title {
    font-size: 1.5rem;
  }

  .item-title::before {
    width: 8px;
    height: 8px;
  }

  .item-title--fit {
    --fit-max: 24px;
    --fit-min: 18px;
  }

  .item {
    margin: 0;
  }

  .item-doc {
    gap: 40px;
  }

  .item-doc-thumb {
    width: 180px;
  }

  .contact {
    margin: 0;
  }

  .contact-txt {
    display: inline-block;
  }

  .contact-btn a {
    display: block;
    width: 100%;
  }

  .site-footer {
    margin-top: 96px;
  }

  .footer-inner {
    gap: 56px;
    padding: 48px 40px;
    min-height: 0;
  }

  .footer-nav {
    gap: 24px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }
}

/* スマホ（478px以下）
=========================================*/
@media screen and (max-width:478px) {
  .site-header {
    height: 64px;
    padding: 0 0 0 14px;
  }

  .site-logo {
    width: 80px;
  }

  .site-nav ul {
    gap: 14px;
  }

  .site-nav a {
    font-size: .8125rem;
  }

  /* タイトルボックスはKVの下に置く */
  .kv {
    margin-bottom: 64px;
  }

  .kv-title-main {
    font-size: 1.625rem;
  }

  .kv-title-info {
    font-size: .9375rem;
    line-height: 1.7;
  }

  .divider {
    margin: 48px 0 56px;
  }

  /* 「Products and Solutions」をスマホで1行に収める。
     共通の si-fz-40（40px）を上書きし、画面幅に合わせて 20〜28px で伸縮させる */
  .toc-title {
    width: auto;
    font-size: clamp(20px, 6.8vw, 28px);
  }

  .category .cat-title {
    margin-top: 72px;
    font-size: 1.625rem;
  }

  .item-title {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .item-title--fit {
    --fit-max: 20px;
    --fit-min: 16px;
  }

  .item+.item {
    margin-top: 40px;
  }

  .item-doc {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .item-doc-thumb {
    width: 160px;
  }

  .item-btn {
    margin-top: 20px;
  }

  .item-btn a {
    width: 100%;
  }

  .contact-btn a {
    padding: 24px 32px;
  }

  .site-footer {
    margin-top: 72px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 14px;
  }

  .footer-logo {
    width: 120px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

}

/* スマホ：ハンバーガーメニュー（JSが動く環境のみ）
=========================================*/
@media screen and (max-width:959px) {
  .js .site-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    background: #dc0032;
    cursor: pointer;
  }

  /* 三本線 → ×印 */
  .js .site-menu-icon,
  .js .site-menu-icon::before,
  .js .site-menu-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
  }

  .js .site-menu-icon {
    position: relative;
  }

  .js .site-menu-icon::before,
  .js .site-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .js .site-menu-icon::before {
    top: -8px;
  }

  .js .site-menu-icon::after {
    top: 8px;
  }

  .js .is-menu-open .site-menu-icon {
    background: transparent;
  }

  .js .is-menu-open .site-menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .js .is-menu-open .site-menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* メニュー本体：ヘッダーの下に開く */
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
  }

  .js .is-menu-open .site-nav {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav li+li {
    border-top: 1px solid var(--line);
  }

  .js .site-nav ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 0 14px;
    font-size: 1rem;
  }

  /* PC用のホバー時の赤い点は使わない */
  .js .site-nav ul li a::after {
    content: none;
  }

  /* 右端の ＞（共通のアイコンフォント icon-arrow-right） */
  .js .site-nav-icon {
    display: block;
    flex-shrink: 0;
    color: var(--red);
    font-size: .875rem;
  }

  /* 開いている間は背景を暗くし、ページのスクロールを止める */
  .js .is-menu-open {
    overflow: hidden;
  }

  .js .is-menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, .4);
  }
}

@media screen and (max-width:478px) and (prefers-reduced-motion:no-preference) {

  .js .site-menu-icon,
  .js .site-menu-icon::before,
  .js .site-menu-icon::after {
    transition: transform .2s ease-out, top .2s ease-out, background-color .2s;
  }
}

/* スマホ：追従ボタン（画面右下）
=========================================*/
@media screen and (max-width:959px) {
  .sp-fixed-btn {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 40;
    /* メニューの暗幕（50）より下 */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #fafafa;
    transition: opacity .3s ease-out, visibility .3s ease-out;
  }

  .sp-fixed-btn img {
    width: 35px;
    height: auto;
  }

  /* JSが動く環境では、KVを過ぎるまで隠しておく */
  .js .sp-fixed-btn:not(.is-visible) {
    opacity: 0;
    visibility: hidden;
  }
}
