/*
 * 方向（unslop by Damir Sokolovsky, @heydamir, CC BY 4.0 の手順で決めた5行）
 * 製品：合図に合わせて景色からぬいへピントを送る「振り向き」動画を撮って、つなげる iPhone のカメラ
 * 性格：やさしい・きちんと・少し遊び心／世界：静かなファインダーの中に、やわらかいぬいぐるみ
 * 見せ場：夕方の景色と手前のぬい、「いまだ！」の合図
 * 面は温かみのある白と灰色で静かにし、ピンクは「ぬい」と、いちばん大事な操作だけに使う。リンクとフォーカスはインクの色。
 */
:root {
  color-scheme: light;
  --page: #faf7f4;
  --card: #ffffff;
  --raised: #f3eee9;
  --ink: #2b2226;
  --secondary: #5f5257;
  --muted: #7a6b71;
  --line: rgba(43, 34, 38, .08);
  --pink: #f45d79;
  /* ピンクのボタンのホバー。暗くすると濃い文字との差が 4.5:1 を切るので、明るくする */
  --pink-hover: #f6738b;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; line-height: 1.75; }
a { color: var(--ink); text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 8px 16px; border-radius: 10px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 16px; }
.site-header { width: min(1120px, calc(100% - 40px)); margin: 0 auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 10px; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { color: var(--secondary); font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 160ms var(--ease); }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* ヒーロー：左に言葉、右に製品の一場面（合図でぬいにピントが合った画面） */
.hero { min-height: 620px; padding: 48px 0 64px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual .phone { width: min(300px, 100%); }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: .9rem; font-weight: 500; }
h1, h2, h3 { line-height: 1.25; font-weight: 600; }
h1 { margin: 0; font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1.12; letter-spacing: -.03em; }
.hero h1 span { display: block; white-space: nowrap; }
h2 { margin: 0 0 16px; font-size: clamp(1.75rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h3 { margin: 16px 0 8px; font-size: 1.2rem; }
.lead { max-width: 36rem; margin: 24px 0 0; color: var(--secondary); font-size: clamp(1.05rem, 2vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 8px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease); }
/* ピンクの上の白い文字は読みにくい（約3:1）ので、文字は濃い色に */
.button.primary { color: var(--ink); background: var(--pink); }
.button.primary:hover { background: var(--pink-hover); }
.button.secondary { color: var(--ink); border: 1px solid var(--line); background: var(--card); }
.button.secondary:hover { background: var(--raised); }
.button:active { transform: scale(.98); }
/* フォーカスの枠は文字と同じ色（暗い帯の上では白になる） */
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.trust-row { margin: 0 0 96px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.trust-row div { padding: 20px 24px; display: grid; gap: 4px; }
.trust-row div + div { border-left: 1px solid var(--line); }
.trust-row strong { font-size: 1rem; font-weight: 600; }
.trust-row span { color: var(--secondary); font-size: .88rem; }
.section { margin: 96px 0; }
.section.compact { margin: 64px 0; }
.section-heading { max-width: 680px; margin-bottom: 32px; }
.card-grid { display: grid; gap: 16px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.card p { margin: 0; color: var(--secondary); }
/* 手順の番号 */
.step { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--ink); font-weight: 600; }
.split-panel { padding: 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; border-radius: 20px; color: #f6f1ee; background: var(--ink); }
.split-panel h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); white-space: nowrap; }
.split-panel .eyebrow { color: #b9aab0; }
.split-panel p { margin-top: 0; color: #d9cfd2; }
.split-panel .text-link { color: #fff; font-weight: 600; }
.notice { margin: 40px 0 96px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); }
.notice strong { font-weight: 600; }
.notice p { margin: 4px 0 0; color: var(--secondary); }
.notice.warning { background: #fbf3e4; }
footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 48px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: .88rem; }
footer div { display: flex; gap: 20px; }
footer a { color: var(--secondary); }
.document { max-width: 900px; }
.document-header { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.document-header h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
.meta { margin: 20px 0 0; color: var(--muted); font-size: .9rem; }
.policy { padding: 28px 0 72px; }
.policy section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.policy h2, .section.compact > h2 { font-size: 1.5rem; letter-spacing: 0; }
.policy p { color: var(--secondary); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 36px 20px 0; cursor: pointer; font-weight: 600; }
.faq details p { margin: 0; padding: 0 0 20px; color: var(--secondary); }
.contact-card { margin: 72px 0 36px; padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.contact-card h2 { font-size: 1.8rem; }
.contact-card p { margin: 0; color: var(--secondary); }
.contact-card > div { min-width: 0; flex: 1; }
.contact-card .button { flex: 0 0 auto; white-space: nowrap; }

.guide-step { margin: 72px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.guide-step h2 { margin: 0 0 16px; display: flex; align-items: center; gap: 16px; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: 0; }
.guide-step h2 .step { flex: 0 0 auto; }
.guide-step p { margin: 0; color: var(--secondary); }
.guide-step ul { margin: 16px 0 0; padding-left: 1.2em; color: var(--secondary); }
.guide-step li + li { margin-top: 8px; }
.guide-step strong { color: var(--ink); font-weight: 600; }
.guide-figures { display: flex; justify-content: center; gap: 20px; }
.guide-figures figure { margin: 0; flex: 0 1 232px; text-align: center; }
.guide-figures figcaption { margin-top: 12px; color: var(--secondary); font-size: .88rem; font-weight: 500; }
.phone { position: relative; aspect-ratio: 402 / 874; overflow: hidden; border: 6px solid #231b1f; border-radius: 36px; background: #000; box-shadow: 0 24px 48px rgba(43, 34, 38, .16); }
.phone > svg, .phone > img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* タップする場所の印 */
.tap { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font-size: .9rem; font-weight: 600; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
/* 明るい空の上でも読めるよう、文字のまわりにくっきりした暗い縁を足す */
.cue { position: absolute; left: 0; right: 0; top: 22%; text-align: center; font-family: ui-rounded, "Hiragino Maru Gothic ProN", sans-serif; font-weight: 600; text-shadow: 0 0 3px rgba(0, 0, 0, .8), 0 2px 8px rgba(0, 0, 0, .6); }
.cue.count { color: #fff; font-size: 4.4rem; line-height: 1; }
.cue.now { top: 27%; color: var(--pink); font-size: 1.9rem; }

@media (max-width: 760px) {
  /* 名前とメニューの文字は折り返さない（「使い方」が2行に割れないように）。入りきらない幅（320px など）ではメニューを次の行へ */
  .site-header { min-height: 72px; gap: 0 12px; flex-wrap: wrap; }
  .brand { gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: .9rem; }
  nav { gap: 12px; }
  nav a { font-size: .82rem; }
  .hero { min-height: auto; padding: 24px 0 48px; grid-template-columns: 1fr; gap: 40px; }
  .hero-visual .phone { width: min(240px, 70%); }
  h1 { font-size: clamp(1.75rem, 8.4vw, 3.4rem); }
  /* 字間を詰めるのは大きな見出しだけ。狭い画面では見出しが小さくなるので 0 に */
  h1, h2 { letter-spacing: 0; }
  .trust-row, .card-grid.three, .split-panel { grid-template-columns: 1fr; }
  .trust-row div + div { border-left: 0; border-top: 1px solid var(--line); }
  .split-panel { padding: 32px 28px; gap: 20px; }
  .split-panel h2 { white-space: normal; }
  .section { margin: 72px 0; }
  .contact-card, footer { align-items: flex-start; flex-direction: column; }
  .contact-card .button { width: 100%; }
  .guide-step { margin: 56px 0; grid-template-columns: 1fr; gap: 28px; }
  .guide-figures { gap: 16px; }
  .guide-figures figure { flex-basis: 46%; }
  .cue.count { font-size: 3.2rem; }
  .cue.now { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:active { transform: none; }
}
