/* 紺の台帳。色と寸法はアプリの design-a.css に合わせる。 */
:root {
  color-scheme: light;
  --navy: #102f67;
  --navy-dark: #0c2653;
  --ink: #10254d;
  --muted: #5a6880;
  --surface: #f4f6fa;
  --line: #e3e8f1;
  --border: #d5dce8;
  --line-green: #06c755;
  --line-green-dark: #05b64e;
  --on-line: #0b2150;
  --gutter: 20px;
  --head: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  font-feature-settings: "palt";
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid #e0a23a; outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--small { width: 17px; height: 17px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 8px 14px; border-radius: 8px; background: var(--navy); color: #fff; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 800px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 8px 16px; border-radius: 12px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.4; text-decoration: none;
  transition: background-color .15s;
}
.btn:hover { background: var(--navy-dark); }
.btn--small { padding: 6px 14px; font-size: 13px; }
.btn--large { width: 100%; max-width: 400px; min-height: 56px; border-radius: 14px; font-size: 17px; }
.btn--line { width: 100%; max-width: 400px; min-height: 52px; border-radius: 14px; background: var(--line-green); color: var(--on-line); font-size: 16px; }
.btn--line:hover { background: var(--line-green-dark); }
.btn--invert { background: #fff; color: var(--navy); }
.btn--invert:hover { background: var(--surface); }
.note { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* ヘッダー */
.head { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.head__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; min-height: var(--head); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 700; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.head__nav { display: none; }

/* ファーストビュー */
.hero__grid { display: grid; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.hero h1 { font-size: clamp(32px, 9.4vw, 38px); line-height: 1.35; font-weight: 700; letter-spacing: .01em; }
.hero__lead { margin-top: 12px; font-size: 15px; line-height: 1.8; color: var(--muted); }
/* 台帳の罫線。グラデーションを使わず SVG で引く。 */
.hero__panel {
  display: flex; justify-content: center; align-items: flex-end;
  height: 208px; overflow: hidden; border-radius: 20px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='32'%3E%3Cpath d='M0 31.5h8' stroke='%23E3E8F1'/%3E%3C/svg%3E");
}
.hero__panel img { width: 216px; height: 216px; margin-bottom: -12px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 var(--gutter); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--navy); }
.facts li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; text-align: center; font-size: 11px; line-height: 1.5; font-weight: 600; }
.facts li + li { border-left: 1px solid var(--border); }
.facts .ico { width: 18px; height: 18px; color: #a87512; }

/* セクション */
.sec { padding: 56px 0; }
.sec--surface { background: var(--surface); }
.label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
h2 { font-size: 24px; line-height: 1.45; font-weight: 700; }
.nb { display: inline-block; }
.sec__lead { margin-top: 10px; color: var(--muted); }
h3 { font-size: 16px; line-height: 1.5; font-weight: 700; }

/* 品物と高値の想定例 */
.value-examples { background: #f8f6f2; }
.value-examples__sample { display: inline-block; margin-top: 14px; padding: 3px 9px; border-radius: 5px; background: #e8edf6; color: var(--navy); font-size: 11px; font-weight: 700; }
.value-examples__slider { margin: 28px calc(-1 * var(--gutter)) 0; }
.value-examples__grid { display: flex; gap: 14px; overflow-x: auto; padding: 0 var(--gutter) 8px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-inline: contain; scrollbar-width: none; }
.value-examples__grid::-webkit-scrollbar { display: none; }
.value-card { flex: 0 0 min(75vw, 310px); overflow: hidden; border: 1px solid #e7e3db; border-radius: 14px; background: #fff; scroll-snap-align: start; }
.value-card__image { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #ecddd0; }
.value-card__image::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; aspect-ratio: 1; transform: translateY(-50%) scale(.75); background-image: url("img/value-examples.webp"); background-size: 300% auto; background-repeat: no-repeat; }
.value-card__image--bag::before { background-position: 0 0; }
.value-card__image--necklace::before { background-position: 50% 0; }
.value-card__image--earring::before { background-position: 100% 0; }
.value-card__image--watch::before { background-position: 0 100%; }
.value-card__image--wallet::before { background-position: 50% 100%; }
.value-card__image--ring::before { background-position: 100% 100%; }
.value-card__body { padding: 12px 14px 16px; }
.value-card__item { font-size: 15px; line-height: 1.5; font-weight: 700; }
.value-card__price { margin-top: 6px; color: #a87512; font-size: 36px; line-height: 1.25; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.value-card__yen { margin-right: 2px; font-size: 22px; }
.value-card__unit { margin-left: 2px; font-size: 15px; letter-spacing: 0; }
.value-card__condition { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.value-examples__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.value-examples__arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--navy); font: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.value-examples__arrow:disabled { opacity: .35; cursor: default; }
.value-examples__arrow:focus-visible { outline: 3px solid #e0a23a; outline-offset: 3px; }
.value-examples__disclaimer { margin-top: 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.value-examples__action { display: grid; justify-items: center; gap: 12px; margin-top: 26px; text-align: center; }
.value-examples__action p { font-size: 17px; font-weight: 700; }
@media (min-width: 720px) {
  .value-examples__slider { margin-right: 0; margin-left: 0; }
  .value-examples__grid { padding-right: 0; padding-left: 0; scroll-padding-inline: 0; }
  .value-card { flex-basis: 300px; }
}

/* 流れ */
.steps { display: grid; gap: 40px; margin-top: 28px; counter-reset: none; }
.steps li { display: flex; flex-direction: column; }
.steps__num { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 6px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.screen { position: relative; width: 100%; max-width: 300px; aspect-ratio: 780 / 860; margin: 16px auto 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.screen__tag { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.6; }
.notes { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.75; color: var(--muted); }
.notes li { position: relative; padding-left: 1em; }
.notes li::before { content: "※"; position: absolute; left: 0; }
.notes li + li { margin-top: 4px; }
.section-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.section-cta p { font-size: 16px; line-height: 1.6; font-weight: 700; }

/* 台帳の行 */
.ledger { margin-top: 24px; border-top: 1px solid var(--border); }
.ledger > div { padding: 14px 0; border-bottom: 1px solid var(--border); }
.ledger dt { font-weight: 700; }
.ledger dd { margin-top: 2px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.ledger--plain { margin-top: 16px; }

/* 品物 */
.items { margin-top: 24px; border-top: 1px solid var(--line); }
.items li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.items__ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--navy); }
.items p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.box { margin-top: 24px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; font-size: 14px; line-height: 1.75; }
.box ul { margin-top: 8px; }
.box ul li { position: relative; padding-left: 1em; }
.box ul li::before { content: "・"; position: absolute; left: 0; }
.box p { margin-top: 8px; color: var(--muted); }
.box p:last-child { font-size: 13px; }

/* 現金化 */
.ways { display: grid; gap: 12px; margin-top: 24px; }
.ways article { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.ways .ico { width: 26px; height: 26px; color: var(--navy); }
.ways h3 { margin-top: 6px; }
.ways p { margin-top: 4px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.stores__title { margin-top: 32px; }
.stores { margin-top: 10px; border-top: 1px solid var(--border); }
.stores li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.stores strong { display: block; font-weight: 700; }
.stores p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.stores__links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 2px; }
.stores__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--navy); font-variant-numeric: tabular-nums; }
.stores__links .ico { width: 16px; height: 16px; }

/* LINE */
.line__sati { width: 150px; height: 150px; margin: 24px auto 0; }
.line .btn--line { margin-top: 20px; }

/* 表 */
.table { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.table tr { border-bottom: 1px solid var(--border); }
.table tr:first-child { border-top: 1px solid var(--border); }
.table th { width: 38%; padding: 12px 12px 12px 0; text-align: left; vertical-align: top; font-weight: 500; color: var(--muted); }
.table td { padding: 12px 0; overflow-wrap: anywhere; }
.table strong { font-weight: 700; }
.table a { color: var(--navy); }

/* ご利用にあたって */
.usage { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.usage li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.75; color: var(--muted); }
.usage strong { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }

/* よくある質問 */
.faq { margin-top: 20px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { position: relative; display: block; min-height: 44px; padding: 14px 28px 14px 0; font-weight: 500; line-height: 1.6; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 2px; top: 14px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 0 16px; font-size: 14px; line-height: 1.8; color: var(--muted); }

/* 締め */
.closing { padding: 44px 0 52px; background: var(--navy); color: #fff; text-align: center; }
.closing img { width: 148px; height: 148px; margin: 0 auto 12px; border-radius: 50%; background: #fff; }
.closing h2 { font-size: 26px; }
.closing p { margin-top: 8px; font-size: 14px; }
.closing .btn { margin-top: 20px; }
.closing small { display: block; margin-top: 10px; font-size: 12px; opacity: .85; }

/* フッター */
.foot { padding: 28px 0 calc(100px + env(safe-area-inset-bottom)); font-size: 12px; line-height: 1.8; color: var(--muted); }
.foot__links { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-bottom: 12px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); }
.foot__copy { margin-top: 4px; }

/* スマホの固定CTA */
.fixed {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  visibility: hidden; transform: translateY(100%);
  transition: transform .2s, visibility .2s;
}
.fixed.is-shown { visibility: visible; transform: none; }

@media (min-width: 720px) {
  .section-cta .btn { width: auto; min-width: 280px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .usage { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .ledger > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; }
  .ledger--plain > div { grid-template-columns: 130px 1fr; }
  .ledger dd { margin-top: 0; }
  .table th { width: 240px; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; --head: 64px; }
  .head__nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 500; }
  .head__nav a { text-decoration: none; }
  .head__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .btn--small { padding: 6px 18px; font-size: 14px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas: "copy panel" "action panel";
    grid-template-rows: auto 1fr;
    column-gap: 56px; row-gap: 28px;
    padding-top: 56px; padding-bottom: 56px;
  }
  .hero__copy { grid-area: copy; align-self: end; }
  .hero__action { grid-area: action; }
  .hero__panel { grid-area: panel; height: 460px; }
  .hero__panel img { width: 440px; height: 440px; margin-bottom: -24px; }
  .hero h1 { font-size: 56px; line-height: 1.3; }
  .hero__lead { margin-top: 18px; font-size: 18px; }
  .note { font-size: 13px; }
  .facts { max-width: calc(1120px - var(--gutter) * 2); margin: 0 auto; width: calc(100% - var(--gutter) * 2); }
  .facts li { flex-direction: row; justify-content: center; gap: 10px; padding: 16px 12px; font-size: 14px; }
  .sec { padding: 88px 0; }
  h2 { font-size: 32px; }
  .sec__lead { margin-top: 12px; font-size: 16px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
  .steps li .screen { margin-top: auto; }
  .steps li p { margin-bottom: 16px; }
  .items { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 20px; border-top: 0; margin-top: 32px; }
  .items li { display: block; padding: 0; border: 0; }
  .items__ico { margin-bottom: 10px; }
  .items p { margin-top: 2px; }
  .line { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
  .line__sati { width: 300px; height: 300px; margin: 0; }
  .closing { padding: 72px 0 80px; }
  .closing h2 { font-size: 36px; }
  .closing p { font-size: 16px; }
  .foot { padding-bottom: 36px; }
  .fixed { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fixed, .btn { transition: none; }
}
