/* いきの輪 — 呼吸ガイド。余白と曲線、静寂。砂色 × セージ × 白
   和文 Zen Maru Gothic / 数字 Lexend（細く大きく）。弾まない、サイン曲線の動き */
:root {
  --paper: #fbf8f2;
  --sand: #efe8dc;
  --sand2: #e4d9c6;
  --sand3: #cdbea5;
  --sage: #8da394;
  --sage-l: #e3eae1;
  --sage-d: #4e6a5a;
  --ink: #2f3a33;
  --ink2: #56615a;
  --clay: #9a3b2e;
  --jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --num: "Lexend", "Zen Maru Gothic", system-ui, sans-serif;
  --sine: cubic-bezier(.45, 0, .55, 1);
  --soft: cubic-bezier(.33, 0, .2, 1);
  --tab-h: calc(70px + env(safe-area-inset-bottom));
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--sand); color: var(--ink);
  font-family: var(--jp); font-size: 15px; font-weight: 500; line-height: 1.75; letter-spacing: .03em;
  line-break: strict; overflow-wrap: break-word; overflow: hidden;
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }
h1, h2, .ob-t, .dn-t, .ss-word, .pd-t, .pg-t, .sh-t { font-weight: 500; font-feature-settings: "palt"; word-break: keep-all; overflow-wrap: normal; }
a { color: var(--sage-d); }
.nowrap { white-space: nowrap; }
.ic { width: 24px; height: 24px; flex: none; }
.ic.sm { width: 18px; height: 18px; }
.ic.xs { width: 14px; height: 14px; }
:focus-visible { outline: 2px solid var(--sage-d); outline-offset: 3px; }

.app { position: fixed; top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto; width: 100%; max-width: 430px; display: flex; flex-direction: column; background: var(--sand); overflow: hidden; }
@media (min-width: 600px) {
  body { background: radial-gradient(circle at 20% 30%, #f6f1e8 0 18%, transparent 18.2%), radial-gradient(circle at 80% 75%, #e8dfcf 0 22%, transparent 22.2%), #ddd2bf; }
  .app { box-shadow: 0 30px 90px rgba(78, 106, 90, .25); }
}
.views { position: relative; flex: 1; min-height: 0; }
.boot { padding: 48px 24px; text-align: center; color: var(--ink2); }
.fail { position: absolute; inset: 0; z-index: 95; display: grid; place-items: center; padding: 32px; text-align: center; background: var(--sand); }
.fail[hidden] { display: none; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--sand); }
.view.entering { animation: vIn .55s var(--sine) both; }
.view.leaving { animation: vOut .4s var(--sine) both; pointer-events: none; }
@keyframes vIn { from { opacity: 0; } }
@keyframes vOut { to { opacity: 0; } }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-bottom: 36px; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* ---------- タブ ---------- */
.tabs {
  flex: none; height: var(--tab-h); padding: 0 10px env(safe-area-inset-bottom);
  display: flex; background: var(--paper); border-radius: 30px 30px 0 0;
  box-shadow: 0 -10px 30px rgba(78, 106, 90, .08); position: relative; z-index: 10;
}
body.immersive .tabs { display: none; }
.tab-i {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink2); text-decoration: none; font-size: 12px; letter-spacing: .08em; position: relative;
  transition: color .4s var(--sine);
}
.tab-i .ic { transition: transform .5s var(--sine); }
.tab-i.on { color: var(--sage-d); font-weight: 700; }
.tab-i.on .ic { transform: translateY(-2px); }
.tab-i.on::after { content: ""; position: absolute; bottom: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--sage-d); }
.tab-i:active .ic { transform: scale(.88); }

/* ---------- ボタン ---------- */
.go-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 34px; border: 0; border-radius: 999px;
  background: var(--sage-d); color: var(--paper);
  font-size: 16px; font-weight: 500; letter-spacing: .14em; text-decoration: none; word-break: keep-all;
  transition: transform .45s var(--sine), background-color .4s, box-shadow .4s;
  box-shadow: 0 10px 26px rgba(78, 106, 90, .22);
}
.go-btn:active { transform: scale(.96); box-shadow: 0 4px 10px rgba(78, 106, 90, .2); }
.go-btn.soft { background: transparent; color: var(--sage-d); box-shadow: inset 0 0 0 1px var(--sage-d); }
.go-btn.soft.danger { color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.go-btn.danger-fill { background: var(--clay); box-shadow: none; }
.go-btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; letter-spacing: .06em; }
.go-btn.wide { width: 100%; }
.ghost-b {
  width: 48px; height: 48px; display: inline-grid; place-items: center; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink2);
  transition: background-color .4s, transform .4s var(--sine);
}
.ghost-b:active { background: rgba(47, 58, 51, .07); transform: scale(.92); }
.ghost-b.on-img { position: absolute; top: calc(env(safe-area-inset-top) + 12px); left: 12px; background: rgba(251, 248, 242, .92); color: var(--ink); }

/* ---------- はじめる ---------- */
.v-start::before {
  content: ""; position: absolute; left: 50%; top: 70px; width: 520px; height: 520px; margin-left: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(251, 248, 242, .95) 0 30%, rgba(251, 248, 242, 0) 62%);
}
.v-start .scroll { position: relative; }
.st-head { display: flex; justify-content: space-between; align-items: flex-start; padding: calc(env(safe-area-inset-top) + 22px) 24px 0; }
.st-brand { writing-mode: vertical-rl; font-size: 15px; letter-spacing: .5em; color: var(--sage-d); padding-left: 10px; border-left: 1px solid var(--sand3); line-height: 1.4; }
.st-greet { text-align: right; }
.st-hello { font-size: 19px; letter-spacing: .1em; }
.st-date { font-size: 14px; color: var(--ink2); }
.st-stage { position: relative; height: 290px; display: grid; place-items: center; margin-top: -40px; }
.orb {
  width: 236px; height: 236px; border-radius: 50%; border: 0; padding: 0;
  background-color: var(--sand2); background-size: cover; background-position: center 65%;
  box-shadow: 0 0 0 9px rgba(251, 248, 242, .85), 0 24px 60px rgba(78, 106, 90, .28);
}
.orb.idle { animation: idle 11s var(--sine) infinite; cursor: pointer; }
@keyframes idle { 0%, 100% { transform: scale(.9); } 40% { transform: scale(1); } 55% { transform: scale(1); } }
.ripple-ring { position: absolute; width: 236px; height: 236px; border-radius: 50%; border: 1px solid var(--sage); opacity: 0; animation: ripple 11s var(--sine) infinite; pointer-events: none; }
.ripple-ring.r2 { animation-delay: 5.5s; }
@keyframes ripple { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.42); opacity: 0; } }
.st-pat { text-align: center; position: relative; }
.st-pname { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-size: 24px; letter-spacing: .08em; color: var(--ink); text-decoration: none; }
.st-pname .ic { color: var(--sage-d); }
.st-secs { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 2px 4px; }
.sec { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.sec-k { font-size: 13px; color: var(--ink2); }
.sec-v { font-family: var(--num); font-weight: 300; font-size: 20px; color: var(--sage-d); letter-spacing: 0; }
.sec-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--sand3); margin: 0 4px; align-self: center; }
.len { display: flex; justify-content: center; gap: 8px; margin: 22px 20px 0; position: relative; }
.len-b {
  min-width: 66px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--sand3); background: rgba(251, 248, 242, .6); color: var(--ink);
  font-family: var(--num); font-weight: 300; font-size: 16px; letter-spacing: .02em;
  transition: background-color .45s var(--sine), color .45s, border-color .45s, transform .4s var(--sine);
}
.len-b:active { transform: scale(.95); }
.len-b.on { background: var(--sage-d); border-color: var(--sage-d); color: var(--paper); }
.st-count { text-align: center; font-size: 14px; color: var(--ink2); margin-top: 10px; }
.v-start .go-btn { display: flex; margin: 14px auto 0; width: max-content; }
.st-week {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 26px 24px 0; padding: 12px 20px; min-height: 56px; border-radius: 999px;
  background: var(--paper); color: var(--ink); text-decoration: none; position: relative;
}
.wk { display: inline-flex; align-items: baseline; gap: 2px; }
.wk-n { font-family: var(--num); font-weight: 300; font-size: 22px; color: var(--sage-d); letter-spacing: 0; }
.wk-u { font-size: 13px; }
.wk-l { font-size: 13px; color: var(--ink2); }
.wk-sep { width: 1px; height: 22px; background: var(--sand3); margin: 0 6px; }

/* ---------- 呼吸中 ---------- */
.sess { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--paper); transition: background-color 1.6s var(--sine); }
.sess[data-k="in"] { background: #e6ede5; }
.sess[data-k="in2"] { background: #dce6db; }
.sess[data-k="hold"] { background: #f0e9dc; }
.sess[data-k="rest"] { background: #f4efe6; }
.sess[data-k="out"] { background: var(--paper); }
.ss-top { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 8px) 10px 0; }
.ss-prog { font-size: 15px; color: var(--ink2); letter-spacing: .08em; }
.ss-pn { margin-right: 10px; color: var(--sage-d); }
.ss-prog [data-cyc] { font-family: var(--num); font-weight: 300; }
.ss-stage { flex: none; height: min(92vw, 370px); margin-top: auto; position: relative; display: grid; place-items: center; }
.ss-arc { position: absolute; width: min(84vw, 330px); height: min(84vw, 330px); transform: rotate(-90deg); }
.arc-bg { fill: none; stroke: rgba(78, 106, 90, .14); stroke-width: .6; }
.arc-fg { fill: none; stroke: var(--sage-d); stroke-width: 1.1; stroke-linecap: round; }
.orb.live {
  position: absolute; width: min(76vw, 300px); height: min(76vw, 300px);
  transform: scale(.48); will-change: transform;
  box-shadow: 0 0 0 8px rgba(251, 248, 242, .75), 0 30px 70px rgba(78, 106, 90, .25);
  transition: opacity .8s;
}
.sess.paused .orb.live { opacity: .65; }
.stone {
  position: relative; z-index: 2; width: 84px; height: 84px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--paper); color: var(--ink);
  box-shadow: 0 6px 20px rgba(47, 58, 51, .16);
  transition: transform .5s var(--sine);
}
.stone:active { transform: scale(.94); }
.stone-n { font-family: var(--num); font-weight: 200; font-size: 40px; line-height: 1; letter-spacing: 0; color: var(--ink); }
.stone .ic { width: 30px; height: 30px; color: var(--sage-d); margin-left: 3px; }
.ss-words { text-align: center; padding: 18px 24px 0; min-height: 120px; margin-bottom: auto; }
.ss-word { font-size: 27px; letter-spacing: .2em; min-height: 46px; }
.ss-sub { font-size: 15px; color: var(--ink2); letter-spacing: .1em; margin-top: 4px; }
.ss-foot { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 6px 0 calc(env(safe-area-inset-bottom) + 26px); }
.pause-b {
  width: 72px; height: 72px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--sage-d); color: var(--paper); box-shadow: 0 12px 28px rgba(78, 106, 90, .3);
  transition: transform .45s var(--sine);
}
.pause-b:active { transform: scale(.93); }
.pause-b .ic { width: 28px; height: 28px; }

/* ---------- おつかれさま ---------- */
.v-done { background: var(--paper); }
.dn-hero { height: 300px; background-size: cover; background-position: center 30%; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.dn-body { margin-top: -54px; padding: 0 26px; position: relative; text-align: center; }
.dn-t { font-size: 26px; letter-spacing: .12em; line-height: 1.5; }
.dn-s { font-size: 15px; color: var(--ink2); margin-top: 4px; }
.dn-stats { display: flex; justify-content: center; gap: 44px; margin-top: 18px; }
.dn-st { display: flex; flex-direction: column; align-items: center; }
.dn-n { font-family: var(--num); font-weight: 200; font-size: 46px; line-height: 1.1; color: var(--sage-d); letter-spacing: 0; }
.dn-l { font-size: 13px; color: var(--ink2); }
.dn-q { font-size: 16px; letter-spacing: .12em; margin-top: 26px; }
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.mood {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 84px; padding: 12px 2px;
  border-radius: 28px; border: 1px solid var(--sand3); background: transparent; font-size: 14px; color: var(--ink);
  transition: background-color .45s var(--sine), border-color .45s, transform .4s var(--sine);
}
.mood:active { transform: scale(.95); }
.mood.on { background: var(--sage-l); border-color: var(--sage-d); color: var(--sage-d); }
.face { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.face .f { fill: currentColor; stroke: none; }
.dn-saved { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--sage-d); }
.dn-acts { display: flex; gap: 10px; margin-top: 18px; }
.dn-acts .go-btn { flex: 1; padding: 0 12px; }

/* ---------- パターン ---------- */
.pg-head { padding: calc(env(safe-area-inset-top) + 30px) 26px 6px; }
.pg-t { font-size: 28px; letter-spacing: .14em; }
.pg-s { font-size: 15px; color: var(--ink2); margin-top: 2px; }
.pats { list-style: none; margin: 10px 0 0; padding: 0 14px; }
.pat-a { display: grid; grid-template-columns: 116px 1fr; gap: 16px; align-items: center; padding: 14px 10px; color: var(--ink); text-decoration: none; border-radius: 40px; transition: background-color .45s var(--sine); }
.pat-a:active { background: rgba(251, 248, 242, .7); }
.pat.alt .pat-a { grid-template-columns: 1fr 116px; }
.pat.alt .pat-img { order: 2; border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
.pat-img { width: 116px; height: 136px; background-size: cover; background-position: center; border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; background-color: var(--sand2); transition: box-shadow .4s; }
.pat.sel .pat-img { box-shadow: 0 0 0 4px var(--sand), 0 0 0 5.5px var(--sage-d); }
.pat-b { display: flex; flex-direction: column; min-width: 0; }
.pat-pur { font-size: 13px; color: var(--sage-d); letter-spacing: .12em; }
.pat-n { font-size: 19px; letter-spacing: .06em; line-height: 1.45; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pat-on { display: inline-flex; align-items: center; gap: 3px; padding: 1px 9px; border-radius: 999px; background: var(--sage-l); color: var(--sage-d); font-size: 12px; letter-spacing: .04em; line-height: 1.7; }
.curve { display: block; width: 100%; height: 42px; margin: 6px 0 4px; overflow: visible; }
.c-area { fill: rgba(141, 163, 148, .22); }
.c-line { fill: none; stroke: var(--sage-d); stroke-width: 1.6; stroke-linejoin: round; }
.tick { stroke: rgba(78, 106, 90, .28); stroke-width: .6; stroke-dasharray: 2 2; }
.pat-secs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 3px; }
.pat-secs .sec-v { font-size: 16px; }
.pat-secs .sec-k { font-size: 12px; }
.caution { display: flex; gap: 10px; margin: 22px 20px 0; padding: 16px 18px; border-radius: 28px; background: var(--sand2); color: var(--ink); font-size: 14px; line-height: 1.8; font-weight: 500; }
.caution .ic { color: var(--sage-d); margin-top: 4px; }
.caution.in { margin: 22px 0 18px; }

.v-pattern { background: var(--paper); }
.pd-hero { position: relative; height: 290px; background-size: cover; background-position: center; border-radius: 0 0 50% 50% / 0 0 48px 48px; }
.pd-body { padding: 22px 24px 20px; }
.pd-t { font-size: 28px; letter-spacing: .1em; line-height: 1.45; }
.pd-lead { font-size: 16px; line-height: 1.9; margin-top: 8px; }
.pd-curve { margin: 20px 0 6px; padding: 16px 16px 14px; border-radius: 32px; background: var(--sand); }
.curve.big { height: 78px; margin: 0; }
.pd-labels { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 10px; font-size: 13px; color: var(--ink2); }
.steps { list-style: none; margin: 18px 0 0; padding: 0; }
.steps li { display: flex; gap: 14px; padding: 10px 0; }
.st-no { font-family: var(--num); font-weight: 300; font-size: 22px; color: var(--sage-d); width: 26px; flex: none; line-height: 1.4; letter-spacing: 0; }
.st-tx { font-size: 16px; line-height: 1.85; }
.pd-note { margin-top: 8px; font-size: 15px; color: var(--ink2); line-height: 1.85; }
.pd-len { text-align: center; font-size: 14px; color: var(--ink2); margin-top: 10px; }
.cust { margin-top: 10px; }
.cust-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; border-bottom: 1px dashed var(--sand3); }
.cust-l { font-size: 16px; }
.step { display: flex; align-items: center; gap: 6px; }
.step-b { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sand3); background: var(--paper); color: var(--ink); display: grid; place-items: center; transition: transform .4s var(--sine); }
.step-b:active:not(:disabled) { transform: scale(.9); }
.step-b:disabled { color: #8b9189; border-color: var(--sand2); cursor: default; }
.step-v { min-width: 64px; text-align: center; font-family: var(--num); font-weight: 300; font-size: 20px; letter-spacing: 0; }
.cust-sum { text-align: center; font-size: 14px; color: var(--ink2); margin-top: 12px; }

/* ---------- 記録 ---------- */
.rec-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 4px 26px 0; }
.rec-big { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 4px; }
.rb-n { font-family: var(--num); font-weight: 200; font-size: 68px; line-height: 1; color: var(--sage-d); letter-spacing: -.02em; }
.rb-u { font-size: 17px; }
.rb-l { flex-basis: 100%; font-size: 13px; color: var(--ink2); }
.rec-side { text-align: right; font-size: 13px; color: var(--ink2); line-height: 1.9; }
.rs-n { font-family: var(--num); font-weight: 300; font-size: 21px; color: var(--ink); letter-spacing: 0; }
.rs-u { font-size: 13px; color: var(--ink); margin-right: 6px; }
.week-rings { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 22px 12px 2px; }
.wr { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wr-c { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed var(--sand3); }
.wr-c i { display: block; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(141, 163, 148, .2); }
.wr.today .wr-c { border: 1.5px solid var(--sage-d); }
.wr-d { font-size: 13px; line-height: 1.3; }
.wr.today .wr-d { color: var(--sage-d); font-weight: 700; }
.wr-m { font-family: var(--num); font-weight: 300; font-size: 12px; color: var(--ink2); letter-spacing: 0; line-height: 1.2; }
.wave { display: block; width: 100%; height: 24px; margin: 14px 0 0; fill: none; stroke: var(--sand3); stroke-width: 1.2; }
.rg-h { display: flex; align-items: baseline; gap: 8px; padding: 14px 26px 4px; font-size: 16px; letter-spacing: .06em; }
.rg-w { font-size: 13px; color: var(--ink2); }
.rl { list-style: none; margin: 0; padding: 0 14px; }
.ri {
  width: 100%; display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center;
  min-height: 64px; padding: 10px 12px; border: 0; border-radius: 32px; background: transparent; text-align: left; color: var(--ink);
  transition: background-color .4s var(--sine);
}
.ri:active { background: rgba(251, 248, 242, .8); }
.ri-t { font-family: var(--num); font-weight: 300; font-size: 18px; letter-spacing: 0; }
.ri-b { display: flex; flex-direction: column; min-width: 0; }
.ri-p { font-size: 16px; line-height: 1.5; }
.ri-m { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.ri-mood { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--sage-d); line-height: 1.4; }
.ri-mood .face { width: 24px; height: 24px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 32px; text-align: center; }
.empty-img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; }
.empty-t { font-size: 19px; letter-spacing: .08em; }
.empty-s { font-size: 15px; color: var(--ink2); }

/* ---------- 設定 ---------- */
.set { padding: 0 24px; }
.set-h { font-size: 13px; color: var(--sage-d); letter-spacing: .2em; margin: 24px 0 4px; }
.set-r {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  min-height: 68px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--sand2);
  background: transparent; color: var(--ink); text-align: left; text-decoration: none;
}
.set-r.col { flex-direction: column; align-items: stretch; gap: 12px; }
.set-r.tap { cursor: pointer; }
.set-r.tap:active { background: rgba(251, 248, 242, .6); }
.set-r > .ic { color: var(--ink2); }
.set-b { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.set-t { font-size: 16px; }
.set-s { font-size: 14px; color: var(--ink2); line-height: 1.65; font-weight: 300; }
.danger-t { color: var(--clay); }
.sw {
  -webkit-appearance: none; appearance: none; flex: none; position: relative; margin: 0;
  width: 54px; height: 32px; border-radius: 999px; background: var(--sand3); cursor: pointer;
  transition: background-color .5s var(--sine);
}
.sw::before { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); box-shadow: 0 2px 6px rgba(47, 58, 51, .2); transition: transform .5s var(--sine); }
.sw:checked { background: var(--sage-d); }
.sw:checked::before { transform: translateX(22px); }
.tones { display: flex; gap: 8px; }
.tone { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid var(--sand3); background: transparent; font-size: 15px; color: var(--ink); transition: background-color .45s var(--sine), color .45s; }
.tone.on { background: var(--sage-d); border-color: var(--sage-d); color: var(--paper); }
.vol { display: flex; align-items: center; gap: 12px; }
.vol-l { font-size: 14px; color: var(--ink2); }
.vol input { flex: 1; accent-color: var(--sage-d); min-width: 0; height: 32px; }

/* ---------- このアプリについて ---------- */
.v-about { background: var(--paper); }
.sub-head { display: flex; align-items: center; gap: 4px; padding: calc(env(safe-area-inset-top) + 8px) 8px 0; }
.sub-t { font-size: 18px; letter-spacing: .1em; }
.about { display: flex; flex-direction: column; align-items: center; padding: 10px 28px 20px; }
.about-ic { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 14px 36px rgba(78, 106, 90, .22); }
.about-n { font-size: 24px; letter-spacing: .3em; margin-top: 14px; }
.about-v { font-size: 14px; color: var(--ink2); text-align: center; }
.about-p { margin-top: 16px; font-size: 15px; line-height: 1.9; align-self: stretch; }
.about .set-h { align-self: stretch; margin-top: 26px; }
.tech { list-style: none; margin: 0 0 26px; padding: 0; align-self: stretch; }
.tech li { padding: 10px 0 10px 20px; border-bottom: 1px solid var(--sand2); font-size: 15px; position: relative; }
.tech li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--sage-d); }

/* ---------- シート・トースト ---------- */
.sheet { position: absolute; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.veil { position: absolute; inset: 0; background: rgba(47, 58, 51, .28); opacity: 0; transition: opacity .45s var(--sine); }
.sheet.open .veil { opacity: 1; }
.sh {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 24px calc(env(safe-area-inset-bottom) + 26px);
  border-radius: 40px 40px 0 0; background: var(--paper);
  transform: translateY(100%); transition: transform .5s var(--soft);
}
.sheet.open .sh { transform: none; }
.sh-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--sand3); margin: 0 auto 18px; }
.sh-t { font-size: 21px; letter-spacing: .08em; }
.sh-p { font-size: 15px; color: var(--ink2); margin: 8px 0 18px; }
.sh-acts { display: flex; gap: 10px; }
.sh-acts .go-btn { flex: 1; padding: 0 10px; letter-spacing: .06em; }
.sheet-curve { height: 56px; margin: 0 0 22px; }
.toast {
  position: absolute; left: 50%; bottom: calc(var(--tab-h) + 14px); z-index: 60;
  display: flex; align-items: center; gap: 6px; max-width: calc(100% - 32px); min-height: 48px; padding: 4px 6px 4px 22px;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; white-space: nowrap;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: transform .5s var(--soft), opacity .4s;
}
body.immersive .toast { bottom: calc(env(safe-area-inset-bottom) + 120px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast-act { border: 0; background: transparent; color: #cfe0cf; font-weight: 700; min-height: 40px; padding: 0 14px; border-radius: 999px; }

/* ---------- スプラッシュ・オンボーディング ---------- */
.splash { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--sand); transition: opacity .6s var(--sine); }
.splash[hidden] { display: none; }
.splash img { width: 116px; height: 116px; border-radius: 30px; animation: spIn 1s var(--sine) both; }
.splash-n { font-size: 20px; letter-spacing: .4em; color: var(--ink); animation: spIn 1s .15s var(--sine) both; }
.splash.bye { opacity: 0; }
@keyframes spIn { from { opacity: 0; transform: scale(.94); } }
.onboard { position: absolute; inset: 0; z-index: 70; background: var(--sand); transition: opacity .5s var(--sine); }
.onboard[hidden] { display: none; }
.onboard.bye { opacity: 0; }
.ob-bg { position: absolute; left: 0; right: 0; top: 0; height: 66%; background-size: cover; background-position: center 80%; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.ob-demo { position: absolute; left: 0; right: 0; top: 18%; display: grid; place-items: center; }
.ob-orb { width: 170px; height: 170px; border-radius: 50%; border: 1.5px solid var(--paper); background: rgba(251, 248, 242, .35); box-shadow: 0 0 0 6px rgba(251, 248, 242, .25); }
.ob-orb.k0 { animation: obIn 4s var(--sine) infinite; }
.ob-orb.k1 { animation: obHold 4s var(--sine) infinite; }
.ob-orb.k2 { animation: obOut 4s var(--sine) infinite; }
@keyframes obIn { 0% { transform: scale(.55); } 80%, 100% { transform: scale(1); } }
@keyframes obHold { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.02); opacity: .75; } }
@keyframes obOut { 0% { transform: scale(1); } 80%, 100% { transform: scale(.55); } }
.ob-card { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 28px calc(env(safe-area-inset-bottom) + 26px); border-radius: 44px 44px 0 0; background: var(--sand); }
.ob-step { font-family: var(--num); font-weight: 300; font-size: 14px; color: var(--ink2); }
.ob-t { font-size: 26px; letter-spacing: .12em; line-height: 1.5; margin-top: 6px; }
.ob-s { font-size: 15px; color: var(--ink2); line-height: 1.9; margin-top: 8px; min-height: 58px; }
.ob-acts { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.ob-acts .go-btn { padding: 0 26px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .orb.idle { animation: none; transform: none; }
}
.sess[data-k="ready"] .orb.live { transform: scale(.74); }
.sess[data-k="prep"] .orb.live { transform: scale(.48); transition: transform 2.8s var(--sine), opacity .8s; }
