/* inumemo サイト共通（全ページ）。トップだけの動きは top.css */
:root {
  --paper: #F7F3EE;
  --ink: #1A1613;
  --sub: #6F675F;
  --dim: #B5ACA3;
  --accent: #F2661F;
  --link: #C9460A;
  --line: #E6DFD6;
  --line-strong: #D9D2C7;
  --sunk: #EFE8DE;
  --field: #FBFAF7;
  --card: #FFFFFF;
  --tint: #FFF1E8;
  --done: #2E9E6B;
  --err: #B3261E;
  --focus: #C9460A;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
section[id], .article, [id^="c-"] { scroll-margin-top: 16px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.02em;
}

/* ---------- 日本語の改行（文節で折り返す。Safari は .nb / <wbr> で補う） ---------- */
body { line-break: strict; word-break: auto-phrase; overflow-wrap: normal; }
/* balance は短い見出しだけ。本文・回答・リストは普通に折り返して行を埋める（Safari の pretty は行が短くなるので使わない） */
h1, h2, .t-h1, .t-h2, .t-eyebrow { text-wrap: balance; }
h3, .qa-btn, .qa-q, .cat-d { text-wrap: wrap; }
a[href^="mailto:"], .break-any { overflow-wrap: anywhere; }
.break-any { word-break: break-all; }
.nb { display: inline-block; }
.nw { white-space: nowrap; }
br.pc { display: none; }
@media (min-width: 860px) { br.pc { display: inline; } br.sp { display: none; } }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 880px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 14px; }
.skip:focus { top: 8px; }

/* ---------- header ---------- */
.site-header { padding: 16px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; }
@media (min-width: 600px) { .site-header .wrap { padding: 0 24px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand img { width: 26px; height: auto; display: block; }
.wordmark { font-family: "Baloo 2", sans-serif; font-weight: 500; font-size: 24px; letter-spacing: 0; line-height: 1; padding-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.site-nav > a { color: var(--sub); text-decoration: none; white-space: nowrap; padding: 6px 0; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--ink); }
.site-nav > a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* App Store のボタン（公開前は押せない見た目。URL は site.js の STORE_URL の1か所） */
.store-btn { width: max-content; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 11px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); text-decoration: none; white-space: nowrap; flex: none; }
.store-btn svg { width: 17px; height: 17px; flex: none; }
.store-btn .store-l { white-space: nowrap; word-break: keep-all; display: flex; flex-direction: column; line-height: 1.15; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.store-btn .store-l small { font-size: 9.5px; font-weight: 500; color: var(--sub); letter-spacing: .02em; }
.store-btn[aria-disabled="true"] { cursor: default; color: var(--sub); }
.store-btn[aria-disabled="true"] svg { opacity: .55; }
a.store-btn { background: var(--ink); border-color: var(--ink); color: #fff; }
a.store-btn .store-l small { color: rgba(255, 255, 255, .75); }

/* スマホ：ロゴとストアボタンだけ（よくある質問・お問い合わせはフッターから） */
@media (max-width: 767.98px) {
  .site-header { padding: 12px 0; }
  .site-nav > a { display: none; }
  .brand .wordmark { font-size: 22px; }
  .brand img { width: 24px; }
  .store-btn { height: 38px; padding: 0 12px 0 10px; gap: 6px; }
}

/* ---------- main ---------- */
main { padding: 32px 0 72px; }
h1 { font-size: 30px; line-height: 1.45; margin: 0 0 8px; font-weight: 700; letter-spacing: 0.01em; }
h2 { font-size: 20px; line-height: 1.5; margin: 44px 0 10px; font-weight: 700; }
h3 { font-size: 16px; margin: 28px 0 6px; font-weight: 700; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 1.4em; }
li { margin: 4px 0; }
.lead { color: var(--sub); margin-bottom: 28px; }
.muted { color: var(--sub); font-size: 14px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--link); letter-spacing: .04em; margin: 0 0 6px; }

/* panels */
.panel { background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; padding: 20px; margin: 24px 0; }
.panel p:last-child { margin-bottom: 0; }

/* invite page */
.hero { text-align: center; padding: 40px 0 8px; }
.hero img { width: 96px; height: auto; display: block; margin: 0 auto 20px; }
.hero p { font-size: 18px; margin: 0 auto; max-width: 30em; }

/* ---------- FAQ ---------- */
.faq-tools { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 12px 0 10px; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--sub); pointer-events: none; }
.search input { width: 100%; height: 48px; padding: 0 44px 0 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); font: inherit; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 6px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border: 0; background: none; border-radius: 50%; color: var(--sub); cursor: pointer; display: grid; place-items: center; font: inherit; }
.search-clear svg { position: static; margin: 0; width: 16px; height: 16px; }
.search-clear[hidden] { display: none; }
.chips { display: flex; gap: 8px; margin: 12px -24px 0; padding: 0 24px 2px; scroll-padding-inline: 24px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .chips { flex-wrap: wrap; overflow: visible; margin: 12px 0 0; padding: 0; } }
.chip { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font-size: 14px; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--sub); }
.chip.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.faq-status { font-size: 14px; color: var(--sub); margin: 10px 0 0; }
.faq-status:empty { margin: 0; }
#faq .faq-cat { scroll-margin-top: 140px; margin-top: 56px; }
#faq .faq-cat:first-of-type { margin-top: 28px; }
.faq-cat[hidden] { display: none; }
.cat-head { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.cat-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.cat-ic svg { width: 20px; height: 20px; }
.cat-t { flex: 1; min-width: 0; }
.cat-t h2 { margin: 0; font-size: 22px; line-height: 1.35; letter-spacing: .01em; }
.cat-d { margin: 2px 0 0; font-size: 13.5px; color: var(--sub); line-height: 1.6; }
.cat-n { flex: none; align-self: flex-start; margin-top: 4px; font-size: 13px; color: var(--sub); white-space: nowrap; }
.qa-list { list-style: none; padding: 0 20px; margin: 0; background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px; }
.qa { margin: 0; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.qa:last-child { border-bottom: 0; }
.qa[hidden] { display: none; }
.qa h3 { margin: 0; font-size: 16px; }
.qa-btn { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border: 0; background: none; text-align: left; font: inherit; font-weight: 700; color: var(--ink); line-height: 1.6; cursor: pointer; letter-spacing: .02em; }
.qa-btn:hover { color: var(--link); }
.qa-btn svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--sub); transition: transform .25s ease; }
.qa-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.qa-body { padding: 0 0 18px; color: var(--ink); overflow: hidden; line-height: 1.85; }
.qa-body ul { list-style: none; padding-left: 0; }
.qa-body ul > li { position: relative; padding-left: 1.1em; margin: 6px 0; }
.qa-body ul > li::before { content: ""; position: absolute; left: .25em; top: calc(.925em - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: var(--sub); }
.qa-body p, .qa-body ul, .qa-body ol { margin-bottom: 10px; }
.qa-body > :last-child { margin-bottom: 0; }
.qa-body .path { font-weight: 700; }
.qa-link { font-size: 13px; color: var(--sub); }
mark { background: var(--tint); color: inherit; border-radius: 3px; padding: 0 1px; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 12px; }
.plan-table th, .plan-table td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan-table th { font-weight: 700; }
.plan-table thead th { color: var(--sub); font-size: 13px; }
.plan-table td:first-child, .plan-table th:first-child { padding-left: 0; }
.faq-empty { padding: 24px 0; }
.faq-empty[hidden] { display: none; }
.after { margin-top: 48px; }

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

/* ---------- forms (contact) ---------- */
.form { margin: 8px 0 0; }
.form-card { background: var(--card); border: 1px solid var(--line-strong); border-radius: 18px; padding: 28px 24px 28px; margin: 0; }
@media (max-width: 480px) { .form-card { padding: 24px 20px 26px; } }
.field { margin: 0 0 24px; }
.field label, .field .label { display: flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: 15px; margin: 0 0 8px; }
.req, .opt { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.req { color: var(--link); }
.opt { color: var(--sub); font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--field);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; letter-spacing: .01em;
  -webkit-appearance: none; appearance: none; transition: border-color .15s ease, background-color .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input, .field select { height: 48px; }
.field textarea { min-height: 200px; resize: vertical; line-height: 1.75; }
.field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236F675F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C9C0B3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); background-color: #fff; box-shadow: none; }
.field [aria-invalid="true"] { border-color: var(--err); background-color: #fff; }
.field [aria-invalid="true"]:focus { outline-color: var(--err); border-color: var(--err); }
.hint { font-size: 13px; color: var(--sub); margin: 6px 0 0; }
.err { font-size: 13px; color: var(--err); margin: 6px 0 0; font-weight: 700; }
.err[hidden] { display: none; }
.counter { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--sub); margin: 6px 0 0; }
.counter .over { color: var(--err); font-weight: 700; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 14px; color: var(--sub); margin: 0 0 18px; }
.submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 200px; height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.submit:hover { background: #E05812; }
.submit[disabled] { background: var(--dim); cursor: default; }
.form-msg { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 15px; }
.form-msg.is-error { border-color: var(--err); color: var(--err); }
.form-msg[hidden] { display: none; }
.form-msg:focus, .thanks:focus { outline: none; }
.before { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.before p { margin: 0; }
.nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; background: var(--sunk); border-radius: 14px; padding: 16px 20px; margin: 0 0 24px; }
.nudge-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.nudge-ic svg { width: 18px; height: 18px; }
.nudge p { flex: 1 1 14em; margin: 0; font-size: 14.5px; line-height: 1.6; }
.nudge .arrow-link { margin-left: 44px; font-size: 14.5px; }
@media (min-width: 600px) { .nudge .arrow-link { margin-left: auto; } }
.nudge.after { margin-top: 48px; }
.arrow-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.arrow-link::after { content: " ›"; }
.arrow-link:hover { text-decoration: underline; }
.thanks { text-align: left; }
.thanks .check { width: 44px; height: 44px; border-radius: 50%; background: var(--done); color: #fff; display: grid; place-items: center; margin: 0 0 14px; }
.thanks .check svg { width: 22px; height: 22px; }
.thanks h2 { margin-top: 0; }

/* ---------- legal ---------- */
.legal h1 { margin-bottom: 4px; }
.dates { font-size: 14px; color: var(--sub); margin: 0 0 28px; }
/* 目次：PC は左の列に追従、スマホは上に「いまの条」バー＋開くと一覧 */
.legal-wrap { max-width: 680px; }
.toc { background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px 12px 12px; margin: 0 0 36px; }
.toc h2 { font-size: 13px; color: var(--sub); margin: 0 8px 6px; letter-spacing: .04em; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.55; }
.toc a:hover { background: var(--paper); }
.toc a[aria-current="true"] { background: var(--tint); color: var(--link); font-weight: 700; }
.legal .article { scroll-margin-top: 24px; }
.toc-bar { display: none; }

@media (min-width: 1024px) {
  .legal-wrap { max-width: 1080px; padding: 0 24px; }
  .legal-grid { display: grid; grid-template-columns: 260px minmax(0, 680px); gap: 64px; align-items: start; }
  .toc-wrap { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .toc-wrap .toc { margin: 0; }
}

@media (max-width: 1023.98px) {
  .toc-wrap[data-ready] { position: sticky; top: 0; z-index: 20; margin: 0 -24px 24px; padding: 8px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .toc-wrap[data-ready] .toc-bar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; letter-spacing: .01em; }
  .toc-bar-l { flex: none; font-size: 12px; font-weight: 700; color: var(--sub); }
  .toc-cur { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .toc-bar svg { flex: none; width: 18px; height: 18px; color: var(--sub); transition: transform .2s ease; }
  .toc-bar[aria-expanded="true"] svg { transform: rotate(180deg); }
  .toc-wrap[data-ready] .toc { display: none; position: absolute; left: 24px; right: 24px; top: calc(100% - 2px); margin: 0; max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 12px 28px rgba(26, 22, 19, .14); }
  .toc-wrap[data-ready].open .toc { display: block; }
  .legal .article { scroll-margin-top: 76px; }
}
@media (prefers-reduced-motion: reduce) { .toc-bar svg { transition: none; } }
.article h2 { margin: 40px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 18px; }
.article:first-of-type h2 { border-top: 0; padding-top: 0; }
.article ol > li, .article ul > li { margin: 6px 0; }
.article ol ol { list-style: lower-alpha; margin-top: 6px; }
.article dl { margin: 0 0 14px; }
.article dt { font-weight: 700; margin-top: 14px; }
.article dd { margin: 2px 0 0; }
.sign { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--sub); }
.sign p { margin: 0 0 4px; }
.to-top { font-size: 13px; text-decoration: none; }

/* 特商法の表 */
.spec { width: 100%; border-collapse: collapse; margin: 8px 0 0; font-size: 15px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--line); }
.spec th { width: 34%; padding-right: 16px; font-weight: 700; }
@media (max-width: 560px) {
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec th { padding: 14px 0 2px; border-bottom: 0; }
  .spec td { padding: 0 0 14px; }
  .spec tr:first-child td { border-top: 0; }
  .spec tr { border-top: 0; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 13px; color: var(--sub); text-align: center; }
.site-footer .wrap { max-width: 1080px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
@media (min-width: 600px) { .site-footer .wrap { padding: 0 24px; } }
.site-footer nav { display: flex; flex-direction: column; align-items: center; width: 100%; }
.site-footer nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; max-width: 320px; font-size: 14px; }
@media (min-width: 768px) {
  .site-footer nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
  .site-footer nav a { width: auto; min-height: 36px; font-size: 13px; }
}
.site-footer a { color: var(--sub); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer p { margin: 0; }

@media (max-width: 480px) {
  h1 { font-size: 25px; }
  h2 { font-size: 18px; }
  .hero p { font-size: 16px; }
}

/* お問い合わせの確認ウィジェット */
.form .turnstile { margin: 8px 0 4px; min-height: 65px; }
.legal .article h2:focus { outline: none; }
