/* ミチシルベ Webサイト（v3「やさしいポップ」） */
:root {
  --bg: #FFF8EE;
  --surface: #FFFFFF;
  --surface-muted: #FFF1DE;
  --ink: #2B2420;
  --text-2: #4A403A;
  --muted: #6E625A;
  --divider: #EFE6DA;
  --coral: #FF8F6B;
  --coral-strong: #B54A28;
  --coral-soft: #FFDCCF;
  --mint: #7FD8B6;
  --mint-soft: #D6F3E8;
  --lilac: #C3A8FF;
  --lilac-soft: #ECE3FF;
  --sky: #8EC5FF;
  --sky-soft: #DCEBFF;
  --sun: #FFE7A8;
  --sun-strong: #FFD25C;
  --quiet: #F3F1F4;
  --line: 2px solid var(--ink);
  --pop: 0 5px 0 var(--ink);
  --radius: 28px;
  --wide: 1080px;
  --text: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--coral-strong); text-underline-offset: 3px; }
a:hover { color: #8f3a1f; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-weight: 900; line-height: 1.4; margin: 0; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 16px; border: var(--line); border-radius: 999px; z-index: 50; }
.skip:focus { left: 16px; }
.wrap { width: min(100% - 32px, var(--wide)); margin-inline: auto; }
.narrow { width: min(100% - 32px, var(--text)); margin-inline: auto; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--divider); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: 0.12em; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--sun); border: var(--line); overflow: hidden; display: grid; place-items: end center; }
.brand-mark img { width: 34px; margin-bottom: -4px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--surface-muted); }
.nav .nav-cta { background: var(--ink); color: #fff; box-shadow: 0 4px 0 var(--coral); padding: 8px 18px; }
.nav .nav-cta:hover { background: var(--ink); color: #fff; transform: translateY(1px); }
@media (max-width: 720px) { .nav a:not(.nav-cta) { display: none; } }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 28px; border-radius: 999px; border: var(--line); box-shadow: var(--pop); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 900; font-size: 16px; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { color: var(--ink); transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 5px 0 var(--coral); }
.btn-ink:hover { color: #fff; box-shadow: 0 3px 0 var(--coral); }
.btn small { display: block; font-size: 11px; font-weight: 700; opacity: .8; line-height: 1.2; }
.btn-store { min-width: 210px; justify-content: flex-start; text-align: left; line-height: 1.25; }
.btn-store[aria-disabled="true"] { cursor: default; }
.btn-store[aria-disabled="true"]:hover { transform: none; box-shadow: var(--pop); }
.stores { display: flex; flex-wrap: wrap; gap: 14px; }

/* ヒーロー */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--sun); right: -140px; top: -160px; z-index: -1; }
.hero::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--lilac-soft); left: -80px; bottom: 40px; z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border: var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); margin-top: 18px; letter-spacing: 0.04em; }
.hero .lead { font-size: clamp(16px, 2vw, 19px); font-weight: 700; color: var(--text-2); margin-top: 18px; }
.hero .stores { margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; min-height: 560px; }
.hero-visual .phone { position: absolute; right: 8%; top: 0; width: 290px; }
.hero-visual .phone.back { right: auto; left: 0; top: 70px; width: 240px; transform: rotate(-6deg); }
.hero-character { position: absolute; width: 150px; right: -6px; bottom: -10px; filter: drop-shadow(0 6px 0 rgba(43, 36, 32, .15)); }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; max-width: 420px; width: 100%; margin-inline: auto; }
  .hero-visual .phone { width: 250px; right: 4%; }
  .hero-visual .phone.back { width: 200px; }
  .hero-character { width: 120px; }
}

/* 端末フレーム */
.phone { border: 6px solid var(--ink); border-radius: 40px; overflow: hidden; background: var(--bg); box-shadow: 0 8px 0 var(--ink); }
.phone::before { content: ''; display: block; height: 26px; background: linear-gradient(var(--ink), var(--ink)) center 8px / 64px 12px no-repeat, var(--bg); }
.phone img { width: 100%; aspect-ratio: 585 / 1266; object-fit: cover; }
.phone.quiet::before { background: linear-gradient(var(--ink), var(--ink)) center 8px / 64px 12px no-repeat, var(--quiet); }

/* 気分の顔 */
.faces { display: flex; gap: 10px; }
.faces svg { width: 48px; height: 48px; }

/* セクション */
section { scroll-margin-top: 80px; }
.section { padding: 88px 0; }
.section-title { text-align: center; }
.section-title h2 { font-size: clamp(28px, 4vw, 40px); }
.section-title p { color: var(--muted); font-weight: 700; margin-top: 10px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .14em; color: var(--coral-strong); margin-bottom: 8px; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.point { background: var(--surface); border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); padding: 28px; }
.point-icon { width: 60px; height: 60px; border-radius: 50%; border: var(--line); display: grid; place-items: center; margin-bottom: 16px; }
.point h3 { font-size: 20px; }
.point p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
@media (max-width: 880px) { .points { grid-template-columns: 1fr; } }

/* 一日のみちのり */
.journey { background: var(--surface); border-block: var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; counter-reset: step; }
.step { text-align: center; }
.step .phone { width: min(260px, 100%); margin: 0 auto 24px; }
.step-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 13px; padding: 4px 14px; border-radius: 999px; border: var(--line); }
.step h3 { font-size: 22px; margin-top: 12px; }
.step p { color: var(--text-2); margin-top: 6px; font-size: 15px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; gap: 56px; } }

/* 2カラムの特長 */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.reverse > :first-child { order: 2; }
.feature h2 { font-size: clamp(28px, 4vw, 38px); }
.feature p { margin-top: 14px; color: var(--text-2); }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.feature li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 5px; border-radius: 50%; border: var(--line); background: var(--mint); }
.feature-visual { position: relative; }
.feature-visual .phone { width: min(280px, 70%); margin-inline: auto; }
.card-art { background: var(--sun); border: var(--line); border-radius: 36px; overflow: hidden; box-shadow: 0 8px 0 var(--ink); }
.card-art.mint { background: var(--mint-soft); }
.float-phone { position: absolute; width: 42%; right: -4%; bottom: -10%; }
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse > :first-child { order: 0; }
  .float-phone { position: relative; right: auto; bottom: auto; width: 60%; margin: -80px 0 0 auto; }
}

/* しんどい日 */
.quiet-section { background: var(--quiet); }
.quiet-section .phone { border-color: var(--ink); }

/* 大切にしていること */
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
.promise { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: var(--line); border-radius: 24px; padding: 22px 24px; }
.promise strong { display: block; font-size: 17px; font-weight: 900; }
.promise span { display: block; color: var(--text-2); font-size: 14px; margin-top: 4px; }
.promise-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; border: var(--line); }
@media (max-width: 720px) { .promises { grid-template-columns: 1fr; } }

/* よくある質問 */
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: var(--line); border-radius: 22px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 900; padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 20px; color: var(--text-2); font-size: 15px; }

/* 相談先 */
.help { background: var(--surface); border-radius: 32px; padding: 32px; display: grid; gap: 18px; border: 2px solid #CFC9D6; }
.help h2 { font-size: 22px; }
.help p { color: var(--text-2); font-size: 15px; }
.help-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.help-item { background: #ECE8F4; border-radius: 20px; padding: 16px 18px; }
.help-item strong { display: block; font-weight: 900; }
.help-item a { font-weight: 900; font-size: 20px; color: #5A4F7A; text-decoration: none; }
.help-item span { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .help-list { grid-template-columns: 1fr; } }

/* ダウンロード */
.cta { text-align: center; background: var(--coral-soft); border: var(--line); border-radius: 40px; padding: 56px 24px; position: relative; overflow: hidden; box-shadow: 0 8px 0 var(--ink); }
.cta img.cta-character { width: 140px; margin: 0 auto 8px; }
.cta h2 { font-size: clamp(26px, 4vw, 36px); }
.cta p { margin-top: 10px; font-weight: 700; color: var(--text-2); }
.cta .stores { justify-content: center; margin-top: 24px; }

/* フッター */
.site-footer { margin-top: 96px; border-top: var(--line); background: var(--surface); padding: 40px 0 32px; font-size: 14px; }
.site-footer .wrap { display: grid; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-meta { color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* 文書ページ（規約・プライバシーなど） */
.doc-hero { padding: 56px 0 24px; }
.doc-hero h1 { font-size: clamp(30px, 5vw, 42px); }
.doc-hero p { color: var(--muted); margin-top: 10px; font-weight: 700; }
.doc { background: var(--surface); border: var(--line); border-radius: 32px; padding: clamp(24px, 5vw, 48px); }
.doc h2 { font-size: 20px; margin: 40px 0 12px; padding-top: 4px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 16px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 15px; }
.doc p + p { margin-top: 10px; }
.doc ol, .doc ul { padding-left: 1.4em; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.doc th, .doc td { border: 1.5px solid var(--divider); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-muted); font-weight: 900; white-space: nowrap; }
.doc .note { background: var(--surface-muted); border-radius: 18px; padding: 16px 20px; margin: 16px 0; }
.doc .signature { margin-top: 40px; color: var(--muted); }
.toc { margin: 0 0 24px; padding: 18px 22px; background: var(--surface-muted); border-radius: 20px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; font-size: 14px; }
@media (max-width: 640px) { .toc ol { columns: 1; } .doc th { white-space: normal; } }
.table-scroll { overflow-x: auto; }

/* ライセンス */
.license-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.license-tools input { flex: 1 1 260px; min-height: 50px; border: var(--line); border-radius: 999px; padding: 0 20px; font: inherit; background: var(--surface); }
.license-list details { border-bottom: 1.5px solid var(--divider); padding: 10px 0; }
.license-list summary { cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.license-list summary small { color: var(--muted); font-weight: 500; }
.license-list pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.6; background: var(--surface-muted); padding: 14px; border-radius: 14px; max-height: 360px; overflow: auto; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound img { width: 180px; margin: 0 auto 16px; }
.license-list a { overflow-wrap: anywhere; }
