/* 銀座時計 2026-11-20 修正指示の反映。最後に読み込み、既存スタイルを上書きする。
   トップページ専用の規則は body.page-top 配下。共通（フッター・ダイアログ）は接頭辞なし。 */

:root {
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --header-h: 96px;
  --light-surface: #f6f2ec;
  --font-num: "Marcellus", "Cormorant Garamond", Georgia, serif;
}

/* ---------- 全体 ---------- */
html.lerp-scroll { scroll-behavior: auto !important; }
.ext-icon { width: .85em; height: .85em; margin-left: .4em; vertical-align: -.05em; }

/* 浮かび上がり（JSが .rise-on を付けたときだけ初期非表示） */
.rise-on [data-rise] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.6s var(--ease-soft) var(--rise-delay, 0s), transform 1.6s var(--ease-soft) var(--rise-delay, 0s);
}
.rise-on [data-rise].is-in { opacity: 1; transform: none; }
.motion-paused [data-rise] { opacity: 1 !important; transform: none !important; transition: none !important; }
body.page-top .js-motion .reveal { transform: translateY(28px); transition-duration: 1.6s; }

/* ---------- ヘッダー ---------- */
body.page-top .header, body.page-sub .header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-h);
  padding: 0 0 0 5%;
  background: transparent;
  background-color: transparent;
  border-bottom: 0;
  transition: background-color .9s ease;
}
body.page-top .header::before, body.page-sub .header::before {
  content: '';
  position: absolute;
  inset: 0 0 -40px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 20, 27, .5), transparent);
  transition: opacity .9s ease;
}
body.page-top .header.is-solid, body.page-sub .header.is-solid { background-color: rgba(17, 20, 27, .92); backdrop-filter: blur(10px); }
body.page-top .header.is-solid::before, body.page-sub .header.is-solid::before { opacity: 0; }
body.page-top .header nav, body.page-sub .header nav { align-self: stretch; align-items: center; gap: 44px; }
body.page-top .header nav > a, body.page-sub .header nav > a { font-size: 14px; letter-spacing: .1em; }
body.page-top .header nav > a.nav-line, body.page-sub .header nav > a.nav-line {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 clamp(28px, 3.4vw, 52px);
  margin-left: 4px;
  border: 0;
  border-radius: 0;
}
body.page-top .header nav > a.nav-line .social-label, body.page-sub .header nav > a.nav-line .social-label { font-size: 14px; letter-spacing: .1em; }

/* ---------- ヒーロー（動画は固定、下のセクションが重なる） ---------- */
body.page-top .hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  max-height: none;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
body.page-top .hero::after { display: none; }
body.page-top .hero-visual {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  aspect-ratio: auto;
  transform: none;
  display: grid;
  place-items: center;
  -webkit-mask-image: none;
  mask-image: none;
}
body.page-top .hero-visual video {
  width: auto;
  height: min(120svh, 1260px);
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: .92;
  -webkit-mask-image: radial-gradient(circle at center, #000 40%, transparent 71%);
  mask-image: radial-gradient(circle at center, #000 40%, transparent 71%);
}
body.page-top .hero-shade { background: linear-gradient(180deg, rgba(17, 20, 27, .5), rgba(17, 20, 27, .2) 38%, rgba(17, 20, 27, .6)); }
body.page-top .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
body.page-top .hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 112px);
  letter-spacing: .08em;
  line-height: 1.4;
  white-space: nowrap;
  text-shadow: 0 2px 36px rgba(17, 20, 27, .6);
}
body.page-top .hero-kind { margin-top: clamp(22px, 3.4svh, 40px); font-size: clamp(15px, 1.4vw, 20px); letter-spacing: .32em; line-height: 1.8; color: var(--paper); text-shadow: 0 1px 14px #000; }
body.page-top .hero-english { margin-top: 12px; font-family: var(--font-en); font-size: clamp(13px, 1.1vw, 16px); letter-spacing: .26em; line-height: 1.8; color: var(--gold); text-shadow: 0 1px 14px #000; }

.rise-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em);
  filter: blur(14px);
  animation: rise-in 2.6s var(--ease-soft) .4s forwards;
}
.rise-line + br + .rise-line { animation-delay: 1s; }
.hero-rise { opacity: 0; transform: translateY(14px); animation: rise-soft 2.2s var(--ease-soft) forwards; }
.hero-kind { animation-delay: 1.9s; }
.hero-english { animation-delay: 2.3s; }
@keyframes rise-in { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rise-soft { to { opacity: 1; transform: none; } }
.motion-paused .rise-line, .motion-paused .hero-rise { animation: none; opacity: 1; transform: none; filter: none; }

/* 以降のセクションはヒーローの上に重なる */
body.page-top main > :not(.hero) { position: relative; z-index: 1; }

/* ---------- 4つの強み（上端は透明にして動画へ重ねる） ---------- */
body.page-top .assurance {
  padding: 220px 0 0;
  border: 0;
  background: linear-gradient(180deg, rgba(29, 36, 50, 0) 0, rgba(29, 36, 50, .72) 130px, var(--surface) 240px, var(--surface) calc(100% - 180px), var(--ink) 100%);
}
body.page-top .assurance-note { margin-top: 64px; }

/* ---------- 買取強化ブランド（固定→横スクロール） ---------- */
body.page-top .selection { padding: 0; overflow: visible; }
.selection-pin { position: relative; }
.selection-stage { padding: 0 0 56px; overflow: clip; }
.selection-head { text-align: center; margin-bottom: clamp(24px, 5svh, 48px); }
.selection-head h2 { margin: 0 0 20px; }
.selection-head p:not(.eyebrow) { font-size: 16px; line-height: 2; color: #c6bfb8; }
body.page-top .selection-rail {
  display: flex;
  gap: 32px;
  width: max-content;
  padding: 4px calc((100vw - min(88vw, 1440px)) / 2) 8px;
  overflow: visible;
  scroll-snap-type: none;
  margin: 0;
  will-change: transform;
}
body.page-top .selection-card { flex: 0 0 clamp(250px, 24vw, 360px); scroll-snap-align: none; }
body.page-top .selection-photo { height: clamp(200px, 34svh, 420px); background: none; border-radius: 0; }
body.page-top .selection-card button { text-align: center; }
.selection-pin.is-pinned .selection-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--header-h) + 8px) 72px;  /* 追従LINEボタンと重ならない余白 */
}
.selection-pin:not(.is-pinned) .selection-rail { width: auto; overflow-x: auto; }

/* ---------- 宅配買取の流れ ---------- */
body.page-top .mail-service .flow-heading { display: block; text-align: center; margin-bottom: 56px; }
body.page-top .mail-service .flow-heading h2 { margin: 0 0 20px; }
body.page-top .mail-service .flow-heading > p:not(.eyebrow) { max-width: 560px; margin: 0 auto; }
.flow { position: relative; --dot-y: 108px; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flow-line {
  position: absolute;
  z-index: 2;
  left: calc(100% / 6);
  right: calc(100% / 6);
  top: var(--dot-y);
  height: 2px;
  background: #b2a495;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s linear .4s;
}
.flow.is-in .flow-line { transform: scaleX(1); }
.flow-step { position: relative; opacity: 0; transition: opacity 1.4s ease; }
.flow.is-in .flow-step { opacity: 1; transition-delay: calc(.4s + var(--i) * .9s); }
.flow-card { height: 100%; padding: calc(var(--dot-y) + 34px) 12px 12px; }
.flow-num {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-num);
  font-variant-numeric: lining-nums;
  font-size: 38px;
  line-height: 1.1;
  color: var(--bronze-ink);
}
.flow-num small { font-family: var(--font-num); font-size: 12px; letter-spacing: .12em; color: var(--bronze-placeholder); }  /* #5a5148: #d8cec0上で4.5:1以上 */
.flow-dot { position: absolute; z-index: 3; left: 50%; top: var(--dot-y); width: 14px; height: 14px; border-radius: 50%; background: #a49485; transform: translate(-50%, -50%); }
.flow-art { display: flex; justify-content: center; align-items: center; height: 148px; margin-bottom: 20px; }
.flow-art img { width: auto; height: auto; max-width: 100%; max-height: 148px; }
.flow-card h3 { font-family: var(--serif); font-size: 22px; line-height: 1.6; text-align: center; margin-bottom: 8px; color: var(--bronze-ink); }
.flow-card .flow-lead { font-size: 14px; font-weight: 500; line-height: 1.8; text-align: center; color: var(--bronze-ink); margin-bottom: 14px; }
.flow-card p:last-child { font-size: 15px; line-height: 1.95; color: #4d4743; }
body.page-top .process-fine { text-align: center; }

/* ---------- その価値を（見出し1行→補足→強み2つを横並び→4本の写真が背景へ溶ける） ---------- */
body.page-top .why { padding: 0; background: var(--ink); overflow-x: clip; }
.why-stage { padding-block: clamp(72px, 9vw, 112px) 0; }
body.page-top .why-heading { display: block; width: auto; max-width: 100%; margin: 0 0 clamp(40px, 5vw, 64px); text-align: center; }
body.page-top .why-heading h2 { margin: 0; font-size: clamp(26px, 3.6vw, 56px); line-height: 1.6; white-space: nowrap; }
body.page-top .why-heading .why-lead { margin: 20px 0 0; font-size: 16px; line-height: 2; color: #b4bac4; }
body.page-top .why-heading .why-promise { margin: 12px auto 0; padding: 0; border: 0; font-size: 14px; line-height: 2; color: #b4bac4; }
@media (min-width: 761px) { body.page-top .why-heading .why-promise { white-space: nowrap; } }
.why-slides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.why-text { text-align: center; }
.why-text h3 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.6; margin: 0 0 16px; }
.why-text p { margin: 0 auto; max-width: 30em; font-size: 16px; line-height: 2; color: #c0c5ce; }
/* 写真は黒背景。lighten で背景色に溶かし、上端はグラデーションで馴染ませる */
.why-image { position: relative; margin: 0 auto; width: min(100%, 1120px); }
/* 買取強化中のモデル一覧が、その価値を〜の上へ下から重なる（その価値を〜は止めず、重なる間だけスクロールより遅れて動く） */
.why-cover { position: relative; }
.why-cover > .why { position: relative; z-index: 1; }
.why-cover > :not(.why) { position: relative; z-index: 2; }
.why-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
  object-position: 50% 40%;
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%), linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, #000 16%), linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 760px) {
  body.page-top .why-heading h2 { font-size: clamp(20px, 6.2vw, 28px); }
  body.page-top .why-heading .why-lead { font-size: 14px; }
  body.page-top .why-heading .why-promise { font-size: 12px; line-height: 1.8; text-align: center; }
  .why-slides { grid-template-columns: 1fr; gap: 32px; }
  .why-text h3 { font-size: 21px; margin-bottom: 8px; }
  .why-text p { font-size: 14px; line-height: 1.85; }
  .why-image { width: 140%; margin: -56px -20% 0; }
  .why-image img { aspect-ratio: 3 / 2; object-position: 50% 50%; }
}

/* ---------- 強化中のモデル一覧 ---------- */
body.page-top .collection-heading { display: block; text-align: center; margin-bottom: 40px; }
body.page-top .collection-heading h2 { margin: 0 0 20px; }
body.page-top .collection .collection-lead { margin: 0 auto; font-size: 13px; line-height: 2; color: var(--bronze-ink); white-space: nowrap; }
body.page-top .filter-row { justify-content: center; gap: 6px 0; }
body.page-top .filter-row button { position: relative; padding: 8px 20px; }
body.page-top .filter-row button + button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  background: var(--bronze-border);
  opacity: .55;
  transform: translateY(-50%);
}
body.page-top .collection-meta { justify-content: center; padding: 32px 0 40px; }
body.page-top .search-label {
  width: min(100%, 380px);
  gap: 14px;
  padding: 0 4px;
  border-bottom: 1px solid var(--bronze-border);
  transition: border-color .3s ease, box-shadow .3s ease;
}
body.page-top .search-label:focus-within { border-bottom-color: var(--bronze-ink); box-shadow: 0 1px 0 var(--bronze-ink); }
.search-label svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--bronze-ink); opacity: .7; }
body.page-top .search-label input,
body.page-top .search-label input:focus,
body.page-top .search-label input:focus-visible { box-shadow: none; -webkit-appearance: none; appearance: none; font-size: 15px; padding: 14px 0; border: 0; background: transparent; }
.search-label input::placeholder { color: var(--bronze-placeholder); opacity: 1; }
body.page-top .watch-visual { background: transparent; }
body.page-top .watch-info { align-items: center; text-align: center; }
body.page-top .model-price { font-size: 12px; text-align: center; }
body.page-top .model-price strong { text-align: center; }

/* ---------- よくある質問 ---------- */
body.page-top .faq { background: var(--light-surface); }
body.page-top .faq-grid { display: block; max-width: 860px; margin-inline: auto; }
body.page-top .faq-grid > div:first-child { text-align: center; margin-bottom: 48px; }
body.page-top .faq details > p { padding: 0 30px 28px; text-align: left; }
.faq summary span { transition: transform .9s var(--ease-soft); }
.faq details.is-closing summary span { transform: none; }

/* ---------- CTA（全面画像・時計は左、文章は右） ---------- */
body.page-top .contact { position: relative; display: flex; align-items: center; min-height: max(720px, 100svh); padding: 0; overflow: hidden; background: var(--ink); }
.contact-bg { position: absolute; inset: 0; overflow: hidden; }
.contact-bg img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; max-width: none; object-fit: cover; object-position: 100% 50%; will-change: transform; }
.contact-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 38%, rgba(17, 20, 27, .5)); }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; padding-block: 96px; }
.contact-copy { grid-column: 2; padding-left: clamp(24px, 5vw, 96px); }
.contact-copy h2 { margin: 0 0 26px; font-size: clamp(34px, 3.6vw, 56px); }
.contact-copy > p:not(.eyebrow) { font-size: 16px; line-height: 2.1; color: #e3e6ec; margin-bottom: 14px; }
.contact-copy #selected-watch { margin: 24px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-copy .contact-social { margin-top: 36px; }
body.page-top .contact-copy .contact-social .line-cta { width: min(100%, 360px); justify-content: center; }
.contact-copy .instagram-link { margin-top: 22px; color: #fff; }
.contact-copy .instagram-link .social-icon { width: 22px; height: 22px; }
body.page-top .contact-copy .company-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding: 0;
  border: 0;
  font-size: 14px;
  letter-spacing: .1em;
  color: #e3e6ec;
}
.company-link:hover { color: var(--gold); }
body.page-top .contact-copy .company-link { padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .5s var(--ease-soft), background-size .6s var(--ease-soft), gap .6s var(--ease-soft); }
body.page-top .contact-copy .company-link > span { display: inline-block; transition: transform .6s var(--ease-soft); }
body.page-top .contact-copy .company-link:hover, body.page-top .contact-copy .company-link:focus-visible { background-size: 100% 1px; gap: 24px; }
body.page-top .contact-copy .company-link:hover > span, body.page-top .contact-copy .company-link:focus-visible > span { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { body.page-top .contact-copy .company-link, body.page-top .contact-copy .company-link > span { transition: none; } }

/* ---------- LINEボタン共通（ヘッダー・CTA・追従ボタンを同じ見た目・同じ動きに統一） ----------
   デザインシステム: 濃紺→少し明るい青のグラデーションが、ホバー・フォーカスで1.4秒かけて移動する。
   LINE導線は href が未設定（準備中）でも同じ動きにする。 */
[data-social="line"], .line-dock a {
  border: 1px solid var(--navy);
  background-color: var(--navy) !important;
  background-image: var(--button-gradient) !important;
  background-size: 250% 100%;
  background-position: 0 50%;
  color: var(--paper) !important;
  transition: background-position 1.4s ease, border-color 1.4s ease;
}
[data-social="line"]:hover, [data-social="line"]:focus-visible, .line-dock a:hover, .line-dock a:focus-visible {
  background-position: 100% 50% !important;
  background-image: var(--button-gradient) !important;
  color: var(--paper) !important;
}
[data-social="line"] .social-label { color: inherit; font-size: 14px; letter-spacing: .08em; }
.line-dock { width: 320px; }
.line-dock .line-cta, body.page-top .contact-copy .contact-social .line-cta {
  width: 100%;
  min-height: 56px;
  padding: 0 28px;
  justify-content: center;
  gap: 0;
  box-shadow: none;
}
body.page-top .contact-copy .contact-social .line-cta { width: min(100%, 320px); }
@media (prefers-reduced-motion: reduce) {
  [data-social="line"], .line-dock a { transition: none; }
}

/* ---------- 追従LINEボタン: 最初は非表示、スクロールしてから表示（JS無効時は常時表示） ---------- */
.dock-gated .line-dock { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft), visibility 0s linear .9s; }
.dock-gated.dock-on .line-dock { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .dock-gated .line-dock { transition: none; } }

/* ---------- フッター: センター揃え ---------- */
.footer-top { display: flex; justify-content: center; margin-bottom: 28px; }
.footer-social { justify-content: center; margin: 0 0 28px; }
.footer-bottom { flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-bottom > div { justify-content: center; }
.footer, .footer-bottom { border-top: 0; }
.footer { padding-bottom: 20px; }
.footer-bottom, .footer-bottom a, .footer-bottom small, .footer .fine-print { color: var(--paper); }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: var(--gold); }
body.has-line-dock { padding-bottom: 0; }
.fine-print { text-align: center; }

/* ---------- フッター・ダイアログ（共通） ---------- */
dialog[open] { animation: dialog-rise 1.1s var(--ease-soft) both; }
dialog[open]::backdrop { animation: dialog-fade 1.1s ease both; }
@keyframes dialog-rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes dialog-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) {
  body.page-top .header nav, body.page-sub .header nav { gap: 24px; }
  body.page-top .flow-card { padding-inline: 20px; }
}
@media (max-width: 900px) {
  .flow-list { grid-template-columns: 1fr; gap: 20px; }
  .flow-line, .flow-dot { display: none; }
  .flow-card { padding: 100px 12px 12px; }
  .flow-num { top: 24px; }
  .flow-step { transition-delay: 0s; }
  .flow.is-in .flow-step { transition-delay: calc(var(--i) * .7s); }
}
@media (max-width: 760px) {
  :root { --header-h: 83px; }
  body.page-top .header, body.page-sub .header { padding: 0 6%; }
  body.page-top .header nav, body.page-sub .header nav { align-self: auto; gap: 6px; }
  body.page-top .header nav > a.nav-line, body.page-sub .header nav > a.nav-line { align-self: stretch; justify-content: center; margin: 14px 0 0; padding: 19px; }
  body.page-top .hero h1 { font-size: clamp(38px, 11.8vw, 52px); white-space: normal; }
  /* H1とH2の差を出す: H2はSPで一段小さくそろえる（その価値を〜は別指定） */
  body.page-top h2, body.page-top #collection-title { font-size: 26px; }
  body.page-top .hero h1 .rise-line { white-space: nowrap; }
  body.page-top .hero-english { text-wrap: balance; }
  body.page-top .hero-kind { letter-spacing: .24em; }
  body.page-top .hero-visual video { height: 80svh; }
  body.page-top .assurance { padding-top: 150px; padding-bottom: 0; }
  body.page-top .assurance-note { margin-top: 44px; }
  body.page-top .selection-card { flex-basis: 72vw; }
  body.page-top .selection-photo { height: clamp(150px, 31svh, 320px); }
  body.page-top .selection-rail { gap: 20px; padding-inline: 6%; }
  /* 画面下に固定されるLINE CTA(高さ62px+余白12px)の分を空け、ブランド名が重ならないようにする */
  .selection-pin.is-pinned .selection-stage { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  body.page-top .selection-head { margin-bottom: clamp(12px, 3svh, 24px); }
  .selection-head h2 { margin-bottom: 12px; }
  .selection-head p:not(.eyebrow) { font-size: 14px; }
  body.page-top .collection .collection-lead { white-space: normal; }
  body.page-top .filter-row { flex-wrap: nowrap; justify-content: flex-start; }
  body.page-top .filter-row button { flex-shrink: 0; padding-inline: 16px; }
  body.page-top .faq details > p { padding-inline: 0; }
  body.page-top .contact { display: block; min-height: 0; }
  .contact-bg { position: relative; height: 62vw; }
  .contact-bg img { top: 0; height: 100%; object-position: 18% 50%; }
  .contact-bg::after { background: linear-gradient(180deg, transparent 55%, var(--ink)); }
  .contact-inner { display: block; padding-block: 8px 72px; }
  .contact-copy { padding-left: 0; }
  body.page-top .contact-copy .contact-social .line-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rise-line, .hero-rise { opacity: 1; transform: none; filter: none; }
  .rise-on [data-rise], .flow-step { opacity: 1; transform: none; }
  .flow-line { transform: scaleX(1); }
}


/* ---------- 下層ページ: ヘッダーはトップと同じ見た目・常に不透明側 ---------- */
body.page-sub .header { background-color: rgba(17, 20, 27, .92); backdrop-filter: blur(10px); }
body.page-sub .header::before { opacity: 0; }
body.page-sub main { padding-top: calc(var(--header-h) + 40px); }

/* 特商法ページのh1を1行表示 */
.legal-main h1{white-space:nowrap}
@media(max-width:760px){.legal-main h1{font-size:clamp(20px,6.6vw,30px)}.legal-main h2{font-size:20px}}

/* ---------- SP: ハンバーガーメニューを全面表示・開閉をなめらかに ---------- */
@media (max-width: 760px) {
  body.page-top .header .brand, body.page-sub .header .brand,
  body.page-top .header .menu-toggle, body.page-sub .header .menu-toggle { position: relative; z-index: 2; }
  body.page-top .header nav, body.page-sub .header nav {
    position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 0;
    padding: var(--header-h) 8% 48px; box-sizing: border-box; border: 0; box-shadow: none;
    background: var(--ink); overflow-y: auto; z-index: 1;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .45s ease, visibility 0s linear .45s;
  }
  body.page-top .header nav.open, body.page-sub .header nav.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .45s ease, visibility 0s;
  }
  body.page-top .header nav > a:not(.nav-line), body.page-sub .header nav > a:not(.nav-line) {
    font-size: 18px; padding: 22px 0; border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
  }
  body.page-top .header nav > a.nav-line, body.page-sub .header nav > a.nav-line {
    margin-top: 32px; opacity: 0; transform: translateY(14px);
    min-height: 56px; border: 1px solid var(--navy); border-radius: var(--button-radius);
    transition: opacity .5s ease, transform .5s ease, background-position .3s ease;
  }
  .header nav.open > a { opacity: 1 !important; transform: none !important; }
  .header nav.open > a:nth-child(1) { transition-delay: .1s; }
  .header nav.open > a:nth-child(2) { transition-delay: .17s; }
  .header nav.open > a:nth-child(3) { transition-delay: .24s; }
  .header nav.open > a:nth-child(4) { transition-delay: .31s; }
  .menu-toggle span { transition: transform .4s cubic-bezier(.4, 0, .2, 1); }
  html.menu-open, html.menu-open body { overflow: hidden; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  body.page-top .header nav, body.page-sub .header nav,
  body.page-top .header nav > a, body.page-sub .header nav > a { transition: none !important; }
}

/* SP: 追従ボタンを左右中央に配置（transformはフェード演出で使用中のためmarginで中央寄せ） */
@media (max-width: 760px) {
  .line-dock { left: 0; right: 0; margin-inline: auto; width: min(320px, calc(100% - 32px)); }
}

/* SP: スクロールで現れる動きを少しゆっくり・緩急強めに（浮かび上がり／切り替え） */
@media (max-width: 760px) {
  .rise-on [data-rise] {
    transform: translateY(40px);
    transition: opacity 2s cubic-bezier(.45, 0, .2, 1) var(--rise-delay, 0s), transform 2.2s cubic-bezier(.16, .84, .3, 1) var(--rise-delay, 0s);
  }
  body.page-top .js-motion .reveal { transition-duration: 2s; }
}

/* SP: 各セクションの見出しをセンター揃え＋文節の区切りで改行 */
@media (max-width: 760px) {
  body.page-top #selection-title, body.page-top #process-title, body.page-top #recent-title,
  body.page-top #collection-title, body.page-top #faq h2, body.page-top #contact-heading { text-align: center; }
  body.page-top #recent-title, body.page-top #faq h2, body.page-top #contact-heading { width: 100%; }
  body.page-top h1, body.page-top h2, body.page-top h3 {
    word-break: auto-phrase;      /* 対応ブラウザは文節単位で改行 */
    text-wrap: balance;           /* 行の長さを均等にして1〜2文字だけの行を防ぐ */
    overflow-wrap: anywhere;
    line-break: strict;
  }
}

/* SP: CTAセクションのボタン下リンクをセンター揃え */
@media (max-width: 760px) {
  body.page-top .contact-copy .company-link { display: flex; width: fit-content; margin-inline: auto; }
}

/* SP: 「大切な一本の、これからを。」の画像を拡大（枠の天地幅はそのまま、画像を125%に） */
@media (max-width: 760px) {
  .contact-bg img { left: -2%; top: -12.5%; width: 125%; height: 125%; object-position: 0% 50%; }
}

/* PC: CTAセクションの文章ブロックをさらに右へ（画面幅1280px以上でも折り返さない比率） */
@media (min-width: 761px) {
  .contact-inner { grid-template-columns: 1.7fr 1fr; }
}


/* クリエイティブチェック対応: 文字サイズ下限(12px)・タップ領域(44px)・フォーカス表示 */
.footer-bottom > div a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-social .social-link { min-width: 44px; justify-content: center; }
.menu-toggle { width: 44px; height: 44px; }
.empty-state .empty-guidance, .model-price, sup { font-size: 12px; }
.empty-state #reset-search { font-size: 12px; min-height: 44px; }
@media (max-width: 760px) {
  .footer-bottom > div a { font-size: 12px; }
}

/* モデル詳細ポップアップ: 画像切替をなめらかに(全幅) */
.dialog-visual img, .dialog-visual .framed-photo { transition: opacity .25s ease; }
.dialog-visual.is-swapping img, .dialog-visual.is-swapping .framed-photo { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .dialog-visual img, .dialog-visual .framed-photo { transition: none; }
}

/* モデル詳細ポップアップ: ボタンの見た目をPC・SPで共通にする(×の枠なし・相談ボタン文字中央・正面/斜めを角丸の濃紺に) */
.dialog-close { background: transparent; }
.dialog-close:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; border-radius: 50%; }
#dialog-contact { display: flex; align-items: center; justify-content: center; text-align: center; }
.view-tabs button { border-radius: 6px; color: var(--navy); border-color: var(--navy); background: transparent; }
.view-tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
@media (max-width: 760px) {
  /* ×はカード右上の角から上・右を同じ余白(4px)で固定。スクロールしても追従 */
  .dialog-close { position: sticky; display: block; top: 4px; right: auto; margin: 4px 4px -41px auto; }
}

/* 600〜760px: 買取強化中のブランドのカード・間隔はPCと同じ見え方にする */
@media (min-width: 600px) and (max-width: 760px) {
  body.page-top .selection-card { flex-basis: clamp(250px, 24vw, 360px); }
  body.page-top .selection-photo { height: clamp(220px, 40svh, 420px); }
  body.page-top .selection-rail { gap: 32px; padding-inline: calc((100vw - min(88vw, 1440px)) / 2); }
}

/* タブレット(761〜1024px、または縦横比1.45以下の縦長・正方形に近い画面): 相談セクションは画像を上・文章を下に積む(横並びだと左の時計写真が切れるため) */
@media (min-width: 761px) and (max-width: 1024px), (min-width: 761px) and (max-aspect-ratio: 145/100) {
  body.page-top .contact { display: block; min-height: 0; }
  .contact-bg { position: relative; height: 62vw; }
  .contact-bg img { top: 0; height: 100%; object-position: 18% 50%; }
  .contact-bg::after { background: linear-gradient(180deg, transparent 55%, var(--ink)); }
  .contact-inner { display: block; padding-block: 8px 72px; }
  .contact-copy { padding-left: 0; }
  .contact-copy { max-width: 560px; margin-inline: auto; }
  .contact-copy > p { text-align: center; }
  body.page-top #contact-heading { text-align: center; width: 100%; }
  body.page-top .contact-copy .contact-social .line-cta { width: 100%; }
  body.page-top .contact-copy .company-link { display: flex; width: fit-content; margin-inline: auto; }
}

/* SP: 運営会社・各種表記ページの表は12px以上 */
@media (max-width: 760px) {
  .legal-main th, .legal-main td, .legal-main td a, .legal-main td span { font-size: 14px; }
}

/* 買取強化ブランド: 画面の低いスマホ(iPhone SE等)で、見出し・本文・時計・名前の間隔を詰める */
@media (max-width: 760px) and (max-height: 700px) {
  .selection-head h2 { margin-bottom: 10px; }
  body.page-top .selection-head { margin-bottom: 14px; }
  .selection-head p:not(.eyebrow) { line-height: 1.85; }
  body.page-top .selection-photo { height: clamp(145px, 30svh, 270px); }
  body.page-top .selection-name { margin: 6px 0 8px; }
  body.page-top .selection-card button { padding-bottom: 16px; }
  body.page-top .selection-detail { line-height: 1.7; }
}

/* ---------- 梱包キットの案内（見出し＋本文を横並び、下に写真2点） ---------- */
.kit-guide {
  display: grid;
  row-gap: clamp(20px, 3vw, 32px);
  margin: 48px 0 24px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 8px;
  background: var(--light-surface);
  color: var(--bronze-ink);
}
.kit-guide-copy h3 br { display: none; }
.kit-guide-copy h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 28px; color: var(--bronze-ink); text-align: left; white-space: nowrap; }
.kit-guide-copy p { margin: 0; text-wrap: pretty; line-height: 1.9; color: var(--bronze-ink); }
.kit-guide-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.kit-guide-photos figure { margin: 0; }
.kit-guide-photos img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 4; object-fit: cover; border-radius: 6px; }
.kit-guide-photos figcaption { text-wrap: balance; word-break: auto-phrase; margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--bronze-ink); }
.kit-guide-note { margin: -8px 0 0; font-size: 12px; line-height: 1.6; text-align: right; color: var(--bronze-ink); }
/* PC幅: 左に見出し(1行)＋本文、右に写真2点 */
@media (min-width: 1101px) {
  .kit-guide { grid-template-columns: minmax(0, 1fr) min(100%, 520px); align-items: center; column-gap: clamp(28px, 4vw, 64px); row-gap: 14px; }
  .kit-guide-photos { gap: 16px; }
  .kit-guide-photos img { aspect-ratio: 3 / 2; }
  .kit-guide-note { grid-column: 1 / -1; margin: 0; }
}
@media (max-width: 760px) {
  .kit-guide { margin-top: 40px; padding: 24px 22px 18px; row-gap: 20px; }
  .kit-guide-copy h3 { margin-bottom: 10px; font-size: 24px; line-height: 1.6; white-space: normal; }
  .kit-guide-copy h3 br { display: inline; }
  .kit-guide-photos { grid-template-columns: 1fr; gap: 16px; }
  .kit-guide-photos img { aspect-ratio: 16 / 10; }
}

/* LINEボタン(追従・ヘッダー・CTA): LINEの緑。ただしサイトのトーンに合わせて明度・彩度を落とす */
a.social-link[data-social="line"], a.social-link[data-social="line"]:hover, a.social-link[data-social="line"]:focus-visible {
  border-color: var(--line-green) !important;
  background-color: var(--line-green) !important;
  background-image: var(--line-gradient) !important;
  color: #fff !important;
}

/* 運営会社ページ: 会社情報表内のリンク(会社サイト・電話・メール)は下線なし */
.legal-main .company-table td a { text-decoration: none; }


/* フッター4ページのH1: 長いときは文節で2行に折り返す（1行に収まる幅では1行のまま） */
.legal-main h1 { white-space: normal; text-wrap: balance; word-break: auto-phrase; overflow-wrap: anywhere; }

/* モデル一覧の買取価格（金額は一覧にのみ表示。ASKはそのまま「ASK」と表示） */
body.page-top .model-price { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 12px; }
body.page-top .model-price-label { font-size: 12px; letter-spacing: .08em; }
body.page-top .model-price strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: .04em; line-height: 1.4; }

/* モデル一覧: 名前と買取価格の距離を詰める。
   固定の min-height をやめ、カード内で情報欄を伸ばして区切り線を行内でそろえる（価格は線のすぐ下） */
body.page-top .watch-card { display: flex; flex-direction: column; }
body.page-top .watch-open { display: flex; flex-direction: column; flex: 1 1 auto; }
body.page-top .watch-info { flex: 1 1 auto; min-height: 0; padding-bottom: 14px; }
body.page-top .model-price { margin-top: 0; padding-top: 6px; }

/* SP: H2(26px)とH3の差を出す。H3は一段小さくそろえる */
@media (max-width: 760px) {
  body.page-top .flow-card h3 { font-size: 19px; }
  body.page-top .why-text h3 { font-size: 18px; }
  body.page-top .kit-guide-copy h3 { font-size: 20px; }
}

/* 拡大表示: 品番はカードの値を #dialog-ref に表示（空のときは領域も出さない） */
#dialog-variant:empty, #dialog-ref:empty { display: none; }
#dialog-ref { margin-top: 8px; font-size: 14px; line-height: 1.6; letter-spacing: .04em; overflow-wrap: anywhere; }
#dialog-ref .dialog-ref-label { margin-right: 4px; opacity: .72; }

/* クリエイティブチェック対応 */
/* 検索欄: outlineを消さず、フォーカス中は入力欄に枠を出す */
body.page-top .search-label input:focus-visible { outline: 2px solid var(--bronze-ink); outline-offset: 2px; }
/* タップ領域 44px 以上: 運営会社リンク・表内リンク・申し込みフォーム */
body.page-top .contact-copy .company-link { min-height: 44px; }
/* 行の高さは他の行と同じ。タップ範囲だけ上下に広げる（44px以上） */
.legal-main .company-table td a { display: inline-block; padding: 12px 0; margin: -12px 0; line-height: inherit; }

/* 買取強化中のブランド: 英字ブランド名は1行に収まれば1行、収まらなければ2行(均等に折り返す)。2行分の高さを確保して下揃えにし、カードごとの高さのガタつきを防ぐ */
body.page-top .selection-name { display: flex; flex-direction: column; justify-content: flex-end; min-height: 2.6em; line-height: 1.3; text-wrap: balance; }
body.page-top .selection-name .mobile-break { display: none; }

/* 特商法ページ等のH2: 語の途中で改行しない（末尾の語句を1かたまりにする） */
.legal-main h2 .nb { white-space: nowrap; }

/* タップ領域 44px 以上: 文中リンク（行の高さは変えず、タップ範囲だけ広げる） */
body.page-top .assurance-note a { display: inline-block; padding: 15px 0; margin: -15px 0; }

/* FAQ内の注釈（※1）: ヒーロー下の注釈と同じ小さめの文字・下線リンク */
.faq .faq-note { font-size: 12px; line-height: 1.8; }
.faq .faq-note a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 買取強化ブランド: 手動の横スクロール（自動の固定・横移動はしない） ---------- */
.selection-pin .selection-stage { position: static; height: auto; display: block; padding: 0 0 56px; overflow: visible; }
body.page-top .selection-rail {
  display: flex;
  width: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: calc((100vw - min(88vw, 1440px)) / 2);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  will-change: auto;
}
body.page-top .selection-rail::-webkit-scrollbar { display: none; }
body.page-top .selection-card { scroll-snap-align: start; }
@media (max-width: 760px) { body.page-top .selection-rail { scroll-padding-inline: 6%; } }

/* ---------- 品番（モデル一覧） ---------- */
body.page-top .watch-ref { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; letter-spacing: .04em; overflow-wrap: anywhere; text-align: center; }
body.page-top .watch-ref-label { margin-right: 4px; opacity: .72; }

/* ---------- CTA: LINEボタンと同じ緑に統一 ---------- */
.action, .dark-button, .action-outline:hover, .action-outline:focus-visible,
.mail-service .action-line, .mail-service .action-outline {
  border-color: var(--line-green) !important;
  background-color: var(--line-green) !important;
  background-image: var(--line-gradient) !important;
  color: #fff !important;
}
.action:hover, .action:focus-visible, .dark-button:hover, .dark-button:focus-visible {
  background-position: 100% 50%;
}

/* SP: 買取強化ブランドのカード幅を狭め、右隣の時計を半分ほど見せて「横に動かせる」ことを伝える */
@media (max-width: 760px) {
  body.page-top .selection-card { flex-basis: 50vw; max-width: 220px; }
  body.page-top .selection-rail { gap: 16px; }
}

/* ---------- 買取強化ブランド: 左右スクロールの矢印 ---------- */
.selection-rail-wrap { position: relative; }
.selection-arrow {
  position: absolute;
  top: calc(clamp(200px, 34svh, 420px) / 2);
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(17, 20, 27, .72);
  color: #fff;
  cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.selection-arrow:disabled { opacity: .25; cursor: default; pointer-events: none; }
.selection-arrow:hover, .selection-arrow:focus-visible { background: rgba(17, 20, 27, .95); border-color: #fff; }
.selection-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.selection-arrow-prev { left: max(8px, calc((100vw - min(88vw, 1440px)) / 2 - 24px)); }
.selection-arrow-next { right: max(8px, calc((100vw - min(88vw, 1440px)) / 2 - 24px)); }
@media (max-width: 760px) {
  .selection-arrow { width: 44px; height: 44px; }
  .selection-arrow-prev { left: 6px; }
  .selection-arrow-next { right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .selection-arrow { transition: none; } }

/* SP: 見え方はPCと同じ。最初は1枚だけ中央に見せ、左右の矢印でスクロールできることを示す */
@media (max-width: 760px) {
  body.page-top .selection-card { flex: 0 0 min(62vw, 300px); max-width: none; scroll-snap-align: center; }
  body.page-top .selection-photo { height: clamp(200px, 34svh, 420px); background: none; border-radius: 0; }
  body.page-top .selection-card button { padding-bottom: 22px; }
  body.page-top .selection-rail { gap: 16px; padding-inline: calc((100vw - min(62vw, 300px)) / 2); scroll-padding-inline: 0; scroll-snap-type: x mandatory; }
}
