@charset "UTF-8";
/* =============================================================
   製品詳細ページ専用スタイル（single-product.php）
   デザイン: untracked/product-item①.png
   ============================================================= */

.product-detail {
  padding-top: 0;
}

/* ---- アイキャッチ（バブル帯：ヘッダー下の全幅装飾） ---- */
.product-detail__eyecatch {
  min-height: clamp(120px, 12vw, 210px);
  background: #f3f9ff url("../images/common/eyecatch-sub-detail.png") center bottom /
    cover no-repeat;
}

/* ---- パンくず（このページは page-*.css を読まないので個別に定義） ---- */
.product-detail .breadcrumb {
  padding: 16px 0;
  color: #0050A3;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.product-detail .breadcrumb__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.product-detail .breadcrumb a {
  color: #0050A3;
  text-decoration: underline;
}
.product-detail .breadcrumb__sep {
  display: inline-block;
  width: 9px;
  height: 15px;
  font-size: 0;
  background: url(../images/common/breadcrumb-arrow.svg) no-repeat center / contain;
}

/* ---- イントロ（画像＋基本情報） ---- */
.product-detail__intro {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 28px;
}
.product-detail__image {
  margin: 0;
  max-height: 520px;
}
.product-detail__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 6px;
}
.product-detail__eyebrow {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-heading-en);
}
.product-detail__title {
  margin-top: 4px;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 500;
  color: var(--color-heading);
  line-height: 1.25;
}
.product-detail__variations {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 18px 0 0;
  padding: 7px 14px;
  width: fit-content;
  background: var(--color-bg-alt);
  border-radius: 4px;
  font-size: 15px;
}
.product-detail__variations li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 350;
  line-height: 31px; /* 172.222% */
}
.product-detail__var-no {
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 350;
  line-height: 31px; /* 172.222% */
}

/* 見出し（● ＋ テキスト） */
/* .recruit-subhead と同一スタイル（共通化せず独立コピー。一方を変えても他方に追随しない） */
.product-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1300px;
  margin: 44px 0 6px;
  color: #303030;
  font-family: "Noto Sans JP";
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 31px; /* 110.714% */
}
.product-heading::before {
  content: "";
  flex: none;
  width: 25.96px;
  height: 25.96px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #0684F5;
}
.product-heading--section {
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 31px; /* 110.714% */
  letter-spacing: 4.2px;
  margin-bottom: 24px;
}

.product-block {
  margin-top: 26px;
}
.product-block__text {
  margin: 10px 0 0;
  padding-left: 40px;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 350;
  line-height: 31px; /* 172.222% */
}

/* ボタン */
.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}
.product-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  padding: 16px 22px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}
.product-btn:hover {
  opacity: 0.88;
}
.product-btn__arrow {
  margin-left: auto;
  flex: none;
  width: 18px;
  height: auto;
}
/* お問い合わせボタンのメールアイコン（ラベル左） */
.product-btn__icon {
  flex: none;
  width: 26px;
  height: auto;
}
/* お問い合わせボタンのラベル（白・Noto 24px）。catalog ラベルは現状維持のため contact 限定 */
.product-btn--contact .product-btn__label {
  color: #fff;
  font-family: "Noto Sans JP";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.product-btn--catalog {
  display: flex;
  height: 80px;
  padding: 0 40px;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 0;
  border-radius: 12px;
  border: 1px solid #393939;
  background: #fff;
  color: #444;
  font-family: "Noto Sans JP";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.product-btn__pdf {
  flex: none;
  display: block;
  width: auto;
  height: 38px;
}
/* .contact__btn（.btn + .btn--contact + .contact__btn の合成）と同一デザインの独立コピー。
   共通化しないため、一方を変えても他方には追随しない。
   レイアウトは catalog と横並びにするため flex:1 0 0（高さは行ストレッチで揃う）。 */
.product-btn--contact {
  display: flex;
  flex: 1 0 0;
  min-height: 72px;
  padding: 12px 28px;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0a82f0, #0356b0);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

/* ---- 仕様 ---- */
.product-spec {
  margin-top: 64px;
}
.product-spec__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 0 40px;
}
.spec-table {
  flex: 1 1 360px;
  border-collapse: collapse;
  font-size: 15px;
}
.spec-table th,
.spec-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #A0BDD7;
  line-height: 1.7;
}
.spec-table th {
  width: 34%;
  background: #C9E2F2;
  white-space: nowrap;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 19px;
  font-style: normal;
  font-weight: 500;
  line-height: 31px; /* 163.158% */
}
.spec-table td {
  background: #EDF2F9;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 350;
  line-height: 31px; /* 172.222% */
}

/* ---- 説明・動画エリア ---- */
.product-rich {
  margin-top: 64px;
}
/* 既定は本文のみ（全幅）。動画ありのときは「左：動画／右：見出し＋本文」の横並び */
.product-rich--has-video .product-rich__inner {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: 40px;
  align-items: start;
}
/* 右カラム（見出し＋本文）は縦並び。先頭見出しは動画と上端を揃える */
.product-rich--has-video .product-rich__main .product-heading {
  margin-top: 0;
}
.product-rich__video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background: #d7e3ef;
}
.product-rich__video iframe,
.product-rich__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.product-rich__body {
  padding-left: 40px;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 350;
  line-height: 24px; /* 133.333% */
}
.product-rich__body :where(img, iframe, video) {
  max-width: 100%;
}
.product-rich__body p {
  margin: 0 0 1em;
}

/* ---- 画像とキャプション（3個まで横並び・4個目折り返し） ---- */
.product-media {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 56px 0 0;
  padding: 0;
}
.product-media__figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef1f5;
  border-radius: 8px;
  overflow: hidden;
}
.product-media__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-media__caption {
  margin-top: 10px;
  color: #444;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 350;
  line-height: 31px; /* 172.222% */
}
.product-media__caption::before {
  content: "▲ ";
  color: #444;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 350;
  line-height: 31px; /* 172.222% */
}

/* ---- ラインナップ（フルブリードの薄青帯） ---- */
.product-lineup {
  margin-top: 72px;
  padding: 56px 0 0;
  /* 子(.lineup-cards)のフルブリード100vwがスクロールバー幅ぶんはみ出すのを見切り、
     ページ全体の横スクロールを防ぐ */
  overflow-x: clip;
}
.product-lineup__head {
  margin-bottom: 28px;
}
.product-lineup__en {
  display: block;
  font-family: var(--font-title-en);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  color: var(--color-heading-en);
}
.product-lineup__title {
  margin-top: 2px;
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
  color: var(--color-heading);
}
/* ラインナップのカードは他ページ（main.css の .product-card）と別デザインのため、
   .lineup-card 系として自己完結で定義（main.css には依存しない・追随しない）。 */
.lineup-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 240px));
  gap: 28px;
  justify-content: center;
  list-style: none;
  /* 背景は全幅（フルブリード）、カードは max 1400px 中央寄せ */
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 30px max(var(--gutter), (100vw - var(--container)) / 2);
  background: #EDF2F9;
}
.lineup-card {
  background: #fff;
  box-shadow: 5px 5px 14px 0 rgba(206, 206, 206, 0.75);
}
.lineup-card__link {
  display: block;
}
.lineup-card__media img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  background: #ffffff;
  padding: 30px 18px;
}
/* 画像未設定時の NotFound */
.lineup-card__noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #e5e5e5;
  color: var(--color-muted);
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lineup-card__name {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-top: 1px solid #E5E5E5;
  font-weight: 700;
  font-size: 24px;
  color: #373838;
}
/* 英語版のみ：製品名が長くなりがちなため余白・文字サイズを調整 */
.en-US .lineup-card__name {
  padding: 14px 20px;
  font-size: 17px;
}
.lineup-card__arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0;
  width: 11px;
  height: 18px;
  background-color: var(--color-heading-en);
  -webkit-mask: url(../images/common/product-card__arrow.svg) no-repeat center /
    contain;
  mask: url(../images/common/product-card__arrow.svg) no-repeat center / contain;
}

/* ---- 製品一覧へ戻る ---- */
.product-detail__foot {
  text-align: center;
  padding: 56px 0 80px;
}
.product-back-btn {
  display: inline-block;
  padding: 16px 52px;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.product-back-btn:hover {
  opacity: 0.88;
}

/* =============================================================
   レスポンシブ
   ============================================================= */
/* 1200px付近：ボタンは横並び（flex:1 0 0）のまま文字だけ縮小して崩れ防止 */
@media (max-width: 1200px) {
  .product-btn--catalog {
    font-size: 20px;
  }
  .product-btn--contact .product-btn__label {
    font-size: 20px;
  }
}
@media (max-width: 900px) {
  .product-detail__intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-media {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .product-detail__actions .product-btn {
    flex: 1 1 100%;
  }
  /* 説明・動画：縦積み（動画は本文の下へ） */
  .product-rich--has-video .product-rich__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* 見出し（.recruit-subhead と同一の縮小） */
  .product-heading {
    font-size: 24px;
  }
  /* ボタン：縦積み時に余白・文字をやや縮小 */
  .product-btn--catalog {
    height: auto;
    min-height: 64px;
    padding: 12px 24px;
    font-size: 20px;
  }
  .product-rich__body {
    padding-left: 24px;
  }
}
@media (max-width: 600px) {
  .product-spec__grid {
    gap: 0;
    padding: 0;
  }
  .spec-table {
    flex-basis: 100%;
  }
  /* 仕様テーブル：ラベルを上・内容を下に縦積み（狭幅で読みやすく） */
  .spec-table tbody {
    display: block;
  }
  .spec-table tr {
    display: block;
  }
  .spec-table tr + tr {
    margin-top: 16px; /* 行間に余白 */
  }
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
    white-space: normal;
  }
  .spec-table th {
    border-bottom: 0;
  }
  .lineup-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .lineup-card__name {
    padding: 12px 28px;
    font-size: 19px;
  }
  .product-heading {
    font-size: 20px;
    margin-top: 32px;
  }
  .product-heading--section {
    letter-spacing: 2px;
  }
  .product-rich__body {
    padding-left: 0;
  }
  .product-block__text {
    padding-left: 16px;
  }
  /* ボタン：スマホは余白・文字をさらに縮小 */
  .product-btn--catalog {
    min-height: 60px;
    padding: 10px 18px;
    font-size: 18px;
  }
  .product-btn--catalog .product-btn__pdf {
    height: 28px;
  }
  .product-btn--contact {
    min-height: 60px;
    padding: 10px 18px;
    font-size: 16px;
  }
  .product-btn--contact .product-btn__label {
    font-size: 18px;
  }
}
