@charset "UTF-8";
/* ============================================================
   STAEDTLER 製品詳細ページ
   Figma準拠デザイントークン + モバイルファースト
   - 〜767px: リキッド（Figma 430pxカンプ基準）
   - 768px〜: PCレイアウト
   ============================================================ */

:root {
  /* --- colors (Figma実測値) --- */
  --c-text: #1e1e1e;
  --c-text-chip: #4c4c4c;
  --c-img-text: #c5c5c5;

  --c-bg-label: #bebebe;
  --c-bg-chip: #dadada;
  --c-bg-feature: #f5f5f5;
  --c-bg-placeholder: #e4e4e4;
  --c-bg-hero-img: #8e8e8e;
  --c-bg-back: #8f8f8f;

  --c-border-hero: #bdbdbd;
  --c-border-section: #d2d2d2;
  --c-border-lineup: #cccccc;
  --c-outline-keyword: #727272;
  --c-outline-btn: #949494;
  --c-icon-toggle: #777777;
  --c-dot-active: #8c8c8c;
  --c-dot: #e1e1e1;

  /* --- typography (Figma実測値) --- */
  --fs-title: 20px;      /* 製品タイトル */
  --fs-catch: 18px;      /* キャッチコピー */
  --fs-section: 16px;    /* セクション見出し・SKU */
  --fs-body: 15px;       /* 本文・スペック */
  --fs-price-sub: 14px;  /* 価格の補足・キーワード */
  --fs-chip: 13px;       /* 硬度チップ */
  --fs-small: 12px;      /* パンくず・ラベル */
  --fs-price: 20px;      /* 価格数字 */

  --lh-body: 1.5;        /* 22.5/15 */
  --lh-tight: 1.1;       /* 14.3/13 チップ */

  /* --- spacing (Figma実測値) --- */
  --sp-page-x: 30px;       /* メイン左右 */
  --sp-page-top: 50px;     /* メイン上 */
  --sp-page-bottom: 40px;  /* メイン下 */
  --sp-section-gap: 50px;  /* セクション間 */
  --sp-item-top: 60px;     /* ラインナップ項目上 */
  --sp-row-y: 20px;        /* スペック行・トグル行の上下 */
  --sp-cell: 10px;         /* セル内パディング */

  --h-section-title: 52px; /* セクション見出しの高さ */

  /* --- layout --- */
  --content-max: 370px;    /* Figmaコンテンツ幅（モバイル上限） */
  --font: "Noto Sans JP", system-ui, -apple-system, sans-serif;
}

/* ============ reset ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

/* パンくず → assets/css/site-header.css */

/* Astra boxed（.ast-separate-container）の #primary デフォルト padding を除去 */
body.single-product.ast-separate-container #primary,
body.astra-child-product-single.ast-separate-container #primary {
	padding: 0;
}

/* ============ main layout ============ */
.product {
  padding: var(--sp-page-top) var(--sp-page-x) var(--sp-page-bottom);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-section-gap);
}
.product > * {
  width: 100%;
}

/* ============ section title（共通） ============ */
.section-title {
  height: var(--h-section-title);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--fs-section);
  font-weight: 700;
  border-bottom: 1px solid var(--c-border-section);
}
.section-title--plain { border-bottom: 0; }

/* ============ hero ============ */
.hero {
  padding-bottom: 40px;
  /* border-bottom: 1px solid var(--c-border-hero); */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
.hero__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.hero__title {
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.5;
}
.hero__sku {
  font-size: var(--fs-section);
  font-weight: 500;
}
.hero__label {
  padding: 8px 10px;
  background: var(--c-bg-label);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.5;
}
.hero__image {
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero__image--padding-small {
  padding: 10px 0;
}
.hero__image--padding-large {
  padding: 60px 0;
}
.hero__image .ph {
  /* Figma: 332×17 鉛筆型プレースホルダー */
  width: 90%;
  max-width: 332px;
  height: 17px;
  background: var(--c-bg-hero-img);
}
.hero__catch {
  font-size: var(--fs-catch);
  font-weight: 400;
  line-height: 1.5;
}
.hero__price { line-height: 1.5; }
.price-amount {
  font-size: var(--fs-price);
  font-weight: 700;
}
.price-note {
  font-size: var(--fs-price-sub);
  font-weight: 500;
}
.hero__desc {
  width: 100%;
  text-align: left;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.hero__keywords {
  width: 100%;
  padding: 20px 0 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.keyword {
  padding: 4px 16px;
  border-radius: 30px;
  outline: 1px solid var(--c-outline-keyword);
  outline-offset: -1px;
  font-size: var(--fs-price-sub);
  line-height: 1.5;
}

/* ============ features ============ */
.features {
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.features .section-title { width: 100%; }
.feature-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  gap: 0;
}
.feature-track::-webkit-scrollbar { display: none; }
.feature {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature__img {
  height: 400px;
  background: var(--c-bg-feature);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--c-img-text);
  font-size: var(--fs-section);
  font-weight: 700;
}
.feature__text {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.feature__title {
  font-size: var(--fs-section);
  font-weight: 700;
  line-height: 1.5;
}

/* 積み重ねレイアウト */
.features--stacked .feature-track {
  flex-direction: column;
  overflow: visible;
  scroll-snap-type: none;
}
.features--stacked .feature {
  flex: none;
  width: 100%;
}
.features--stacked .feature__img {
  height: auto;
}
.features--stacked .feature-dots {
  display: none;
}

.feature-dots {
  padding-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.feature-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-dot);
  padding: 0;
}
.feature-dots button[aria-current="true"] { background: var(--c-dot-active); }

/* ============ amazon button ============ */
.buy-btn-wrap {
  display: flex;
  justify-content: center;
}
.buy-btn {
  padding: 10px 20px;
  outline: 1px solid var(--c-outline-btn);
  outline-offset: -1px;
  font-size: var(--fs-section);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.buy-btn:hover { background: var(--c-text); color: #fff; }

/* ============ lineup ============ */
.lineup { display: flex; flex-direction: column; }
.lineup .section-title { width: 100%; }

.lineup-unit {
  padding-top: var(--sp-item-top);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lineup-unit__title {
  padding: 10px 0 20px;
  font-size: var(--fs-section);
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

/* バリエ表現：区切りテキスト（硬度チップ） */
.chip-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-grid span {
  min-width: 4em;
  padding: 10px;
  background: var(--c-bg-chip);
  border-radius: 4px;
  text-align: center;
  font-size: var(--fs-chip);
  line-height: var(--lh-tight);
  color: var(--c-text-chip);
}

/* バリエ表現：画像 */
.lineup-unit__image {
  width: 100%;
  max-width: 100%;
  background: none;
}

.lineup-unit__price {
  padding-top: 20px;
  line-height: 1.5;
}

/* 詳しく見る トグル */
.spec-toggle {
  width: 30%;
  position: relative;
  padding: var(--sp-row-y) 40px var(--sp-row-y) 0;
  border: none;
  display: flex;
  justify-content: center;
}
.spec-toggle__label {
  padding: var(--sp-cell);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: var(--lh-body);
}
.spec-toggle__icon {
  position: absolute;
  right: 5px;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
}
.spec-toggle__icon::before,
.spec-toggle__icon::after {
  content: "";
  position: absolute;
  background: var(--c-icon-toggle);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.spec-toggle__icon::before { width: 24px; height: 2px; }
.spec-toggle__icon::after  { width: 2px; height: 24px; transition: opacity .2s; }
.spec-toggle[aria-expanded="true"] .spec-toggle__icon::after { opacity: 0; }

/* スペック本体（開閉） */
.spec-body {
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.spec-body > .spec-body__inner { overflow: hidden; }
.spec-toggle[aria-expanded="true"] + .spec-body { grid-template-rows: 1fr; }

/* タイトル未入力ユニット: アコーディオン無効・スペック常時表示 */
.lineup-unit--specs-static .spec-body,
.spec-body.spec-body--open {
	grid-template-rows: 1fr;
}

.lineup-unit--specs-static .spec-body > .spec-body__inner {
	overflow: visible;
}

.lineup-unit__specs { border-bottom: 1px solid var(--c-border-lineup); }

/* スペック行：項目名（上）＋ 値（下）の縦積み（Figma準拠） */
.spec-row {
  padding: var(--sp-row-y) 0;
  border-bottom: 1px solid var(--c-border-section);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt {
  padding: var(--sp-cell);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: var(--lh-body);
}
.spec-row dd {
  padding: var(--sp-cell);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
}

/* ============ faq（Figma準拠：Q/A 両方表示の静的リスト） ============ */
.faq {
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq .section-title { width: 100%; }
.faq-item {
  padding: 10px 0 20px;
  border-bottom: 1px solid var(--c-border-section);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item:last-child { border-bottom: 0; }
.faq-row { display: flex; }
.faq-row__mark {
  width: 40px;
  flex-shrink: 0;
  padding: var(--sp-cell);
  line-height: var(--lh-body);
}
.faq-row__text {
  flex: 1;
  padding: var(--sp-cell);
  line-height: var(--lh-body);
}
.faq-row--q .faq-row__mark,
.faq-row--q .faq-row__text { font-weight: 700; }

/* ============ generic（汎用項目：注意事項など） ============ */
.generic {
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.generic .section-title { width: 100%; }
.generic__body {
  padding: 10px var(--sp-cell) 20px;
  line-height: var(--lh-body);
}

/* ============ back button ============ */
.back-wrap { padding-bottom: 30px; }
.back-btn {
  width: 100%;
  padding: 16px 0;
  background: var(--c-bg-back);
  color: #fff;
  font-size: var(--fs-section);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.back-btn::before {
  content: "";
  width: 8px;
  height: 13px;
  background: #fff;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

/* ============ related ============ */
.related {
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.related__title {
  text-align: center;
  font-size: var(--fs-section);
  font-weight: 700;
  line-height: 1.4;
}
.related__grid {
  display: flex;
  gap: 10px;
}
.related__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}
.related__img {
  width: 150px;
  max-width: 100%;
  aspect-ratio: 1/1;
  background: var(--c-bg-placeholder);
}
.related__name {
  font-size: var(--fs-price-sub);
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   PC（768px〜）
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --content-max: 680px;
    --sp-page-x: 40px;
    --sp-page-top: 64px;
    --sp-section-gap: 64px;
  }

  .product > * { max-width: var(--content-max); }

  /* hero: 1カラム（タイトル → SKU → ラベル → 画像 → キャッチ…） */
  .hero {
    max-width: var(--content-max);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding-bottom: 56px;
  }
  .hero__head {
    align-items: center;
    gap: 14px;
    width: 100%;
  }
  .hero__title { font-size: 24px; }
  .hero__image {
    width: 100%;
    min-height: 0;
    background: transparent;
    align-items: center;
  }
  .hero__catch { text-align: center; }
  .hero__keywords {
    justify-content: center;
    padding: 8px 0 0;
  }

  /* features: スライダー時のみ 3カラム静的グリッド（ドット非表示） */
  .features--slider .feature-track {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .features--slider .feature { flex: none; }
  .features--slider .feature__img { height: 240px; }
  .features--slider .feature-dots { display: none; }

  /* features: 積み重ねは PC でも縦並び */
  .features--stacked .feature-track {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  /* spec行: 項目名（左固定）＋値（右） */
  .spec-row {
    flex-direction: row;
    gap: 16px;
  }
  .spec-row dt { width: 140px; flex-shrink: 0; }
  .spec-row dd { flex: 1; }

  /* related: 4カラム想定（流し込みでも崩れない） */
  .related__grid { gap: 24px; }

  .back-btn { max-width: 400px; margin: 0 auto; }
  .back-wrap { display: flex; justify-content: center; }
  .back-wrap > .back-btn { width: 400px; }
}

/* === テーマ追記: ACF 実画像（モック .ph プレースホルダー代替） === */
.hero__image .hero__img {
	display: block;
	width: 90%;
	max-width: 100%;
	height: auto;
}
.feature__img .feature__img-el {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}
.lineup-unit__image .lineup-unit__img {
	display: block;
	width: auto;
	height: auto;
  max-width: 100%;
  max-height: 300px;
  margin: 0 auto;
}
.variation-overview__image .variation-overview__img {
	display: block;
	width: 100%;
	height: auto;
}
.related__img img.related__img-el {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.product-video__embed iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
}

/* ============ a11y ============ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
