/* Totonoi のサイト(サポート・よくある質問・プライバシーポリシー・見つからないページ)
   読みやすさを先に。飾りは少なく。よくある質問のページは、アプリの中の「ヘルプ」にも そのまま出るので、
   上の帯は小さく、追いかけてこない作りにしてある。JS は使っていない。 */

@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url("fonts/zenmaru-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url("fonts/zenmaru-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --bg: #080506;
  --fg: #fff4ea;
  --ink: #131316;
  --text: rgba(255, 244, 234, .86);
  --dim: rgba(255, 244, 234, .62);
  --line: rgba(255, 244, 234, .18);
  --card: #141112;
  --fire: #ff4a36;
  --ember: #ff8a3d;
  --water: #46c8ff;
  --leaf: #3ddc84;
  --y: #ffd23f;
  --g: clamp(18px, 5vw, 40px);
  --pop: cubic-bezier(.3, 1.5, .45, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --latin: "Unbounded", "Zen Maru Gothic", sans-serif;
  --jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--jp); font-weight: 500; font-size: 16px; line-height: 1.9; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: anywhere; }
body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 420px; z-index: -1; pointer-events: none; background: radial-gradient(90% 100% at 18% -30%, rgba(255, 74, 54, .26), transparent 70%), radial-gradient(70% 90% at 96% -40%, rgba(255, 138, 61, .16), transparent 70%); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol { margin: 0; padding: 0; }
svg { display: block; fill: currentColor; }
::selection { background: var(--fire); color: #fff; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 18px; border-radius: 100px; background: var(--y); color: var(--ink); font-weight: 900; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; border-radius: 10px; }

/* ---------- 上の帯(小さく。追いかけてこない) ---------- */
.top { display: flex; align-items: center; gap: 6px 14px; max-width: 840px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) var(--g) 4px; font-size: 13px; font-weight: 900; line-height: 1; }
.logo { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; padding: 8px 0; font-family: var(--latin); font-weight: 700; font-size: 14px; letter-spacing: -.01em; text-decoration: none; }
.logo__dots { display: inline-flex; }
.logo__dots i { width: 11px; height: 11px; border-radius: 50%; transition: transform .6s var(--pop); }
.logo__dots i:nth-child(1) { background: var(--fire); }
.logo__dots i:nth-child(2) { background: var(--water); margin-left: -3px; }
.logo__dots i:nth-child(3) { background: var(--leaf); margin-left: -3px; }
.logo:hover .logo__dots i:nth-child(1) { transform: translateY(-4px); }
.logo:hover .logo__dots i:nth-child(2) { transform: translateY(-7px); transition-delay: .06s; }
.logo:hover .logo__dots i:nth-child(3) { transform: translateY(-4px); transition-delay: .12s; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 11px; border-radius: 100px; color: var(--dim); text-decoration: none; letter-spacing: .04em; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--fg); background: rgba(255, 244, 234, .08); }
.nav a[aria-current="page"] { color: var(--fg); }

/* ---------- 本文 ---------- */
.page { max-width: 840px; margin: 0 auto; padding: clamp(18px, 4vw, 44px) var(--g) clamp(40px, 7vw, 80px); }
.page__en { display: inline-flex; align-items: center; gap: 10px; font-family: var(--latin); font-weight: 600; font-size: 12px; letter-spacing: .02em; color: var(--ember); text-transform: uppercase; line-height: 1; }
.page__en::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.page h1 { margin-top: 12px; font-weight: 900; font-size: clamp(27px, 5.4vw, 46px); line-height: 1.3; letter-spacing: .01em; }
.subtitle, .last-updated { margin-top: 8px; color: var(--dim); font-size: 14px; }
.page h2 { margin-top: clamp(34px, 6vw, 56px); font-weight: 900; font-size: clamp(20px, 3.2vw, 27px); line-height: 1.45; letter-spacing: .02em; scroll-margin-top: 16px; }
.page h3 { margin-top: 22px; font-weight: 900; font-size: clamp(16px, 2.2vw, 18px); line-height: 1.6; color: var(--fg); }
.page h4 { margin-top: 18px; font-weight: 900; font-size: 15.5px; line-height: 1.6; color: var(--fg); }
.page p { margin-top: 10px; color: var(--text); font-size: 15.5px; }
.page ul, .page ol { margin-top: 10px; padding-left: 1.35em; color: var(--text); font-size: 15.5px; }
.page li { margin-top: 7px; padding-left: .15em; }
.page li::marker { color: var(--ember); font-weight: 900; }
.page strong { font-weight: 900; color: var(--fg); }
.page a:not(.btn):not(.mail):not(.door) { text-decoration-color: rgba(255, 244, 234, .4); text-underline-offset: 4px; }

/* 丸い札(お知らせ・入口) */
.card { margin-top: clamp(18px, 3vw, 26px); padding: clamp(18px, 3.4vw, 30px); border-radius: clamp(20px, 3vw, 30px); border: 1.5px solid var(--line); background: var(--card); }
.card > :first-child { margin-top: 0; }
.card h2 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.card h2::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 34%; background: var(--fire); }
.lead-box { border-color: rgba(255, 138, 61, .45); background: linear-gradient(180deg, rgba(255, 74, 54, .12), rgba(255, 74, 54, .04)); }
.lead-box p { font-size: 14.5px; }
.lead-box p:first-child { font-size: 16px; }
.tip { margin-top: 14px; padding: 12px 16px; border-radius: 14px; border-left: 4px solid var(--ember); background: rgba(255, 138, 61, .1); color: var(--text); font-size: 14.5px; }
.note { color: var(--dim) !important; font-size: 14px !important; }

/* よくある質問: ひらく札 */
.qa { margin-top: 10px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); transition: border-color .25s; }
.qa[open] { border-color: rgba(255, 138, 61, .5); }
.qa summary { position: relative; display: block; padding: 16px 52px 16px 18px; font-weight: 900; font-size: 16px; line-height: 1.55; color: var(--fg); cursor: pointer; list-style: none; border-radius: 20px; -webkit-tap-highlight-color: transparent; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 10px no-repeat, var(--fg); transition: transform .5s var(--pop), background-color .25s; }
.qa[open] summary::after { transform: rotate(135deg); background-color: var(--ember); }
.qa summary:hover::after { transform: scale(1.12); }
.qa[open] summary:hover::after { transform: rotate(135deg) scale(1.12); }
.qa__a { padding: 0 18px 18px; }
.qa__a > :first-child { margin-top: 0; }

/* お問い合わせ・入口 */
.btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 8px 8px 22px; border-radius: 100px; background: var(--fg); color: var(--ink); font-weight: 900; font-size: 15px; line-height: 1.3; letter-spacing: .02em; text-decoration: none; transition: transform .55s var(--pop); -webkit-tap-highlight-color: transparent; }
.btn b { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--fire); color: #fff; transition: transform .55s var(--pop), background-color .25s, color .25s; }
.btn b svg { width: 14px; height: 14px; }
.btn:hover, .btn:focus-visible { transform: scale(1.04) rotate(-1.5deg); }
.btn:hover b, .btn:focus-visible b { transform: rotate(45deg) scale(1.1); background: var(--y); color: var(--ink); }
.mail { display: inline-block; font-family: var(--latin); font-weight: 600; font-size: clamp(15px, 4.2vw, 22px); letter-spacing: -.03em; color: var(--fg); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; }
.doors { margin-top: clamp(18px, 3vw, 26px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 !important; list-style: none; }
.doors li { margin: 0; padding: 0; }
.door { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 18px 16px 18px 20px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--card); color: var(--fg); font-weight: 900; font-size: 16px; line-height: 1.5; text-decoration: none; transition: transform .55s var(--pop), background-color .25s, color .25s, border-color .25s; }
.door b { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--fg); color: var(--ink); transition: transform .55s var(--pop); }
.door b svg { width: 13px; height: 13px; }
.door:hover, .door:focus-visible { background: var(--fg); color: var(--ink); border-color: var(--fg); transform: rotate(-1deg) scale(1.02); }
.door:hover b, .door:focus-visible b { background: var(--fire); color: #fff; transform: rotate(45deg); }

/* ほかのページへ */
.more { max-width: 840px; margin: 0 auto; padding: 0 var(--g) clamp(40px, 7vw, 70px); }
.more ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 22px 0 0; list-style: none; border-top: 1.5px solid var(--line); }
.more a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 100px; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 900; line-height: 1.3; text-decoration: none; transition: background-color .25s, color .25s, border-color .25s, transform .5s var(--pop); }
.more a:hover, .more a:focus-visible { background: var(--fg); color: var(--ink); border-color: var(--fg); transform: scale(1.05) rotate(-1.5deg); }
.more a svg { width: 10px; height: 10px; }

/* 見つからないページ */
.nf { min-height: 70vh; display: grid; align-content: center; }
.page .nf__no { font-family: var(--latin); font-weight: 900; font-size: clamp(88px, 26vw, 220px); line-height: .9; letter-spacing: -.04em; background: linear-gradient(180deg, var(--fg) 34%, var(--ember) 78%, var(--fire)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 14px 0 6px -.03em; }
.nf .doors { max-width: 560px; }

/* 足もとの帯の色(このサイトの地に合わせる) */
footer.fam { --fam-bg: #080506; --fam-fg: #fff4ea; --fam-line: rgba(255, 244, 234, .22); font-family: var(--jp); border-top: 1.5px solid var(--line); }

/* ---------- スマホ ---------- */
@media (max-width: 600px) {
  .nav { display: none; }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .qa summary { padding: 15px 48px 15px 16px; font-size: 15.5px; }
  .qa__a { padding: 0 16px 16px; }
  .qa summary::after { right: 15px; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
