/* ことのは相談室 — 暮らしのAIアシスタント
   トークン：淡い桃の部屋 × 白い便箋 × 藍。回答は明朝の「手紙」、利用者は藍の吹き出し */
:root {
  --room: #FCEDE4;          /* 部屋の地（挿絵の紙色に合わせる） */
  --room-2: #F6DFD5;        /* 沈んだ面 */
  --paper: #FFFDFB;         /* 便箋 */
  --blush: #EDB7AC;         /* 装飾の桃 */
  --blush-2: #F8D9D1;
  --rose-ink: #8E3F39;      /* 桃の文字 7:1 */
  --ai: #26336A;            /* 藍 */
  --ai-2: #46517F;          /* 副文字 7.5:1（便箋上） */
  --mist: #E6E6F1;
  --ink: #26252E;
  --line: rgba(38, 51, 106, .14);

  --ff-letter: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ff-ui: "Kosugi Maru", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --ff-num: "Newsreader", "Shippori Mincho", serif;

  --g: 18px;
  --r-paper: 20px;
  --r-bubble: 22px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.25, .8, .25, 1);
  --soft: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 30px -12px rgba(120, 60, 50, .22);
  --fs: 16px;
}
.app[data-size="s"] { --fs: 15px; }
.app[data-size="l"] { --fs: 18px; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--room); color: var(--ink); font-family: var(--ff-ui); font-size: 15px; line-height: 1.8; line-break: strict; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }
.vh-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.app { position: relative; height: 100vh; height: 100dvh; max-width: 430px; margin: 0 auto; overflow: hidden; background: var(--room); isolation: isolate; }
@media (min-width: 600px) {
  body { background: radial-gradient(circle at 15% 20%, #F9DCD2 0, transparent 40%), radial-gradient(circle at 85% 75%, #DCDDEE 0, transparent 45%), #F3E4DD; }
  .app { box-shadow: 0 30px 80px -20px rgba(38, 51, 106, .3); }
}
.boot-fallback { position: absolute; inset: 0; z-index: 90; display: grid; place-content: center; gap: 6px; text-align: center; padding: 30px; background: var(--room); }
.boot-fallback__t { font-family: var(--ff-letter); font-size: 24px; color: var(--ai); }
.noscript { padding: 24px; }

/* ---------- 画面 ---------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--room); }
@keyframes inPush { from { transform: translateX(100%); } }
@keyframes outPush { to { transform: translateX(-24%); opacity: .5; } }
@keyframes inPop { from { transform: translateX(-24%); opacity: .5; } }
@keyframes outPop { to { transform: translateX(100%); } }
@keyframes inDrawer { from { transform: translateX(-100%); } }
@keyframes outDrawer { to { transform: translateX(30%); opacity: .4; } }
@keyframes inUndrawer { from { transform: translateX(30%); opacity: .4; } }
@keyframes outUndrawer { to { transform: translateX(-100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.in-push { animation: inPush 380ms var(--ease) both; z-index: 2; }
.out-push { animation: outPush 380ms var(--ease) both; }
.in-pop { animation: inPop 380ms var(--ease) both; }
.out-pop { animation: outPop 380ms var(--ease) both; z-index: 2; }
.in-drawer { animation: inDrawer 420ms var(--ease) both; z-index: 2; box-shadow: 20px 0 40px -20px rgba(38, 51, 106, .35); }
.out-drawer { animation: outDrawer 420ms var(--ease) both; }
.in-undrawer { animation: inUndrawer 420ms var(--ease) both; }
.out-undrawer { animation: outUndrawer 420ms var(--ease) both; z-index: 2; }
.in-fade { animation: fadeIn 260ms linear both; z-index: 2; }
.out-fade { animation: fadeOut 200ms linear both; }

.top {
  flex: none; display: flex; align-items: center; gap: 6px; padding: calc(var(--safe-t) + 8px) 10px 8px;
  background: var(--room); border-bottom: 1px solid transparent; transition: border-color 200ms; position: relative; z-index: 3;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__mid { flex: 1; text-align: center; min-width: 0; }
.top__t { font-family: var(--ff-letter); font-weight: 600; font-size: 18px; color: var(--ai); letter-spacing: .08em; line-height: 1.4; }
.top__s { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ai-2); line-height: 1.4; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blush); box-shadow: 0 0 0 3px var(--blush-2); }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ai); transition: background-color 160ms, transform 140ms var(--ease); flex: none; }
.iconbtn:active { transform: scale(.88); background: var(--room-2); }
.iconbtn--sp { pointer-events: none; }

/* ---------- 会話 ---------- */
.room { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.room::-webkit-scrollbar { display: none; }
.room__in { padding: 6px var(--g) 20px; display: flex; flex-direction: column; gap: 14px; }
.daymark { text-align: center; margin: 4px 0; }
.daymark span { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--paper); font-size: 12px; color: var(--ai-2); }
.msg { animation: none; }
.msg.in { animation: rise 360ms var(--ease) both; }
.msg--u { align-self: flex-end; max-width: 84%; display: flex; flex-direction: column; align-items: flex-end; }
.bubble {
  background: var(--ai); color: #fff; padding: 11px 16px; border-radius: var(--r-bubble) var(--r-bubble) 6px var(--r-bubble);
  font-size: var(--fs); line-height: 1.7; word-break: normal; overflow-wrap: break-word; text-wrap: pretty;
}
.msg__time { font-family: var(--ff-num); font-size: 12px; color: var(--ai-2); margin-top: 2px; padding-right: 4px; }
.msg--a { align-self: stretch; }
.ans {
  position: relative; background: var(--paper); border-radius: 6px var(--r-paper) var(--r-paper) var(--r-paper); padding: 14px 18px 12px;
  box-shadow: var(--soft);
}
.ans::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: linear-gradient(var(--blush), rgba(237, 183, 172, 0)); }
.ans__who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ai); font-weight: 700; margin-bottom: 6px; }
.ans__time { font-family: var(--ff-num); font-weight: 400; color: var(--ai-2); margin-left: auto; font-size: 12px; }
.leaf { width: 22px; height: 22px; flex: none; }
.leaf__a { fill: var(--blush); }
.leaf__b { fill: none; stroke: var(--ai); stroke-width: 1.6; stroke-linecap: round; }
.ans__body { text-wrap: pretty; font-family: var(--ff-letter); font-weight: 500; font-size: var(--fs); line-height: 2; color: var(--ink); }
.ans__lead { font-weight: 600; }
.ans__p { margin-top: 2px; }
.ans__ol { margin: 10px 0 2px; display: flex; flex-direction: column; gap: 6px; counter-reset: s; }
.ans__ol li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.ans__no { width: 24px; height: 24px; margin-top: 6px; border-radius: 50%; background: var(--blush-2); color: var(--rose-ink); font-family: var(--ff-num); font-weight: 500; font-size: 14px; line-height: 24px; text-align: center; }
.ans__tip, .ans__more { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: #FBF1EC; }
.ans__more { background: var(--mist); }
.ans__tipk { font-family: var(--ff-ui); font-size: 12px; font-weight: 700; color: var(--rose-ink); line-height: 1.6; }
.ans__more .ans__tipk { color: var(--ai); }
.ans__tipp { line-height: 1.9; }
[data-b].in { animation: fadeIn 300ms linear both; }
.care { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--ai); background: var(--paper); }
.care__t { font-weight: 700; font-size: 14px; color: var(--ai); }
.care__p { font-size: 14px; line-height: 1.75; color: var(--ink); }
.care--crisis { border-color: var(--rose-ink); }
.care--crisis .care__t { color: var(--rose-ink); }
.ans__src { font-size: 12px; color: var(--ai-2); margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); line-height: 1.6; }
.ans__stopped { font-size: 14px; color: var(--rose-ink); margin-top: 6px; }
.linkbtn { min-height: 44px; padding: 0 6px; color: var(--ai); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ans__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.act { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ai); transition: background-color 180ms, transform 140ms var(--ease), color 180ms; }
.act .ic { width: 18px; height: 18px; }
.act:active { transform: scale(.93); }
.act.is-on { background: var(--ai); color: #fff; border-color: var(--ai); }
.act--icon { width: 40px; padding: 0; justify-content: center; }
.act--more { margin-left: auto; }
@keyframes pop { 40% { transform: scale(1.12); } }
.act.pop { animation: pop 360ms var(--ease); }
.ans__fb { font-size: 13px; color: var(--ai-2); margin-top: 6px; }
.follow { margin-top: 10px; }
.follow__k { font-size: 12px; color: var(--ai-2); margin: 0 0 6px 4px; }
.follow__chips { display: flex; flex-wrap: wrap; gap: 8px; }
[data-after].in { animation: rise 320ms var(--ease) both; }
.qchip {
  min-height: 40px; padding: 7px 14px; border-radius: 16px 16px 16px 6px; background: var(--paper); border: 1px solid var(--blush);
  font-size: 14px; line-height: 1.5; color: var(--ai); text-align: left; word-break: keep-all; overflow-wrap: anywhere;
  transition: background-color 180ms, transform 140ms var(--ease);
}
.qchip:active { transform: scale(.95); background: var(--blush-2); }
.qchip--s { flex: none; white-space: nowrap; }

.thinking { display: flex; align-items: center; gap: 4px; align-self: flex-start; padding: 10px 16px; border-radius: 6px 18px 18px 18px; background: var(--paper); font-size: 13px; color: var(--ai-2); box-shadow: var(--soft); }
.thinking span { margin-left: 6px; }
.thinking .leaf { width: 16px; height: 16px; animation: sway 1.1s ease-in-out infinite; transform-origin: 30% 80%; }
.thinking .t2 { animation-delay: .15s; } .thinking .t3 { animation-delay: .3s; }
@keyframes sway { 0%, 100% { transform: rotate(-12deg) translateY(0); opacity: .5; } 50% { transform: rotate(10deg) translateY(-3px); opacity: 1; } }

.tobottom { position: absolute; right: var(--g); bottom: calc(150px + var(--safe-b)); z-index: 4; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ai); display: grid; place-items: center; box-shadow: var(--soft); }

/* はじめの画面 */
.hello { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.hello__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px 28px 28px 8px; }
.hello__t { font-family: var(--ff-letter); font-weight: 600; font-size: 25px; line-height: 1.5; color: var(--ai); letter-spacing: .04em; word-break: keep-all; font-feature-settings: "palt"; margin-top: 6px; }
.hello__p { font-family: var(--ff-letter); font-weight: 500; font-size: 16px; line-height: 1.9; }
.hello__note { font-size: 14px; color: var(--ai-2); line-height: 1.75; padding: 10px 14px; border-radius: 14px; background: var(--paper); }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 10px; border-radius: 18px; background: var(--paper); transition: transform 140ms var(--ease); }
.cat:active { transform: scale(.95); }
.cat__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.cat__l { font-size: 13px; color: var(--ai); word-break: keep-all; text-align: center; line-height: 1.4; }
.linkrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 14px; border-radius: 16px; background: var(--paper); color: var(--ai); font-size: 15px; transition: transform 140ms var(--ease); }
.linkrow:active { transform: scale(.98); }
.linkrow span { flex: 1; }
.linkrow .ic:last-child { width: 18px; height: 18px; color: var(--ai-2); }
.linkrow--danger { color: var(--rose-ink); }

/* 入力欄 */
.composer { flex: none; padding: 8px var(--g) calc(6px + var(--safe-b)); background: linear-gradient(rgba(252, 237, 228, 0), var(--room) 14px); position: relative; z-index: 3; }
.sugg { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--g)) 8px; padding: 0 var(--g); scrollbar-width: none; }
.sugg::-webkit-scrollbar { display: none; }
.field { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 26px; background: var(--paper); box-shadow: var(--soft); border: 1px solid var(--line); }
.field:focus-within { border-color: var(--ai); }
.field__ta { flex: 1; min-height: 40px; max-height: 120px; padding: 8px 0; border: 0; outline: 0; resize: none; background: transparent; font-size: 16px; line-height: 1.5; }
.field__ta::placeholder { color: #6E6A80; }
.send { width: 44px; height: 44px; border-radius: 50%; background: var(--ai); color: #fff; display: grid; place-items: center; flex: none; transition: transform 140ms var(--ease), opacity 200ms; }
.send:active { transform: scale(.9); }
.send:disabled { background: var(--mist); color: var(--ai-2); }
.send--stop { background: var(--rose-ink); }
.send--stop .ic { fill: currentColor; stroke: none; }
.composer__n { text-align: right; font-family: var(--ff-num); font-size: 12px; color: var(--ai-2); padding-right: 10px; line-height: 1.6; }

/* ---------- 記録・よくある質問・設定 ---------- */
.page { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--g) calc(24px + var(--safe-b)); scrollbar-width: none; }
.page::-webkit-scrollbar { display: none; }
.search { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 24px; background: var(--paper); color: var(--ai-2); border: 1px solid var(--line); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: #6E6A80; }
.hgroup { font-size: 13px; font-weight: 700; color: var(--rose-ink); margin: 18px 4px 8px; }
.hlist { display: flex; flex-direction: column; gap: 8px; }
.hrow { position: relative; display: flex; align-items: stretch; border-radius: 18px; background: var(--blush-2); overflow: hidden; }
.hrow__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 10px; background: var(--paper); border-radius: 18px; transition: transform 260ms var(--ease); }
.hrow__img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.hrow__b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hrow__t { font-size: 15px; color: var(--ink); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow__s { font-family: var(--ff-letter); font-size: 14px; color: var(--ai-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hrow__m { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; align-self: flex-start; padding-top: 2px; }
.hrow__time { font-family: var(--ff-num); font-size: 13px; color: var(--ai-2); }
.hrow__rate { color: var(--rose-ink); }
.hrow__rate .ic { width: 16px; height: 16px; }
.hrow__del { position: absolute; right: 0; top: 0; bottom: 0; width: 44px; display: grid; place-items: center; color: var(--rose-ink); z-index: 0; }
.hrow__main { position: relative; z-index: 1; margin-right: 44px; border-radius: 18px; }
.hint { font-size: 12px; color: var(--ai-2); text-align: center; margin-top: 10px; }
.emptyh { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 10px; }
.emptyh__img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
.emptyh__t { font-family: var(--ff-letter); font-weight: 600; font-size: 19px; color: var(--ai); }
.emptyh__p { font-size: 14px; color: var(--ai-2); line-height: 1.7; }
.emptyh .btn { width: auto; margin-top: 8px; }
.sublinks { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.lead { font-size: 14px; color: var(--ai-2); margin: 4px 4px 12px; line-height: 1.7; }
.fcat { padding: 14px; border-radius: 22px; background: var(--paper); margin-bottom: 12px; }
.fcat__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.fcat__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.fcat__t { font-family: var(--ff-letter); font-weight: 600; font-size: 19px; color: var(--ai); line-height: 1.4; }
.fcat__n { font-family: var(--ff-num); font-size: 13px; color: var(--ai-2); }
.fcat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fcat .qchip { background: #FDF6F2; }
.fine { font-size: 13px; color: var(--ai-2); line-height: 1.7; margin: 6px 4px 0; }
.sgroup { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sgroup__t { font-size: 13px; font-weight: 700; color: var(--rose-ink); margin-bottom: 8px; }
.sgroup__p { font-size: 14px; color: var(--ai-2); line-height: 1.75; margin: 8px 0; }
.sgroup .linkrow { margin-top: 8px; }
.seg { display: flex; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.seg__b { flex: 1; min-height: 40px; border-radius: 999px; font-size: 14px; text-align: center; color: var(--ai); word-break: keep-all; transition: background-color 220ms, color 220ms; }
.seg__b.is-on { background: var(--ai); color: #fff; }
.sample { font-family: var(--ff-letter); font-weight: 500; font-size: var(--fs); line-height: 2; margin-top: 10px; padding: 10px 14px; background: var(--paper); border-radius: 14px; }
.srow { display: flex; align-items: center; gap: 12px; }
.srow__b { flex: 1; display: flex; flex-direction: column; }
.srow__l { font-size: 15px; color: var(--ink); font-weight: 700; }
.srow__s { font-size: 13px; color: var(--ai-2); line-height: 1.65; }
.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 52px; height: 32px; margin: 0; border-radius: 999px; background: var(--mist); cursor: pointer; transition: background-color 220ms; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(38, 51, 106, .25); transition: transform 260ms var(--ease); }
.switch:checked { background: var(--ai); }
.switch:checked::after { transform: translateX(20px); }
.about { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.about__icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto; }
.about__n { font-family: var(--ff-letter); font-weight: 600; font-size: 24px; color: var(--ai); text-align: center; }
.about__v { font-size: 13px; color: var(--ai-2); text-align: center; }
.about__d { font-size: 14px; line-height: 1.8; padding: 12px 14px; border-radius: 14px; background: var(--paper); }
.about__d--soft { background: #FBF1EC; }
.tech li { font-size: 14px; line-height: 1.7; padding: 8px 0 8px 16px; border-bottom: 1px solid var(--line); position: relative; }
.tech li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--blush); }
.about .btn { margin-top: 12px; }

.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 700; text-align: center; word-break: keep-all; transition: transform 140ms var(--ease); }
.btn:active { transform: scale(.97); }
.btn--ai { background: var(--ai); color: #fff; }
.btn--line { border: 1px solid var(--ai); color: var(--ai); background: var(--paper); }
.btn--text { width: auto; min-height: 44px; color: var(--ai-2); text-decoration: underline; text-underline-offset: 4px; font-weight: 400; }

/* ---------- シート・トースト ---------- */
.sheet-layer { position: absolute; inset: 0; z-index: 40; }
.scrim { position: absolute; inset: 0; background: rgba(38, 51, 106, .28); opacity: 0; transition: opacity 260ms; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--room); border-radius: 28px 28px 0 0; padding-bottom: var(--safe-b); transform: translateY(100%); transition: transform 320ms var(--ease); }
.sheet-layer.is-open .scrim { opacity: 1; }
.sheet-layer.is-open .sheet { transform: none; }
.sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--blush); margin: 10px auto 0; }
.sheet__b { padding: 12px var(--g) 18px; display: flex; flex-direction: column; gap: 10px; }
.sheet__t { font-family: var(--ff-letter); font-weight: 600; font-size: 21px; color: var(--ai); text-align: center; }
.sheet__p { font-size: 14px; color: var(--ai-2); line-height: 1.7; text-align: center; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 4px; }
.toast { position: absolute; z-index: 50; left: var(--g); right: var(--g); bottom: calc(132px + var(--safe-b)); display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--ai); color: #fff; font-size: 14px; line-height: 1.6; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 220ms, transform 260ms var(--ease); }
.toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.toast__m { flex: 1; }
.toast__a { min-height: 40px; padding: 0 8px; font-weight: 700; color: #FFE3DC; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- スプラッシュ・オンボーディング ---------- */
.splash { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--room); transition: opacity 400ms; }
.splash.is-out { opacity: 0; }
.splash__icon { width: 112px; height: 112px; border-radius: 28px; animation: rise 600ms var(--ease) both; }
.splash__n { font-family: var(--ff-letter); font-weight: 600; font-size: 22px; color: var(--ai); letter-spacing: .1em; }
.onboard { position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; background: var(--room); transition: opacity 320ms; }
.onboard.is-out { opacity: 0; }
.onboard__img { flex: 1; min-height: 0; overflow: hidden; }
.onboard__img img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn 600ms var(--ease) both; }
.onboard__p { padding: 18px var(--g) calc(16px + var(--safe-b)); background: var(--paper); border-radius: 28px 28px 0 0; margin-top: -28px; position: relative; }
.onboard__dots { display: flex; gap: 6px; margin-bottom: 6px; }
.onboard__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--blush-2); transition: width 260ms var(--ease); }
.onboard__dots span.is-on { width: 22px; border-radius: 4px; background: var(--ai); }
.onboard__t { font-family: var(--ff-letter); font-weight: 600; font-size: 24px; line-height: 1.5; color: var(--ai); word-break: keep-all; font-feature-settings: "palt"; }
.onboard__s { font-size: 15px; color: var(--ai-2); line-height: 1.8; margin-top: 6px; min-height: 5.4em; }
.onboard__acts { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.onboard__acts .btn--ai { flex: 1; }

.top__t, .fcat__t, .emptyh__t, .sheet__t, .seg__b, .linkrow span, .srow__l, .cat__l { word-break: keep-all; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}
