/* ==========================================================================
   SICKSTYLE — 共通スタイル（実装指示書 Ver.1.0）
   数値はスマホ版の初期設定値。正式素材投入後に調整する。
   ========================================================================== */

:root {
  /* 色 */
  --c-bg: #ffffff; /* Background */
  --c-bg-sub: #f7f7f5; /* Secondary Background（空白写真枠） */
  --c-line: #d8d8d8; /* Border */
  --c-text: #171717; /* Primary Text */
  --c-muted: #555555; /* Secondary Text */
  --c-disabled: #a8a8a8;

  /* 書体
     TODO(font): GT Sectra（ライセンス未確認）など許諾済みフォント提供後、@font-face を追加して差し替え */
  --f-serif: Baskerville, Georgia, "Times New Roman", serif;
  --f-sans: system-ui, "Hiragino Sans", "Yu Gothic", sans-serif;

  /* 寸法 */
  --gutter: 24px;
  --header-h: 56px;
  --section-gap: 88px; /* セクション間 80〜120px */
  --wide: 1120px; /* 画像面の最大幅 */
  --measure: 640px; /* 本文の読み幅 */

  /* 文字サイズ（Ver.04の小さめサイズ基準） */
  --fs-hero: 28px; /* Hero Heading 24〜28 */
  --fs-display: 22px; /* Section Heading 20〜24 */
  --fs-product: 22px; /* Product Heading 20〜24 */
  --fs-sub: 16px;
  --fs-body: 14px; /* Body 13〜15 */
  --fs-nav: 13px; /* Navigation 13〜15 */
  --fs-label: 11px; /* Caption 10〜12 */

  /* 動き（Luxury Editorial / Balanced Motion。transform と opacity が基本） */
  --dur: 200ms; /* ヘッダーの表示・非表示 0.2秒 */
  --dur-menu: 200ms; /* メニューを開く: 背景と文字を同時に0.2秒フェードイン（閉じるときは瞬時） */
  --dur-page: 200ms; /* 通常ページ遷移の CROSS FADE 0.2秒 */
  --dur-hero-expand: 400ms; /* HOME写真タップの全画面拡大 0.4秒 */
  --ease-hero: cubic-bezier(0.16, 1, 0.3, 1); /* 最初は速く、最後はゆっくり停止 */
  --dur-card-reveal: 220ms; /* 商品カードの価格・紹介文の表示 */
  --dur-slide: 250ms; /* スライダーのボタン・キー操作での移動 0.2〜0.3秒（main.js が読む） */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --section-gap: 112px;
    --fs-display: 24px;
    --fs-product: 24px;
    --fs-body: 15px;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0ms;
    --dur-menu: 0ms;
    --dur-page: 0ms;
    --dur-hero-expand: 0ms;
    --dur-slide: 0ms;
    --dur-card-reveal: 0ms;
  }
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px); /* アンカー先がヘッダーに隠れない */
}

html.is-menu-open {
  overflow: hidden; /* メニュー表示中は背景スクロールを止める */
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.8;
  overflow-wrap: break-word;
  line-break: strict;
  word-break: auto-phrase; /* 対応ブラウザでは日本語を文節で改行（非対応は通常の改行） */
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
  overflow-x: clip; /* スライダー外のページ幅に横スクロールを出さない */
  padding-bottom: var(--section-gap);
}

main:focus {
  outline: none;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

a,
button {
  touch-action: manipulation; /* ダブルタップ拡大の待ちをなくす */
}

:focus-visible {
  outline: 1px solid var(--c-text);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-text);
  font-size: 13px;
}

.skip-link:focus {
  top: 8px;
}

/* ---------- layout primitives ---------- */

.container {
  width: 100%;
  max-width: calc(var(--wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure {
  max-width: var(--measure);
}

.section {
  padding-top: var(--section-gap);
}

.section-sm {
  padding-block: 40px 56px;
}

.stack > * + * {
  margin-top: 1.5em;
}

.rule {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: 0;
}

/* ---------- type ---------- */

.h-display {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.h-sub {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: var(--fs-sub);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.label {
  font-family: var(--f-sans);
  font-size: var(--fs-label);
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  margin-right: -4px;
  background: none;
  border: 0;
  font-size: var(--fs-nav);
  letter-spacing: 0.12em;
  cursor: pointer;
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ---------- logo（単一コンポーネント / TODO: 正式ロゴ） ---------- */

.logo {
  font-family: var(--f-serif);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: inherit;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.logo--sm {
  font-size: 15px;
}

.logo--lg {
  font-size: var(--fs-hero);
}

a.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  transition: transform var(--dur) ease;
}

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

/* HOME写真の拡大遷移で到着したとき: ヘッダーは隠した状態から始めてフェードイン（main.js が .is-ready を付ける） */
.from-hero .site-header {
  opacity: 0;
}

.from-hero.is-ready .site-header {
  opacity: 1;
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) ease;
}

.site-header__inner,
.menu__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  max-width: calc(var(--wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header__menu,
.menu__close {
  justify-self: start;
  margin: 0 0 0 -4px;
}

.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------- menu（Lower Index） ---------- */

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--c-bg);
  color: var(--c-text);
}

.menu[open] {
  display: flex;
  flex-direction: column;
}

.menu::backdrop {
  background: transparent;
}

/* 開くとき: 背景と文字を同時に0.2秒でフェードイン。閉じるときは瞬時に非表示 */
.motion-ok .menu[open] {
  animation: fade-in var(--dur-menu) linear both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.menu__bar {
  width: 100%;
  border-bottom: 1px solid var(--c-line);
  max-width: none;
}

.menu__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* 下寄せ */
  overflow-y: auto;
}

.menu__list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--c-line);
}

.menu__list li {
  border-bottom: 1px solid var(--c-line);
}

.menu__link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  text-decoration: none;
}

.menu__no {
  flex: 0 0 auto;
  min-width: 1.5em;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.menu__label {
  font-family: var(--f-serif);
  font-size: 20px; /* Ver.04 参照図の比率 */
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.menu__link[aria-current] .menu__label,
.menu__link:hover .menu__label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.menu__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0 calc(24px + env(safe-area-inset-bottom));
}

.menu__foot small {
  font-size: inherit;
}

/* ---------- photo frame ---------- */

.frame {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 5);
  background: var(--c-bg-sub);
  border: 1px solid var(--c-line);
  overflow: hidden;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: var(--fit, cover); /* contain なら切り抜かず全体を表示 */
  object-position: var(--pos, 50% 50%);
}

.frame:not(.frame--blank) {
  background: var(--frame-bg, var(--c-bg-sub));
}

/* 枠なし（透明背景のロゴなどをページに直接のせる） */
.frame.frame--plain {
  border: 0;
  background: transparent;
}

@media (min-width: 768px) {
  .frame {
    aspect-ratio: var(--ratio-wide, var(--ratio, 4 / 5));
  }
}

/* ---------- text slot（未入稿は仮線） ---------- */

.slot--center {
  text-align: center;
}

.slot > p + p {
  margin-top: 28px; /* 段落間 24〜36px */
}

.slot--placeholder {
  display: grid;
  gap: 9px;
  padding-block: 6px;
}

.slot--placeholder.slot--center {
  justify-items: center;
}

.slot__bar {
  display: block;
  height: 1px;
  background: var(--c-line);
  width: 78%;
}

.slot__bar:nth-of-type(2) {
  width: 68%;
}

.slot__bar:nth-of-type(3) {
  width: 50%;
}

.slot--center .slot__bar:nth-of-type(2) {
  width: 62%;
}

.slot--center .slot__bar:nth-of-type(3) {
  width: 32%;
}

.slot__caption {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--c-text);
  margin-bottom: 8px;
}

/* ---------- external link ---------- */

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  text-decoration: none;
}

a.ext-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ext-link.is-disabled {
  color: var(--c-disabled);
  cursor: not-allowed;
}

.ext-link__note {
  margin-left: 0.6em;
  font-size: 10px;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
  padding: 0 4px;
  line-height: 1.5;
}

/* ---------- horizontal track（共通スライダー） ---------- */

.track {
  --track-pad: max(var(--gutter), calc((100% - var(--wide)) / 2));
  --item-w: 83%;
  --gap: 12px;
}

.track__list {
  position: relative; /* item.offsetLeft の基準 */
  display: flex;
  gap: var(--gap);
  margin: 0;
  padding: 0 var(--track-pad);
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--track-pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.track__list::-webkit-scrollbar {
  display: none;
}

.track__list:focus-visible {
  outline-offset: -1px;
}

.track__list.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.track__list.is-dragging a {
  pointer-events: none;
}

.track__item {
  flex: 0 0 var(--item-w);
  min-width: 0;
  scroll-snap-align: start;
}

/* 最後のスライドは右端で止まれるよう end 揃え（start 位置まで届かないため） */
.track__item:last-child:not(:first-child) {
  scroll-snap-align: end;
}

.track--collection {
  --item-w: min(83%, 460px); /* PEEK: 広幅でも次の商品が右端に見える幅 */
  --gap: 12px;
}

/* SNAP: 1回のスワイプで1商品ずつ */
.track--collection .track__item {
  scroll-snap-stop: always;
}

.track--photos {
  --item-w: min(92%, 720px);
  --gap: 12px;
}

.track--gallery {
  --item-w: min(82%, 560px);
  --gap: 12px;
}

.track--related {
  --item-w: min(58%, 300px);
  --gap: 12px;
}

.track__nav {
  margin-top: 12px;
}

.track__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track__buttons {
  display: flex;
  margin-right: -12px;
}

.track__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 17px;
  cursor: pointer;
}

.track__btn[aria-disabled="true"] {
  color: var(--c-disabled);
  cursor: default;
}

.track--line .track__nav {
  margin-top: 28px;
}

/* 現在位置を細い横線で表示（COLLECTION の商品一覧） */
.track__line {
  position: relative;
  flex: 1;
  height: 1px;
  margin-right: 24px;
  background: var(--c-line);
  overflow: hidden;
}

.track__line-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--seg-w, 33.333%);
  background: var(--c-text);
  transform: translateX(var(--seg-x, 0%));
  will-change: transform;
}

/* ボタン・キー操作で main.js が移動させる間はスナップを外す */
.track__list.is-animating {
  scroll-snap-type: none;
}

/* ループ: 最後の要素は複製なので end 揃えは不要 */
.track--loop .track__item:last-child:not(:first-child) {
  scroll-snap-align: start;
}

/* ---------- product card ---------- */

.card {
  display: block;
  text-decoration: none;
  -webkit-user-drag: none;
}

.card__name {
  display: block;
  margin-top: 14px;
  font-family: var(--f-serif);
  font-size: 22px;
  line-height: 1.3;
}

.card:hover .card__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.card__colors {
  display: block;
  margin-top: 10px;
}

.card__price {
  display: block;
  margin-top: 6px;
}

.card__cta {
  display: inline-flex;
  margin-top: 14px;
  margin-bottom: 12px; /* 下へ波打つ枠が切れないよう */
}

/* VIEW PRODUCT の「潮のうねり」の枠。文字の位置は従来どおり左揃え（枠は文字の外側へ広がる） */
.tide.card__cta-tide {
  --tide-dx: 5px;
  --tide-dy: -4px;
  gap: 8px;
  padding: 5px 10px;
  margin-left: -10px;
}

.card:hover .card__cta-arrow {
  transform: translateX(3px);
}

.card__cta-arrow {
  transition: transform var(--dur) ease;
}

/* ---------- COLLECTION の商品カード: 写真に価格と紹介文を重ねる ----------
   マウスはホバー、キーボードはフォーカス、スマートフォンは1回目のタップ（main.js が .is-revealed を付ける）で表示。
   写真の拡大や文字の移動はせず、オーバーレイと文字を同時にフェード（Reduced Motion では即時） */
.card__media {
  position: relative;
  display: block;
}

.card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  /* 中心が少し濃く、周辺が薄い黒 */
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.26) 100%);
  color: #fff;
  text-align: center;
  opacity: 0;
  transition: opacity var(--dur-card-reveal) ease;
  pointer-events: none;
}

.card__overlay-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.card__overlay-price {
  font-family: var(--f-serif);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.card__overlay-copy {
  font-family: var(--f-sans);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

@media (hover: hover) and (pointer: fine) {
  .card--reveal:hover .card__overlay {
    opacity: 1;
  }
}

.card--reveal:focus-visible .card__overlay,
.card--reveal.is-revealed .card__overlay {
  opacity: 1;
}

.card--related .card__name {
  font-size: 17px;
  margin-top: 10px;
}

/* ==========================================================================
   pages
   ========================================================================== */

/* 01 HOME */
.hero {
  padding-top: 24px;
}

/* 上下左右に余白を残した大きな縦長写真枠。広幅でも縦長のまま画面の高さに収める（HOME・TEAM 共通）
   --hero-ratio は写真の縦横比（HOME は home.js が写真データから設定） */
.hero__link,
.portrait-hero {
  display: block;
  width: min(100%, max(280px, calc((100svh - var(--header-h) - 120px) * var(--hero-ratio, 2 / 3))));
  margin-inline: auto;
}

/* 写真が入ったら枠線なし（空白枠のときだけ線を出す） */
.hero__frame:not(.frame--blank) {
  border: 0;
}

.hero__text {
  text-align: center;
  padding-top: 32px; /* 写真と文字の間 24〜40px */
}

.hero__tagline {
  margin-top: 10px;
  font-family: var(--f-serif);
  font-size: 15px;
  letter-spacing: 0.04em;
}

/* HOME写真タップ → 0.4秒で全画面拡大（main.js が写真を複製した重ね枠を作る）。
   画面いっぱいの枠を clip-path で写真の位置から切り抜き、全面まで広げる（写真は歪まない） */
.hero-expand {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  height: 100svh;
  border: 0;
  pointer-events: none;
  clip-path: inset(var(--clip-t) var(--clip-r) var(--clip-b) var(--clip-l));
  transition: clip-path var(--dur-hero-expand) var(--ease-hero);
}

.hero-expand.is-expanded {
  clip-path: inset(0 0 0 0);
}

/* 02 PHILOSOPHY → MISSION → VISION → VALUES（HOME）
   スタイルは .mvv 配下に限定。白背景・一列・本文列は中央、列内は左揃え。アニメーションなし。 */
.mvv {
  --mvv-col: 38rem; /* 本文列の最大幅 */
  --mvv-pad: 24px; /* 左右余白 */
  --mvv-space: 40px; /* 罫線の上下それぞれの余白（ブロック間は罫線を挟んで合計 80px） */
  --mvv-serif: var(--f-serif); /* GT Sectra 未導入のため Baskerville, Georgia, "Times New Roman", serif */
  --mvv-sans: "Noto Sans JP", var(--f-sans); /* 読み込めない環境では既存の日本語サンセリフ */
  margin-top: calc(var(--section-gap) * 1.25); /* ヒーローとの間は広い余白 */
  font-family: var(--mvv-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
}

@media (min-width: 768px) {
  .mvv {
    --mvv-space: 48px;
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  .mvv {
    --mvv-space: 56px;
  }
}

.mvv__block {
  position: relative;
  width: min(100%, calc(var(--mvv-col) + var(--mvv-pad) * 2));
  margin-inline: auto;
  padding: var(--mvv-space) var(--mvv-pad);
}

/* 罫線: 各ブロックの上に1本（本文列の幅）。VALUES の下にも1本 */
.mvv__block::before,
.mvv__block--last::after {
  content: "";
  position: absolute;
  inset-inline: var(--mvv-pad);
  height: 1px;
  background: var(--c-line);
}

.mvv__block::before {
  top: 0;
}

.mvv__block--last::after {
  bottom: 0;
}

.mvv__block:focus {
  outline: none;
}

.mvv__heading {
  margin: 0 0 24px;
  font-family: var(--mvv-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.1em;
}

.mvv__tagline {
  margin: 0 0 24px;
  font-family: var(--mvv-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.mvv__tagline--em {
  font-weight: 600; /* 英字タグラインの太字（セリフ体のセミボールド） */
}

.mvv__title {
  margin: 0 0 12px;
  font-family: var(--mvv-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.mvv__group + .mvv__group {
  margin-top: 24px; /* 段落のまとまりの間 */
}

.mvv__text {
  margin: 0;
  text-align: left;
}

.mvv__text + .mvv__text {
  margin-top: 10px; /* 段落間 8〜12px */
}

.mvv__text--em {
  font-weight: 500; /* 強調は文字サイズでなくウェイト差で */
}

.mvv__values {
  display: grid;
  gap: 32px;
}

.mvv__value-name {
  margin: 0 0 6px;
  font-family: var(--mvv-serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .mvv__heading {
    font-size: 20px;
  }
  .mvv__tagline {
    font-size: 24px;
  }
}

/* 03 / 04 COLLECTION */
/* 最初の写真: 画面いっぱい（ヘッダーの下まで敷く）。HOMEの写真の拡大がここへつながる */
.collection-intro__hero {
  --ratio: auto;
  margin-top: calc(var(--header-h) * -1 - 1px);
  height: 100svh;
  border: 0;
  border-bottom: 1px solid var(--c-line);
}

.collection-intro__concept {
  text-align: center;
  padding-block: var(--section-gap) 24px; /* 下はすぐ下のロゴとの間を狭く */
  word-break: auto-phrase;
}

.collection-intro__title {
  font-size: var(--fs-hero);
}

.collection-intro__subtitle {
  margin-top: 12px;
  font-family: var(--f-serif);
  font-size: 15px;
  letter-spacing: 0.04em;
}

/* 5枚のエディトリアルグリッド（6カラム） */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 16px; /* 写真間の余白は広め */
  align-items: start;
  max-width: 960px;
  margin-inline: auto;
  padding-bottom: 48px;
}

.editorial-grid__item--full {
  grid-column: 1 / -1;
}

.editorial-grid__item--half {
  grid-column: span 3;
}

.editorial-grid__item--inset {
  grid-column: 1 / span 4;
}

.editorial-grid__item.is-offset {
  margin-top: 48px;
}

@media (min-width: 768px) {
  .editorial-grid {
    gap: 48px 32px;
  }
  .editorial-grid__item.is-offset {
    margin-top: 96px;
  }
  .collection-intro__concept {
    padding-bottom: 32px;
  }
}

.collection-lineup .h-display {
  margin-bottom: 32px;
}

/* 05 PRODUCT DETAIL */
.product__photos {
  padding-top: 16px;
}

.product__info {
  padding-top: 24px;
}

.product__name {
  font-size: var(--fs-product);
  margin-bottom: 8px;
}

.product__price {
  margin-top: 6px;
}

.product__desc {
  margin: 28px 0;
}

/* 商品概要の見出し行（太字） */
.product__desc .product__lead {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product__desc .product__lead + p {
  margin-top: 16px;
}

.spec {
  border-top: 1px solid var(--c-line);
  font-size: 13px;
}

.spec__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-line);
}

.spec dd {
  text-align: right;
}

.product__buy {
  padding: 16px 0 24px;
}

/* ---------- 商品詳細の購入ボタン（Amazonで購入する）—「中央に集まる波」 ----------
   黒の波線（canvas）を中央付近に密に集め、枠の上下左右へはみ出させる。
   初期表示は枠と波線が斜めに少しずれ、ページを下へ読み進める（.is-aligned）・ホバー・キーボードフォーカスで
   約380msで基準位置に揃う。上へ戻るとずれに戻る（main.js）。
   ページの上下スクロールで右4px→左3px→右2pxと小刻みに揺れ、約360msで戻る（main.js が data-moving を付ける）。
   波線は枠の外へ左右 29px・上下 49px 広がるため、その分の余白を周囲に確保している。 */
.product__buy:has(.buy-btn) {
  padding: 64px 0 72px; /* 上下にはみ出す波線の分 */
}

.buy-btn {
  --wave-x: 29px; /* 波線が左右へはみ出す量（main.js の描画と一致させる） */
  --wave-y: 49px; /* 上下へはみ出す量 */
  position: relative;
  isolation: isolate;
  container-type: inline-size; /* 文字サイズをボタン幅に合わせる */
  display: flex;
  align-items: center;
  justify-content: center;
  /* スマートフォンでも左右にはみ出す波線ごと画面内に収める */
  width: min(390px, calc(100% - var(--wave-x) * 2));
  height: 56px;
  margin-inline: var(--wave-x);
  border-radius: 13px;
  color: #111111;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .buy-btn {
    margin-inline: 0; /* 広い画面は本文の左端に揃える（波線は左の余白へ広がる） */
  }
}

.buy-btn__frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid #111111;
  border-radius: inherit;
  transform: translate(6px, -4px);
  transition: transform 380ms ease-out;
  pointer-events: none;
}

.buy-btn__lines {
  position: absolute;
  top: calc(var(--wave-y) * -1);
  left: calc(var(--wave-x) * -1);
  z-index: -2;
  width: calc(100% + var(--wave-x) * 2);
  height: calc(100% + var(--wave-y) * 2);
  transform: translate(-8px, 6px);
  transition: transform 380ms ease-out;
  pointer-events: none;
}

.tide.buy-btn__label {
  /* 文字の背後は「潮のうねり」の淡い面（tideFrame）。波線に重なっても読みやすく */
  --tide-dx: 9px;
  --tide-dy: -7px;
  padding: 4px 9px;
  color: #111111;
  font-family: var(--f-sans);
  font-size: clamp(20px, 9.4cqi, 24px); /* 20〜24px。枠の幅に合わせて大きく */
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.04em;
  white-space: nowrap; /* スマートフォンでも一行 */
  pointer-events: none;
}

/* 枠に余裕がある幅では字間を広げ、枠の横幅いっぱいに近く見せる */
@container (min-width: 300px) {
  .buy-btn__label {
    letter-spacing: 0.1em;
  }
}

@container (min-width: 360px) {
  .buy-btn__label {
    letter-spacing: 0.16em;
    padding-inline: 14px;
  }
}

/* 黒い枠と波線: ページを下へ読み進めたとき（.is-aligned）に基準位置へ揃う。
   指を置く・ホバー・フォーカスでは動かさない（動くのは文字に一番近い緑の枠だけ） */
.buy-btn.is-aligned .buy-btn__frame,
.buy-btn.is-aligned .buy-btn__lines {
  transform: none;
}

.buy-btn:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 9px;
}

/* スクロールで小刻みに横揺れ（周囲のレイアウトは動かさない） */
.buy-btn[data-moving] {
  animation: buy-shake 360ms ease-out;
}

@keyframes buy-shake {
  25% {
    transform: translateX(4px);
  }
  52% {
    transform: translateX(-3px);
  }
  76% {
    transform: translateX(2px);
  }
}

/* 動きを減らす設定: 横揺れなし、枠の位置は即時に切り替え */
@media (prefers-reduced-motion: reduce) {
  .buy-btn__frame,
  .buy-btn__lines {
    transition: none;
  }
  .buy-btn[data-moving] {
    animation: none;
  }
}

.product__design .measure {
  margin-bottom: 28px;
}

.product__design .h-display,
.product__related .h-display {
  margin-bottom: 20px;
}

/* 06 TEAM / CLUB */
.team__intro {
  padding: 24px 0 56px;
}

.team__eyebrow {
  margin-top: 32px;
}

.team__title {
  font-size: var(--fs-hero);
}

.team__title {
  margin: 8px 0 24px;
}

.team__lead {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.team__text {
  margin-top: 1.4em;
}

.benefits,
.steps {
  display: grid;
  gap: 40px;
  margin-top: 32px;
}

.steps {
  list-style: none;
  padding: 0;
}

.benefit .h-sub,
.step .h-sub {
  margin-bottom: 10px;
}

.team__dm {
  padding-top: 32px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* 広幅: TEAM / CLUB の本文列を写真の下に揃える */
@media (min-width: 1024px) {
  .team .measure {
    margin-inline: auto;
  }
}

/* ---------- 「潮のうねり」の枠（購入ボタンの文字の枠・COLLECTION の VIEW PRODUCT） ----------
   淡い面（固定）の上に、同じ波形の緑の輪郭を重ねる。輪郭は通常時に斜めへ少しずれ、
   指を置いた瞬間（.is-pressed）・ホバー・キーボードフォーカスで約380msで面に揃う。動くのは緑の輪郭だけ。 */
.tide {
  --tide-line: #52866a;
  --tide-face: #fafaf5;
  --tide-angle: -1.7deg;
  --tide-dx: 9px;
  --tide-dy: -7px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tide__face,
.tide__edge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.tide__face {
  z-index: -2;
  fill: var(--tide-face);
  transform: rotate(var(--tide-angle));
}

.tide__edge {
  z-index: -1;
  fill: none;
  stroke: var(--tide-line);
  stroke-width: 1.5px;
  stroke-linejoin: round;
  transform: translate(var(--tide-dx), var(--tide-dy)) rotate(var(--tide-angle));
  transition: transform 380ms cubic-bezier(0.2, 0.75, 0.28, 1.12);
}

.tide__edge polygon {
  vector-effect: non-scaling-stroke;
}

.tide__text {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: inherit;
}

.tide-host.is-pressed .tide__edge,
.tide-host:focus-visible .tide__edge,
.card:focus-visible .tide-host .tide__edge {
  transform: rotate(var(--tide-angle));
}

@media (hover: hover) {
  .tide-host:hover .tide__edge {
    transform: rotate(var(--tide-angle));
  }
}

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

/* ---------- 蹴って遊べるサッカーボール（HOME・COLLECTION） ----------
   <main> の中を自由に移動（ページと一緒にスクロール）。表示直径は約23px、押せる範囲は48×48px。
   ボールの下にリンクやスライダーがあるときは .is-over-link で押せる範囲をボールの大きさに絞り、
   透明な部分が下のリンク操作を塞がないようにする。 */
.page--home,
.page--collection {
  position: relative; /* ボールの移動範囲（レイアウトには影響しない） */
}

.kick-ball-anchor {
  height: 0;
}

.kick-ball {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: grab;
  touch-action: none; /* ボールの上だけ、指の動きをキックに使う */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  visibility: hidden; /* 初期位置が決まるまで隠す */
}

.kick-ball.is-ready {
  visibility: visible;
}

.kick-ball:active {
  cursor: grabbing;
}

.kick-ball.is-over-link:not(:focus-visible) {
  clip-path: circle(14px at 50% 50%);
}

.kick-ball__canvas {
  position: relative;
  display: block;
  width: 23.333px;
  height: 23.333px;
  pointer-events: none;
}

.kick-ball__shadow {
  position: absolute;
  bottom: 9px;
  left: 12.5px;
  width: 23px;
  height: 6px;
  background: radial-gradient(ellipse, rgba(20, 25, 21, 0.46), transparent 70%);
  pointer-events: none;
}

.kick-ball:focus-visible {
  outline: 2px solid #555555;
  outline-offset: -2px;
}

/* ---------- ページ遷移のフェード（View Transitions 対応ブラウザのみ。非対応は通常遷移） ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--dur-page); /* CROSS FADE 0.2秒 */
  animation-timing-function: linear;
}

/* ---------- 開発表示（npm run dev のみ。本番ビルドでは body.is-dev が付かない） ---------- */
.is-dev [data-copy-status="draft"] {
  position: relative;
  outline: 1px dashed #c9a23a;
  outline-offset: 6px;
}

.is-dev [data-copy-status="draft"]::before {
  content: "仮原稿";
  position: absolute;
  top: -22px;
  right: 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #9a7a22;
}


