:root {
  --paper: #fdfbf7; --paper2: #f6f4f0; --card: #ffffff; --ink: #3b3531; --sub: #857a70; --dim: #b3a89c; --line: #e5ddd2;
  --accent: #b77f68; --rose: #d9aaa0; --sage: #a7b29a;
  --serif: "Shippori Mincho", "Yu Mincho", serif; --en: "Cormorant Garamond", "Times New Roman", serif; --hand: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif; --num: "Shippori Mincho", "Yu Mincho", serif;
  --radius: 18px; --dock: 0px;
  font-family: "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink); background: var(--paper); font-feature-settings: "palt"; letter-spacing: .02em;
}
* { box-sizing: border-box; }
html { background: var(--paper); overflow-x: clip; }
body { margin: 0; min-height: 100vh; -webkit-text-size-adjust: 100%; background: var(--paper); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body.is-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
input, textarea { font: inherit; color: var(--ink); letter-spacing: inherit; }
img { -webkit-user-drag: none; }
.hand { font-family: var(--hand); }
h1, h2, h3, .inm, .cmt, .t, .nm, .use b { word-break: auto-phrase; }
.en { font-family: var(--en); font-style: italic; }

#adbar { background: var(--paper2); color: var(--sub); font-size: 11px; text-align: center; padding: 5px 12px; }
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-in { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.logo { font-family: var(--en); font-style: italic; font-weight: 600; font-size: 26px; text-decoration: none; letter-spacing: 0; line-height: 1; }
/* ブランドロゴ：List の文字に、ティアの S・A・B の色のグラデーション */
.logo b { font-weight: 600; background: linear-gradient(100deg, #b5654f 5%, #c08a45 52%, #6f8550 95%); /* ティアの S・A・B の色を濃くしたもの（後ろが薄くならないように） */ -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.chip-proto { white-space: nowrap; font-size: 10.5px; border: 1px solid var(--line); color: var(--sub); border-radius: 99px; padding: 2px 8px; }
.site-in .sp { flex: 1; }
.hsearch { flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); display: grid; place-items: center; padding: 0; }
.hlang { flex: none; height: 36px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); display: inline-flex; align-items: center; gap: 4px; padding: 0 10px 0 9px; font-size: 11.5px; }
.hlang b { font-family: var(--en); font-style: normal; font-weight: 600; letter-spacing: .04em; }
#userslot .row { flex-wrap: nowrap; gap: 6px; }
.userbtn { white-space: nowrap; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--paper2); border: 1px solid var(--line); color: var(--sepia, #9a7b62); display: inline-grid; place-items: center; font-size: 11px; font-family: var(--serif); font-weight: 700; flex: none; }
.avatar.lg { width: 68px; height: 68px; font-size: 28px; }

main { position: relative; max-width: 760px; margin: 0 auto; padding: 18px 16px calc(48px + var(--dock)); }
/* 編集中：ページ全体は動かさず、見出しの下から帯の上までの中身だけをスクロールする。
   iPhone の Safari はURLバーの裏にもページを流して見せるので、ページ全体が動くと帯の下に透けて見える */
html.edmode, html.edmode body { height: 100%; overflow: hidden; }
html.edmode body { display: flex; flex-direction: column; } /* 高さは下の帯（fixed）と同じ基準の 100% */
html.edmode header.site { flex: none; position: relative; }
html.edmode main#app { flex: 1; min-height: 0; width: 100%; max-width: none; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding-left: max(16px, calc((100% - 728px) / 2)); padding-right: max(16px, calc((100% - 728px) / 2)); }
html.edmode footer.site { display: none; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.5; margin: 0 0 8px; letter-spacing: .04em; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 44px 0 6px; letter-spacing: .06em; }
.h2en { font-family: var(--en); font-style: italic; color: var(--accent); font-size: 15px; margin: 0 0 16px; letter-spacing: .02em; }
.muted { color: var(--sub); }
.small { font-size: 12.5px; }
.kicker { font-family: var(--en); font-style: italic; font-size: 16px; color: var(--accent); margin: 0 0 10px; letter-spacing: .03em; }

.btn { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 12px 20px; font-weight: 500; font-size: 14.5px; transition: transform .12s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fbf8f3; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.btn.block { display: block; width: 100%; }
.btn:disabled { opacity: .4; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* 写真共通：ゆっくり寄る（ケン・バーンズ） */
.kb { animation: kb 9s ease-out both; }
@keyframes kb { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }
.slides { position: relative; overflow: hidden; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.slides img.on { opacity: 1; animation: kb 7s ease-out both; }
.prodimg { filter: none; }

/* ---- トップ ---- */
.hero { position: relative; padding: 4px 0 8px; }
/* トップの先頭：写真3枚のコラージュ。ゆっくり浮かぶ */
/* トップの先頭：ミニティアリスト → ストーリーが流れるスマホ */
.hero-ls { --pw: min(56vw, 270px); position: relative; height: calc(var(--pw) * 1.78 + 70px); max-width: 560px; margin: 6px 0 30px; }
.ls-phone { position: absolute; right: 2%; top: 0; width: var(--pw); aspect-ratio: 9 / 16; padding: 7px; border: 0; border-radius: 38px; background: #1f1b18; box-shadow: 0 30px 60px rgba(60,40,25,.25), 0 0 0 1px rgba(0,0,0,.05); cursor: pointer; animation: rise 1.1s .15s cubic-bezier(.2,.8,.2,1) both; }
.ls-screen { position: relative; display: block; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: #1c1713; }
.ls-sl { position: absolute; inset: 0; opacity: 0; }
.ls-sl img.bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(18px) brightness(.7); }
.ls-sl img.bg.tease { filter: blur(22px) brightness(.55) saturate(1.2); }
.ls-sl img.fg { position: absolute; left: 0; right: 0; top: 18%; width: 100%; height: 52%; object-fit: contain; }
.ls-sl img.fg.cover { top: 0; height: 100%; object-fit: cover; }
.ls-dim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 20%, transparent 58%, rgba(0,0,0,.6)); }
.ls-bars { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 3; display: flex; gap: 3px; }
.ls-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.ls-bars b { display: block; height: 100%; width: 0; background: #fff; }
.ls-who { position: absolute; left: 12px; top: 22px; z-index: 3; display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 700; color: #fff; }
.ls-who i { width: 16px; height: 16px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-style: normal; font-size: 9px; }
.ls-bdg { position: absolute; left: 12px; top: 46px; width: 40px; height: 40px; border-radius: 12px; background: var(--c); color: #fff; display: grid; place-items: center; align-content: center; transform: rotate(-6deg); box-shadow: 0 5px 14px rgba(0,0,0,.25); }
.ls-bdg b { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; font-size: 20px; line-height: 1; }
.ls-bdg small { font-family: "Dancing Script", cursive; font-size: 10px; line-height: 1; }
.ls-foot { position: absolute; left: 30%; right: 10px; bottom: 26px; text-align: left; }
.ls-mk { display: inline; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; font-size: 15px; color: #fff; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 80%, transparent) 60%); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.ls-bub { display: block; width: fit-content; max-width: 100%; margin-top: 8px; background: #fff; color: #2b2522; font-size: 10.5px; font-weight: 500; line-height: 1.6; padding: 6px 10px; border-radius: 12px 12px 12px 3px; }
.ls-tease { position: absolute; left: 0; right: 0; top: 38%; display: grid; justify-items: center; gap: 6px; }
.ls-bx { background: #fff; color: #2b2522; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; font-size: 17px; padding: 4px 12px; border-radius: 8px; }
.ls-bx.sm { font-size: 11px; padding: 3px 9px; }
.ls-play { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-size: 11.5px; font-weight: 700; box-shadow: 0 6px 16px rgba(60,40,25,.12); }
.ls-card { position: absolute; left: 0; bottom: 0; width: min(40%, 200px); z-index: 2; display: grid; gap: 6px; padding: 12px 12px 14px; border: 0; border-radius: 18px; background: var(--card); text-align: left; box-shadow: 0 18px 40px rgba(60,40,25,.16); cursor: pointer; animation: rise 1.1s .45s cubic-bezier(.2,.8,.2,1) both; }
.ls-k { font-family: "Dancing Script", cursive; font-weight: 700; font-size: 19px; color: var(--accent); line-height: 1; margin-bottom: 2px; }
.ls-t { font-family: var(--serif); font-weight: 700; font-size: 12px; line-height: 1.4; color: var(--ink); margin-bottom: 4px; }
/* スマホの見本の上に、リストのテーマ（ストーリーの場面のときだけ見えるよう、場面の下の文字と重ならない位置） */
.ls-ttl { position: absolute; left: 12px; right: 12px; top: 40px; z-index: 3; text-align: right; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: 9.5px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.ls-row { display: grid; grid-template-columns: 22px 1fr 1fr; gap: 5px; align-items: center; }
.ls-row b { height: 100%; min-height: 26px; border-radius: 7px; color: #fff; display: grid; place-items: center; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; font-size: 12px; }
.ls-row img, .ls-row i { width: 100%; aspect-ratio: 1; border-radius: 7px; object-fit: cover; display: block; }
.ls-row i { border: 1.2px dashed var(--line); display: grid; place-items: center; font-style: normal; font-size: 12px; color: var(--dim); }
.ls-row:nth-of-type(2) i { color: var(--accent); border-color: var(--accent); animation: softblink 1.8s ease-in-out infinite; }
@keyframes softblink { 50% { opacity: .35; } }
@media (min-width: 700px) { .hero-ls { max-width: 480px; } .ls-card { width: 180px; left: 0; } .ls-arrow { left: 10%; top: 26%; width: 22%; } .ls-arrow-t { left: 0; top: 16%; } }
.ls-arrow { position: absolute; left: 8%; top: 22%; width: 26%; overflow: visible; fill: none; stroke: var(--sub); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawline 1.4s 1s ease-out forwards; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.ls-arrow-t { position: absolute; left: 2%; top: 14%; font-family: "Dancing Script", cursive; font-weight: 700; font-size: clamp(18px, 5.4vw, 24px); color: var(--ink); transform: rotate(-8deg); animation: fade 1s 1.4s both; }
@keyframes lss0 { 0%, 23% { opacity: 1; } 25%, 98% { opacity: 0; } 100% { opacity: 1; } }
.ls-screen > .ls-sl:nth-of-type(1) { animation: lss0 10s linear infinite; }
@keyframes lsb0 { 0% { width: 0; } 25%, 99.9% { width: 100%; } 100% { width: 0; } }
.ls-bars i:nth-child(1) b { animation: lsb0 10s linear infinite; }
@keyframes lss1 { 0%, 24.99% { opacity: 0; } 27%, 48% { opacity: 1; } 50%, 100% { opacity: 0; } }
.ls-screen > .ls-sl:nth-of-type(2) { animation: lss1 10s linear infinite; }
@keyframes lsb1 { 0%, 25% { width: 0; } 50%, 99.9% { width: 100%; } 100% { width: 0; } }
.ls-bars i:nth-child(2) b { animation: lsb1 10s linear infinite; }
@keyframes lss2 { 0%, 49.99% { opacity: 0; } 52%, 73% { opacity: 1; } 75%, 100% { opacity: 0; } }
.ls-screen > .ls-sl:nth-of-type(3) { animation: lss2 10s linear infinite; }
@keyframes lsb2 { 0%, 50% { width: 0; } 75%, 99.9% { width: 100%; } 100% { width: 0; } }
.ls-bars i:nth-child(3) b { animation: lsb2 10s linear infinite; }
@keyframes lss3 { 0%, 74.99% { opacity: 0; } 77%, 98% { opacity: 1; } 98%, 100% { opacity: 1; } }
.ls-screen > .ls-sl:nth-of-type(4) { animation: lss3 10s linear infinite; }
@keyframes lsb3 { 0%, 75% { width: 0; } 100%, 99.9% { width: 100%; } 100% { width: 0; } }
.ls-bars i:nth-child(4) b { animation: lsb3 10s linear infinite; }
@media (prefers-reduced-motion: reduce) { .ls-screen > .ls-sl, .ls-bars b { animation: none !important; } .ls-screen > .ls-sl:nth-of-type(1) { opacity: 1; } }
/* 先頭の絵：聞く（あなたならどう並べる？）とくらべる（一致率） */
.ls-ask { position: absolute; left: 0; right: 0; top: 22%; display: grid; justify-items: center; gap: 6px; padding: 0 14px; }
.ls-ask .ls-bx { text-align: center; line-height: 1.35; font-size: 15px; }
.ls-arow { display: grid; grid-template-columns: 18px 1fr 1fr; gap: 4px; width: 66%; margin-top: 2px; }
.ls-arow b { border-radius: 5px; color: #fff; display: grid; place-items: center; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; font-size: 10px; }
.ls-arow img, .ls-arow i { width: 100%; aspect-ratio: 1; border-radius: 6px; object-fit: cover; display: block; }
.ls-arow i { border: 1.2px dashed rgba(255,255,255,.6); }
.ls-arow:first-of-type i { border-color: #fff; animation: softblink 1.8s ease-in-out infinite; }
.ls-res { background: radial-gradient(90% 60% at 50% 35%, #4a3d35, #1c1713); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 16px; }
.ls-rk { font-size: 10px; color: rgba(255,255,255,.75); letter-spacing: .06em; }
.ls-rn { font-family: var(--num); font-size: 50px; line-height: 1; color: #f0c3ae; font-weight: 400; } .ls-rn small { font-size: 20px; }
.ls-rt { font-family: var(--serif); font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ls-rb { display: grid; grid-template-columns: 24px 1fr; gap: 6px; align-items: center; width: 100%; }
.ls-rb img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.ls-rb > span { display: flex; height: 9px; border-radius: 99px; overflow: hidden; }
.ls-rb i { display: block; height: 100%; }
.ls-rf { margin-top: 8px; font-size: 9.5px; color: rgba(255,255,255,.7); }
/* 先頭の絵：会話の吹き出し（スマホの左横に、時間差で） */
.ls-chat { position: absolute; left: 0; top: 37.6%; z-index: 3; display: grid; gap: 8px; width: min(46%, 190px); }
.ls-cb { display: flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; white-space: nowrap; padding: 7px 11px 7px 7px; border-radius: 14px 14px 14px 4px; background: var(--card); box-shadow: 0 8px 20px rgba(60,40,25,.12); font-size: 11px; line-height: 1.45; color: var(--ink); animation: chatin .6s 1.8s cubic-bezier(.2,1.4,.4,1) both, float 6s 2.4s ease-in-out infinite; }
.ls-cb.r { margin-left: 8px; border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--accent) 14%, var(--card)); animation-delay: 2.8s, 3.4s; }
.ls-cb i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--paper2); display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; color: var(--sub); }
@keyframes chatin { from { opacity: 0; transform: translateY(10px) scale(.9); } }
@media (min-width: 700px) { .ls-chat { width: 190px; top: 34%; } }
@media (prefers-reduced-motion: reduce) { .ls-cb { animation: none !important; } }
@keyframes float { 50% { transform: translateY(-8px); } }
/* 写真3枚はひとかたまりで置く（画面が広くても左右に離れないよう、幅に上限） */
.hero-photos { position: relative; height: 350px; width: min(100%, 560px); margin: 6px 0 22px -4px; }
.pola { position: absolute; background: #fff; padding: 9px 9px 34px; box-shadow: 0 12px 30px rgba(80,60,40,.18); animation: floaty 7s ease-in-out infinite; }
.pola .ph { overflow: hidden; background: var(--paper2); }
.pola .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pola .cap { position: absolute; left: 10px; right: 8px; bottom: 7px; font-family: var(--hand); font-size: 14px; color: var(--sub); white-space: nowrap; overflow: hidden; }
.pola.p1 { left: 2%; top: 18px; width: min(58%, 340px); transform: rotate(-4deg); }
.pola.p1 .ph { aspect-ratio: 1; }
.pola.p2 { right: 2%; top: 0; width: min(42%, 250px); transform: rotate(5deg); animation-delay: -2s; }
.pola.p2 .ph { aspect-ratio: 4/5; }
.pola.p3 { right: 8%; top: 178px; width: min(40%, 240px); transform: rotate(-2deg); animation-delay: -4s; z-index: 2; }
.pola.p3 .ph { aspect-ratio: 5/4; }
.tape { position: absolute; width: 64px; height: 20px; background: rgba(226,212,190,.75); top: -9px; left: 50%; transform: translateX(-50%) rotate(-3deg); }
@keyframes floaty { 50% { translate: 0 -6px; } }
.doodle { position: absolute; font-family: var(--hand); color: var(--accent); font-size: 15px; z-index: 3; }
.hero h1 { font-size: clamp(21px, 6.2vw, 38px); line-height: 1.55; margin-bottom: 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(217,170,160,.45) 62%); }
.hero p.lead { color: var(--sub); line-height: 1.95; font-size: 14px; margin: 0 0 22px; word-break: auto-phrase; }
/* 見出しは、意味のかたまりの途中で折り返さない。スマホでは「あなたの」のあとで改行する */
.hero h1 .nb, .hero .lead .nb { white-space: nowrap; } /* 文の区切りでだけ折り返す */
.hero h1 br.sp { display: inline; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-row .btn.primary { padding: 15px 30px; font-size: 15px; }
.cta-row span { font-size: 12px; color: var(--sub); }
/* つづきからの帯 */
.resume { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.resume .rs-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 13.5px; }
.resume .rs-main svg { flex: none; color: var(--accent); }
.resume .rs-k { flex: none; font-size: 11.5px; color: var(--sub); }
.resume .rs-t { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume .rs-main i { flex: none; font-style: normal; color: var(--sub); }
.resume .rs-more { flex: none; font-size: 11.5px; color: var(--sub); text-decoration: none; padding-left: 10px; border-left: 1px solid var(--line); }
.tplchips { margin: 12px 0 2px; }
.use[hidden] { display: none !important; }
/* トップ：ボタンの下のアコーディオン（4つの形・つかいかた） */
.howto { margin-top: 18px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; padding: 15px 2px; font-family: var(--serif); font-weight: 600; font-size: 15px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary { white-space: nowrap; }
.acc summary small { font-family: var(--en); font-style: italic; font-weight: 400; font-size: 13px; color: var(--sub); }
.acc summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--sub); border-bottom: 1.5px solid var(--sub); transform: rotate(45deg) translateY(-3px); transition: transform .25s; align-self: center; }
.acc[open] summary::after { transform: rotate(-135deg) translate(-2px, 0); }
.acc > :not(summary) { margin: 2px 0 20px; animation: fade .35s both; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 320px); gap: 14px; overflow-x: auto; padding: 4px 16px 18px; margin: 0 -16px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.hscroll::after { content: ""; width: 2px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.hscroll.uses { grid-auto-columns: min(46%, 200px); }
.use { text-align: left; border: 0; background: none; padding: 0; }
.use .ph { aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; background: var(--paper2); position: relative; }
.use .fmt { display: inline-block; margin-top: 10px; font-size: 10.5px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); padding: 2px 8px; border-radius: 99px; }
.use b { display: block; font-family: var(--serif); font-size: 15px; margin: 6px 0 2px; font-weight: 600; }
.use span.d { font-family: var(--hand); font-size: 13px; color: var(--sub); }
/* 横にめくる一覧：マウス操作の環境では左右の矢印を出す */
.hs-wrap { position: relative; }
.hs-btn { display: none; position: absolute; top: 34%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,253,249,.96); box-shadow: 0 6px 16px rgba(60,40,20,.15); font-size: 15px; padding: 0; }
.hs-btn.prev { left: -10px; } .hs-btn.next { right: -10px; }
@media (hover: hover) and (pointer: fine) {
  .hs-btn { display: grid; place-items: center; }
  .hscroll, .gallery, .photorow { cursor: grab; }
}
.hs-wrap.g .hs-btn { top: 42%; } .hs-wrap.g .hs-btn.prev { left: 6px; } .hs-wrap.g .hs-btn.next { right: 6px; }
/* マウスでドラッグしている間は、スナップを止めて文字の選択もしない */
.dragging-x { scroll-snap-type: none !important; cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.dragging-x * { pointer-events: none; }
/* デザインのえらびかた */
.themes { display: flex; gap: 8px; overflow-x: auto; align-items: center; scrollbar-width: none; padding: 2px 0; }
.themes::-webkit-scrollbar { display: none; }
.themes .lab { font-size: 12px; color: var(--sub); white-space: nowrap; }
.thm { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 5px 12px 5px 6px; font-size: 12px; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.thm.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.thm i { width: 22px; height: 22px; border-radius: 50%; position: relative; overflow: hidden; border: 1px solid rgba(0,0,0,.08); }
.thm i b { position: absolute; right: 0; top: 0; bottom: 0; width: 50%; }
/* プレビュー */
.pvbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); box-shadow: 0 200px 0 0 var(--paper); border-top: 1px solid var(--line); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
.pvbar .in { max-width: 728px; margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.pvbar .in span { flex: 1; font-size: 12px; color: var(--sub); line-height: 1.5; }
/* 編集画面：説明・設定・ツール */
.desc-input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); font-size: 16px; line-height: 1.7; resize: none; overflow: hidden; min-height: 3.6em; display: block; }
.desc-input:focus { outline: none; border-color: var(--accent); }
.keyset { border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--accent) 7%, var(--card)); padding: 2px 12px; margin-bottom: 10px; }
.settings { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 12px; }
.settings summary { cursor: pointer; padding: 12px 0; font-size: 13.5px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
.settings summary::-webkit-details-marker { display: none; }
.settings summary::after { content: "＋"; margin-left: auto; color: var(--sub); font-weight: 400; }
.settings[open] summary::after { content: "−"; }
.settings summary { white-space: nowrap; }
.settings summary small { font-weight: 400; color: var(--sub); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.settings > :not(summary) { margin-bottom: 12px; }
/* 設定の一覧 */
.setgroup { margin: 4px 0 14px; }
.setgroup .sg-t { font-size: 11px; letter-spacing: .12em; color: var(--sub); margin: 0 0 6px 2px; }
.setgroup > .setrow { border-top: 1px solid var(--line); }
.setgroup > .setrow:first-of-type { border-top: 0; }
.setgroup { background: var(--paper); border-radius: 14px; padding: 2px 12px; }
.setgroup .sg-t { padding-top: 8px; }
.setrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 8px 0; border: 0; background: none; text-align: left; color: var(--ink); font-size: 14px; cursor: pointer; }
.setrow .sr-l { flex: 1; min-width: 0; font-weight: 600; }
.setrow .sr-l small { display: block; font-weight: 400; font-size: 11.5px; color: var(--sub); line-height: 1.6; margin-top: 2px; }
.setrow .sr-l .btn { margin-top: 6px; }
.setrow .sr-v { display: inline-flex; align-items: center; gap: 8px; color: var(--sub); font-size: 13px; max-width: 55%; }
.setrow .sr-v > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setrow .sr-go { width: 7px; height: 7px; border-right: 1.5px solid var(--sub); border-bottom: 1.5px solid var(--sub); transform: rotate(-45deg); flex: none; margin-right: 4px; }
.sr-cv { position: relative; width: 22px; height: 34px; border-radius: 4px; overflow: hidden; background: var(--paper2); flex: none; }
.sr-sw { position: relative; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(0,0,0,.1); flex: none; }
.sr-sw b { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; }
/* スイッチ */
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .45; }
/* 選ぶ画面 */
.sheet.picksheet { max-height: 86vh; overflow: hidden; display: flex; flex-direction: column; }
.sheet.picksheet > * { flex: none; }
.sheet.picksheet > .close { align-self: flex-end; margin-bottom: -34px; position: relative; z-index: 1; }
.sheet.picksheet .pickbody { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding-bottom: 8px; }
.pickgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pickgrid .pk { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 8px 8px 10px; text-align: left; }
.pickgrid .pk.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.pickgrid .pk-sw { display: flex; align-items: flex-end; gap: 6px; height: 74px; border-radius: 10px; padding: 10px; border: 1px solid rgba(0,0,0,.06); }
.pickgrid .pk-sw i { flex: 1; border-radius: 6px; height: 60%; } .pickgrid .pk-sw i:nth-child(2) { height: 80%; } .pickgrid .pk-sw i:nth-child(3) { height: 40%; }
.pickgrid b { display: block; font-size: 13.5px; margin-top: 8px; }
.pickgrid em, .picklist em { position: absolute; right: 10px; top: 10px; font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; }
.picklist { display: grid; gap: 8px; }
.picklist .pm { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 4px 8px 4px 4px; }
.picklist .pm.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.picklist .pm-main { flex: 1; min-width: 0; border: 0; background: none; text-align: left; padding: 10px 10px; }
.picklist .pm-main b { display: block; font-size: 14px; } .picklist .pm-main small { font-size: 11.5px; color: var(--sub); }
.picklist .pm-play { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 12px; margin-right: 30px; }
.picklist .pm-play.on { background: var(--ink); color: #fff; }
.picklist .pm em { top: 50%; transform: translateY(-50%); }
.ed-tools { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ed-tools .hint { flex: 1; margin: 0; }
/* まだ置いていないもの：選んだものを大きく見せ、置き場所のボタンを並べる */
.tile.sel { outline: 3px solid var(--ink); outline-offset: 2px; }
/* まだ置いていないものを消す × */
.tile .del { position: absolute; right: 2px; top: 2px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(40,30,22,.62); color: #fff; font-size: 14px; line-height: 1; display: grid; place-items: center; padding: 0; cursor: pointer; z-index: 2; }
.tray .tile .cm { right: auto; left: 22px; }
.confirm-acts { display: grid; gap: 10px; margin-top: 18px; }
.pc { flex: 1 0 auto; min-width: 52px; height: 44px; border: 0; border-radius: 12px; background: var(--c, var(--ink)); color: #fff; font-family: var(--num); font-weight: 600; font-size: 18px; padding: 0 12px; }
.pc.wide { font-family: inherit; font-size: 13.5px; font-weight: 700; }
.pc:active { transform: scale(.95); }
/* トップの見本カード：文の長さで高さがずれないよう、行数をそろえる */
.use b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.1em; line-height: 1.55; }
.use span.d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.2em; line-height: 1.6; }
.lcard h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.1em; }
.lcard .meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 人気ランキング */
.ranking { display: grid; gap: 10px; margin-top: 12px; }
.rrank { display: grid; grid-template-columns: 30px 56px 1fr auto; gap: 12px; align-items: center; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px 10px 10px; }
.rrank .no { font-family: var(--num); font-style: normal; font-size: 28px; color: var(--accent); text-align: center; line-height: 1; }
.rrank:nth-child(n+4) .no { color: var(--dim); }
.rrank > img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--paper2); }
.rrank .tt { min-width: 0; }
.rrank .tt b { font-family: var(--serif); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rrank .tt span { font-size: 11px; color: var(--sub); }
.rrank .n { font-family: var(--num); font-style: normal; font-size: 24px; text-align: right; line-height: 1; }
.rrank .n small { display: block; font-family: "Zen Kaku Gothic New", sans-serif; font-style: normal; font-size: 10px; color: var(--sub); margin-top: 3px; }
/* いちばん上を隠す（公開ページではぼかして、タップで見せる） */
.veilwrap { position: relative; }
.veilwrap > :not(.veilbtn) { transition: filter 1.4s ease; }
.veilwrap.on > :not(.veilbtn) { filter: blur(22px) saturate(.6); pointer-events: none; user-select: none; }
.veilbtn { display: none; }
.veilwrap.on .veilbtn { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; background: var(--ink); color: var(--paper); border: 0; border-radius: 99px; padding: 14px 22px; font-family: var(--serif); font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25); white-space: nowrap; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translate(-50%, -50%) scale(1.04); } }
.hidetg { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; }
.hidetg input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.hidetg b { display: block; font-size: 13.5px; font-weight: 700; }
.hidetg small { font-size: 12px; color: var(--sub); }
/* 音楽 */
.musicbtn { position: absolute; right: 16px; top: 62px; z-index: 2; border: 0; background: rgba(255,253,249,.9); border-radius: 99px; padding: 8px 14px 8px 12px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; width: 14px; }
.eq b { width: 3px; height: 4px; background: var(--ink); border-radius: 1px; }
.musicbtn.on .eq b { animation: eq .9s ease-in-out infinite; }
.musicbtn.on .eq b:nth-child(2) { animation-delay: .2s; } .musicbtn.on .eq b:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 50% { height: 14px; } }
.mcredit { text-align: center; font-size: 10.5px; color: var(--dim); margin: 6px 0 0; }
.themes small { margin-left: 4px; font-size: 10.5px; }
footer.site a { color: var(--dim); }
.pvtag { position: absolute; left: 16px; top: 16px; z-index: 2; background: var(--ink); color: #fff; font-size: 11.5px; padding: 5px 12px; border-radius: 99px; }
/* 4つの形 */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fmtc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: left; }
.fmtc .en { display: block; color: var(--accent); font-size: 13px; }
.fmtc b { font-family: var(--serif); font-size: 15.5px; display: block; margin: 2px 0 4px; }
/* トップの右下に常に出す「＋ つくる」 */
.mkfab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 25; display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .04em; box-shadow: 0 10px 28px rgba(59,53,49,.32); }
.mkfab b { font-size: 30px; line-height: 1; font-weight: 400; }
.mkfab:active { transform: scale(.96); }
.fmtc span.d { font-size: 12px; color: var(--sub); line-height: 1.65; display: block; }
.mock { height: 62px; margin-bottom: 12px; display: grid; gap: 4px; align-content: start; }
.mock .mr { display: flex; gap: 4px; align-items: center; }
.mock i { display: block; width: 15px; height: 15px; border-radius: 4px; background: var(--paper2); }
.mock .no { font-family: var(--num); font-style: normal; font-size: 14px; width: 14px; color: var(--accent); line-height: 15px; }
.mock .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--paper2); }
.mock .bar b { display: block; height: 100%; border-radius: 6px; background: var(--rose); }
.mock.grid3 { grid-template-columns: repeat(4, 15px); }
.steps { display: grid; gap: 10px; counter-reset: st; }
.steps div { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; }
.steps div::before { counter-increment: st; content: "0" counter(st); font-family: var(--num); font-style: normal; font-size: 28px; color: var(--accent); }

/* 紹介カード */
.lcard { display: block; text-decoration: none; }
.lcard .cover { position: relative; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: var(--paper2); display: grid; gap: 3px; }
.lcard .cover.c3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.lcard .cover.c3 > :first-child { grid-row: 1 / 3; }
.lcard .cover.c2 { grid-template-rows: 3fr 2fr; }
.lcard .cover.prod { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; background: var(--paper2); padding: 3px; }
.lcard .cover .cv { overflow: hidden; position: relative; }
.lcard .cover .cv img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kb 12s ease-in-out infinite alternate; }
.lcard .cover.prod .cv img { animation: none; }
.lcard { position: relative; }
.lcard.rising::after { content: "急上昇"; position: absolute; left: -4px; top: -8px; z-index: 3; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 3px 9px; border-radius: 99px; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.followbtn { margin: 6px 0 4px; min-width: 120px; }
.fwho { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding-bottom: 4px; }
.fwho a { display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--ink); flex: none; width: 58px; }
.fwho .avatar { width: 44px; height: 44px; font-size: 18px; }
.fwho small { font-size: 10.5px; color: var(--sub); max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fitem { position: relative; }
.fitem .fwhen { display: block; font-size: 11px; color: var(--sub); margin-bottom: 4px; }
.fitem .fnew { position: absolute; right: 6px; top: 22px; z-index: 4; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.lcard .ddel { position: absolute; right: 8px; top: 8px; z-index: 3; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,253,249,.94); color: var(--ink); font-size: 16px; line-height: 1; display: grid; place-items: center; padding: 0; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.lcard .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(40,30,22,.55)); pointer-events: none; }
.lcard .cover.pcv::after { display: none; } /* 商品の画像の表紙には、暗いグラデーションを重ねない */
.lcard .sticker { position: absolute; left: 12px; bottom: 44px; z-index: 2; background: rgba(255,253,249,.94); border-radius: 10px; padding: 5px 10px; font-family: var(--hand); font-size: 13.5px; transform: rotate(-3deg); box-shadow: 0 4px 12px rgba(0,0,0,.12); max-width: 85%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard .sticker i { font-style: normal; font-family: var(--en); font-weight: 600; font-size: 16px; color: var(--accent); margin-right: 4px; }
.lcard .ov { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: #fff; font-size: 11.5px; display: flex; gap: 8px; align-items: center; }
.lcard h3 { font-family: var(--serif); font-weight: 600; font-size: 15.5px; line-height: 1.55; margin: 10px 2px 4px; }
.lcard .meta { font-size: 12px; color: var(--sub); display: flex; gap: 8px; align-items: center; margin: 0 2px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.badge { display: inline-block; font-size: 11px; border-radius: 99px; padding: 3px 9px; background: var(--paper2); color: var(--sub); }

/* ---- 編集 ---- */
.ed-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.ed-head > *, .settings > * { min-width: 0; }
.title-input { width: 100%; font-family: var(--serif); font-weight: 600; font-size: 22px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 6px 2px; border-radius: 0; }
.title-input:focus { outline: none; border-bottom-color: var(--accent); }
.title-input::placeholder { color: var(--dim); }
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--paper2); border-radius: 99px; padding: 3px; }
.seg button { flex: none; white-space: nowrap; border: 0; background: transparent; padding: 7px 13px; border-radius: 99px; font-size: 13px; color: var(--sub); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(60,40,20,.12); }
.photorow { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.photorow::-webkit-scrollbar { display: none; }
.photorow .lab { font-size: 12px; color: var(--sub); white-space: nowrap; }
.pth { position: relative; flex: none; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; background: var(--paper2); }
.pth img { width: 100%; height: 100%; object-fit: cover; }
.pth button { position: absolute; right: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 11px; line-height: 1; padding: 0; }
.addph { flex: none; width: 60px; height: 60px; border-radius: 10px; border: 1px dashed var(--dim); background: transparent; color: var(--sub); font-size: 11px; line-height: 1.3; }
.hint { font-size: 12.5px; color: var(--sub); margin: 0 0 12px; line-height: 1.7; }
.board { display: grid; gap: 8px; }
.tier .zone { padding-right: 44px; }
.tier .zadd { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; border: 1px dashed var(--sub); background: var(--card); color: var(--sub); font-size: 17px; line-height: 1; display: grid; place-items: center; padding: 0; }
.tier { display: grid; grid-template-columns: 62px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 16px; min-height: 92px; position: relative; overflow: hidden; }
.tlabel { border: 0; display: grid; place-items: center; font-family: var(--num); font-style: normal; font-weight: 600; font-size: 34px; color: #fff; padding: 4px; word-break: break-all; line-height: 1.1; }
.tlabel.long { font-family: var(--serif); font-style: normal; font-size: 14px; }
/* ランキングの順位 */
.tier.rankrow .tlabel { font-size: 20px; }
.tier .rkdel { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--paper2); color: var(--sub); font-size: 15px; line-height: 1; display: grid; place-items: center; padding: 0; }
.zone { display: flex; flex-wrap: wrap; gap: 7px; padding: 9px; align-content: flex-start; min-height: 90px; }
.zone:empty::after { content: attr(data-empty); color: var(--dim); font-size: 12px; align-self: center; padding-left: 4px; font-family: var(--hand); }
.tile { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; position: relative; background: var(--paper2); flex: none; touch-action: manipulation; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; cursor: grab; box-shadow: 0 3px 10px rgba(80,60,40,.14); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tile .tname { display: none; }
.tile .cm, .tile .cam { position: absolute; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,253,249,.92); font-size: 9px; display: grid; place-items: center; font-style: normal; }
.tile .cm { right: 4px; } .tile .cam { left: 4px; }
.tile.placeholder { opacity: .2; }
.tile.ghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; box-shadow: 0 16px 34px rgba(60,40,20,.35); }
.ranklist { display: grid; gap: 8px; padding: 0; margin: 0; counter-reset: rk; min-height: 90px; }
.ranklist .tile { width: auto; height: 78px; display: flex; align-items: center; gap: 12px; padding: 7px 14px 7px 7px; background: var(--card); border: 1px solid var(--line); overflow: visible; box-shadow: none; }
.ranklist .tile img { width: 62px; height: 62px; border-radius: 10px; flex: none; }
.ranklist .tile .tname { display: block; font-family: var(--serif); font-size: 13.5px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ranklist.numbered .tile::before { counter-increment: rk; content: counter(rk); font-family: var(--num); font-style: normal; font-size: 30px; color: var(--accent); width: 30px; text-align: center; flex: none; order: -1; }
.ranklist .tile .cm { right: 8px; } .ranklist .tile .cam { left: 50px; }
.ranklist:empty { border: 1px dashed var(--line); border-radius: 16px; }
.ranklist .slot { height: 78px; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 7px; border: 1px dashed var(--line); border-radius: 12px; }
.ranklist.numbered .slot::before { counter-increment: rk; content: counter(rk); font-family: var(--num); font-size: 30px; color: var(--dim); width: 30px; text-align: center; flex: none; }
.ranklist .slot::after { content: "ここに置く"; font-size: 12px; color: var(--dim); font-family: var(--hand); }
.addtier { margin-top: 10px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); box-shadow: 0 200px 0 0 var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.dock-in { max-width: 760px; margin: 0 auto; padding: 10px 16px 12px; }
.tray-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sub); margin-bottom: 8px; transition: margin .3s; }
.tray-head .tgl { border: 0; background: none; padding: 6px 0; color: inherit; font: inherit; display: inline-flex; align-items: center; gap: 8px; }
.tray-head .chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s; }
.dock.closed .tray-head .chev { transform: rotate(-135deg) translate(-2px, 0); }
.traywrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease; }
.traywrap > div { min-height: 0; overflow: hidden; }
.dock.closed .traywrap { grid-template-rows: 0fr; }
.dock.closed .tray-head { margin-bottom: 0; }
.tray-head .sp { flex: 1; }
.tray::-webkit-scrollbar { display: none; }
.dock { touch-action: pan-x; overscroll-behavior: contain; }
/* スマホのURLバーの裏（画面のいちばん下）にも帯の色を伸ばして、下のページが透けないように。
   Safari は backdrop-filter（すりガラス）を付けた要素の外側を切り取るので、帯には付けない */
.dock::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 200px; background: var(--paper); }
.tray { scrollbar-width: none; overscroll-behavior-x: contain; flex-wrap: nowrap; overflow-x: auto; min-height: 88px; padding: 6px; background: var(--paper2); border-radius: 14px; }
.dock .actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.dock .actions .saved { font-size: 11.5px; color: var(--sub); flex: 1; }

/* ---- 公開ページ ---- */
.lhero { position: relative; margin: -18px calc(50% - 50vw) 0; width: 100vw; height: min(82vh, 680px); overflow: hidden; background: var(--paper2); }
/* 表紙：表紙の写真（なければ商品の画像）を、誌面のようにタイル状に並べる */
/* ---- 表紙（パターン） ---- */
/* ---- 表紙（パターン） ----
   どのパターンも1枚目（リストの先頭＝S・1位）がいちばん大きく、手前に来る。写真は角丸で、紙の上に置く */
.cov { --pp: color-mix(in srgb, var(--paper2) 55%, #eadfd0); position: absolute; inset: 0; overflow: hidden; background: var(--pp); }
.cov i { position: absolute; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 10px 26px rgba(60,40,25,.16); }
.cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cov i.pi img { object-fit: contain; padding: 9%; box-sizing: border-box; }
.cov i.hz, .mos i.hz { overflow: hidden !important; }
.cov i.hz img, .mos i.hz img { filter: blur(16px) saturate(1.2); transform: scale(1.25); }
.cov.mini i { border-radius: 4px; box-shadow: 0 2px 5px rgba(60,40,25,.15); }
/* 1枚：写真は全面。商品の画像は、ぼかした同じ画像の上に白いカード */
.cov.p-single i { inset: 0; border-radius: 0; box-shadow: none; }
.cov.p-single .cbk { position: absolute; inset: -12%; } .cov.p-single .cbk img { filter: blur(26px) saturate(1.1) brightness(.92); }
.cov.p-single i.pi { inset: auto; left: 50%; top: 50%; width: 64%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 18px; box-shadow: 0 18px 44px rgba(40,28,20,.3); }
.cov.p-single.mini i.pi { border-radius: 4px; }
/* タイル：どれも1枚目（S・1位）がいちばん大きい */
.cov.p-grid, .cov.p-side, .cov.p-even, .cov.p-stack { display: grid; gap: 8px; padding: 5%; }
.cov.mini.p-grid, .cov.mini.p-side, .cov.mini.p-even, .cov.mini.p-stack { gap: 2px; padding: 4%; }
.cov.p-grid i, .cov.p-side i, .cov.p-even i, .cov.p-stack i { position: relative; }
.cov.p-grid i.pi img, .cov.p-side i.pi img, .cov.p-even i.pi img, .cov.p-stack i.pi img { object-fit: cover; padding: 0; } /* マスいっぱいに */
/* 大きく1枚＋タイル：1枚目を上に横2マス、残りを下に */
.cov.p-grid { grid-template-columns: 1fr 1fr; }
.cov.p-grid .t1 { grid-column: 1 / 3; }
.cov.p-grid.n2 { grid-template-rows: 1.5fr 1fr; } .cov.p-grid.n2 .t2 { grid-column: 1 / 3; }
.cov.p-grid.n3 { grid-template-rows: 1.5fr 1fr; }
.cov.p-grid.n4 { grid-template-rows: 1.5fr 1fr 1fr; } .cov.p-grid.n4 .t4 { grid-column: 1 / 3; }
.cov.p-grid.n5 { grid-template-rows: 1.5fr 1fr 1fr; }
/* 左に大きく：1枚目を左に縦長、残りを右に縦に積む */
.cov.p-side { grid-template-columns: 1.5fr 1fr; grid-template-rows: repeat(calc(var(--n) - 1), 1fr); }
.cov.p-side.n2 { grid-template-rows: 1fr; } .cov.p-side.n3 { grid-template-rows: 1fr 1fr; } .cov.p-side.n4 { grid-template-rows: 1fr 1fr 1fr; }
.cov.p-side .t1 { grid-row: 1 / -1; }
/* 同じ大きさ：2列のマス（奇数のときは1枚目を横2マスに） */
.cov.p-even { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
.cov.p-even.odd .t1 { grid-column: 1 / 3; }
/* 縦に重ねる：横長の帯を縦に。1枚目がいちばん高い */
.cov.p-stack { grid-template-columns: 1fr; }
.cov.p-stack.n2 { grid-template-rows: 1.6fr 1fr; } .cov.p-stack.n3 { grid-template-rows: 1.6fr 1fr 1fr; } .cov.p-stack.n4 { grid-template-rows: 1.6fr 1fr 1fr 1fr; }
/* PCの共有ページは横に広いので、まん中に寄せる（両脇は紙の色） */
@media (min-width: 700px) {
  .cov.page.p-grid, .cov.page.p-side, .cov.page.p-even, .cov.page.p-stack { left: 50%; right: auto; width: min(100%, 720px); transform: translateX(-50%); }
  .lhero .cov.page { box-shadow: 0 0 0 100vmax var(--pp); clip-path: inset(0 -100vmax); }
}
/* ---- みんなの答え ---- */
.protobar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 8px 10px; border: 1px dashed var(--accent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--card)); font-size: 12px; color: var(--sub); }
.protobar > span:first-child { flex: 1; min-width: 160px; }
.protobar b, .protovisit b { display: inline-block; font-size: 10.5px; color: #fff; background: var(--accent); border-radius: 6px; padding: 1px 6px; margin-right: 6px; }
.protobar .pb-acts { display: flex; gap: 6px; }
.protobar button { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 5px 11px; font-size: 12px; color: var(--ink); }
.protovisit { display: block; margin: 10px auto 0; border: 1px dashed var(--accent); background: var(--card); border-radius: 99px; padding: 8px 14px; font-size: 12.5px; color: var(--ink); }
.ansp .protovisit { margin: 0 0 14px; }
.pinfo { margin-top: 16px; display: grid; gap: 12px; } .pinfo img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: #fff; }
.vcol { display: flex; flex-direction: column; gap: 8px; } .vcol .vote { flex: 1; }
.vinfo { border: 0; background: none; font-size: 12px; color: var(--sub); text-decoration: underline; padding: 4px; }
/* 答えた直後の発表 */
.ointro { --rl: "Zen Kaku Gothic New", system-ui, sans-serif; --scr: "Dancing Script", cursive; position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: #1c1713; color: #fff; overflow: hidden; animation: fade .4s both; transition: opacity .5s; }
.ointro.out { opacity: 0; }
.oi-tiles { position: absolute; inset: -10%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; filter: blur(14px) brightness(.45) saturate(1.2); transform: scale(1.05); }
.oi-tiles i { overflow: hidden; } .oi-tiles img { width: 100%; height: 100%; object-fit: cover; animation: oiz 4s ease-out both; animation-delay: calc(var(--i) * .08s); }
@keyframes oiz { from { transform: scale(1.25); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.oi-in { position: relative; text-align: center; padding: 0 24px; }
.oi-k { font-family: var(--scr); font-weight: 700; font-size: 44px; transform: rotate(-4deg); margin: 0; animation: rlpop .6s .1s cubic-bezier(.2,1.6,.4,1) both; }
.oi-1 { font-family: var(--serif); font-size: 16px; letter-spacing: .1em; margin: 2px 0 26px; opacity: .85; animation: fade .5s .4s both; }
.oi-av { width: 64px; height: 64px; font-size: 26px; margin: 0 auto 12px; display: grid; place-items: center; animation: rlpop .6s 1.1s cubic-bezier(.2,1.6,.4,1) both; }
.oi-2 { font-family: var(--serif); font-size: 19px; margin: 0; animation: fade .6s 1.4s both; } .oi-2 b { font-size: 24px; }
.oi-3 { font-family: var(--rl); font-weight: 900; font-size: 30px; margin: 12px 0 0; animation: rlpop .6s 2.1s cubic-bezier(.2,1.6,.4,1) both; }
.askhead { margin: 6px 0 16px; }
.askhead h1 { margin: 6px 0 6px; }
.askdesc { font-family: var(--serif); font-size: 14px; line-height: 1.9; margin: 0 0 8px; color: var(--ink); }
.asknote { font-size: 12.5px; color: var(--sub); line-height: 1.8; margin: 0; padding: 10px 12px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); border-radius: 12px; }
.ansband { display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 20px auto 0; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; }
.ansband span { flex: 1; } .ansband b { display: block; font-family: var(--serif); font-size: 16px; } .ansband small { font-size: 12px; opacity: .8; } .ansband i { font-style: normal; }
.ansp h1 { margin: 6px 0 4px; }
.anm { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sub); margin: 0 0 14px; }
.atabs { margin-bottom: 16px; }
.ascore { text-align: center; padding: 22px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.ascore small { font-size: 12px; color: var(--sub); }
.ascore .big2 { display: block; font-family: var(--num); font-size: 64px; line-height: 1.1; color: var(--accent); }
.ascore .big2.nm { font-family: var(--serif); font-size: 30px; font-weight: 700; margin: 6px 0; }
.ascore .big2 i { font-size: 28px; font-style: normal; }
.ascore .albl { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 6px 0 0; }
.ascore .sub2 { font-size: 13px; color: var(--sub); margin: 6px 0 0; } .ascore .sub2 b { color: var(--ink); }
.dlines { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dlines li, .dlines1 { font-size: 13px; line-height: 1.8; background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.ah { font-size: 20px; margin: 30px 0 12px; } .ah small { font-size: 12px; color: var(--sub); margin-left: 8px; font-weight: 400; }
.prows { display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: stretch; }
.prow > b { display: grid; place-items: center; border-radius: 12px; background: var(--c); color: #fff; font-weight: 900; font-size: 18px; min-height: 64px; text-align: center; }
.prow > div { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-height: 64px; align-items: center; }
.prow .pt { flex: none; width: 64px; text-align: center; } .prow .pt img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; display: block; margin: 0 auto; }
.prow .pt small { display: block; font-size: 9.5px; line-height: 1.3; color: var(--sub); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow em { font-style: normal; font-size: 12px; color: var(--dim); padding-left: 8px; }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 12px; margin-top: 12px; }
.gh { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 10px; } .gh .chips { margin: 0 0 0 auto; }
.chips.mini button { font-size: 11px; padding: 4px 10px; }
.gnote { font-size: 11.5px; color: var(--sub); line-height: 1.7; margin: 8px 0 0; }
.meter { display: block; width: 220px; margin: 0 auto; } .meter text { font-family: var(--num); font-size: 38px; fill: var(--ink); }
.hist { display: block; width: 100%; } .hist .ax { font-size: 10px; fill: var(--sub); } .hist .hl { font-size: 11px; font-weight: 700; }
.sbars { display: grid; gap: 14px; }
.sb { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; } .sb img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.sbn { display: block; font-size: 12px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbar { position: relative; display: flex; height: 22px; border-radius: 6px; overflow: visible; background: var(--paper2); }
.sbar i { display: grid; place-items: center; font-style: normal; color: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.sbar i:first-child { border-radius: 6px 0 0 6px; } .sbar i:last-of-type { border-radius: 0 6px 6px 0; }
.sbar em { position: absolute; top: 100%; line-height: 1.1; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--ink); }
.dots .dax { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--sub); margin: 0 0 4px 96px; }
.dr { display: grid; grid-template-columns: 90px 1fr; gap: 6px; align-items: center; margin-bottom: 6px; }
.dn { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt { position: relative; height: 28px; background: var(--paper); border-radius: 8px; }
.dt i { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: color-mix(in srgb, var(--sub) 55%, transparent); }
.dt b { position: absolute; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; background: var(--ink); }
.dt u { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.dleg { font-size: 11px; color: var(--sub); display: flex; gap: 6px; align-items: center; margin: 8px 0 0; }
.dleg i, .dleg u { display: inline-block; width: 9px; height: 9px; border-radius: 50%; } .dleg i { background: var(--sub); opacity: .6; } .dleg u { background: var(--accent); margin-left: 8px; } .dleg b { display: inline-block; width: 2px; height: 12px; background: var(--ink); margin-left: 8px; }
.exs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.excard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center; }
.excard small { display: block; font-size: 11px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.excard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.excard b { display: block; font-size: 12.5px; margin-top: 6px; } .excard span { font-size: 10.5px; color: var(--sub); }
.alist { display: grid; gap: 8px; }
.arow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: left; }
.arow.me { border-color: var(--accent); }
.arow .an { flex: 1; min-width: 0; } .arow .an b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .arow .an small { font-size: 11px; color: var(--sub); }
.arow .ar { text-align: center; min-width: 52px; } .arow .ar b { display: block; font-family: var(--num); font-size: 18px; } .arow .ar small { font-size: 10px; color: var(--sub); }
/* マイページの下書き（たたんで、小さく） */
.drafts { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 12px; }
.drafts summary { cursor: pointer; font-size: 13px; color: var(--sub); list-style: none; display: flex; align-items: center; gap: 6px; }
.drafts summary::-webkit-details-marker { display: none; }
.drafts summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 4px; transition: transform .2s; }
.drafts[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.drafts summary span { font-size: 11.5px; }
.drows { display: grid; gap: 6px; margin-top: 10px; }
.drow { display: flex; align-items: center; gap: 8px; }
.drow a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.drow .dth { flex: none; width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: var(--paper2); } .drow .dth img { width: 100%; height: 100%; object-fit: cover; }
.drow .dtx { min-width: 0; } .drow .dtx b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .drow .dtx small { font-size: 11px; color: var(--sub); }
.ddel2 { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--sub); font-size: 18px; }
.copyfield { width: 100%; font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-sizing: border-box; margin-top: 8px; }
/* どっち派：編集画面の「わたしは、どっち派？」 */
.vspick2 { margin-top: 18px; padding: 16px 14px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.vph { margin: 0 0 12px; font-family: var(--serif); font-size: 17px; font-weight: 700; text-align: center; } .vph small { display: block; font-family: var(--sans, inherit); font-size: 11.5px; font-weight: 400; color: var(--sub); margin-top: 2px; }
.vpg { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; } .vpg .vsx { align-self: center; font-size: 24px; }
.vpc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 8px 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); text-align: center; }
.vpc img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.vpc b { font-size: 12.5px; line-height: 1.4; }
.vpc span { white-space: nowrap; margin-top: auto; font-size: 11.5px; padding: 5px 10px; border-radius: 99px; background: var(--paper2); color: var(--sub); }
.vpc.on { border-color: var(--accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 25%, transparent); }
.vpc.on span { background: var(--accent); color: #fff; font-weight: 700; }
.vpc.empty { justify-content: center; min-height: 140px; border-style: dashed; color: var(--dim); } .vpc.empty b { font-family: var(--en); font-size: 28px; }
/* ストーリーの溜め：2つの写真を左右に */
.story .rl-tease .ph.vst { display: flex; } .story .rl-tease .ph.vst img { width: 50%; }
/* どっち派 */
.vspick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.vspick button { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 14px; font-size: 13px; }
.vspick button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.vspick small { color: var(--sub); }
.vsbox, .votebox { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; } .vsbox .vsx, .votebox .vsx { align-self: center; }
.vote { display: flex; flex-direction: column; align-items: center; } .vote .vimg { width: 100%; } .vote small { margin-top: auto !important; }
.vsx { font-family: var(--en); font-style: italic; font-weight: 700; font-size: 34px; color: var(--accent); }
.vsc { position: relative; display: flex; flex-direction: column; align-items: center; } .vsc .icard { width: 100%; } .vsc.picked .icard .iph { box-shadow: 0 0 0 3px var(--accent); }
.vspk { display: inline-block; margin: 0 0 10px; padding: 6px 14px; border-radius: 99px; background: var(--accent); color: #fff; font-family: var(--serif); font-size: 13.5px; font-weight: 700; white-space: nowrap; transform: rotate(-3deg); box-shadow: 0 4px 12px rgba(0,0,0,.15); } /* 写真の外（カードの上）に出す */
.vspk.sp { visibility: hidden; } .vspk.sp::before { content: '　'; }
.vspk small { font-size: 10.5px; font-weight: 400; margin-right: 4px; }
.vote { border: 1px solid var(--line); background: var(--card); border-radius: 20px; padding: 10px 10px 14px; text-align: center; }
.vote .vimg { display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--paper2); } .vote img { width: 100%; height: 100%; object-fit: cover; }
.vote b { display: block; font-family: var(--serif); font-size: 15px; margin-top: 10px; }
.vote small { display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12px; }
.vsres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vsr { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; } .vsr.me { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.vsr img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; } .vsr b { display: block; font-family: var(--num); font-size: 34px; } .vsr small { font-size: 11.5px; color: var(--sub); }
.vsline { margin: 12px 0 0; } .vsl { height: 14px; border-radius: 99px; background: var(--paper2); overflow: hidden; } .vsl i { display: block; height: 100%; width: var(--p); background: var(--accent); }
.trend { display: block; width: 100%; } .trend .ax { font-size: 9.5px; fill: var(--sub); }
.mock.vsm { display: flex; align-items: center; justify-content: center; gap: 6px; } .mock.vsm i { width: 34%; aspect-ratio: 1; border-radius: 8px; background: var(--paper2); } .mock.vsm .vx { font-family: var(--en); font-style: italic; color: var(--accent); font-weight: 700; }
/* 人気ランキングのサムネイル（表紙そのまま） */
.rrank .rth { position: relative; flex: none; width: 56px; height: 70px; border-radius: 10px; overflow: hidden; background: var(--paper2); }
/* 共有ページの表紙の上の文字は、いつも写真より手前 */
.lhero .veil { z-index: 5; } .lhero-in, .lhero .pvtag, .lhero .scrollcue { z-index: 6; }
.cov { z-index: 0; isolation: isolate; }
/* トップなどのリストのカード */
.lcard .cover.cvx { display: block; }
.lcard .cover.cvx .cov img { animation: none; }
/* デザインの表紙（表紙写真がないとき）：デザインとカラーごとの絵を、入れ物いっぱいに */
.cbg { position: absolute; inset: 0; overflow: hidden; background: var(--paper2); }
.cbg img, .cov .cbg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: none; }
.cov.cvd { background: none; }
/* 表紙の画面の見本 */
.covart { position: relative; width: min(100%, 260px); aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.covart .cov { position: absolute; inset: 0; }
.lcard .cover.cvx .cov.cvd { position: absolute; inset: 0; }
/* 商品の画像の表紙：共有ページの最初は、タイトルを画像の下に（画像の上に文字を重ねない） */
.lhero.pcov { height: auto; display: flex; flex-direction: column; background: transparent; }
.lhero.pcov > .cov { position: relative; inset: auto; flex: none; height: min(58vh, 480px); }
.lhero.pcov .veil, .lhero.pcov .scrollcue { display: none; }
.lhero.pcov .lhero-in { position: relative; width: 100%; box-sizing: border-box; padding: 20px 22px 6px; color: var(--ink); }
.lhero.pcov .lhero-in .kicker { color: var(--accent); }
.lhero.pcov .lhero-in h1 { text-shadow: none; }
.lhero.pcov .lhero-in .by { color: var(--ink); } .lhero.pcov .lhero-in .by .avatar { background: var(--paper2); }
/* リストのカード：商品の画像の表紙なら、シールと「形・個数」は表紙の下 */
.lcunder { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.lcard .lcunder .sticker { position: static; box-shadow: none; border: 1px solid var(--line); }
.lcard .lcunder .ov { position: static; color: var(--sub); }
.seg.covmode { margin-bottom: 12px; }
/* 表紙の画面 */
.covnote { font-size: 12.5px; color: var(--sub); line-height: 1.8; margin: 0 0 4px; padding: 10px 12px; background: var(--paper); border-radius: 12px; }
.cvh { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--sub); margin: 18px 0 8px; }
.pickgrid.c3 { grid-template-columns: repeat(3, 1fr); } .pickgrid.c4 { grid-template-columns: repeat(2, 1fr); }
.pickgrid .pk .pkv { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--paper2); }
.pickgrid .pk.off { opacity: .45; }
.pickgrid .pk small { display: block; font-size: 10.5px; color: var(--sub); margin-top: 2px; line-height: 1.4; }
.pkempty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); }
.mos { position: absolute; inset: 0; display: grid; gap: 3px; background: var(--paper); }
.mos i { position: relative; overflow: hidden; min-height: 0; min-width: 0; }
.mos img { width: 100%; height: 100%; object-fit: cover; display: block; filter: var(--pf, none); }
.mos.n1 { grid-template: 1fr / 1fr; }
.mos.n2 { grid-template: 1fr 1fr / 1fr; }
.mos.n3 { grid-template: 3fr 2fr / 1fr 1fr; } .mos.n3 .t1 { grid-column: 1 / 3; }
.mos.n4 { grid-template: 1fr 1fr / 1fr 1fr; }
.mos.n5 { grid-template: 2fr 1fr 1fr / 1fr 1fr; } .mos.n5 .t1 { grid-column: 1 / 3; }
.mos.n6 { grid-template: 1fr 1fr 1fr / 1fr 1fr; }
/* 商品の画像だけのとき：白地の商品写真を切らずに、紙の上に正方形で並べる */
.mos.prod { grid-template: none; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; align-content: start; gap: 8px; padding: 8px; background: var(--paper2); }
.mos.prod.n1 { grid-template-columns: 1fr; padding: 18% 14% 0; }
.mos.prod i { aspect-ratio: 1; background: #fff; border-radius: 2px; }
.mos.prod .t1 { grid-column: auto; }
.mos.prod img { filter: none; }
.mos.mini { gap: 1px; } .mos.mini.prod { gap: 2px; padding: 2px; }
@media (min-width: 700px) {
  .lhero .mos.n2 { grid-template: 1fr / 1fr 1fr; }
  .lhero .mos.n3 { grid-template: 1fr 1fr / 2fr 1fr; } .lhero .mos.n3 .t1 { grid-column: auto; grid-row: 1 / 3; }
  .lhero .mos.n4 { grid-template: 1fr / repeat(4, 1fr); }
  .lhero .mos.n5 { grid-template: 1fr 1fr / 2fr 1fr 1fr; } .lhero .mos.n5 .t1 { grid-column: auto; grid-row: 1 / 3; }
  .lhero .mos.n6 { grid-template: 1fr 1fr / repeat(3, 1fr); }
  .lhero .mos.prod { grid-template: none; grid-template-columns: repeat(var(--cols), 1fr); padding: 24px max(24px, calc(50vw - 380px)) 0; gap: 12px; }
}
/* 編集画面の表紙の見本 */
.coverpv { display: flex; gap: 12px; align-items: center; }
.coverpv .cvbox { position: relative; width: 64px; aspect-ratio: 9 / 16; border-radius: 4px; overflow: hidden; flex: none; background: var(--paper2); border: 1px solid var(--line); }
.coverpv p { margin: 0; font-size: 12.5px; line-height: 1.7; }
.coverpv small { display: block; font-size: 11.5px; color: var(--sub); }
.lhero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,28,20,.12) 0%, transparent 30%, rgba(40,28,20,.25) 55%, rgba(30,22,16,.72) 100%); }
.lhero-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 22px 64px; max-width: 760px; margin: 0 auto; color: #fff; }
.lhero-in .kicker { color: #f3dccf; }
.lhero-in h1 { font-size: clamp(26px, 7.4vw, 42px); line-height: 1.5; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.lhero-in .by { font-family: var(--hand); font-size: 16px; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.lhero-in .by .avatar { background: rgba(255,255,255,.85); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.playstory { position: absolute; right: 16px; top: 16px; z-index: 2; border: 0; background: rgba(255,253,249,.9); border-radius: 99px; padding: 8px 14px 8px 10px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.playstory i { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 10px; padding-left: 2px; }
.scrollcue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: rgba(255,255,255,.8); font-family: var(--num); font-style: normal; font-size: 13px; display: grid; justify-items: center; gap: 4px; }
.scrollcue::after { content: ""; width: 1px; height: 26px; background: linear-gradient(rgba(255,255,255,.9), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.lstats { display: flex; justify-content: center; gap: 34px; margin: 26px 0 8px; text-align: center; }
.lstats b { display: block; font-family: var(--num); font-style: normal; font-weight: 500; font-size: 40px; line-height: 1; }
.lstats span { font-size: 11.5px; color: var(--sub); }
.srcnote { font-size: 12.5px; color: var(--sub); text-align: center; margin: 8px 0 0; }
/* 誌面：段ごとに見出し（大きな文字と細い罫線）、写真はすべて同じ比率（4:5）・同じ大きさのグリッドにそろえる */
.tsec { margin: 56px 0 0; }
.th { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 4px 14px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.th .tl { font-family: var(--num); font-style: normal; font-weight: 600; font-size: 52px; line-height: .85; color: var(--tc); }
.th .tl.long { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.th .hand { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 11.5px; letter-spacing: .2em; color: var(--sub); padding-bottom: 6px; }
.th .rule { display: none; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 16px; align-items: start; }
.icard { border: 0; background: none; padding: 0; text-align: left; display: block; width: 100%; }
.icard .iph { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--paper2); }
.icard .iph > img, .icard .iph .slides { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.icard .iph .dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; z-index: 2; }
.icard .iph .dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.55); }
.icard .iph .dots i.on { background: #fff; }
.icard .cap { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .14em; color: var(--sub); }
.icard .cap .idx { font-family: var(--num); font-weight: 600; color: var(--ink); letter-spacing: .08em; }
.icard .inm { font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.55; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.icard .cmt { font-family: var(--hand); font-size: 12.5px; color: var(--sub); line-height: 1.75; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tsec .none { font-family: var(--hand); font-size: 14px; color: var(--dim); margin: 0; letter-spacing: .1em; }
.standfirst { font-family: var(--serif); font-size: 15px; line-height: 2; text-align: center; margin: 30px auto 0; max-width: 32em; color: var(--ink); word-break: auto-phrase; }
.standfirst::before, .standfirst::after { content: ""; display: block; width: 32px; height: 1px; background: var(--ink); margin: 0 auto 18px; }
.standfirst::after { margin: 18px auto 0; }
/* 欲しいものリスト */
.prog { height: 4px; border-radius: 4px; background: var(--paper2); margin-top: 10px; overflow: hidden; }
.prog b { display: block; height: 100%; background: var(--rose); border-radius: 4px; }
.wq { font-size: 11.5px; color: var(--sub); margin-top: 5px; display: flex; justify-content: space-between; gap: 8px; }
.wq .who { font-family: var(--hand); font-size: 12.5px; color: var(--accent); text-align: right; }
.done-badge { position: absolute; left: 8px; top: 8px; background: rgba(255,253,249,.94); font-family: var(--hand); font-size: 13px; padding: 3px 10px; border-radius: 99px; color: var(--accent); }
.need { position: absolute; right: 8px; top: 8px; background: rgba(255,253,249,.94); font-size: 11px; padding: 3px 9px; border-radius: 99px; }
.avs { display: flex; justify-content: center; margin-top: 14px; }
.avs .avatar { width: 30px; height: 30px; margin-left: -7px; border: 2px solid var(--paper); background: var(--card); }
.thanks { display: grid; gap: 12px; }
.thx { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.thx .who { font-size: 12px; color: var(--sub); display: flex; gap: 8px; align-items: center; }
.thx p { font-family: var(--hand); font-size: 15.5px; margin: 8px 0 0; line-height: 1.7; }
.thx .re { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.thx .re p { color: var(--accent); }
/* 贈る */
.simbar { background: color-mix(in srgb, var(--accent) 12%, var(--card)); border: 1px dashed var(--accent); border-radius: 14px; padding: 10px 14px; font-size: 12.5px; line-height: 1.7; color: var(--sub); margin: 0 0 14px; }
.simbar b { display: block; color: var(--accent); font-size: 13px; }
.gsteps { margin: 0 0 14px; padding-left: 22px; font-size: 13px; line-height: 1.9; color: var(--sub); }
.gsteps b { color: var(--ink); }
.giftsafe { max-width: 520px; margin: 18px auto 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); font-size: 13px; }
.giftsafe b { font-family: var(--serif); font-size: 14px; }
.giftsafe ol { margin: 8px 0; padding-left: 20px; line-height: 1.9; color: var(--sub); }
.giftsafe small { color: var(--sub); line-height: 1.7; display: block; }
.nbadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; }
/* サポート履歴 */
.gifts { display: grid; gap: 12px; margin-top: 14px; }
.gcard { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 14px 16px; }
.gcard.new { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.gc-h { display: flex; gap: 10px; align-items: center; }
.gc-h b { display: block; font-size: 14px; } .gc-h small { font-size: 11.5px; color: var(--sub); }
.gc-item { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 8px; border-radius: 12px; background: var(--paper); }
.gc-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.gc-item b { display: block; font-family: var(--serif); font-size: 13.5px; line-height: 1.5; } .gc-item small { font-size: 11px; color: var(--sub); }
.gc-msg { font-family: var(--hand); font-size: 15px; line-height: 1.8; margin: 12px 0 0; padding: 10px 14px; background: var(--paper2); border-radius: 14px 14px 14px 4px; }
.gc-msg.mine { border-radius: 14px 14px 4px 14px; }
.gsns { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.gsns .cc-main.sm { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 700; }
.gsns .cc-main.sm i { font-style: normal; opacity: .7; }
.gsns .ic { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.gc-code { margin-top: 12px; padding: 12px; border: 1px dashed var(--accent); border-radius: 14px; display: grid; gap: 8px; }
.gc-code small { font-size: 11px; color: var(--sub); }
.gc-code code { font-size: 14px; word-break: break-all; background: var(--paper); padding: 8px 10px; border-radius: 8px; }
.gc-warn { font-size: 12.5px; color: #b0604f; background: #fbeeea; border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; line-height: 1.7; }
.gc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.gc-link { border: 0; background: none; padding: 8px 0 0; font-size: 12px; color: var(--sub); text-decoration: underline; display: inline-block; margin-right: 14px; }
.gc-more { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 2px; }
.gc-st { font-size: 13px; font-weight: 700; margin: 12px 0 0; color: var(--sub); } .gc-st.ok { color: var(--accent); }
.gc-mine { margin-top: 10px; } .gc-mine small { font-size: 11px; color: var(--sub); } .gc-mine p { margin: 4px 0 0; font-family: var(--hand); font-size: 14px; line-height: 1.8; }
.gc-info { display: block; margin-top: 10px; font-size: 11.5px; color: var(--sub); line-height: 1.7; }
/* 特別なお礼のカード */
.gthanks { position: relative; margin-top: 12px; padding: 18px 18px 14px; border-radius: 16px; text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, #fff), #fff 60%, color-mix(in srgb, #d2ac7f 18%, #fff)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.gthanks .ty { font-family: "Dancing Script", cursive; font-weight: 700; font-size: 28px; color: var(--accent); display: block; line-height: 1; }
.gthanks p { font-family: var(--hand); font-size: 16px; line-height: 1.8; margin: 10px 0 6px; }
.gthanks small { font-size: 11.5px; color: var(--sub); }
/* お気持ちだけ：やわらかく */
.gsoft { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--paper2); font-size: 13.5px; line-height: 1.8; }
.gsoft p { margin: 0; } .gsoft .nt { margin-top: 8px; font-family: var(--hand); font-size: 14.5px; color: var(--sub); }
.qtybox { display: flex; align-items: center; gap: 14px; }
.qtybox button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; padding: 0; }
.qtybox output { font-family: var(--num); font-style: normal; font-size: 30px; min-width: 30px; text-align: center; }
.tile .qtyb { position: absolute; right: 4px; bottom: 4px; background: rgba(255,253,249,.94); border-radius: 99px; font-size: 10px; padding: 1px 6px; font-style: normal; }
.ranklist .tile .qtyb { position: static; margin-left: auto; font-size: 12px; background: var(--paper2); padding: 3px 9px; }
/* 楽天市場の中のジャンル（ふるさと納税など）。お店の下に小さく */
.chips.genres { margin-top: 8px; }
#addbody .chips.genres button { font-size: 12px; padding: 4px 12px; background: transparent; }
#addbody .chips.genres button.on { background: var(--paper2); color: var(--ink); border-color: var(--ink); }
/* 商品の追加（あらゆる商品を前提に：名前・お店・価格・レビューが読める行の一覧） */
.tabs { display: flex; gap: 4px; background: var(--paper2); border-radius: 99px; padding: 3px; margin-bottom: 14px; }
.tabs button { flex: 1; border: 0; background: transparent; border-radius: 99px; padding: 9px 4px; font-size: 13px; color: var(--sub); white-space: nowrap; }
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(60,40,20,.12); }
.srch { position: relative; }
.srch input { width: 100%; border: 1px solid var(--line); border-radius: 99px; padding: 12px 16px 12px 40px; background: #fff; }
.srch input:focus { outline: none; border-color: var(--accent); }
.srch::before { content: ""; position: absolute; left: 16px; top: 50%; width: 11px; height: 11px; border: 1.6px solid var(--sub); border-radius: 50%; transform: translateY(-62%); }
/* 検索のウィンドウ：見出し・入力欄・絞りこみは止めて、結果だけスクロール */
.sheet.searchsheet { height: 92vh; overflow: hidden; display: flex; flex-direction: column; }
.sheet.searchsheet > * { flex: none; }
.sheet.searchsheet > .close { align-self: flex-end; margin-bottom: -34px; position: relative; z-index: 1; }
.sheet.searchsheet .stabs { margin: 12px 0 4px; }
.sheet.searchsheet #sres { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 10px 0 8px; }
.lsc { font-size: 12.5px; color: var(--sub); margin: 0 0 12px; }
.lshit .lcard { display: block; }
.lshit .snip { font-size: 11.5px; color: var(--sub); line-height: 1.7; margin: 6px 2px 0; }
.lshit mark, .lcard mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
#lsres { margin-bottom: 8px; }
.lsusers { display: grid; gap: 8px; margin-bottom: 18px; }
.lsuser { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; }
.lsuser .avatar { width: 36px; height: 36px; font-size: 15px; flex: none; }
.lsuser span:not(.avatar) { flex: 1; min-width: 0; }
.lsuser b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsuser small { font-size: 11.5px; color: var(--sub); }
.lsuser i { font-style: normal; color: var(--sub); }
.srch::after { content: ""; position: absolute; left: 27px; top: 57%; width: 6px; height: 1.6px; background: var(--sub); transform: rotate(45deg); }
.sorts { display: flex; gap: 4px; margin: 10px 0 2px; align-items: center; }
.sorts span { font-size: 11.5px; color: var(--dim); margin-right: 4px; }
.sorts button { border: 0; background: none; font-size: 12.5px; color: var(--sub); padding: 4px 6px; }
.sorts button.on { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.sechd { font-size: 12px; color: var(--sub); margin: 14px 0 0; }
.rlist { display: grid; }
.rrow { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: none; width: 100%; }
.rrow img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; background: var(--paper2); }
.rrow .nm2 { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rrow .sub2 { font-size: 11.5px; color: var(--sub); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rrow .sub2 b { color: var(--ink); font-weight: 700; }
.rrow .plus { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 18px; line-height: 1; }
.rrow.in .plus { background: var(--ink); color: #fff; font-size: 14px; }
.store { display: inline-block; font-size: 10.5px; padding: 1px 8px; border-radius: 99px; background: var(--paper2); color: var(--sub); }
.urlbig { display: grid; gap: 10px; }
.urlbig textarea { border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-height: 84px; resize: none; background: #fff; font-size: 14px; }
.urlbig textarea:focus { outline: none; border-color: var(--accent); }
.stores { display: grid; gap: 6px; margin-top: 14px; }
.stores div { display: flex; justify-content: space-between; font-size: 12.5px; padding: 9px 12px; background: var(--paper); border-radius: 10px; }
.stores div span:last-child { color: var(--sub); font-size: 11.5px; }
.stores div.ok span:last-child { color: #6f8a5c; }
.hint2 { font-size: 12px; color: var(--sub); line-height: 1.75; background: var(--paper); border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.icard .cnt { font-size: 10.5px; letter-spacing: .1em; color: var(--dim); margin-top: 6px; }
/* 見えたところから、セピアの写真に色が戻る */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

.rv.in .iph img { filter: var(--pf, none); }
/* デザインごとの写真の色味（--pf） */
.gallery figure img, .story .sl > img, .lcard .cover:not(.prod) .cv img, .pola .ph img { filter: var(--pf, none); }
.rk { display: grid; grid-template-columns: 58px 1fr; gap: 6px 12px; margin: 0 0 30px; border: 0; background: none; padding: 0; text-align: left; width: 100%; }
.rk .no { font-family: var(--num); font-style: normal; font-size: 54px; line-height: .9; color: var(--accent); }
.rk:nth-child(n+4) .no { color: var(--dim); font-size: 42px; }
.rk .iph { grid-column: 1 / -1; position: relative; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; background: var(--paper2); }
.rk .iph > img, .rk .iph .slides { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rk .inm { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.5; align-self: end; }
.rk .cmt { grid-column: 1 / -1; font-family: var(--hand); font-size: 15px; color: var(--sub); margin: 0; }
.rk .cnt { grid-column: 1 / -1; font-size: 11px; color: var(--dim); }
.lp-actions { display: grid; gap: 10px; margin: 46px 0 8px; }
.callout { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 13px; line-height: 1.8; margin: 18px 0; }
.callout b { font-family: var(--serif); }
.sharebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, color-mix(in srgb, var(--paper) 96%, transparent) 40%); pointer-events: none; }
.sharebar .sb-in { display: flex; gap: 8px; max-width: 728px; margin: 0 auto; }
.sharebar .btn { flex: 1; padding: 15px; white-space: nowrap; pointer-events: auto; box-shadow: 0 10px 26px rgba(59,53,49,.25); }
.sharebar .btn.sbplay { flex: none; background: var(--card); padding: 15px 16px; display: inline-flex; gap: 8px; align-items: center; }
.sharebar .sbplay i { font-style: normal; font-size: 10px; }
.sharebar .btn.sblike { flex: none; background: var(--card); padding: 15px 14px; display: inline-flex; gap: 5px; align-items: center; color: var(--ink); }
.sharebar .sblike i { font-style: normal; font-size: 17px; line-height: 1; color: var(--accent); } .sharebar .sblike span { font-size: 13px; }
.sharebar .sblike.on { background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.lplike { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 420px; margin: 26px auto 0; padding: 16px; border-radius: 99px; border: 1.5px solid var(--accent); background: var(--card); color: var(--accent); font-family: var(--serif); font-size: 16px; font-weight: 700; }
.lplike i { font-style: normal; font-size: 20px; line-height: 1; } .lplike small { font-family: var(--sans, inherit); font-weight: 400; font-size: 12px; color: var(--sub); margin-left: 4px; }
.lplike.on { background: var(--accent); color: #fff; } .lplike.on small { color: rgba(255,255,255,.8); }
/* マイページ：お知らせ・共感したもの */
.notes { display: grid; gap: 8px; }
.nrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); color: inherit; text-decoration: none; }
.nrow .nth { position: relative; flex: none; width: 46px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--paper2); }
.nrow .ntx { flex: 1; min-width: 0; } .nrow .ntx b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nrow .ntx small { font-size: 12px; color: var(--accent); font-weight: 600; }
.nct { flex: none; min-width: 24px; height: 24px; padding: 0 7px; box-sizing: border-box; border-radius: 99px; background: var(--accent); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.lcard { position: relative; }
.lnote { position: absolute; top: -8px; right: -8px; z-index: 4; min-width: 26px; height: 26px; padding: 0 8px; box-sizing: border-box; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.lnotes { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--accent); }
.likeds { display: grid; gap: 8px; margin-top: 14px; }
.lkrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-align: left; color: inherit; }
.lkrow img { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.lkrow span { flex: 1; min-width: 0; } .lkrow b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lkrow small { font-size: 11.5px; color: var(--sub); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ストーリーの入口（ひとことの下）：何がどの順で流れるかを見せる */
.storyband { display: flex; gap: 16px; align-items: center; width: 100%; max-width: 520px; margin: 28px auto 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); text-align: left; cursor: pointer; }
.storyband .sbth { position: relative; width: 64px; aspect-ratio: 9 / 16; border-radius: 4px; overflow: hidden; flex: none; background: var(--paper2); }
.storyband .sbth .sbpl { z-index: 1; }
.storyband .sbth .sbpl { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30,22,16,.25); color: #fff; font-style: normal; font-size: 16px; }
.storyband b { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; }
.storyband small { display: block; font-size: 11.5px; color: var(--sub); line-height: 1.7; margin-top: 4px; }

/* ストーリー */
.story { position: fixed; inset: 0; z-index: 70; background: #1c1713; color: #fff; animation: fade .3s; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; }
.story .stage { position: absolute; inset: 0; }
.story .bars i b { transition: none; }
.story .skip { position: absolute; right: 6px; top: calc(20px + env(safe-area-inset-top)); z-index: 5; border: 0; background: none; color: #fff; width: 46px; height: 46px; display: grid; place-items: center; }
.story .skip svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
/* ---- ストーリー：誌面のような演出 ---- */
.story { --sp: var(--paper); --si: var(--ink); --ss: var(--sub); }
.story.m-dies { --sp: #0c0a08; --si: #f1e4c8; --ss: rgba(241,228,200,.62); }
.story.m-ode { --sp: #0e1433; --si: #f3f0ff; --ss: rgba(243,240,255,.62); }
/* フィルムの粒子 */
.story::after { content: ""; position: absolute; inset: -40%; z-index: 4; pointer-events: none; opacity: .11; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain .9s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
/* 紙の地のときは、上のバーやボタンを墨の色に */
.story .bars i, .story .bars b, .story .who, .story .skip, .story .snd { transition: color .5s, background-color .5s; }
.story.light .bars i { background: color-mix(in srgb, var(--si) 18%, transparent); }
.story.light .bars b { background: var(--si); }
.story.light .who, .story.light .skip, .story.light .snd { color: var(--si); }
.story.light .skip svg, .story.light .snd svg { filter: none; }
.story .snd { position: absolute; right: 50px; top: calc(20px + env(safe-area-inset-top)); z-index: 5; border: 0; background: none; color: #fff; width: 46px; height: 46px; display: grid; place-items: center; }
.story .snd svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
.story .sndtip { position: absolute; right: 18px; top: calc(66px + env(safe-area-inset-top)); z-index: 5; background: rgba(255,253,249,.94); color: var(--ink); font-size: 11.5px; padding: 6px 12px; border-radius: 99px; box-shadow: 0 6px 18px rgba(0,0,0,.2); pointer-events: none; animation: soundpulse 1.6s ease-in-out infinite; }
.story .ch { display: inline-block; animation: chin .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes chin { from { opacity: 0; transform: translateY(.45em); filter: blur(4px); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes cardup { from { opacity: 0; transform: translateY(36px); } }
@keyframes maskup { from { transform: translateY(105%); } }
/* 表紙 */
.story .ed-open > .mos { animation: kbs 10s ease-out both; }
.story .ed-open .grad { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(20,14,10,.42) 0%, transparent 22%, transparent 38%, rgba(20,14,10,.8) 100%); }
.story .ed-open .mast { position: absolute; left: 22px; right: 22px; top: calc(76px + env(safe-area-inset-top)); z-index: 3; display: flex; align-items: center; gap: 12px; font-family: var(--en); font-style: italic; font-size: 15px; color: rgba(255,255,255,.92); animation: fade 1s .2s both; }
.story .ed-open .mast i { flex: 1; height: 1px; background: rgba(255,255,255,.6); transform-origin: left; animation: draw 1.4s .4s cubic-bezier(.6,0,.2,1) both; }
.story .ed-open .foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 22px calc(28px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.story .ed-open h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 8.2vw, 46px); line-height: 1.45; letter-spacing: .02em; margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.story .ed-open .by { font-family: var(--en); font-style: italic; font-size: 17px; margin: 10px 0 0; opacity: .92; animation: fade 1s 1.3s both; }
.story .ed-open .sf { margin-top: 22px; background: color-mix(in srgb, var(--sp) 95%, transparent); color: var(--si); padding: 16px 18px 18px; box-shadow: 0 20px 44px rgba(0,0,0,.28); animation: cardup 1s 1.9s cubic-bezier(.2,.8,.2,1) both; }
.story .ed-open .sf .k { display: block; font-family: var(--en); font-style: italic; font-size: 13.5px; color: var(--accent); margin-bottom: 6px; }
.story.m-dies .ed-open .sf .k { color: #f0cf86; } .story.m-ode .ed-open .sf .k { color: #c6a6ff; }
.story.m-dies .ed-open .sf { border: 1px solid rgba(240,207,134,.35); } .story.m-ode .ed-open .sf { border: 1px solid rgba(198,166,255,.35); }
.story .ed-open .sf p { margin: 0; font-family: var(--serif); font-size: 14.5px; line-height: 1.95; white-space: pre-wrap; }
/* 段の扉 */
.story .ed-sec { background: var(--sp); color: var(--si); }
.story .ed-sec .top { position: absolute; left: 22px; right: 22px; top: calc(76px + env(safe-area-inset-top)); display: flex; justify-content: space-between; font-family: var(--en); font-style: italic; font-size: 16px; color: var(--ss); animation: fade .8s both; }
.story .ed-sec .big { position: absolute; left: 5vw; bottom: 16vh; font-family: var(--num); font-weight: 600; font-size: min(72vw, 50vh); line-height: .82; overflow: hidden; padding: 0 .04em .08em; }
.story .ed-sec .big span { display: block; animation: maskup 1.2s .1s cubic-bezier(.2,.8,.2,1) both; }
.story .ed-sec .big.long { font-family: var(--serif); font-size: min(15vw, 76px); line-height: 1.3; right: 5vw; }
.story .ed-sec .vw { position: absolute; right: 8vw; top: calc(132px + env(safe-area-inset-top)); writing-mode: vertical-rl; font-family: var(--serif); font-size: 22px; letter-spacing: .5em; margin: 0; animation: fade 1.4s .7s both; }
.story .ed-sec .bot { position: absolute; left: 22px; right: 22px; bottom: calc(40px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; font-family: var(--en); font-style: italic; font-size: 16px; color: var(--ss); }
.story .ed-sec .bot .rule { flex: 1; height: 1px; background: var(--si); opacity: .45; transform-origin: left; animation: draw 1.4s .5s cubic-bezier(.6,0,.2,1) both; }
/* 商品：額装 */
.story .ed-frame { background: var(--sp); color: var(--si); --fw: min(80vw, 48vh, 440px); }
/* 写真とキャプションのまとまりを、上下のまん中に置く */
.story .ed-frame .col { position: absolute; left: 0; right: 0; top: calc(78px + env(safe-area-inset-top)); bottom: calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.story .ed-frame .ghost { position: absolute; left: -1vw; top: calc(52px + env(safe-area-inset-top)); font-family: var(--num); font-weight: 600; font-size: 44vh; line-height: .8; opacity: .13; pointer-events: none; animation: ghostin 1.6s cubic-bezier(.2,.8,.2,1) both; }
.story .ed-frame .ghost.long { font-family: var(--serif); font-size: 16vh; line-height: 1.1; }
@keyframes ghostin { from { opacity: 0; transform: translateX(-8%); } }
.story .ed-frame .frame { position: relative; flex: none; width: var(--fw); aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper2); box-shadow: 0 26px 52px rgba(40,28,20,.22); animation: framein 1.2s cubic-bezier(.7,0,.2,1) both; }
@keyframes framein { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.story .ed-frame .frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: var(--pf, none); animation: slowzoom 6s ease-out both; }
@keyframes slowzoom { from { transform: scale(1.16); } }
.story .ed-frame .cap { width: var(--fw); box-sizing: border-box; }
.story .idx { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .18em; color: var(--ss); animation: fade .8s calc(var(--d, 0s) + .5s) both; }
.story .idx b { font-family: var(--num); font-size: 15px; letter-spacing: .06em; }
.story .idx i { width: 26px; height: 1px; background: currentColor; opacity: .7; }
.story .ed-frame h3, .story .ed-bleed h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.5; margin: 8px 0 0; animation: rise .9s calc(var(--d, 0s) + .65s) cubic-bezier(.2,.8,.2,1) both; }
.story .cm { position: relative; font-family: var(--hand); font-size: 14.5px; line-height: 1.85; margin: 10px 0 0; padding-left: 22px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; animation: rise .9s calc(var(--d, 0s) + .9s) cubic-bezier(.2,.8,.2,1) both; }
.story .cm::before { content: "\201C"; position: absolute; left: 0; top: -.12em; font-family: var(--en); font-size: 34px; line-height: 1; color: var(--accent); }
.story .mt { font-size: 11px; letter-spacing: .14em; color: var(--ss); margin: 12px 0 0; animation: fade .8s calc(var(--d, 0s) + 1.2s) both; }
/* 商品：全面の写真に紙のキャプション */
.story .ed-bleed { background: var(--ink); }
.story .ed-bleed .ph { position: absolute; inset: 0; overflow: hidden; }
.story .ed-bleed .ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: var(--pf, none); animation: kbs 6.5s ease-out both; }
.story .ed-bleed .grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,.42), transparent 20%, transparent 55%, rgba(20,14,10,.3)); }
.story .ed-bleed .card { position: absolute; left: 16px; right: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; background: color-mix(in srgb, var(--sp) 95%, transparent); color: var(--si); padding: 18px 20px; box-shadow: 0 20px 44px rgba(0,0,0,.25); animation: cardup .9s calc(var(--d, 0s) + .3s) cubic-bezier(.2,.8,.2,1) both; }
/* 発表：写真が円く開き、光がにじんで、大きな文字 */
.story .ed-reveal { --d: 2.6s; }
.story .ed-reveal .ph { animation: iris 1.8s .2s cubic-bezier(.7,0,.2,1) both; }
@keyframes iris { from { clip-path: circle(0% at 50% 42%); } to { clip-path: circle(85% at 50% 42%); } }
.story .ed-reveal .ph img { animation: kbs 7.5s ease-out both, unblur 2.2s .2s ease-out both; }
.story .ed-reveal .glow { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% 42%, rgba(255,250,240,.95), rgba(255,240,220,.3) 35%, transparent 65%); animation: glow 1.8s .9s ease-out forwards; }
@keyframes glow { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.story .ed-reveal .crown { position: absolute; left: 0; right: 0; top: 24vh; z-index: 3; text-align: center; color: #fff; opacity: 0; animation: crown 2.6s 1.3s cubic-bezier(.2,.8,.2,1) forwards; }
.story .ed-reveal .crown .k { display: block; font-family: var(--en); font-style: italic; font-size: 20px; letter-spacing: .08em; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.story .ed-reveal .crown b { display: block; font-family: var(--num); font-weight: 600; font-size: 120px; line-height: 1.05; text-shadow: 0 6px 40px rgba(0,0,0,.35); }
@keyframes crown { 0% { opacity: 0; transform: scale(1.35); filter: blur(12px); } 30% { opacity: 1; transform: none; filter: none; } 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-24px); } }
/* もったいつけ */
.story .ed-tease { background: radial-gradient(110% 75% at 50% 50%, var(--ink), color-mix(in srgb, var(--ink) 50%, #000)); color: var(--paper); display: grid; place-items: center; }
.story .ed-tease .orbit { position: absolute; left: 50%; top: 50%; width: min(78vw, 420px); aspect-ratio: 1; transform: translate(-50%, -50%); animation: hb2 1.6s 1.4s ease-in-out infinite; }
.story .ed-tease .orbit circle { fill: none; stroke: currentColor; stroke-opacity: .55; stroke-width: .6; stroke-dasharray: 580; stroke-dashoffset: 580; animation: drawc 2.4s .2s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes drawc { to { stroke-dashoffset: 0; } }
@keyframes hb2 { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 12% { transform: translate(-50%, -50%) scale(1.035); } 24% { transform: translate(-50%, -50%) scale(1); } 36% { transform: translate(-50%, -50%) scale(1.055); } }
.story .ed-tease .in { position: relative; text-align: center; padding: 0 24px; }
.story .ed-tease .k { font-family: var(--serif); font-size: 15px; letter-spacing: .4em; opacity: .75; margin: 0 0 16px; animation: fade 1s .3s both; }
.story .ed-tease .l2 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 0; }
.story .ed-tease .en { font-family: var(--en); font-style: italic; font-size: 17px; opacity: .7; margin: 18px 0 0; animation: fade 1s 2.4s both; }
/* ---- ストーリー：リール風 ---- */
.story { --rl: "Zen Kaku Gothic New", system-ui, sans-serif; --scr: "Dancing Script", cursive; }
.story::after { opacity: .06; }
.story .scr { font-family: var(--scr); font-weight: 700; }
.story .bx { display: inline; background: #fff; color: #2b2522; padding: .1em .45em; border-radius: .35em; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.9; }
.story .mk { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 80%, transparent) 60%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; }
@keyframes rlpop { from { opacity: 0; transform: scale(.6) rotate(-4deg); } }
@keyframes rlzoom { from { transform: scale(1.18); } }
@keyframes punch { 0% { transform: scale(1.035); } 45%, 100% { transform: scale(1); } }
@keyframes slamin { from { opacity: 0; transform: scale(1.9); } }
/* つかみ */
.story .rl-open > .mos, .story .rl-open > .cov { animation: fade .6s both; }
.story .rl-open .dim { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(30,22,18,.35), rgba(30,22,18,.22) 40%, rgba(30,22,18,.55)); }
.story .rl-open .mid, .story .rl-tease .mid { display: block; bottom: auto; place-content: normal; }
.story .rl-open .mid { position: absolute; left: 0; right: 0; top: 22%; z-index: 3; padding: 0 24px; text-align: center; word-break: auto-phrase; }
.story .stk { display: inline-block; background: var(--accent); color: #fff; font-family: var(--rl); font-weight: 700; font-size: 13px; letter-spacing: .08em; padding: 6px 16px; border-radius: 99px; box-shadow: 0 6px 16px rgba(0,0,0,.2); transform: rotate(-3deg); animation: rlpop .6s .1s cubic-bezier(.2,1.6,.4,1) both; }
.story .rl-open .scr { font-size: 38px; color: #fff; margin: 14px 0 0; transform: rotate(-5deg); text-shadow: 0 2px 14px rgba(0,0,0,.35); animation: rlpop .7s .35s cubic-bezier(.2,1.6,.4,1) both; }
.story .rl-open h3 { font-family: var(--rl); font-weight: 900; font-size: clamp(22px, 6.4vw, 34px); line-height: 1.9; text-wrap: balance; margin: 6px 0 0; animation: rlpop .7s .6s cubic-bezier(.2,1.4,.4,1) both; }
.story .rl-open .dsc { font-family: var(--rl); font-weight: 700; font-size: 14.5px; line-height: 1.95; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.6); margin: 22px auto 0; max-width: 24em; white-space: pre-wrap; animation: rise .9s 2.2s cubic-bezier(.2,.8,.2,1) both; }
.story .rl-open .own { position: absolute; left: 0; right: 0; bottom: calc(34px + env(safe-area-inset-bottom)); z-index: 3; display: flex; gap: 8px; justify-content: center; align-items: center; font-family: var(--rl); font-weight: 700; font-size: 13px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); animation: fade 1s 1.2s both; }
/* 段の区切り */
.story .rl-sec { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.story .rl-sec > * { max-width: 100%; }
.story .rl-sec .bgc { position: absolute; inset: 0; background: radial-gradient(120% 80% at 30% 18%, color-mix(in srgb, var(--c) 45%, #fff), var(--c)); }
.story .rl-sec .scr { position: relative; font-size: 36px; color: #fff; margin: 0; transform: rotate(-6deg); animation: rlpop .5s .05s cubic-bezier(.2,1.6,.4,1) both; }
.story .rl-sec .big { position: relative; font-family: var(--rl); font-weight: 900; font-size: min(54vw, 260px); line-height: 1; color: #fff; text-shadow: 0 10px 40px rgba(0,0,0,.1); animation: slamin .5s .1s cubic-bezier(.2,1.5,.4,1) both; }
.story .rl-sec .big.long { font-size: min(14vw, 66px); margin: 10px 0; }
.story .rl-sec .big.rkbig { font-size: min(21vw, 120px); margin: 6px 0 12px; white-space: nowrap; }
.story .pill { position: relative; display: inline-block; background: #fff; color: #2b2522; font-family: var(--rl); font-weight: 700; font-size: 16px; padding: 8px 20px; border-radius: 99px; box-shadow: 0 6px 18px rgba(0,0,0,.12); animation: rlpop .5s .35s cubic-bezier(.2,1.6,.4,1) both; }
.story .rl-sec .cnt { position: relative; font-family: var(--rl); font-weight: 700; font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.92); margin: 16px 0 0; animation: fade .6s .6s both; }
/* 商品 */
.story .rl-item .ph { position: absolute; inset: 0; overflow: hidden; background: #1c1713; }
.story .rl-item .ph .bgblur { position: absolute; left: -40px; top: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(30px) brightness(.72) saturate(1.1); }
.story .rl-item .ph .fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: fade .5s ease-out both; }
.story .rl-item .dim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 18%, transparent 62%, rgba(0,0,0,.6)); }
.story .bdg { position: absolute; left: 18px; top: calc(72px + env(safe-area-inset-top)); z-index: 3; animation: rlpop .55s .1s cubic-bezier(.2,1.6,.4,1) both; }
.story .bdg.tr { width: 76px; height: 76px; border-radius: 22px; background: var(--c); color: #fff; display: grid; place-items: center; align-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.22); transform: rotate(-6deg); }
.story .bdg.tr b { font-family: var(--rl); font-weight: 900; font-size: 40px; line-height: 1; }
.story .bdg.tr.long { width: auto; height: auto; padding: 10px 16px; border-radius: 18px; } .story .bdg.tr.long b { font-size: 18px; }
.story .bdg.tr small { font-family: var(--scr); font-size: 16px; line-height: 1; margin-top: 2px; }
.story .bdg.rank { display: flex; align-items: baseline; gap: 2px; color: #fff; font-family: var(--rl); font-weight: 900; text-shadow: 0 3px 16px rgba(0,0,0,.45); }
.story .bdg.rank b { font-size: 80px; line-height: .9; }
.story .bdg.rank small { font-size: 24px; }
.story .bdg.num b { font-family: var(--scr); font-size: 58px; color: #fff; text-shadow: 0 3px 16px rgba(0,0,0,.45); }
.story .rl-item .foot { position: absolute; left: 0; right: 0; bottom: calc(30px + env(safe-area-inset-bottom)); z-index: 3; max-width: 560px; margin: 0 auto; padding: 0 20px; }
.story .svc { display: inline-block; font-family: var(--rl); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: #fff; background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 4px 11px; border-radius: 99px; animation: fade .5s calc(var(--d, 0s) + .2s) both; }
.story .rl-item h3 { font-family: var(--rl); font-weight: 900; font-size: 25px; line-height: 1.5; color: #fff; margin: 10px 0 0; text-shadow: 0 2px 14px rgba(0,0,0,.45); transform-origin: left bottom; animation: rlpop .6s calc(var(--d, 0s) + .3s) cubic-bezier(.2,1.4,.4,1) both; }
.story .bub { display: inline-block; max-width: 100%; background: #fff; color: #2b2522; font-family: var(--rl); font-weight: 500; font-size: 14.5px; line-height: 1.8; padding: 10px 15px; border-radius: 18px 18px 18px 4px; margin: 12px 0 0; box-shadow: 0 8px 22px rgba(0,0,0,.2); transform-origin: left bottom; animation: rlpop .5s calc(var(--d, 0s) + .6s) cubic-bezier(.2,1.4,.4,1) both; }
.story .bub .ch { animation: chtype .01s both; }
@keyframes chtype { from { opacity: 0; } }
.story .rl-item .mt { font-family: var(--rl); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.88); margin: 10px 0 0; animation: fade .5s calc(var(--d, 0s) + 1.2s) both; }
/* 商品画像の場面：表紙の意匠を暗くした背景に、白いカードで全体を（バッジ・文字・紙吹雪と重ならない位置） */
.story .ph.pdbg { position: absolute; inset: 0; overflow: hidden; background: #1c1713; }
.story .ph.pdbg::after { content: ''; position: absolute; inset: 0; background: rgba(28,23,19,.72); }
.story .rl-tease .ph.pdbg { inset: 0; }
.story .pfr { position: absolute; left: 8%; right: 8%; top: 23%; bottom: 38%; z-index: 4; display: flex; align-items: center; justify-content: center; animation: cardbreath 6s ease-out both; }
.story .pfr img { max-width: 100%; max-height: 100%; width: auto; height: auto; padding: 12px; border-radius: 14px; box-sizing: border-box; box-shadow: 0 18px 44px rgba(0,0,0,.4); }
@keyframes cardbreath { from { transform: scale(.94); } to { transform: scale(1); } }
.story .rl-reveal .pfr { animation: cardin 1.1s .15s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes cardin { from { opacity: 0; transform: scale(.4); } }
.story .bigq2 { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 1; text-align: center; font-family: var(--rl); font-weight: 900; font-size: 92vw; line-height: 1; color: rgba(255,255,255,.07); pointer-events: none; }
.story .vpair { position: absolute; left: 0; right: 0; top: 11%; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 12px; }
.story .vpair span { width: 32%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.story .vpair img { max-width: 100%; max-height: 100%; padding: 8px; border-radius: 12px; box-sizing: border-box; box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.story .vpair b { font-family: var(--scr); font-size: 28px; color: #fff; }
.oi-d { position: absolute; inset: 0; } .oi-d .cov { position: absolute; inset: 0; } .oi-d::after { content: ''; position: absolute; inset: 0; background: rgba(28,23,19,.6); }
/* 楽天の商品画像は、全体をそのまま（切り取り・ぼかし・色味の変更・薄くする・画像そのもののアニメーションをしない） */
img[src*="rakuten.co.jp"] { object-fit: contain !important; filter: none !important; animation: none !important; opacity: 1 !important; background: #fff; }
/* 空の段（該当なし） */
.story .rl-empty .ph { background: radial-gradient(90% 60% at 50% 45%, #4a413b, #1c1713); }
.story .rl-empty .nohit { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; }
.story .rl-empty .nohit span { font-family: var(--rl); font-weight: 900; font-size: 26px; letter-spacing: .3em; padding-left: .3em; color: rgba(255,255,255,.9); border-top: 1px solid rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.5); padding-top: 14px; padding-bottom: 14px; animation: rlpop .5s .15s cubic-bezier(.2,1.4,.4,1) both; }
/* もったいつけ */
.story .rl-tease { background: #1c1713; }
.story .rl-tease .ph { position: absolute; inset: -40px; }
.story .rl-tease .ph img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.55) saturate(1.2); }
.story .rl-tease .mid { position: absolute; left: 0; right: 0; top: 33%; z-index: 3; text-align: center; font-family: var(--rl); font-weight: 900; line-height: 2.3; }
.story .rl-tease .bx { display: inline-block; }
.story .rl-tease .l1 { font-size: 18px; animation: rlpop .5s .1s cubic-bezier(.2,1.6,.4,1) both; }
.story .rl-tease .l2 { font-size: 30px; margin-top: 8px; animation: rlpop .6s calc(var(--beat) * 2) cubic-bezier(.2,1.6,.4,1) both; }
.story .rl-tease .cd { position: absolute; left: 0; right: 0; top: 56%; z-index: 3; text-align: center; }
.story .rl-tease .cd b { position: absolute; left: 0; right: 0; font-family: var(--scr); font-size: 130px; line-height: 1; color: #fff; opacity: 0; text-shadow: 0 6px 30px rgba(0,0,0,.35); animation: cd var(--beat) both; }
@keyframes cd { 0% { opacity: 0; transform: scale(1.8); } 20% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(.9); } }
/* 発表 */
.story .rl-reveal { --d: 1s; }
.story .rl-reveal .ph .fg { animation: unblur 1.4s ease-out both; }
.story .flashw { position: absolute; inset: 0; z-index: 5; background: #fff; pointer-events: none; animation: flash .9s ease-out both; }
.story .best { position: absolute; right: 18px; top: calc(76px + env(safe-area-inset-top)); z-index: 4; width: 98px; height: 98px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; text-align: center; box-shadow: 0 10px 28px rgba(0,0,0,.25); transform: rotate(10deg); animation: stamp .6s .75s cubic-bezier(.2,1.6,.4,1) both; }
.story .best .scr { font-size: 27px; line-height: .95; }
@keyframes stamp { from { opacity: 0; transform: scale(2.2) rotate(-20deg); } }
.story .confetti { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.story .confetti i { position: absolute; top: -20px; width: 8px; height: 13px; border-radius: 2px; animation-name: fall; animation-timing-function: linear; animation-fill-mode: both; }
@keyframes fall { from { transform: translate(0, 0) rotate(0); } to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }
/* 一時停止 */
.story.paused *, .story.paused *::before, .story.paused *::after { animation-play-state: paused !important; }
.story .pausemark { position: absolute; left: 50%; top: 50%; z-index: 6; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(0,0,0,.4); display: flex; gap: 10px; justify-content: center; align-items: center; pointer-events: none; animation: fade .2s both !important; animation-play-state: running !important; }
.story .pausemark i { width: 7px; height: 26px; border-radius: 2px; background: #fff; }
/* 作った人の紹介（クリエイターカード） */
.ccard { max-width: 460px; margin: 56px auto 0; padding: 26px 24px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; text-align: center; box-shadow: 0 18px 44px rgba(80,60,40,.08); }
.ccard .cc-k { font-family: "Dancing Script", cursive; font-weight: 700; font-size: 24px; color: var(--accent); margin: 0 0 12px; }
.ccard .cc-who { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.ccard .cc-who .avatar { width: 52px; height: 52px; font-size: 22px; }
.ccard .cc-who b { display: block; font-family: var(--serif); font-size: 17px; }
.ccard .cc-who small { font-size: 12px; color: var(--sub); }
.ccard .cc-bio { font-size: 13px; line-height: 1.85; color: var(--sub); margin: 14px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard .cc-lead { font-family: var(--serif); font-size: 16px; line-height: 1.8; margin: 20px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.ccard .cc-main { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 18px; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 0 10px 24px rgba(59,53,49,.22); }
.ccard .cc-main i { font-style: normal; opacity: .7; }
.ccard .cc-more { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.ccard .cc-more { flex-wrap: wrap; }
.ccard .cc-more a.named { width: auto; display: inline-flex; gap: 6px; padding: 0 14px 0 11px; border-radius: 99px; font-size: 12.5px; text-decoration: none; }
.ccard .cc-more a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; }
.ccard .cc-sub { display: inline-block; margin-top: 16px; font-size: 12.5px; color: var(--sub); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
/* ストーリーの最後：白いカードがポンと出る */
.story .endov.has-card { background: rgba(15,10,8,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 24px 20px; overflow-y: auto; }
.story .endov.has-card .btn.primary { background: var(--accent); }
.story .endov .tfw { font-family: "Dancing Script", cursive; font-weight: 700; font-size: 30px; color: #fff; text-align: center; margin: 0; transform: rotate(-4deg); animation: rlpop .6s .1s cubic-bezier(.2,1.6,.4,1) both; }
.story .ccard.in-story { margin: 0 auto 6px; width: min(100%, 360px); background: #fffdf9; color: var(--ink); border: 0; padding: 20px 20px 18px; animation: rlpop .6s .3s cubic-bezier(.2,1.4,.4,1) both; }
.story .ccard.in-story .cc-lead { margin: 16px 0 12px; padding-top: 14px; }
/* プロフィール編集：SNS */
.snsed { display: grid; gap: 10px; }
.snscard { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; background: var(--card); }
.snscard.main { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.snscard .sc-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 30px; }
.snscard .sc-h > svg { flex: none; color: var(--ink); }
.snscard .sc-h b { font-size: 14px; flex: 1; }
.snscard .sc-h .sn-name { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 4px 2px; font-size: 16px; font-weight: 700; background: transparent; }
.snscard .mainlab { font-size: 11px; color: #fff; background: var(--accent); border-radius: 99px; padding: 3px 10px; flex: none; }
.snscard .mkmain { flex: none; border: 1px solid var(--line); background: var(--paper); color: var(--sub); border-radius: 99px; padding: 4px 11px; font-size: 11.5px; }
.snscard .rm { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--paper2); color: var(--sub); font-size: 15px; line-height: 1; padding: 0; }
.snscard .sn-v { width: 100%; }
.snsadd { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.snsadd button { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--sub); background: transparent; color: var(--ink); border-radius: 99px; padding: 6px 12px 6px 10px; font-size: 12.5px; }
.snsadd button svg { width: 15px; height: 15px; }/* 最後で止まったとき */
.story .endov { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; gap: 12px; background: rgba(15,10,8,.45); animation: fade .4s both; }
.story .endov .btn { min-width: 240px; padding: 14px 20px; }
.story .endov .btn:not(.primary) { color: var(--ink); background: rgba(255,253,249,.94); }
/* 音が鳴らせなかったとき */
.story .sound { position: absolute; left: 50%; top: calc(70px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 5; border: 0; border-radius: 99px; background: rgba(255,253,249,.92); color: var(--ink); padding: 9px 16px; font-size: 12.5px; box-shadow: 0 6px 18px rgba(0,0,0,.25); white-space: nowrap; animation: soundpulse 1.6s ease-in-out infinite; }
@keyframes soundpulse { 50% { opacity: .7; } }
.story .gate { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 16px; background: rgba(20,14,10,.4); padding: 24px; text-align: center; }
.story .gate .play { width: 86px; height: 86px; border-radius: 50%; border: 0; background: rgba(255,253,249,.94); color: var(--ink); font-size: 26px; padding-left: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: gatepulse 2s ease-in-out infinite; }
.story .gate p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.7; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.story .gate small { font-family: var(--sans, inherit); font-size: 11.5px; opacity: .8; }
.story .gate .tolist { border: 0; background: none; color: #fff; text-decoration: underline; font-size: 12.5px; opacity: .85; padding: 8px; }
@keyframes gatepulse { 50% { transform: scale(1.06); } }
.story .sl.in-next { animation: slnext .45s cubic-bezier(.2,.8,.2,1) both; }
.story .sl.in-prev { animation: slprev .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes slnext { from { transform: translateX(30%); opacity: 0; } }
@keyframes slprev { from { transform: translateX(-30%); opacity: 0; } }
/* タイトルとひとこと（1つの画面）。ひとことは少し遅れて出す */
.story .txt .desc2 { font-family: var(--serif); font-size: 15px; line-height: 2; margin: 14px 0 0; white-space: pre-wrap; }
.story .txt.open > .desc2 { animation-delay: 1.4s; }
/* もったいつけ：暗い画面で鼓動のように光り、「そして──」「〇〇は」 */
.story .tease { position: absolute; inset: 0; z-index: 3; background: #120d0a; display: grid; place-content: center; text-align: center; padding: 24px; }
.story .tease .pulse { position: absolute; left: 50%; top: 50%; width: 70vmin; height: 70vmin; margin: -35vmin 0 0 -35vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,170,.3), transparent 65%); animation: hb 1.1s ease-in-out infinite; }
@keyframes hb { 0%, 100% { transform: scale(.85); opacity: .55; } 15% { transform: scale(1.04); opacity: 1; } 30% { transform: scale(.92); } 45% { transform: scale(1.12); opacity: 1; } }
.story .tease .l1 { position: relative; font-family: var(--serif); font-size: 18px; letter-spacing: .3em; opacity: .85; margin: 0 0 18px; animation: fade 1s .2s both; }
.story .tease .l2 { position: relative; font-family: var(--serif); font-weight: 600; font-size: 32px; margin: 0; animation: rise 1.2s 1.3s cubic-bezier(.2,.8,.2,1) both; }
.story .tease .dots { position: relative; animation: fade .6s 2.2s both; }
.story .tease .dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin: 24px 5px 0; animation: dot 1.2s infinite both; }
.story .tease .dots i:nth-child(2) { animation-delay: .2s; } .story .tease .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
/* 発表：白く光って、ぼかしから写真が現れる */
.story .sl.fx-reveal > img { animation: kbs 6.4s ease-out both, unblur 1.8s ease-out both; }
@keyframes unblur { from { filter: blur(26px) brightness(.2); } }
.story .sl.fx-reveal .txt > :nth-child(1) { animation-delay: 1.3s; } .story .sl.fx-reveal .txt > :nth-child(2) { animation-delay: 1.6s; }
.story .sl.fx-reveal .txt > :nth-child(3) { animation-delay: 2.1s; } .story .sl.fx-reveal .txt > :nth-child(4) { animation-delay: 2.4s; }
.story .sl.fx-reveal .tg { font-size: 72px; }
.story .flash { position: absolute; inset: 0; z-index: 4; background: #fff; pointer-events: none; animation: flash 1s ease-out both; }
.story .flash.soft { animation-duration: .45s; }
@keyframes flash { from { opacity: .95; } to { opacity: 0; } }
.story .spark { position: absolute; inset: 0; z-index: 3; pointer-events: none; background-image: radial-gradient(2px 2px at 12% 30%, #fff, transparent), radial-gradient(2px 2px at 82% 22%, #fff, transparent), radial-gradient(1.5px 1.5px at 30% 62%, #ffe7b0, transparent), radial-gradient(2.5px 2.5px at 66% 48%, #fff, transparent), radial-gradient(1.5px 1.5px at 48% 18%, #ffe7b0, transparent), radial-gradient(2px 2px at 90% 66%, #fff, transparent), radial-gradient(1.5px 1.5px at 20% 80%, #ffe7b0, transparent); animation: sparkle 3.2s 1s ease-out both; }
@keyframes sparkle { from { opacity: 0; transform: translateY(30px) scale(.9); } 30% { opacity: 1; } to { opacity: 0; transform: translateY(-40px) scale(1.1); } }
.story .shake { animation: shake .45s ease-out both; }
@keyframes shake { 10% { transform: translate(-8px, 4px); } 25% { transform: translate(7px, -5px); } 40% { transform: translate(-5px, 3px); } 60% { transform: translate(3px, -2px); } 80% { transform: translate(-1px, 1px); } }
.story .ring { position: absolute; left: 50%; top: 45%; width: 20vmin; height: 20vmin; margin: -10vmin 0 0 -10vmin; border-radius: 50%; z-index: 4; pointer-events: none; box-shadow: 0 0 0 3px rgba(255,226,160,.9), 0 0 40px 10px rgba(255,200,120,.5); animation: ring 1s ease-out both; }
.story .ring.r2 { animation-delay: .932s; } .story .ring.r3 { animation-delay: 1.864s; }
@keyframes ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(6); opacity: 0; } }
.story .rays { position: absolute; inset: -50%; z-index: 2; pointer-events: none; background: repeating-conic-gradient(from 0deg, rgba(255,220,150,.18) 0 6deg, transparent 6deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 55%); mask-image: radial-gradient(circle, #000 8%, transparent 55%); animation: spin 16s linear infinite, fade 1.5s both; }
@keyframes spin { to { transform: rotate(360deg); } }
/* 曲に合わせる構成 */
.story .fxbg { position: absolute; inset: 0; pointer-events: none; }
.story.m-dies { background: #050403; }
.story.m-dies .fxbg { background: radial-gradient(60% 45% at 50% 55%, rgba(201,160,80,.2), transparent 70%); }
.story.m-dies .fxbg::before { content: ""; position: absolute; inset: 0 0 -240px; background-image: radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,226,160,.9), transparent), radial-gradient(1px 1px at 30% 70%, rgba(255,226,160,.8), transparent), radial-gradient(2px 2px at 60% 40%, rgba(255,240,200,.9), transparent), radial-gradient(1px 1px at 85% 85%, rgba(255,226,160,.7), transparent), radial-gradient(1.5px 1.5px at 75% 10%, rgba(255,240,200,.8), transparent); background-size: 240px 240px; animation: dust 9s linear infinite; }
@keyframes dust { to { transform: translateY(-240px); } }
.story.m-ode { background: #0b1030; }
.story.m-ode .fxbg { background: linear-gradient(115deg, transparent 20%, rgba(120,255,214,.4) 35%, transparent 50%, rgba(160,120,255,.4) 65%, transparent 80%), linear-gradient(65deg, transparent 30%, rgba(255,140,200,.35) 45%, transparent 60%); background-size: 300% 300%; filter: blur(18px) saturate(1.3); opacity: calc(.35 + var(--prog, 0) * .65); animation: aurora 7s ease-in-out infinite alternate; }
@keyframes aurora { from { background-position: 0% 50%, 100% 50%; } to { background-position: 100% 50%, 0% 50%; } }
.story.m-ode .sl, .story.m-dies .sl { background: transparent; animation-duration: .25s; }
.story.m-ode .ring { box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 40px 10px rgba(170,200,255,.6); }
.story.m-ode .rays { background: repeating-conic-gradient(from 0deg, rgba(255,160,220,.16) 0 5deg, rgba(140,220,255,.16) 5deg 10deg, transparent 10deg 20deg); }
.story .gold { background: linear-gradient(180deg, #fff7dc 0%, #f0cf86 45%, #b88a3c 72%, #f6dc9a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story .rainbow { background: linear-gradient(90deg, #ff9ab0, #ffd27a, #a6f0a0, #8fd8ff, #c6a6ff, #ff9ab0); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rb 2.4s linear infinite; }
@keyframes rb { to { background-position: 200% 0; } }
.story .sp-open { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center; padding: 40px 28px; }
.story .sp-open h3 { font-family: var(--serif); font-weight: 700; font-size: 32px; line-height: 1.5; margin: 10px 0 6px; animation: emerge 2.4s ease-out both; }
.story .sp-open .by { font-size: 13px; opacity: .8; margin: 0; animation: fade 1s .8s both; }
.story .sp-open .desc2 { font-family: var(--serif); font-size: 15px; line-height: 2; margin: 22px auto 0; max-width: 22em; white-space: pre-wrap; animation: fade 1.2s 1.2s both; }
@keyframes emerge { from { opacity: 0; letter-spacing: .3em; filter: blur(8px); } }
.story.m-dies .sl > .mos, .story.m-dies .unit .mos { filter: brightness(.5) sepia(.45) saturate(1.2); }
.story.m-dies .sp-open ~ *, .story.m-dies .shade.deep { background: rgba(5,4,3,.72); }
.story.m-ode .shade.deep { background: rgba(11,16,48,.62); }
.story .unit { position: absolute; inset: 0; animation: slamzoom .6s cubic-bezier(.2,.8,.2,1) both; }
.story.m-ode .unit { inset: 14% 8% 30%; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 0 44px rgba(170,140,255,.65); animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes slamzoom { from { transform: scale(1.25); } }
@keyframes pop { from { transform: scale(.82); opacity: 0; } }
.story .hitlab { position: absolute; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 3; text-align: center; padding: 0 24px; }
.story .hitlab .big { font-family: var(--num); font-weight: 600; font-size: 96px; line-height: 1; animation: slam .38s cubic-bezier(.2,.8,.2,1) both; }
.story .hitlab .big.long { font-family: var(--serif); font-size: 40px; }
@keyframes slam { from { transform: scale(2.4); opacity: 0; filter: blur(6px); } }
.story .hitlab .w { font-family: var(--hand); font-size: 14px; letter-spacing: .2em; opacity: .85; margin: 8px 0 0; }
.story .hitlab .nm { font-family: var(--serif); font-size: 17px; line-height: 1.6; margin: 8px 0 0; animation: fade .5s .15s both; }
.story .build { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center; padding: 24px; }
.story .build .l1 { font-family: var(--serif); font-size: 18px; letter-spacing: .3em; opacity: .85; margin: 0 0 16px; animation: fade 1s both; }
.story .build .l2 { font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.5; margin: 0; animation: wipe 1.4s .5s cubic-bezier(.2,.8,.2,1) both; }
.story.m-dies .build .l2 { animation: wipe 1.1s .2s cubic-bezier(.2,.8,.2,1) both, tremble .12s 1.3s linear infinite; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tremble { 50% { transform: translate(1.5px, -1px); } }
.story .climax > .mos { animation: kbs 7s ease-out both, unblur 1.6s ease-out both; }
.story .heaven { position: absolute; left: 0; right: 0; top: 0; height: 75%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(255,240,200,.8), rgba(255,220,150,.25) 45%, transparent); mix-blend-mode: screen; animation: fade 1.2s both, breathe 3s 1.2s ease-in-out infinite alternate; }
.story.m-ode .heaven { background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(200,170,255,.3) 45%, transparent); }
@keyframes breathe { to { opacity: .5; } }
.story .climax .txt > :nth-child(1) { animation-delay: 1s; } .story .climax .txt > :nth-child(2) { animation-delay: 1.4s; } .story .climax .txt > :nth-child(3) { animation-delay: 1.9s; }
.story .climax .tg { font-size: 84px; }
.story .climax .rays { opacity: .45; }
.story .outro { position: absolute; inset: 0; z-index: 5; background: #000; animation: fade .8s both; }
.story.m-ode .outro { background: #fff; }
.story .sl { position: absolute; inset: 0; overflow: hidden; animation: fade .6s ease both; }
:where(.story .sl) { background: #1c1713; } /* 画面ごとの地の色（紙の地など）を優先する */
.story.is-end .tap, .story.is-end .who { display: none; }
.story .sl > .mos, .story .sl > .cov { animation: kbs 6s ease-out both; }
.story .mos.prod { background: #1c1713; align-content: center; padding: 14px; }
.story .sl > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kbs 5s ease-out both; }
@keyframes kbs { from { transform: scale(1.18) translate(-2%, 1%); } to { transform: scale(1.02); } }
.story .shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), transparent 22%, transparent 45%, rgba(20,14,10,.82)); }
.story .bars { position: absolute; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top)); display: flex; gap: 4px; z-index: 3; }
.story .bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.story .bars i b { display: block; height: 100%; width: 0; background: #fff; }
.story .bars i.done b { width: 100%; }
.story .bars i.now b { animation: bar var(--dur) linear forwards; }
@keyframes bar { to { width: 100%; } }
.story .x { position: absolute; right: 10px; top: calc(22px + env(safe-area-inset-top)); z-index: 4; border: 0; background: none; color: #fff; font-size: 26px; width: 44px; height: 44px; }
.story .who { position: absolute; left: 14px; top: calc(26px + env(safe-area-inset-top)); z-index: 3; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.story .txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px calc(40px + env(safe-area-inset-bottom)); z-index: 3; max-width: 640px; margin: 0 auto; }
.story .txt > * { animation: rise 1s cubic-bezier(.2,.8,.2,1) both; }
.story .txt > :nth-child(2) { animation-delay: .25s; } .story .txt > :nth-child(3) { animation-delay: .6s; } .story .txt > :nth-child(4) { animation-delay: .9s; }
.story .tg { font-family: var(--num); font-style: normal; font-size: 56px; line-height: 1; }
.story h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.5; margin: 6px 0 8px; }
.story .hand { font-size: 19px; line-height: 1.7; margin: 0; }
.story .meta { font-size: 12px; opacity: .75; margin-top: 12px; }
.story .tap { position: absolute; top: 0; bottom: 0; z-index: 2; }
.story .tap.l { left: 0; width: 32%; } .story .tap.r { right: 0; width: 68%; }
.story .mid { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center; padding: 40px 32px; }
.story .mid > * { animation: rise 1.2s cubic-bezier(.2,.8,.2,1) both; }
.story .mid > :nth-child(2) { animation-delay: .35s; } .story .mid > :nth-child(3) { animation-delay: .7s; }
.story .mid h3 { font-size: 30px; margin: 10px 0 14px; }
.story .mid .desc { font-family: var(--serif); font-size: 18px; line-height: 2.1; margin: 0 auto; max-width: 22em; white-space: pre-wrap; }
.story .mid .rule { width: 32px; height: 1px; background: rgba(255,255,255,.8); margin: 0 auto 22px; }
.story .shade.deep { background: rgba(20,14,10,.55); }
.story .sec { position: absolute; inset: 0; background: #1c1713; }
.story .sec .big { font-family: var(--num); font-weight: 600; font-size: 120px; line-height: 1; }
.story .sec .big.long { font-family: var(--serif); font-size: 44px; }
.story .sec .w { font-family: var(--hand); font-size: 15px; letter-spacing: .2em; opacity: .8; margin-top: 18px; }
.story .end { position: absolute; inset: 0; background: var(--paper); color: var(--ink); display: grid; place-content: center; text-align: center; padding: 24px; gap: 14px; z-index: 3; }
.story .end h3 { font-family: var(--serif); font-size: 26px; margin: 0; }
.story .end .btn { min-width: 260px; }

/* ---- シート ---- */
.sheet-bg { position: fixed; inset: 0; background: rgba(40,30,22,.35); backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; overscroll-behavior: contain; touch-action: none; }
.sheet { background: var(--card); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; overscroll-behavior: contain; touch-action: pan-y; border-radius: 24px 24px 0 0; padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); animation: up .3s cubic-bezier(.2,.9,.2,1); position: relative; }
.sheet h2 { margin: 0 0 14px; font-size: 19px; }
/* 追加する画面：見出し・タブ・お店・検索欄は止めて、商品の一覧だけスクロール */
.sheet.addsheet .adddone { position: absolute; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 3; padding: 13px 26px; box-shadow: 0 10px 26px rgba(59,53,49,.28); }
.sheet.addsheet #addbody > #results, .sheet.addsheet #addbody > .rlist, .sheet.addsheet #addbody { padding-bottom: 76px; }
.sheet.addsheet #addbody:has(> #results) { padding-bottom: 0; }
.sheet.addsheet { position: relative; height: 92vh; overflow: hidden; display: flex; flex-direction: column; }
.sheet.addsheet > .close, .sheet.addsheet > h2, .sheet.addsheet > .tabs { flex: none; }
.sheet.addsheet > .close { align-self: flex-end; margin-bottom: -34px; position: relative; z-index: 1; }
.sheet.addsheet #addbody { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; }
.sheet.addsheet #addbody > * { flex: none; }
.sheet.addsheet #addbody > #results { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; margin-top: 10px; padding-bottom: 80px; }
.sheet .close { float: right; position: relative; z-index: 6; border: 0; background: var(--paper2); width: 34px; height: 34px; border-radius: 50%; font-size: 15px; line-height: 1; } /* 写真のスライドなど、あとに来る中身より手前に */
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(60px); opacity: .4; } }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 4px -18px 14px; padding: 0 18px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: center; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; background: var(--paper2); position: relative; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255,253,249,.9); border-radius: 99px; padding: 3px 9px; font-size: 10.5px; }
.gallery.one { grid-auto-columns: 100%; }
.detail .tierpin { font-family: var(--num); font-style: normal; font-size: 34px; color: var(--accent); line-height: 1; text-align: center; }
.detail h2.nk { text-align: center; margin: 4px 0 12px; font-size: 21px; }
.detail .quote { font-family: var(--hand); font-size: 17px; line-height: 1.7; text-align: center; margin: 0 6px 14px; }
.detail .quote small { display: block; font-family: "Zen Kaku Gothic New", sans-serif; color: var(--sub); font-size: 11px; margin-top: 4px; }
.detail .full { font-size: 11.5px; color: var(--sub); line-height: 1.6; }
.adopted { color: #6f8a5c; font-weight: 700; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field label { font-size: 12.5px; color: var(--sub); }
.field input, .field textarea { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fff; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 90px; resize: vertical; font-family: var(--hand); }
.field input, .field textarea { font-size: 16px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 12.5px; white-space: nowrap; }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 12px; }
.res { border: 0; background: none; padding: 0; text-align: left; position: relative; }
.res img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; background: var(--paper2); }
.res span { font-size: 11px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; color: var(--sub); }
.res.in::after { content: "追加済み"; position: absolute; left: 6px; top: 6px; background: var(--ink); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 99px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; }
.swatches button.on { border-color: var(--ink); }
.prov { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 10px 0; padding: 13px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; }
.prov.x { background: #000; color: #fff; border-color: #000; }
.prov svg { width: 18px; height: 18px; }
.stubnote { font-size: 11.5px; color: var(--sub); background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; margin-top: 12px; line-height: 1.6; }
.score { text-align: center; margin: 4px 0 16px; }
.score b { display: block; font-family: var(--num); font-style: normal; font-weight: 500; font-size: 68px; line-height: 1.05; color: var(--accent); }
.score .w { font-family: var(--hand); font-size: 20px; }
.diff { display: grid; gap: 8px; }
.diff div { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.diff img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.diff .ok { color: #6f8a5c; font-weight: 700; }
.tag { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-family: var(--num); font-style: normal; font-weight: 600; padding: 0 5px; color: #fff; }
.celebrate { text-align: center; margin: 0 0 14px; }
.celebrate .big { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.celebrate p { margin: 6px 0 0; color: var(--sub); font-size: 13px; font-family: var(--hand); }
.card-preview { width: 100%; aspect-ratio: 1200 / 630; overflow: hidden; border-radius: 12px; position: relative; background: var(--paper); box-shadow: 0 16px 40px rgba(60,40,20,.2); }
.card-preview .scaler { transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.sharegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.sharegrid .wide { grid-column: 1 / -1; }
.petal { position: fixed; top: -20px; z-index: 61; pointer-events: none; width: 10px; height: 13px; border-radius: 60% 0 60% 0; animation: fall linear forwards; opacity: .9; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }

/* ---- 紹介カード（シェア画像。1200×630。商品写真は使わず、ユーザーの写真と手書き風の文字で） ---- */
/* 角を丸く見せるため、台紙（外側）の上に角丸のカードを置く。透明な角はSNS側で黒くなることがあるので使わない */
/* ---- シェアカード ---- */
.sc2 { position: relative; overflow: hidden; background: var(--bg); color: #2b2522; font-family: "Zen Kaku Gothic New", sans-serif; font-feature-settings: "palt"; }
.sc2.wide { width: 1200px; height: 630px; }
.sc2.tall { width: 1080px; height: 1920px; }
.sc2 .cv { position: absolute; overflow: hidden; background: #e9e1d6; box-shadow: 0 18px 40px rgba(60,40,25,.18); }
.sc2 .cv .mos, .sc2 .cv .cov { position: absolute; inset: 0; }
.sc2 .cv .mos img { filter: none; }
.sc2 .cv.blur .cov, .sc2 .cv.blur .mos { filter: blur(26px) saturate(1.15); transform: scale(1.15); }
.sc2 .cv .bigq { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-family: "Dancing Script", cursive; font-weight: 700; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.25); }
.sc2 .cv.none { background: color-mix(in srgb, var(--ac) 14%, #fff); }
.sc2 .cv .letters { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .08em; font-weight: 900; line-height: 1; }
.sc2 .cv .stk { position: absolute; background: var(--ac); color: #fff; font-weight: 700; border-radius: 99px; transform: rotate(-3deg); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.sc2 .rt { position: absolute; display: flex; flex-direction: column; }
.sc2 .k { font-family: "Dancing Script", cursive; font-weight: 700; color: var(--ac); margin: 0; line-height: 1; }
.sc2 .ttl { display: inline; background: #fff; color: #2b2522; font-weight: 900; line-height: 1.8; padding: .08em .4em; border-radius: .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; box-shadow: 0 4px 14px rgba(60,40,25,.08); }
.sc2 .tt { word-break: auto-phrase; }
.sc2 .by { color: #857a70; margin: 0; }
.sc2 .rws { display: grid; grid-template-columns: minmax(0, 1fr); }
.sc2 .rw { display: flex; align-items: center; }
.sc2 .lb { flex: none; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 900; }
.sc2 .ts, .sc2 .grid { display: flex; flex: 0 1 auto; min-width: 0; align-items: center; }
.sc2 .grid { flex-wrap: wrap; }
.sc2 .t { position: relative; flex: none; overflow: hidden; background: #fff; box-shadow: 0 4px 12px rgba(60,40,25,.12); }
.sc2 .t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc2 .t.nm { display: grid; place-items: center; text-align: center; }
.sc2 .t.nm span { font-weight: 700; color: #2b2522; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sc2 .t.lk { background: color-mix(in srgb, var(--c) 60%, #fff); }
.sc2 .t.lk img { filter: blur(9px) saturate(1.2); transform: scale(1.25); }
.sc2 .t.lk .q { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 900; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.sc2 .t em { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(43,37,34,.72); color: #fff; font-style: normal; font-weight: 700; text-align: center; }
.sc2 .lock { flex: none; display: grid; place-items: center; border-radius: 50%; background: #2b2522; color: #fff; }
.sc2 .more { color: #857a70; font-weight: 700; }
.sc2 .ft { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.sc2 .q2 { font-weight: 900; margin: 0; }
.sc2 .cta { display: inline-flex; align-items: center; background: #2b2522; color: #fff; font-weight: 700; border-radius: 99px; }
.sc2 .lg { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600; line-height: 1; color: #2b2522; }
.sc2 .lg b { font-weight: 600; background: linear-gradient(100deg, #b5654f 5%, #c08a45 52%, #6f8550 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* 横長 */
.sc2.wide .cv { left: 28px; top: 28px; bottom: 28px; width: 520px; border-radius: 28px; }
.sc2.wide .cv .bigq { font-size: 240px; }
.sc2.wide .cv .letters { font-size: 150px; }
.sc2.wide .cv .stk { left: 22px; top: 22px; font-size: 20px; padding: 8px 18px; }
.sc2.wide .rt { left: 586px; right: 44px; top: 42px; bottom: 36px; }
.sc2.wide .k { font-size: 32px; margin-bottom: 8px; }
.sc2.wide .by { font-size: 17px; margin: 6px 0 0; }
.sc2.wide .rws { gap: 12px; margin-top: 18px; }
.sc2.wide .rw { gap: 12px; }
.sc2.wide .lb { width: 58px; height: 58px; border-radius: 16px; font-size: 28px; } .sc2.wide .lb.sm { font-size: 18px; }
.sc2.wide .ts, .sc2.wide .grid { gap: 10px; }
.sc2.wide .t { width: 64px; height: 64px; border-radius: 14px; }
.sc2.wide .t.nm span { font-size: 11px; padding: 4px; }
.sc2.wide .t.lk .q { font-size: 30px; }
.sc2.wide .t em { font-size: 11px; padding: 2px 0; }
.sc2.wide .lock { width: 38px; height: 38px; } .sc2.wide .lock svg { width: 18px; height: 18px; }
.sc2.wide .more { font-size: 18px; }
.sc2.wide .q2 { font-size: 26px; }
.sc2.wide .cta { gap: 8px; margin-top: 10px; padding: 10px 20px; font-size: 18px; }
.sc2.wide .lg { font-size: 38px; }
/* 縦長（ストーリー用） */
.sc2.tall .cv { left: 44px; right: 44px; top: 44px; height: 760px; border-radius: 48px; }
.sc2.tall .cv .bigq { font-size: 420px; }
.sc2.tall .cv .letters { font-size: 280px; }
.sc2.tall .cv .stk { left: 40px; top: 40px; font-size: 34px; padding: 12px 30px; }
.sc2.tall .rt { left: 84px; right: 84px; top: 712px; bottom: 64px; }
.sc2.tall .k { display: none; } /* 縦長は表紙のシールで形がわかるので出さない */
.sc2.tall .by { font-size: 30px; margin: 14px 0 0; }
.sc2.tall .rws { gap: 18px; margin-top: 34px; }
.sc2.tall .rw { gap: 20px; }
.sc2.tall .lb { width: 92px; height: 92px; border-radius: 26px; font-size: 46px; } .sc2.tall .lb.sm { font-size: 30px; }
.sc2.tall .ts, .sc2.tall .grid { gap: 16px; }
.sc2.tall .t { width: 100px; height: 100px; border-radius: 22px; }
.sc2.tall .t.nm span { font-size: 18px; padding: 8px; }
.sc2.tall .t.lk .q { font-size: 52px; }
.sc2.tall .t em { font-size: 18px; padding: 4px 0; }
.sc2.tall .lock { width: 64px; height: 64px; } .sc2.tall .lock svg { width: 30px; height: 30px; }
.sc2.tall .more { font-size: 30px; }
.sc2.tall .ft { flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.sc2.tall .q2 { font-size: 50px; }
.sc2.tall .cta { gap: 12px; margin-top: 22px; padding: 22px 46px; font-size: 38px; transform: rotate(-2deg); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.sc2.tall .lg { font-size: 56px; }
/* シェアの画面のプレビュー */
.sharetabs { margin: 4px 0 12px; }
.card-preview.tall { width: min(100%, 300px); aspect-ratio: 1080 / 1920; margin: 0 auto; }
#card-stage { position: fixed; left: -99999px; top: 0; }

/* ---- プロフィール ---- */
.wrap-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.wrap-stats div { border-radius: 16px; padding: 14px 12px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.wrap-stats span { font-size: 11.5px; color: var(--sub); }
.wrap-stats b { display: block; font-family: var(--num); font-style: normal; font-weight: 500; font-size: 36px; line-height: 1.1; }
.wrap-stats div:nth-child(3) b { color: var(--accent); }
.bio { font-size: 14px; line-height: 1.9; margin: 12px 0 0; white-space: pre-wrap; }
.snslinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.snslinks a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: 12.5px; color: var(--ink); text-decoration: none; }
.snslinks a svg { color: var(--sub); }
.bestitem { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.bestitem img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }

#toast { position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fbf8f3; padding: 11px 18px; border-radius: 99px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; max-width: 90vw; text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%); }
footer.site { max-width: 760px; margin: 0 auto; padding: 30px 16px 150px; font-size: 11.5px; color: var(--dim); line-height: 1.8; }
footer.site .credit a { color: var(--sub); }
footer.site .footlinks { margin: 4px 0 8px; }
footer.site .footlinks button { color: var(--sub); font-size: 12px; }
.docbody { font-size: 13px; line-height: 1.85; }
.docbody h4 { font-size: 14px; margin: 18px 0 4px; }
.docbody p { margin: 0 0 8px; } .docbody ul { margin: 4px 0 8px; padding-left: 20px; }
.docbody .date { margin-top: 18px; font-size: 11.5px; color: var(--sub); }
.docbody table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.docbody th, .docbody td { text-align: left; vertical-align: top; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.docbody th { width: 30%; font-weight: 700; white-space: nowrap; }
footer.site button { border: 0; background: none; text-decoration: underline; color: var(--dim); padding: 0; font-size: 11.5px; }
@media (min-width: 640px) {
  .tile { width: 80px; height: 80px; }
  .tier { grid-template-columns: 76px 1fr; }
  .hero-photos { height: 440px; }
  .hero h1 br.sp { display: none; }
  .pola.p3 { top: 210px; }
  .formats { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .tgrid { grid-template-columns: repeat(3, 1fr); }
  .tgrid.feat .icard:first-child { grid-column: span 2; grid-row: span 2; }
  .tgrid.small { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ログイン：新規アカウントの作成・アカウントの削除 */
.signup { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.signup span { display: block; font-size: 12px; color: var(--sub); margin-bottom: 8px; }
.linkbtn { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; font: inherit; }
.danger { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.danger p { font-size: 12px; color: var(--sub); line-height: 1.7; margin: 0 0 10px; }
.danger .btn { color: #b3483b; border-color: color-mix(in srgb, #b3483b 40%, var(--line)); }
/* ログイン：新規アカウントの作成・アカウントの削除 */
.signup { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.signup span { display: block; font-size: 12px; color: var(--sub); margin-bottom: 8px; }
.linkbtn { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; font: inherit; }
.danger { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.danger p { font-size: 12px; color: var(--sub); line-height: 1.7; margin: 0 0 10px; }
.danger .btn { color: #b3483b; border-color: color-mix(in srgb, #b3483b 40%, var(--line)); }
/* 本番：画面のデータを読んでいるあいだ */
.loadmsg { text-align: center; color: var(--sub); font-size: 13px; padding: 80px 0; }
.srmore { margin: 12px 0 70px; }
/* ログインの前の、引き継ぎの注意 */
.carry { font-size: 12px; line-height: 1.75; color: var(--ink); background: color-mix(in srgb, var(--accent) 9%, var(--card)); border-radius: 12px; padding: 10px 12px; margin: 4px 0 12px; }
/* 規約などのページ（/terms・/privacy・/about） */
.docpage { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; }
.docpage h1 { font-size: 24px; margin: 10px 0 18px; }
.footlinks a { color: var(--sub); }

/* ---- 特集テーマ・みんなに聞いてみた ---- */
a.use.qcard { display: block; color: inherit; text-decoration: none; }
.qgo { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.qgo.done { color: var(--sub); font-weight: 500; }
.offpop { text-align: center; }
.offpop .kicker { margin: 0 0 8px; }
.offpop h2 { font-size: 19px; line-height: 1.5; margin: 0 0 4px; }
.offpop h2 small { font-family: var(--hand); font-size: 12px; color: var(--sub); margin-left: 8px; font-weight: 500; }
.offpop .small { line-height: 1.8; margin: 0 0 12px; }
/* 中のリストだけをスクロール（見出しと「閉じる」は動かない） */
.offlist { max-height: min(56vh, 520px); overflow-y: auto; overscroll-behavior: contain; text-align: left; display: grid; gap: 10px; margin: 0 -4px 12px; padding: 2px 4px; }
.offrow { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.offrow .ph { flex: 0 0 84px; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: var(--paper2); position: relative; }
.offrow .orb { min-width: 0; flex: 1; }
.offrow .fmt { display: inline-block; font-size: 10.5px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); padding: 1px 8px; border-radius: 99px; }
.offrow b { display: block; font-family: var(--serif); font-size: 15px; line-height: 1.5; margin: 4px 0 2px; }
.offrow .opd { font-family: var(--hand); font-size: 12.5px; color: var(--sub); line-height: 1.6; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offrow .btn { margin-top: 4px; }
.offnone { font-size: 13px; color: var(--sub); background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 16px; line-height: 1.8; }
.offbar { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--ink); font-size: 12.5px; }

/* ---- 管理画面 ---- */
.adnums { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 14px 0; }
.adnums > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.adnums span { display: block; font-size: 11px; color: var(--sub); }
.adnums b { display: block; font-family: var(--num); font-size: 22px; font-weight: 600; margin-top: 2px; }
.adnums small { display: block; font-size: 10.5px; color: var(--dim); }
.adlist { display: grid; gap: 8px; margin-top: 12px; }
.adrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.adm { min-width: 0; flex: 1 1 180px; }
.admv { display: flex; flex-direction: column; gap: 4px; }
.admv .btn { padding: 2px 10px; min-width: 0; line-height: 1.4; }
.admv .btn:disabled { opacity: .3; }
.adm a { color: inherit; text-decoration: none; }
.adm b { font-family: var(--serif); }
.adm small { display: block; font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.adtag, .adst { display: inline-block; font-size: 10.5px; padding: 1px 8px; border-radius: 99px; margin-right: 6px; border: 1px solid var(--line); color: var(--sub); }
.adst.s-live { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.adacts { display: flex; flex-wrap: wrap; gap: 6px; }
.adfind { flex-wrap: nowrap; }
.adfind input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font: inherit; font-size: 14px; background: #fff; }

/* ---- 統計 ---- */
.ssec { margin-top: 8px; }
.schart { display: block; width: 100%; height: auto; margin-top: 6px; }
.schart .sgrid { stroke: var(--line); stroke-width: 1; }
.schart .sax { font-size: 11px; fill: var(--sub); }
.schart .sval { font-size: 12px; fill: var(--ink); font-weight: 700; }
.schart .sbar:hover path { filter: brightness(1.08); }
.slegend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--sub); margin-top: 6px; }
.slegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.slegend i.est { background: #b5653f; opacity: .45; }
.stbl { overflow-x: auto; margin: 10px 0 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.stbl table { border-collapse: collapse; width: 100%; font-size: 12px; }
.stbl th, .stbl td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.stbl th:first-child, .stbl td:first-child, .stbl td:nth-child(2) { text-align: left; }
.stbl th { color: var(--sub); font-weight: 500; background: var(--paper2); }
.stbl tr:last-child td { border-bottom: 0; }

/* ---- TierLia の活用方法 ---- */
footer.site .footlinks a { font-size: 12px; text-decoration: none; }
.guidelink { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.guide { max-width: 760px; margin: 0 auto; }
.g-lead { font-family: var(--serif); font-size: 15px; line-height: 2; margin: 6px 0 18px; }
.g-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-bottom: 26px; }
.g-toc a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.5; }
.g-toc b { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--paper2); font-family: var(--en); font-size: 15px; color: var(--accent); }
.gsec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; margin-bottom: 18px; scroll-margin-top: 80px; }
.gsec.soon { background: var(--paper2); }
.gs-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.gs-no { font-family: var(--en); font-style: italic; font-size: 34px; line-height: 1; color: var(--accent); }
.gs-en { margin: 2px 0 2px; font-family: var(--en); font-style: italic; font-size: 13px; color: var(--sub); }
.gs-soon { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--ink); color: #fff; font-family: var(--hand); font-style: normal; font-size: 10.5px; letter-spacing: .04em; vertical-align: 1px; }
.gs-h h2 { margin: 0; font-size: 19px; line-height: 1.5; }
.gs-b { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.gs-mock .mock { margin: 0; }
.gs-lead { margin: 0 0 10px; font-size: 14px; line-height: 1.9; }
.gs-pts { margin: 0 0 14px; padding-left: 1.2em; font-size: 13px; line-height: 1.85; color: var(--ink); }
.gs-pts li { margin-bottom: 4px; }
.gs-pts li::marker { color: var(--accent); }
.gs-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-acts a.btn { text-decoration: none; }
@media (max-width: 560px) {
  .gs-b { grid-template-columns: 1fr; }
  .gs-mock { max-width: 160px; }
}

/* ---- 画像・テキストの項目 ---- */

.cnote { font-size: 12.5px; line-height: 1.8; color: var(--ink); background: color-mix(in srgb, var(--accent) 8%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 12px; padding: 10px 12px; margin: 4px 0 14px; }
.cpick { display: grid; justify-items: center; gap: 2px; width: 100%; padding: 22px 12px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 16px; background: var(--card); color: var(--ink); margin-bottom: 12px; }
.cpick b { font-size: 30px; font-weight: 400; line-height: 1; color: var(--accent); }
.cpick span { font-size: 15px; font-weight: 700; }
.cpick small { font-size: 11.5px; color: var(--sub); }
.cpick:disabled { opacity: .45; }
.ctext { display: flex; gap: 8px; }
.ctext input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; background: #fff; }
.crecent { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.crc { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 6px; text-align: center; }
.crc img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--paper2); border-radius: 8px; display: block; }
.crc span { display: block; font-size: 11.5px; line-height: 1.4; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crc i { position: absolute; top: 2px; right: 4px; font-style: normal; font-weight: 700; color: var(--accent); }
.ccount { font-family: var(--num); font-size: 13px; color: var(--sub); margin: 10px 0 0; text-align: right; }
.expopts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.expopts button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 6px; font-size: 14px; }
.expopts button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.guestnote { font-size: 12.5px; line-height: 1.8; background: var(--paper2); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
/* 自分のリストの上の帯（公開終了・公開期限・ゲストのリストの期限） */
.stbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; }
.stbar b { margin-right: 8px; }
.stbar.end { background: #3b3531; color: #fff; border-color: #3b3531; }
.stbar.guest { background: var(--paper2); }
.lbadge { display: inline-block; margin: 2px 0 4px; padding: 1px 8px; border-radius: 99px; font-size: 10.5px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
.lbadge.end { background: var(--ink); color: #fff; border-color: var(--ink); }
.endpage { max-width: 520px; margin: 40px auto; text-align: center; }
.endpage p { line-height: 1.9; color: var(--sub); }

/* ---- リスト画像（1080px幅で作って、プレビューは縮めて見せる） ---- */
.tiprev { position: relative; overflow: hidden; border-radius: 12px; background: var(--paper2); }
.tiscale { position: absolute; left: 0; top: 0; width: 1080px; transform-origin: 0 0; }
.tlimg { width: 1080px; box-sizing: border-box; padding: 36px 32px 24px; font-family: "Zen Kaku Gothic New", sans-serif; }
.tlimg .ti-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; }
.tlimg .ti-head b { font-size: 44px; line-height: 1.3; text-align: center; }
.tlimg .ti-row { display: flex; margin-bottom: 4px; min-height: 140px; }
.tlimg .ti-lab { flex: 0 0 140px; display: grid; place-items: center; text-align: center; padding: 8px; }
.tlimg .ti-lab b { font-size: 40px; line-height: 1.15; word-break: break-all; }
.tlimg .ti-items { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; padding: 4px; }
.tlimg .ti-row.one .ti-items { justify-content: center; gap: 12px; padding: 12px; }
.tlimg .ti-t { position: relative; width: 132px; height: 132px; overflow: hidden; }
.tlimg .ti-t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tlimg .ti-t span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 15px; line-height: 1.25; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tlimg .ti-vs { align-self: center; font-size: 48px; font-weight: 900; padding: 0 12px; }
.tlimg .ti-foot { display: flex; justify-content: space-between; margin-top: 18px; font-size: 18px; opacity: .8; }
.tlimg .ti-foot span { font-family: var(--en); font-style: italic; font-size: 24px; }
/* クラシック：ティアメーカー風 */
.tlimg.d-classic { background: #1a1a17; color: #fff; }
.tlimg.d-classic .ti-row { background: #2b2b27; }
.tlimg.d-classic .ti-lab { background: var(--c); color: #1a1a17; }
/* ネオン：ゲームのランキング画面風 */
.tlimg.d-neon { background: radial-gradient(120% 80% at 50% 0%, #1d1b4a, #0a0a1f 70%); color: #e9f7ff; font-family: "DotGothic16", monospace; }
.tlimg.d-neon .ti-head b { color: #fff; text-shadow: 0 0 8px #3dd5ff, 0 0 22px #ff3fa4; letter-spacing: .06em; }
.tlimg.d-neon .ti-row { border: 2px solid rgba(61, 213, 255, .55); box-shadow: 0 0 12px rgba(61, 213, 255, .35) inset; margin-bottom: 8px; border-radius: 6px; background: rgba(10, 10, 31, .6); }
.tlimg.d-neon .ti-lab { color: var(--c); text-shadow: 0 0 10px var(--c), 0 0 24px var(--c); border-right: 2px solid rgba(61, 213, 255, .45); }
.tlimg.d-neon .ti-t { border: 2px solid rgba(255, 63, 164, .65); box-shadow: 0 0 10px rgba(255, 63, 164, .45); border-radius: 4px; }
.tlimg.d-neon .ti-vs { color: #ffe14d; text-shadow: 0 0 14px #ff3fa4; }
/* ゆめかわ：パステルの推し活・アニメ風 */
.tlimg.d-yume { background: linear-gradient(160deg, #ffe3ef 0%, #e8e4ff 50%, #dff4ff 100%); color: #6a4c7d; font-family: "M PLUS Rounded 1c", sans-serif; }
.tlimg.d-yume .ti-head b { color: #e0679a; }
.tlimg.d-yume .ti-spark { font-style: normal; font-size: 34px; color: #ffb3c7; }
.tlimg.d-yume .ti-row { background: rgba(255, 255, 255, .7); border-radius: 22px; margin-bottom: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(160, 120, 200, .15); }
.tlimg.d-yume .ti-lab { background: var(--c); color: #7a4a6e; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); border-radius: 22px 0 0 22px; }
.tlimg.d-yume .ti-t { border-radius: 16px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(160, 120, 200, .25); }
.tlimg.d-yume .ti-vs { color: #e0679a; }
/* リストの種類を選ぶ */
.typepick { display: grid; gap: 10px; }
.tpc { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px 16px; }
.tpc b { display: block; font-family: var(--serif); font-size: 16px; margin-bottom: 4px; }
.tpc span { display: block; font-size: 12.5px; line-height: 1.7; color: var(--sub); }
.tpc:active { transform: scale(.99); }
.typebar { margin: 0 0 8px; font-size: 12px; color: var(--accent); }
/* 画像・テキストの項目は、切り取らずに全体を見せる（枠の余白は背景の色） */
.icard .iph > img.cimg, .vote img.cimg { object-fit: contain; }

/* =====================================================================
   リストのデザイン（ナチュラル・ラグジュアリー・スタイリッシュ・ファンタジー・ダークファンタジー・ネオン・セレスティア）
   色は app.js の LIST_DESIGNS が、そのリストのページの間だけ :root の変数を置きかえる。ここはデザインごとの飾りと動き
   ===================================================================== */
/* シートやストーリーは、いつもの色のまま（暗いデザインでも読みやすいように） */
#sheet-root, #story-root, #toast { --paper: #fdfbf7; --paper2: #f6f4f0; --card: #ffffff; --ink: #3b3531; --sub: #857a70; --dim: #b3a89c; --line: #e5ddd2; --accent: #b77f68; --ac2: #d9aaa0; color: var(--ink); }
/* 楽天の商品の画像は、切り取らずに全体を見せる（規約） */
.icard .iph > img.prodimg:not(.cimg) { object-fit: contain; background: #fff; }
html { --ac2: #d9aaa0; }
html[data-ld] body { color: var(--ink); }
html[data-ld] #app { position: relative; }
/* 暗いデザイン：文字とボタンの色を反転 */
html[data-dark] .btn.primary, html[data-dark] .ansband, html[data-dark] .ccard .cc-main { color: var(--paper); }
html[data-dark] .avatar { color: var(--ink); }
html[data-dark] .sharebar .btn { box-shadow: 0 10px 26px rgba(0, 0, 0, .55); }
html[data-dark] .standfirst::before, html[data-dark] .standfirst::after { background: var(--accent); }

/* ---- 演出の層（画面に固定。タップは通す） ---- */
#ldfx { position: fixed; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
#ldfx i, .story .sfx i { position: absolute; display: block; }
.story .sfx { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { #ldfx { display: none; } }

/* ==== ラグジュアリー：シャンパンゴールド ==== */
html[data-ld="luxury"] body { background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--ac2) 22%, var(--paper)), var(--paper) 60%) fixed, var(--paper); }
html[data-ld="luxury"] .lhero-in h1 { letter-spacing: .04em; animation: lxIn 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes lxIn { from { opacity: 0; letter-spacing: .4em; filter: blur(6px); } to { opacity: 1; letter-spacing: .04em; filter: none; } }
html[data-ld="luxury"] .lhero-in .kicker { color: var(--ac2); letter-spacing: .3em; text-transform: uppercase; font-size: 13px; }
html[data-ld="luxury"] .th { border-bottom: 0; position: relative; }
html[data-ld="luxury"] .th::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--ac2), transparent); transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
html[data-ld="luxury"] .th.in::after { transform: scaleX(1); }
html[data-ld="luxury"] .th .tl { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600; font-size: 64px; background: linear-gradient(110deg, #8a6a2e 0%, var(--ac2) 35%, #fff4d6 50%, var(--accent) 65%, #8a6a2e 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lxShine 5s linear infinite; }
@keyframes lxShine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
html[data-ld="luxury"] .th .hand { font-family: "Cormorant Garamond", serif; font-style: italic; letter-spacing: .25em; text-transform: uppercase; }
html[data-ld="luxury"] .icard .iph { border-radius: 2px; box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 22%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--ac2) 70%, transparent); }
html[data-ld="luxury"] .icard .inm { letter-spacing: .03em; }
html[data-ld="luxury"] .icard .cap .idx { color: var(--accent); }
:is(#ldfx, .story .sfx).fx-luxury .gl { width: calc(14px * var(--s)); height: calc(14px * var(--s)); background: radial-gradient(circle, #fffaf0 0 18%, transparent 20%), linear-gradient(0deg, transparent 45%, var(--ac2) 50%, transparent 55%), linear-gradient(90deg, transparent 45%, var(--ac2) 50%, transparent 55%); filter: drop-shadow(0 0 6px var(--ac2)); animation: lxTw var(--d) ease-in-out var(--w) infinite; opacity: 0; }
@keyframes lxTw { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 50% { opacity: .9; transform: scale(1) rotate(45deg); } }
:is(#ldfx, .story .sfx).fx-luxury .sweep { top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ac2) 18%, transparent), transparent); transform: rotate(20deg); animation: lxSweep 9s ease-in-out infinite; }
@keyframes lxSweep { 0% { left: -60%; } 40%, 100% { left: 140%; } }

/* ==== スタイリッシュ：直線と余白 ==== */
html[data-ld="stylish"] body { background: var(--paper); }
html[data-ld="stylish"] .lhero-in h1 { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; letter-spacing: .02em; animation: stIn 1s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes stIn { from { clip-path: inset(0 100% 0 0); transform: translateX(-20px); } to { clip-path: inset(0 0 0 0); transform: none; } }
html[data-ld="stylish"] .lhero-in .kicker { font-family: "Bebas Neue", sans-serif; font-style: normal; font-size: 20px; letter-spacing: .3em; color: #fff; }
html[data-ld="stylish"] .th { border-bottom: 3px solid var(--ink); }
html[data-ld="stylish"] .th .tl { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 92px; line-height: .8; }
html[data-ld="stylish"] .th .tl.long { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; font-size: 28px; }
html[data-ld="stylish"] .th .hand { text-transform: uppercase; letter-spacing: .35em; font-weight: 700; color: var(--ink); }
html[data-ld="stylish"] .th.rv { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.7, 0, .2, 1); }
html[data-ld="stylish"] .th.rv.in { clip-path: inset(0 0 0 0); }
html[data-ld="stylish"] .icard .iph { border-radius: 0; box-shadow: 8px 8px 0 var(--ink); }
html[data-ld="stylish"] .icard .inm { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; }
html[data-ld="stylish"] .icard .cap .idx { font-family: "Bebas Neue", sans-serif; font-size: 15px; color: var(--ac2); }
html[data-ld="stylish"] .standfirst { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 500; }
:is(#ldfx, .story .sfx).fx-stylish .ln { left: -40%; height: 1px; width: 40%; background: linear-gradient(90deg, transparent, var(--ink), transparent); opacity: .18; animation: stLn 7s linear infinite; }
:is(#ldfx, .story .sfx).fx-stylish .l1 { top: 22%; } :is(#ldfx, .story .sfx).fx-stylish .l2 { top: 58%; animation-duration: 11s; animation-delay: -4s; } :is(#ldfx, .story .sfx).fx-stylish .l3 { top: 84%; animation-duration: 9s; animation-delay: -7s; }
@keyframes stLn { to { left: 140%; } }

/* ==== ファンタジー：羊皮紙と紋章 ==== */
html[data-ld="fantasy"] body { background: radial-gradient(60% 40% at 20% 10%, color-mix(in srgb, var(--ac2) 18%, transparent), transparent 70%), radial-gradient(70% 50% at 90% 80%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--paper) fixed; }
html[data-ld="fantasy"] .lhero-in h1 { text-shadow: 0 0 22px color-mix(in srgb, var(--ac2) 70%, transparent), 0 2px 18px rgba(0, 0, 0, .4); animation: faIn 1.8s ease-out both; }
@keyframes faIn { from { opacity: 0; transform: scale(.92); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
html[data-ld="fantasy"] .lhero-in .kicker { font-family: "Cinzel", serif; font-style: normal; letter-spacing: .25em; text-transform: uppercase; font-size: 13px; color: var(--ac2); }
html[data-ld="fantasy"] .lhero-in .kicker::before, html[data-ld="fantasy"] .lhero-in .kicker::after { content: " ✦ "; }
html[data-ld="fantasy"] .th { border-bottom: 4px double var(--accent); }
html[data-ld="fantasy"] .th .tl { font-family: "Cinzel", serif; font-weight: 800; font-size: 56px; text-shadow: 0 2px 0 color-mix(in srgb, var(--tc) 40%, #000), 0 0 18px color-mix(in srgb, var(--ac2) 45%, transparent); }
html[data-ld="fantasy"] .th .hand { font-family: "Cinzel", serif; letter-spacing: .2em; color: var(--accent); }
html[data-ld="fantasy"] .icard .iph { border-radius: 6px; border: 3px double color-mix(in srgb, var(--ac2) 80%, var(--accent)); box-shadow: inset 0 0 24px rgba(60, 35, 10, .25), 0 10px 24px rgba(60, 35, 10, .18); }
html[data-ld="fantasy"] .icard .cap .idx { font-family: "Cinzel", serif; color: var(--accent); }
html[data-ld="fantasy"] .icard.rv { transform: translateY(26px) rotate(-1deg); }
html[data-ld="fantasy"] .icard.rv.in { transform: none; }
:is(#ldfx, .story .sfx).fx-fantasy .mote { bottom: -20px; width: calc(7px * var(--s)); height: calc(7px * var(--s)); border-radius: 50%; background: radial-gradient(circle, #fff6d8, var(--ac2) 45%, transparent 70%); box-shadow: 0 0 12px var(--ac2); animation: faUp var(--d) linear var(--w) infinite; }
@keyframes faUp { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(var(--x), -55vh); } 90% { opacity: .7; } 100% { transform: translate(calc(var(--x) * -1), -110vh); opacity: 0; } }

/* ==== ダークファンタジー：灰と残り火 ==== */
html[data-ld="darkfantasy"] body { background: radial-gradient(90% 50% at 50% 115%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), radial-gradient(120% 80% at 50% 0%, #2a2420 0%, transparent 60%), var(--paper) fixed; }
html[data-ld="darkfantasy"] .lhero .veil { background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, rgba(0, 0, 0, .55) 60%, rgba(8, 6, 5, .95) 100%); }
html[data-ld="darkfantasy"] .lhero-in h1 { font-family: var(--serif); letter-spacing: .06em; animation: dfIn 2.4s ease-out both; }
@keyframes dfIn { 0% { opacity: 0; text-shadow: 0 0 0 transparent; } 40% { opacity: .6; text-shadow: 0 0 30px var(--accent); } 55% { opacity: .3; } 100% { opacity: 1; text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent), 0 2px 20px #000; } }
html[data-ld="darkfantasy"] .lhero-in .kicker { font-family: "Cinzel", serif; font-style: normal; letter-spacing: .3em; text-transform: uppercase; font-size: 12px; color: var(--ac2); }
html[data-ld="darkfantasy"] .th { border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
html[data-ld="darkfantasy"] .th .tl { font-family: "Cinzel", serif; font-weight: 800; font-size: 60px; text-shadow: 0 0 16px var(--tc), 0 0 40px color-mix(in srgb, var(--tc) 50%, transparent); }
html[data-ld="darkfantasy"] .th.in .tl { animation: dfFlick 4s ease-in-out infinite; }
@keyframes dfFlick { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 50% { opacity: .65; } 53% { opacity: 1; } 75% { opacity: .85; } }
html[data-ld="darkfantasy"] .th .hand { font-family: "Cinzel", serif; letter-spacing: .3em; text-transform: uppercase; }
html[data-ld="darkfantasy"] .icard .iph { border-radius: 2px; border: 1px solid color-mix(in srgb, var(--accent) 35%, #000); box-shadow: 0 0 0 4px rgba(0, 0, 0, .55), 0 18px 40px rgba(0, 0, 0, .7); }
html[data-ld="darkfantasy"] .icard .iph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55)); pointer-events: none; }
html[data-ld="darkfantasy"] .icard .cap .idx { font-family: "Cinzel", serif; color: var(--ac2); }
:is(#ldfx, .story .sfx).fx-darkfantasy .ember { bottom: -10px; width: calc(5px * var(--s)); height: calc(5px * var(--s)); border-radius: 50%; background: var(--ac2); box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent); animation: dfUp var(--d) ease-in var(--w) infinite; }
@keyframes dfUp { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 8% { opacity: 1; } 60% { opacity: .8; } 100% { transform: translate(var(--x), -100vh) scale(.2); opacity: 0; } }
:is(#ldfx, .story .sfx).fx-darkfantasy .ash { top: -10px; width: 3px; height: 3px; border-radius: 1px; background: rgba(200, 190, 180, .45); animation: dfAsh var(--d) linear var(--w) infinite; }
@keyframes dfAsh { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: .6; } 100% { transform: translate(var(--x), 105vh) rotate(540deg); opacity: 0; } }
:is(#ldfx, .story .sfx).fx-darkfantasy .vig { inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55)); }

/* ==== ネオン：光る・はじける ==== */
html[data-ld="neon"] body { background: radial-gradient(70% 50% at 15% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), radial-gradient(70% 50% at 90% 90%, color-mix(in srgb, var(--ac2) 22%, transparent), transparent 70%), var(--paper) fixed; }
html[data-ld="neon"] .lhero-in h1 { color: #fff; animation: neOn 1.8s steps(1) both, neGlow 2.4s ease-in-out 1.8s infinite alternate; }
@keyframes neOn { 0% { opacity: 0; } 10% { opacity: 1; } 15% { opacity: .2; } 25% { opacity: 1; } 30% { opacity: .4; } 40%, 100% { opacity: 1; text-shadow: 0 0 6px #fff, 0 0 16px var(--accent), 0 0 34px var(--accent), 0 0 60px var(--ac2); } }
@keyframes neGlow { from { text-shadow: 0 0 6px #fff, 0 0 16px var(--accent), 0 0 34px var(--accent), 0 0 60px var(--ac2); } to { text-shadow: 0 0 4px #fff, 0 0 12px var(--ac2), 0 0 28px var(--ac2), 0 0 70px var(--accent); } }
html[data-ld="neon"] .lhero-in .kicker { font-family: "Orbitron", sans-serif; font-style: normal; letter-spacing: .3em; text-transform: uppercase; font-size: 12px; color: var(--accent); text-shadow: 0 0 10px var(--accent); }
html[data-ld="neon"] .th { border-bottom: 2px solid var(--tc, var(--accent)); box-shadow: 0 6px 18px -8px var(--accent); }
html[data-ld="neon"] .th .tl { font-family: "Orbitron", sans-serif; font-weight: 900; font-size: 60px; color: #fff; text-shadow: 0 0 6px #fff, 0 0 14px var(--tc), 0 0 30px var(--tc), 0 0 60px var(--tc); }
html[data-ld="neon"] .th.in .tl { animation: neOn 1.2s steps(1) both; }
html[data-ld="neon"] .th .hand { font-family: "Orbitron", sans-serif; letter-spacing: .25em; text-transform: uppercase; color: var(--ac2); }
html[data-ld="neon"] .icard .iph { border-radius: 10px; border: 2px solid var(--accent); box-shadow: 0 0 12px var(--accent), 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 0 14px color-mix(in srgb, var(--accent) 35%, transparent); animation: neHue 6s linear infinite; }
@keyframes neHue { 0% { border-color: var(--accent); box-shadow: 0 0 12px var(--accent), 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent); } 50% { border-color: var(--ac2); box-shadow: 0 0 12px var(--ac2), 0 0 30px color-mix(in srgb, var(--ac2) 45%, transparent); } 100% { border-color: var(--accent); box-shadow: 0 0 12px var(--accent), 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent); } }
html[data-ld="neon"] .icard.rv { transform: scale(.85); opacity: 0; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), opacity .4s; }
html[data-ld="neon"] .icard.rv.in { transform: none; opacity: 1; }
html[data-ld="neon"] .icard .cap .idx { font-family: "Orbitron", sans-serif; color: var(--accent); text-shadow: 0 0 8px var(--accent); }
:is(#ldfx, .story .sfx).fx-neon .spk { width: 12px; height: 12px; background: radial-gradient(circle, #fff 0 15%, transparent 18%), linear-gradient(0deg, transparent 44%, var(--c) 50%, transparent 56%), linear-gradient(90deg, transparent 44%, var(--c) 50%, transparent 56%); filter: drop-shadow(0 0 6px var(--c)); animation: neTw var(--d) ease-in-out var(--w) infinite; opacity: 0; }
@keyframes neTw { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 50% { opacity: 1; transform: scale(1.4) rotate(90deg); } }
:is(#ldfx, .story .sfx).fx-neon .grid { left: -50%; right: -50%; bottom: -10%; height: 45%; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ac2) 30%, transparent) 0 2px, transparent 2px 80px), repeating-linear-gradient(0deg, color-mix(in srgb, var(--accent) 30%, transparent) 0 2px, transparent 2px 60px); transform: perspective(400px) rotateX(62deg); transform-origin: bottom; opacity: .35; animation: neGrid 3s linear infinite; mask-image: linear-gradient(transparent, #000 70%); -webkit-mask-image: linear-gradient(transparent, #000 70%); }
@keyframes neGrid { to { background-position: 0 60px, 0 60px; } }
:is(#ldfx, .story .sfx).fx-neon .scan { left: 0; right: 0; height: 120px; background: linear-gradient(transparent, color-mix(in srgb, var(--accent) 10%, transparent), transparent); animation: neScan 5s linear infinite; }
@keyframes neScan { from { top: -120px; } to { top: 100%; } }

/* ==== セレスティア：神々の光 ==== */
html[data-ld="celestia"] body { background: radial-gradient(90% 60% at 50% -10%, #ffffff 0%, color-mix(in srgb, var(--ac2) 18%, var(--paper)) 40%, var(--paper) 75%) fixed, var(--paper); }
html[data-ld="celestia"] .lhero-in h1 { animation: ceIn 2s ease-out both; }
@keyframes ceIn { 0% { opacity: 0; filter: brightness(4) blur(6px); } 30% { opacity: 1; } 100% { opacity: 1; filter: none; text-shadow: 0 0 24px rgba(255, 245, 210, .9), 0 0 50px color-mix(in srgb, var(--accent) 60%, transparent); } }
html[data-ld="celestia"] .lhero-in .kicker { font-family: "Cinzel", serif; font-style: normal; letter-spacing: .35em; text-transform: uppercase; font-size: 12px; color: #fff4d0; }
html[data-ld="celestia"] .lhero-in .kicker::before { content: "✧ "; } html[data-ld="celestia"] .lhero-in .kicker::after { content: " ✧"; }
html[data-ld="celestia"] .th { border-bottom: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 8px 20px -14px var(--accent); }
html[data-ld="celestia"] .th .tl { font-family: "Cinzel", serif; font-weight: 800; font-size: 60px; background: linear-gradient(180deg, #fffdf2 0%, var(--accent) 60%, color-mix(in srgb, var(--accent) 60%, #000) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent)); }
html[data-ld="celestia"] .th.in .tl { animation: ceHalo 3.5s ease-in-out infinite; }
@keyframes ceHalo { 0%, 100% { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 50%, transparent)); } 50% { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--ac2) 90%, transparent)); } }
html[data-ld="celestia"] .th .hand { font-family: "Cinzel", serif; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
html[data-ld="celestia"] .icard .iph { border-radius: 16px; border: 2px solid #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 12px 36px color-mix(in srgb, var(--accent) 30%, transparent); }
html[data-ld="celestia"] .icard.rv { filter: brightness(2.2) blur(2px); transition: filter 1.1s ease, opacity .9s, transform .9s; }
html[data-ld="celestia"] .icard.rv.in { filter: none; }
html[data-ld="celestia"] .icard .cap .idx { font-family: "Cinzel", serif; color: var(--accent); }
:is(#ldfx, .story .sfx).fx-celestia .rays { left: 50%; top: -60vmax; width: 160vmax; height: 160vmax; margin-left: -80vmax; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--ac2) 16%, transparent) 0deg 4deg, transparent 4deg 14deg); mask-image: radial-gradient(circle, #000 0%, transparent 60%); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 60%); animation: ceRot 80s linear infinite; opacity: .45; }
@keyframes ceRot { to { transform: rotate(360deg); } }
:is(#ldfx, .story .sfx).fx-celestia .orb { width: calc(10px * var(--s)); height: calc(10px * var(--s)); border-radius: 50%; background: radial-gradient(circle, #fff, color-mix(in srgb, var(--accent) 60%, #fff) 40%, transparent 70%); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 70%, #fff); animation: ceFloat var(--d) ease-in-out var(--w) infinite; opacity: 0; }
@keyframes ceFloat { 0% { transform: translateY(20px); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-160px); opacity: 0; } }

/* ---- デザインの見本（設定の画面） ---- */
.ldgrid { grid-template-columns: 1fr 1fr; }
.ldgrid .pk small { display: block; font-size: 10.5px; color: var(--sub); line-height: 1.5; margin-top: 2px; }
.ldmini { position: relative; display: block; height: 70px; border-radius: 10px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); margin-bottom: 8px; }
.ldmini i { position: absolute; left: 40px; right: 10px; height: 12px; border-radius: 3px; background: var(--paper2); }
.ldmini .t1 { top: 12px; background: var(--accent); right: 40%; } .ldmini .t2 { top: 30px; right: 25%; } .ldmini .t3 { top: 48px; right: 55%; }
.ldmini b { position: absolute; left: 10px; top: 10px; width: 22px; height: 50px; display: grid; place-items: center; border-radius: 4px; background: var(--accent); color: var(--paper); font-size: 15px; }
.ldmini[data-ld="luxury"] b { background: linear-gradient(160deg, #8a6a2e, var(--ac2), var(--accent)); color: #fff; font-family: "Cormorant Garamond", serif; font-style: italic; }
.ldmini[data-ld="stylish"] b { border-radius: 0; font-family: "Bebas Neue", sans-serif; font-size: 22px; } .ldmini[data-ld="stylish"] i { border-radius: 0; }
.ldmini[data-ld="fantasy"] { border: 3px double var(--accent); } .ldmini[data-ld="fantasy"] b { font-family: "Cinzel", serif; clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%); }
.ldmini[data-ld="darkfantasy"] { background: radial-gradient(80% 60% at 50% 120%, color-mix(in srgb, var(--accent) 40%, transparent), var(--paper)); } .ldmini[data-ld="darkfantasy"] b { font-family: "Cinzel", serif; background: transparent; color: var(--ac2); text-shadow: 0 0 8px var(--accent); border: 1px solid var(--accent); }
.ldmini[data-ld="neon"] i.t1, .ldmini[data-ld="neon"] b { box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent); } .ldmini[data-ld="neon"] b { background: transparent; border: 2px solid var(--accent); color: #fff; font-family: "Orbitron", sans-serif; }
.ldmini[data-ld="celestia"] { background: radial-gradient(90% 80% at 50% 0%, #fff, var(--paper)); } .ldmini[data-ld="celestia"] b { background: linear-gradient(180deg, #fffdf2, var(--accent)); color: #fff; font-family: "Cinzel", serif; box-shadow: 0 0 12px var(--accent); }

/* =====================================================================
   紹介カード（シェア画像）：盤面を背景に、隠すところをぼかし、見出しを重ねる。リストのデザインに合わせる
   ===================================================================== */
.scd { position: relative; overflow: hidden; background: var(--paper); color: var(--ink); font-family: "Zen Kaku Gothic New", sans-serif; font-feature-settings: "palt"; }
.scd.wide { width: 1200px; height: 630px; }
.scd.tall { width: 1080px; height: 1920px; }
.scd > div, .scd > svg { position: absolute; }
.scd .bg { inset: 0; background: var(--paper); }
.scd .board { inset: -160px -140px; display: grid; grid-template-columns: repeat(8, 172px); grid-auto-rows: 172px; gap: 14px; align-content: center; justify-content: center; transform: rotate(-8deg); }
.scd.tall .board { inset: -140px -160px; grid-template-columns: repeat(6, 216px); grid-auto-rows: 216px; gap: 18px; transform: rotate(-6deg); }
.scd .t { position: relative; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: var(--card); }
.scd .t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; } /* 正方形のまま（画像の高さで伸びないように） */
.scd .t.nm span { position: absolute; inset: 0; display: grid; place-items: center; height: 100%; box-sizing: border-box; padding: 12px; text-align: center; font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--ink); background: color-mix(in srgb, var(--accent) 16%, var(--card)); word-break: break-all; }
.scd.tall .t.nm span { font-size: 28px; }
.scd .t.hz img, .scd .t.hz span { filter: blur(16px) saturate(1.3); transform: scale(1.25); }
.scd .t .q { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 64px; font-weight: 900; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.scd .t .lb { position: absolute; left: 8px; top: 8px; min-width: 40px; height: 40px; padding: 0 8px; box-sizing: border-box; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 22px; font-weight: 900; border-radius: 10px; text-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.scd.tall .t .lb { min-width: 52px; height: 52px; font-size: 28px; }
.scd .veil { inset: 0; background: radial-gradient(ellipse 62% 58% at 50% 50%, color-mix(in srgb, var(--paper) 94%, transparent) 0%, color-mix(in srgb, var(--paper) 78%, transparent) 50%, color-mix(in srgb, var(--paper) 10%, transparent) 100%); }
.scd.tall .veil { background: radial-gradient(ellipse 80% 34% at 50% 48%, color-mix(in srgb, var(--paper) 95%, transparent) 0%, color-mix(in srgb, var(--paper) 80%, transparent) 55%, color-mix(in srgb, var(--paper) 10%, transparent) 100%); }
.scd .deco { inset: 0; }
.scd .hd { left: 0; right: 0; top: 50%; transform: translateY(-56%); text-align: center; padding: 0 80px; }
.scd.tall .hd { padding: 0 70px; transform: translateY(-58%); }
.scd .k { margin: 0 0 8px; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 30px; color: var(--accent); letter-spacing: .06em; }
.scd .t1 { margin: 0; font-family: "Shippori Mincho", serif; font-weight: 700; line-height: 1.3; color: var(--ink); word-break: auto-phrase; }
.scd .t2 { margin: 8px 0 0; font-family: "Shippori Mincho", serif; font-weight: 800; font-size: 78px; line-height: 1.12; color: var(--accent); }
.scd.tall .t2 { font-size: 120px; margin-top: 18px; }
.scd.tall .k { font-size: 44px; }
.scd .hint { margin: 18px 0 0; font-size: 24px; color: var(--sub); font-weight: 700; letter-spacing: .04em; }
.scd.tall .hint { font-size: 40px; margin-top: 30px; }
.scd .ft { left: 0; right: 0; bottom: 0; padding: 22px 44px 26px; background: linear-gradient(transparent, color-mix(in srgb, var(--paper) 92%, transparent) 45%); display: flex; align-items: center; justify-content: space-between; font-size: 20px; color: var(--sub); }
.scd.tall .ft { padding: 60px 64px 70px; font-size: 32px; }
.scd .cta { padding: 10px 24px; border-radius: 99px; background: var(--ink); color: var(--paper); font-weight: 900; letter-spacing: .12em; font-size: 17px; }
.scd.tall .cta { font-size: 30px; padding: 18px 40px; }
.scd .lg { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 36px; color: var(--ink); } .scd .lg b { color: var(--accent); font-weight: 600; }
.scd.tall .lg { font-size: 56px; }
/* ナチュラル：紙と花びら */
.scd.d-natural .deco { background: radial-gradient(circle at 8% 14%, color-mix(in srgb, var(--accent) 25%, transparent) 0 6px, transparent 7px), radial-gradient(circle at 92% 22%, color-mix(in srgb, var(--accent) 20%, transparent) 0 5px, transparent 6px), radial-gradient(circle at 88% 82%, color-mix(in srgb, var(--accent) 22%, transparent) 0 7px, transparent 8px); }
/* ラグジュアリー：金の二重枠と、金の文字 */
.scd.d-luxury .bg { background: radial-gradient(80% 70% at 50% 40%, color-mix(in srgb, var(--ac2) 30%, var(--paper)), var(--paper) 75%); }
.scd.d-luxury .lb { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 70%, #000)); font-family: "Cormorant Garamond", serif; font-style: italic; border-radius: 4px; }
.scd.d-luxury .t { border-radius: 4px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ac2) 80%, transparent); }
.scd.d-luxury .deco { inset: 20px; border: 2px solid var(--accent); box-shadow: inset 0 0 0 8px transparent, inset 0 0 0 9px color-mix(in srgb, var(--ac2) 80%, transparent); }
.scd.d-luxury .k { letter-spacing: .4em; text-transform: uppercase; font-style: normal; font-size: 22px; }
.scd.d-luxury .t2 { background: linear-gradient(100deg, #6b4e1f 0%, var(--accent) 28%, color-mix(in srgb, var(--ac2) 70%, var(--accent)) 48%, var(--accent) 66%, #5f441a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .8)) drop-shadow(0 6px 14px color-mix(in srgb, var(--accent) 35%, transparent)); }
.scd.d-luxury .cta { background: linear-gradient(120deg, #8a6a2e, var(--accent), var(--ac2)); color: #fff; }
/* スタイリッシュ：大きな英字と、直線 */
.scd.d-stylish .board { transform: none; inset: -10px -40px -10px 48%; grid-template-columns: repeat(3, 200px); grid-auto-rows: 200px; gap: 8px; justify-content: start; }
.scd.d-stylish .t2 { font-size: 58px; }
.scd.d-stylish.tall .t2 { font-size: 96px; }
.scd.d-stylish.tall .board { inset: 52% -20px -20px -20px; grid-template-columns: repeat(5, 216px); grid-auto-rows: 216px; justify-content: center; align-content: start; }
.scd.d-stylish .lb { border-radius: 0; background: var(--ink); color: var(--paper); font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 64px; }
.scd.d-stylish .t { border-radius: 0; }
.scd.d-stylish .veil { background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 46%, color-mix(in srgb, var(--paper) 30%, transparent) 70%, transparent); }
.scd.d-stylish.tall .veil { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 50%, color-mix(in srgb, var(--paper) 20%, transparent) 75%, transparent); }
.scd.d-stylish .deco::before { content: "TIER LIST"; position: absolute; left: -10px; bottom: -40px; font-family: "Bebas Neue", sans-serif; font-size: 260px; line-height: 1; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--ink) 18%, transparent); letter-spacing: .02em; }
.scd.d-stylish .deco::after { content: ""; position: absolute; left: 60px; top: 0; width: 10px; height: 130px; background: var(--ac2); }
.scd.d-stylish .hd { text-align: left; right: auto; width: 60%; padding: 0 0 0 90px; }
.scd.d-stylish.tall .hd { width: 100%; top: 28%; padding: 0 90px; }
.scd.d-stylish .k { font-family: "Bebas Neue", sans-serif; font-style: normal; letter-spacing: .35em; text-transform: uppercase; color: var(--ink); }
.scd.d-stylish .t1, .scd.d-stylish .t2 { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; }
.scd.d-stylish .t2 { color: var(--ink); display: inline-block; padding-bottom: 10px; border-bottom: 10px solid var(--ac2); }
.scd.d-stylish .hint { color: var(--ink); }
.scd.d-stylish .cta { border-radius: 0; background: var(--ac2); color: #fff; }
/* ファンタジー：羊皮紙と紋章の枠 */
.scd.d-fantasy .bg { background: radial-gradient(60% 50% at 20% 20%, color-mix(in srgb, var(--ac2) 25%, transparent), transparent 70%), radial-gradient(70% 60% at 85% 85%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--paper); }
.scd.d-fantasy .lb { font-family: "Cinzel", serif; font-weight: 800; border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); padding-bottom: 14px; }
.scd.d-fantasy .t { border-radius: 6px; border: 4px double color-mix(in srgb, var(--ac2) 85%, var(--accent)); }
.scd.d-fantasy .deco { inset: 18px; border: 6px double var(--accent); background: radial-gradient(circle at 0 0, var(--accent) 0 14px, transparent 15px), radial-gradient(circle at 100% 0, var(--accent) 0 14px, transparent 15px), radial-gradient(circle at 0 100%, var(--accent) 0 14px, transparent 15px), radial-gradient(circle at 100% 100%, var(--accent) 0 14px, transparent 15px); }
.scd.d-fantasy .k { font-family: "Cinzel", serif; font-style: normal; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.scd.d-fantasy .k::before, .scd.d-fantasy .k::after { content: " ✦ "; color: var(--ac2); }
.scd.d-fantasy .t2 { text-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 35%, #000), 0 0 24px color-mix(in srgb, var(--ac2) 60%, transparent); }
.scd.d-fantasy .cta { background: var(--accent); color: #fff6dc; border-radius: 6px; }
/* ダークファンタジー：残り火と、炎の文字 */
.scd.d-darkfantasy .bg { background: radial-gradient(90% 60% at 50% 115%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), radial-gradient(100% 70% at 50% -10%, #2a2420, transparent 60%), var(--paper); }
.scd.d-darkfantasy .board { opacity: .75; filter: saturate(.7) brightness(.85); }
.scd.d-darkfantasy .lb { background: #1a1512; color: var(--c); border: 2px solid var(--c); font-family: "Cinzel", serif; text-shadow: 0 0 14px var(--c); border-radius: 2px; }
.scd.d-darkfantasy .t { border-radius: 2px; box-shadow: 0 0 0 3px #000, 0 0 0 4px color-mix(in srgb, var(--accent) 40%, #000); }
.scd.d-darkfantasy .veil { background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(8, 6, 5, .92) 0%, rgba(8, 6, 5, .7) 55%, rgba(8, 6, 5, .2) 100%); }
.scd.d-darkfantasy .deco { background: radial-gradient(circle at 12% 80%, var(--ac2) 0 3px, transparent 4px), radial-gradient(circle at 22% 62%, var(--accent) 0 2px, transparent 3px), radial-gradient(circle at 80% 70%, var(--ac2) 0 3px, transparent 4px), radial-gradient(circle at 88% 40%, var(--accent) 0 2px, transparent 3px), radial-gradient(circle at 68% 88%, var(--ac2) 0 2px, transparent 3px), radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .7)); }
.scd.d-darkfantasy .k { font-family: "Cinzel", serif; font-style: normal; letter-spacing: .4em; text-transform: uppercase; color: var(--ac2); }
.scd.d-darkfantasy .t1 { color: #f4ece0; }
.scd.d-darkfantasy .t2 { background: linear-gradient(180deg, #fff6e0 0%, var(--ac2) 40%, var(--accent) 75%, color-mix(in srgb, var(--accent) 60%, #000) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 80%, transparent)); }
.scd.d-darkfantasy .cta { background: transparent; color: var(--ac2); border: 2px solid var(--accent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }
.scd.d-darkfantasy .lg { color: #f4ece0; }
/* ネオン：光る枠と、光る文字 */
.scd.d-neon .bg { background: radial-gradient(60% 60% at 15% 10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%), radial-gradient(60% 60% at 90% 95%, color-mix(in srgb, var(--ac2) 35%, transparent), transparent 70%), var(--paper); }
.scd.d-neon .lb { background: transparent; color: #fff; border: 3px solid var(--c); font-family: "Orbitron", sans-serif; font-size: 44px; text-shadow: 0 0 8px #fff, 0 0 18px var(--c), 0 0 36px var(--c); box-shadow: 0 0 14px var(--c), inset 0 0 14px var(--c); }
.scd.d-neon .t { border: 2px solid var(--accent); box-shadow: 0 0 12px var(--accent), 0 0 26px color-mix(in srgb, var(--accent) 50%, transparent); }
.scd.d-neon .veil { background: radial-gradient(ellipse 60% 55% at 50% 50%, color-mix(in srgb, var(--paper) 92%, transparent) 0%, color-mix(in srgb, var(--paper) 72%, transparent) 55%, transparent 100%); }
.scd.d-neon .deco { background: radial-gradient(circle at 10% 20%, #fff 0 2px, transparent 3px), radial-gradient(circle at 85% 15%, #fff 0 2px, transparent 3px), radial-gradient(circle at 92% 70%, var(--ac2) 0 3px, transparent 4px), radial-gradient(circle at 6% 78%, var(--accent) 0 3px, transparent 4px), linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 22%, transparent) 62% 62.4%, transparent 62.4%); }
.scd.d-neon .k { font-family: "Orbitron", sans-serif; font-style: normal; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); text-shadow: 0 0 10px var(--accent); }
.scd.d-neon .t1 { color: #fff; text-shadow: 0 0 10px color-mix(in srgb, var(--ac2) 80%, transparent); }
.scd.d-neon .t2 { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; color: #fff; text-shadow: 0 0 6px #fff, 0 0 16px var(--accent), 0 0 34px var(--accent), 0 0 70px var(--ac2); }
.scd.d-neon .hint { color: var(--ac2); text-shadow: 0 0 10px var(--ac2); }
.scd.d-neon .cta { background: transparent; color: #fff; border: 2px solid var(--ac2); box-shadow: 0 0 14px var(--ac2), inset 0 0 10px var(--ac2); }
.scd.d-neon .lg { color: #fff; } .scd.d-neon .ft { color: #fff; }
/* セレスティア：光の筋 */
.scd.d-celestia .bg { background: radial-gradient(90% 70% at 50% 0%, #fff 0%, color-mix(in srgb, var(--ac2) 22%, var(--paper)) 45%, var(--paper) 80%); }
.scd.d-celestia .deco { background: repeating-conic-gradient(from 0deg at 50% -10%, color-mix(in srgb, var(--ac2) 22%, transparent) 0deg 3deg, transparent 3deg 11deg); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 75%); }
.scd.d-celestia .lb { background: linear-gradient(180deg, #fffdf2, var(--c)); color: #fff; font-family: "Cinzel", serif; font-weight: 800; border-radius: 50px; text-shadow: 0 0 10px color-mix(in srgb, var(--c) 80%, #000); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 70%, transparent); }
.scd.d-celestia .t { border-radius: 18px; border: 3px solid #fff; box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.scd.d-celestia .k { font-family: "Cinzel", serif; font-style: normal; letter-spacing: .35em; text-transform: uppercase; color: var(--accent); }
.scd.d-celestia .k::before { content: "✧ "; } .scd.d-celestia .k::after { content: " ✧"; }
.scd.d-celestia .t2 { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, #fff) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 50%, #000) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 18px color-mix(in srgb, var(--ac2) 90%, #fff)); }
.scd.d-celestia .cta { background: linear-gradient(120deg, var(--accent), var(--ac2)); color: #fff; box-shadow: 0 0 22px color-mix(in srgb, var(--ac2) 70%, transparent); }

/* 角の段の印は、どのデザインでも小さく（段の帯の大きさの指定を打ち消す） */
.scd .t b.lb { font-size: 22px; padding: 0 8px; clip-path: none; border-width: 2px; }
.scd.tall .t b.lb { font-size: 28px; }

/* =====================================================================
   ストーリーのデザイン（リストのデザインに合わせる。ナチュラルは、これまでのまま）
   .story に sd-<デザイン> と、そのリストの色の変数が付く。部品：表紙(rl-open)・段の区切り(rl-sec)・もったいつけ(rl-tease)・商品(rl-item)
   ===================================================================== */
/* ==== ラグジュアリー ==== */
.story.sd-luxury { background: #17130f; }
.story.sd-luxury .bx { background: color-mix(in srgb, var(--card) 94%, transparent); color: var(--ink); font-family: "Shippori Mincho", serif; letter-spacing: .04em; box-shadow: inset 0 0 0 1px var(--accent); }
.story.sd-luxury .scr { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600; background: linear-gradient(110deg, #c9a45a, #fff1cf 45%, #b08a4a 70%, #f2d79e); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45)); transform: none; letter-spacing: .06em; }
.story.sd-luxury .stk { background: linear-gradient(120deg, #8a6a2e, var(--accent), var(--ac2)); font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 15px; letter-spacing: .25em; text-transform: uppercase; border-radius: 2px; transform: none; }
.story.sd-luxury .rl-sec .bgc { background: radial-gradient(90% 70% at 50% 35%, color-mix(in srgb, var(--c) 35%, var(--paper)), var(--paper) 75%); }
.story.sd-luxury .rl-sec .bgc::after { content: ""; position: absolute; inset: 22px; border: 1px solid var(--accent); box-shadow: inset 0 0 0 6px transparent, inset 0 0 0 7px color-mix(in srgb, var(--ac2) 70%, transparent); }
.story.sd-luxury .rl-sec .big { display: inline-block; padding: 0 .08em; font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600; background: linear-gradient(110deg, #5f441a 0%, var(--accent) 35%, var(--ac2) 50%, var(--accent) 65%, #5f441a 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: slamin .5s .1s both, lxShine 4s linear .6s infinite; }
.story.sd-luxury .rl-sec .scr, .story.sd-luxury .rl-sec .cnt { color: var(--accent); }
.story.sd-luxury .rl-sec .pill { background: var(--accent); color: #fff; }
.story.sd-luxury .bdg.tr { border-radius: 4px; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 0 0 2px rgba(255, 240, 210, .7), 0 10px 26px rgba(0, 0, 0, .35); transform: none; }
.story.sd-luxury .bdg.tr b { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600; }
.story.sd-luxury .rl-item h3 { font-family: "Shippori Mincho", serif; letter-spacing: .04em; }
.story.sd-luxury .mk { background: linear-gradient(transparent 82%, var(--ac2) 82%); }
.story.sd-luxury .bub { background: color-mix(in srgb, var(--card) 96%, transparent); color: var(--ink); font-family: "Shippori Mincho", serif; box-shadow: inset 0 0 0 1px var(--accent); }

/* ==== スタイリッシュ ==== */
.story.sd-stylish { background: #0b0b0b; }
.story.sd-stylish .bx { background: var(--ink); color: var(--paper); border-radius: 0; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; }
.story.sd-stylish .scr { font-family: "Bebas Neue", sans-serif; font-weight: 400; letter-spacing: .3em; transform: none; }
.story.sd-stylish .stk { border-radius: 0; background: var(--ac2); color: #fff; font-family: "Bebas Neue", sans-serif; font-size: 18px; font-weight: 400; letter-spacing: .3em; transform: none; }
.story.sd-stylish .rl-sec .bgc { background: var(--paper); }
.story.sd-stylish .rl-sec .bgc::after { content: ""; position: absolute; left: -10%; right: -10%; top: 58%; height: 26px; background: var(--ac2); transform: rotate(-8deg); animation: stBar .6s .2s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes stBar { from { transform: rotate(-8deg) scaleX(0); transform-origin: left; } to { transform: rotate(-8deg) scaleX(1); } }
.story.sd-stylish .rl-sec .big { font-family: "Bebas Neue", sans-serif; font-weight: 400; color: var(--ink); text-shadow: none; }
.story.sd-stylish .rl-sec .big.long, .story.sd-stylish .rl-sec .big.rkbig { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; }
.story.sd-stylish .rl-sec .scr, .story.sd-stylish .rl-sec .cnt { color: var(--ink); }
.story.sd-stylish .rl-sec .pill { background: var(--ink); color: var(--paper); border-radius: 0; }
.story.sd-stylish .bdg.tr { border-radius: 0; background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--ac2); transform: none; }
.story.sd-stylish .bdg.tr b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 52px; }
.story.sd-stylish .bdg.tr small { font-family: "Bebas Neue", sans-serif; letter-spacing: .2em; }
.story.sd-stylish .mk { background: linear-gradient(transparent 70%, var(--ac2) 70%); }
.story.sd-stylish .bub { border-radius: 0; background: #fff; color: #111; box-shadow: 5px 5px 0 var(--ac2); }

/* ==== ファンタジー ==== */
.story.sd-fantasy { background: #20160c; }
.story.sd-fantasy .bx { background: color-mix(in srgb, var(--paper) 95%, transparent); color: var(--ink); font-family: "Shippori Mincho", serif; box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 5px color-mix(in srgb, var(--paper) 95%, transparent), inset 0 0 0 6px var(--ac2); border-radius: 4px; padding: .15em .6em; }
.story.sd-fantasy .scr { font-family: "Cinzel", serif; font-weight: 800; font-size: 26px; letter-spacing: .2em; text-transform: uppercase; color: #f6e2a8; transform: none; text-shadow: 0 0 14px rgba(201, 162, 74, .8), 0 2px 8px rgba(0, 0, 0, .5); }
.story.sd-fantasy .stk { background: var(--accent); color: #fff6dc; font-family: "Cinzel", serif; letter-spacing: .2em; border-radius: 0; clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%); padding: 6px 22px; transform: none; }
.story.sd-fantasy .rl-sec .bgc { background: radial-gradient(70% 50% at 50% 40%, color-mix(in srgb, var(--ac2) 30%, var(--paper)), var(--paper) 70%, color-mix(in srgb, var(--paper) 70%, #6b4a1f)); }
.story.sd-fantasy .rl-sec .bgc::after { content: ""; position: absolute; inset: 20px; border: 6px double var(--accent); }
.story.sd-fantasy .rl-sec .big { font-family: "Cinzel", serif; font-weight: 800; color: var(--c); text-shadow: 0 4px 0 color-mix(in srgb, var(--c) 45%, #000), 0 0 30px color-mix(in srgb, var(--ac2) 70%, transparent); }
.story.sd-fantasy .rl-sec .scr { color: var(--accent); text-shadow: none; }
.story.sd-fantasy .rl-sec .cnt { color: var(--ink); }
.story.sd-fantasy .rl-sec .pill { background: var(--accent); color: #fff6dc; }
.story.sd-fantasy .bdg.tr { border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); height: 92px; padding-bottom: 14px; box-sizing: border-box; transform: none; }
.story.sd-fantasy .bdg.tr b { font-family: "Cinzel", serif; font-weight: 800; }
.story.sd-fantasy .rl-item h3 { font-family: "Shippori Mincho", serif; }
.story.sd-fantasy .mk { background: linear-gradient(transparent 76%, color-mix(in srgb, var(--ac2) 85%, transparent) 76%); }
.story.sd-fantasy .bub { background: var(--paper); color: var(--ink); font-family: "Shippori Mincho", serif; box-shadow: inset 0 0 0 2px var(--accent); }

/* ==== ダークファンタジー ==== */
.story.sd-darkfantasy { background: #070605; }
.story.sd-darkfantasy .rl-open .dim, .story.sd-darkfantasy .rl-item .dim { background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, .7)), linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 25%, transparent 55%, rgba(0, 0, 0, .8)); }
.story.sd-darkfantasy .bx { background: rgba(14, 12, 11, .82); color: #f1e6d4; font-family: "Shippori Mincho", serif; letter-spacing: .05em; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 24px color-mix(in srgb, var(--accent) 30%, transparent); }
.story.sd-darkfantasy .scr { font-family: "Cinzel", serif; font-weight: 800; font-size: 24px; letter-spacing: .3em; text-transform: uppercase; color: var(--ac2); transform: none; text-shadow: 0 0 16px var(--accent); }
.story.sd-darkfantasy .stk { background: transparent; color: var(--ac2); border: 1px solid var(--accent); font-family: "Cinzel", serif; letter-spacing: .25em; text-transform: uppercase; border-radius: 0; transform: none; box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 50%, transparent); }
.story.sd-darkfantasy .rl-sec .bgc { background: radial-gradient(80% 50% at 50% 110%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%), radial-gradient(ellipse at center, #1c1814, #070605 75%); }
.story.sd-darkfantasy .rl-sec .big { font-family: "Cinzel", serif; font-weight: 800; color: var(--c); text-shadow: 0 0 22px var(--c), 0 0 60px color-mix(in srgb, var(--c) 60%, transparent); animation: slamin .5s .1s both, dfFlick 3.5s ease-in-out .8s infinite; }
.story.sd-darkfantasy .rl-sec .pill { background: transparent; border: 1px solid var(--c); color: var(--ac2); }
.story.sd-darkfantasy .bdg.tr { background: #120f0d; color: var(--c); border: 2px solid var(--c); border-radius: 2px; box-shadow: 0 0 18px var(--c), inset 0 0 12px color-mix(in srgb, var(--c) 40%, transparent); transform: none; }
.story.sd-darkfantasy .bdg.tr b { font-family: "Cinzel", serif; font-weight: 800; text-shadow: 0 0 12px var(--c); }
.story.sd-darkfantasy .rl-item h3 { font-family: "Shippori Mincho", serif; letter-spacing: .05em; text-shadow: 0 0 18px rgba(0, 0, 0, .9); }
.story.sd-darkfantasy .mk { background: linear-gradient(transparent 80%, var(--accent) 80%); }
.story.sd-darkfantasy .bub { background: rgba(14, 12, 11, .88); color: #f1e6d4; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }

/* ==== ネオン ==== */
.story.sd-neon { background: #05051a; }
.story.sd-neon .bx { background: rgba(7, 7, 26, .78); color: #fff; box-shadow: 0 0 0 2px var(--accent), 0 0 16px var(--accent), inset 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent); text-shadow: 0 0 10px color-mix(in srgb, var(--ac2) 80%, transparent); }
.story.sd-neon .scr { font-family: "Orbitron", sans-serif; font-weight: 900; font-size: 26px; letter-spacing: .2em; text-transform: uppercase; color: #fff; transform: none; text-shadow: 0 0 6px #fff, 0 0 16px var(--accent), 0 0 34px var(--accent); }
.story.sd-neon .stk { background: transparent; color: #fff; border: 2px solid var(--ac2); font-family: "Orbitron", sans-serif; letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 0 14px var(--ac2), inset 0 0 10px var(--ac2); transform: none; }
.story.sd-neon .rl-sec .bgc { background: radial-gradient(60% 45% at 50% 50%, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%), var(--paper); }
.story.sd-neon .rl-sec .bgc::after { content: ""; position: absolute; left: -50%; right: -50%; bottom: -5%; height: 40%; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ac2) 35%, transparent) 0 2px, transparent 2px 70px), repeating-linear-gradient(0deg, color-mix(in srgb, var(--accent) 35%, transparent) 0 2px, transparent 2px 50px); transform: perspective(300px) rotateX(60deg); transform-origin: bottom; animation: neGrid 2s linear infinite; }
.story.sd-neon .rl-sec .big { font-family: "Orbitron", sans-serif; font-weight: 900; color: #fff; text-shadow: 0 0 8px #fff, 0 0 22px var(--c), 0 0 48px var(--c), 0 0 90px var(--c); animation: neOn .9s steps(1) both; }
.story.sd-neon .rl-sec .scr, .story.sd-neon .rl-sec .cnt { color: #fff; }
.story.sd-neon .rl-sec .pill { background: transparent; border: 2px solid var(--c); color: #fff; box-shadow: 0 0 12px var(--c); }
.story.sd-neon .bdg.tr { background: rgba(5, 5, 26, .7); color: #fff; border: 3px solid var(--c); box-shadow: 0 0 14px var(--c), inset 0 0 14px var(--c); transform: none; }
.story.sd-neon .bdg.tr b { font-family: "Orbitron", sans-serif; text-shadow: 0 0 8px #fff, 0 0 18px var(--c); }
.story.sd-neon .rl-item h3 { text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 90%, transparent), 0 2px 12px #000; }
.story.sd-neon .mk { background: linear-gradient(transparent 82%, var(--ac2) 82%); box-shadow: none; }
.story.sd-neon .bub { background: rgba(7, 7, 26, .88); color: #fff; box-shadow: 0 0 0 2px var(--accent), 0 0 14px var(--accent); }

/* ==== セレスティア ==== */
.story.sd-celestia { background: #f6f1e2; }
.story.sd-celestia .bx { background: rgba(255, 255, 255, .92); color: var(--ink); font-family: "Shippori Mincho", serif; box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px color-mix(in srgb, var(--ac2) 60%, transparent); }
.story.sd-celestia .scr { font-family: "Cinzel", serif; font-weight: 800; font-size: 24px; letter-spacing: .3em; text-transform: uppercase; color: #fffbe8; transform: none; text-shadow: 0 0 12px var(--accent), 0 0 30px var(--ac2); }
.story.sd-celestia .stk { background: linear-gradient(120deg, var(--accent), var(--ac2)); font-family: "Cinzel", serif; letter-spacing: .2em; text-transform: uppercase; transform: none; box-shadow: 0 0 18px color-mix(in srgb, var(--ac2) 70%, transparent); }
.story.sd-celestia .rl-sec .bgc { background: radial-gradient(70% 55% at 50% 40%, #fff, color-mix(in srgb, var(--ac2) 30%, var(--paper)) 55%, var(--paper)); overflow: hidden; }
.story.sd-celestia .rl-sec .bgc::after { content: ""; position: absolute; left: 50%; top: 40%; width: 200vmax; height: 200vmax; margin: -100vmax 0 0 -100vmax; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--ac2) 18%, transparent) 0deg 4deg, transparent 4deg 13deg); mask-image: radial-gradient(circle, #000, transparent 55%); -webkit-mask-image: radial-gradient(circle, #000, transparent 55%); animation: ceRot 30s linear infinite; }
.story.sd-celestia .rl-sec .big { display: inline-block; padding: 0 .08em; font-family: "Cinzel", serif; font-weight: 800; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 50%, #fff), var(--c) 50%, color-mix(in srgb, var(--c) 55%, #000)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 22px color-mix(in srgb, var(--ac2) 90%, #fff)); }
.story.sd-celestia .rl-sec .scr, .story.sd-celestia .rl-sec .cnt { color: var(--accent); text-shadow: none; }
.story.sd-celestia .rl-sec .pill { background: #fff; color: var(--accent); box-shadow: 0 0 16px color-mix(in srgb, var(--ac2) 70%, transparent); }
.story.sd-celestia .bdg.tr { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--c) 80%, #fff) 45%, var(--c)); box-shadow: 0 0 0 3px #fff, 0 0 28px color-mix(in srgb, var(--c) 80%, #fff); transform: none; }
.story.sd-celestia .bdg.tr b { font-family: "Cinzel", serif; font-weight: 800; text-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, #000); }
.story.sd-celestia .rl-item h3 { font-family: "Shippori Mincho", serif; text-shadow: 0 0 16px rgba(255, 240, 200, .8), 0 2px 12px rgba(0, 0, 0, .4); }
.story.sd-celestia .mk { background: linear-gradient(transparent 78%, color-mix(in srgb, var(--ac2) 85%, #fff) 78%); }
.story.sd-celestia .bub { background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 0 22px color-mix(in srgb, var(--ac2) 60%, transparent); }

/* 明るいデザインでは、上の進みぐあい・名前・ボタンに影を付けて読めるように */
.story:is(.sd-luxury, .sd-stylish, .sd-fantasy, .sd-celestia) :is(.bars, .who, .snd, .skip) { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); }

/* =====================================================================
   編集画面のデザイン（リストのデザインに合わせる。色は変数で、ここは段と見出しの飾り）
   ===================================================================== */
html[data-ld] .title-input { color: var(--ink); }
html[data-dark] .title-input::placeholder, html[data-dark] .desc-input::placeholder { color: color-mix(in srgb, var(--sub) 80%, transparent); }
html[data-dark] .desc-input { color: var(--ink); }
html[data-dark] .tile { background: color-mix(in srgb, var(--paper2) 80%, #000); }
/* ラグジュアリー */
html[data-ld="luxury"] .title-input { font-family: "Shippori Mincho", serif; letter-spacing: .04em; border-bottom-color: var(--accent); }
html[data-ld="luxury"] .tier { border-radius: 4px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 12%, transparent); }
html[data-ld="luxury"] .tlabel { font-family: "Cormorant Garamond", serif; font-style: italic; background-image: linear-gradient(150deg, rgba(255, 255, 255, .35), transparent 45%, rgba(0, 0, 0, .18)); text-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
html[data-ld="luxury"] .tile { border-radius: 3px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac2) 70%, transparent); }
/* スタイリッシュ */
html[data-ld="stylish"] .title-input { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; border-bottom: 3px solid var(--ink); }
html[data-ld="stylish"] .tier { border-radius: 0; border: 2px solid var(--ink); }
html[data-ld="stylish"] .tlabel { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 42px; }
html[data-ld="stylish"] .tile { border-radius: 0; }
/* ファンタジー */
html[data-ld="fantasy"] .title-input { font-family: "Shippori Mincho", serif; border-bottom: 3px double var(--accent); }
html[data-ld="fantasy"] .tier { border-radius: 6px; border: 3px double color-mix(in srgb, var(--ac2) 80%, var(--accent)); box-shadow: inset 0 0 20px rgba(60, 35, 10, .12); }
html[data-ld="fantasy"] .tlabel { font-family: "Cinzel", serif; font-weight: 800; clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%); text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
html[data-ld="fantasy"] .tile { border-radius: 6px; }
/* ダークファンタジー */
html[data-ld="darkfantasy"] .title-input { font-family: "Shippori Mincho", serif; letter-spacing: .05em; border-bottom-color: color-mix(in srgb, var(--accent) 50%, transparent); }
html[data-ld="darkfantasy"] .tier { border-radius: 2px; border-color: color-mix(in srgb, var(--accent) 30%, #000); box-shadow: 0 0 0 3px rgba(0, 0, 0, .5), inset 0 0 24px rgba(0, 0, 0, .5); }
html[data-ld="darkfantasy"] .tlabel { font-family: "Cinzel", serif; font-weight: 800; background-color: #120f0d !important; color: var(--ac2); border-right: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); text-shadow: 0 0 12px var(--accent); }
html[data-ld="darkfantasy"] .tile { border-radius: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, #000); }
/* ネオン */
html[data-ld="neon"] .title-input { font-weight: 700; border-bottom: 2px solid var(--accent); box-shadow: 0 6px 12px -8px var(--accent); }
html[data-ld="neon"] .tier { border-radius: 12px; border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 0 14px color-mix(in srgb, var(--accent) 18%, transparent); }
html[data-ld="neon"] .tlabel { font-family: "Orbitron", sans-serif; font-weight: 900; font-size: 30px; background-color: transparent !important; color: #fff; text-shadow: 0 0 6px #fff, 0 0 16px var(--accent), 0 0 30px var(--accent); border-right: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }
html[data-ld="neon"] .tile { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ac2) 60%, transparent), 0 0 10px color-mix(in srgb, var(--ac2) 35%, transparent); }
/* セレスティア */
html[data-ld="celestia"] .title-input { font-family: "Shippori Mincho", serif; border-bottom-color: var(--accent); }
html[data-ld="celestia"] .tier { border-radius: 16px; border: 2px solid #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 8px 26px color-mix(in srgb, var(--ac2) 30%, transparent); }
html[data-ld="celestia"] .tlabel { font-family: "Cinzel", serif; font-weight: 800; background-image: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .7), transparent 60%); text-shadow: 0 0 10px rgba(0, 0, 0, .25); }
html[data-ld="celestia"] .tile { border-radius: 12px; box-shadow: 0 0 0 2px #fff; }

/* ---- トップの「TierLia でできること・活用方法」 ---- */
.guidecard { position: relative; display: grid; gap: 2px; max-width: 460px; margin: 16px auto 0; padding: 14px 44px 14px 18px; text-align: left; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 16px; box-shadow: 0 8px 22px rgba(80, 60, 40, .08); }
.guidecard .gc-k { font-size: 11px; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.guidecard b { font-family: var(--serif); font-size: 16px; }
.guidecard .gc-d { font-size: 12px; color: var(--sub); }
.guidecard i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 18px; color: var(--accent); }

/* ---- できること（活用方法の最初） ---- */
.gfeat { margin: 0 0 30px; }
.gfeat h2 { margin: 2px 0 10px; font-size: 21px; line-height: 1.5; }
.gf-en { margin: 0; font-family: var(--en); font-style: italic; font-size: 15px; color: var(--accent); }
.gdesigns { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.gdesigns span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.gsamples { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .gsamples { grid-template-columns: 1fr; } }
.gsample { position: relative; display: grid; gap: 12px; padding: 16px; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(40, 30, 20, .12); transition: transform .2s; }
.gsample:active { transform: scale(.98); }
.gsm-top b { display: block; font-family: "Shippori Mincho", serif; font-size: 17px; line-height: 1.5; margin-top: 2px; }
.gsm-k { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 13px; color: var(--accent); }
.gsm-rows { display: grid; gap: 6px; }
.gsm-row { display: flex; gap: 6px; align-items: center; }
.gsm-row i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--tc); color: #fff; font-style: normal; font-weight: 800; font-size: 17px; }
.gsm-row em { width: 34px; height: 34px; border-radius: 8px; background: var(--paper2); }
.gsm-ft { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--sub); }
.gsm-go { justify-self: start; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 99px; background: var(--ink); color: var(--paper); }
.gsample[data-ld="luxury"] { background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--ac2) 30%, var(--paper)), var(--paper) 70%); border: 1px solid var(--accent); box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px color-mix(in srgb, var(--ac2) 70%, transparent), 0 12px 30px color-mix(in srgb, var(--accent) 25%, transparent); }
.gsample[data-ld="luxury"] .gsm-k { letter-spacing: .3em; text-transform: uppercase; font-style: normal; font-size: 11px; }
.gsample[data-ld="luxury"] .gsm-row i { border-radius: 3px; font-family: "Cormorant Garamond", serif; font-style: italic; background: linear-gradient(150deg, color-mix(in srgb, var(--tc) 60%, #fff), var(--tc) 45%, color-mix(in srgb, var(--tc) 70%, #000)); }
.gsample[data-ld="luxury"] .gsm-row em { border-radius: 2px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac2) 70%, transparent); }
.gsample[data-ld="luxury"] .gsm-go { background: linear-gradient(120deg, #8a6a2e, var(--accent), var(--ac2)); color: #fff; }
.gsample[data-ld="darkfantasy"] { background: radial-gradient(90% 60% at 50% 115%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%), radial-gradient(ellipse at center, #1c1814, var(--paper) 80%); border-color: color-mix(in srgb, var(--accent) 35%, #000); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.gsample[data-ld="darkfantasy"] .gsm-k { font-family: "Cinzel", serif; font-style: normal; letter-spacing: .3em; font-size: 11px; color: var(--ac2); }
.gsample[data-ld="darkfantasy"] .gsm-top b { color: #f1e6d4; text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 50%, transparent); }
.gsample[data-ld="darkfantasy"] .gsm-row i { background: #120f0d; color: var(--tc); border: 1px solid var(--tc); font-family: "Cinzel", serif; text-shadow: 0 0 10px var(--tc); box-shadow: 0 0 10px color-mix(in srgb, var(--tc) 50%, transparent); }
.gsample[data-ld="darkfantasy"] .gsm-row em { background: #1c1815; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, #000); }
.gsample[data-ld="darkfantasy"] .gsm-go { background: transparent; color: var(--ac2); border: 1px solid var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); }
/* あなた vs みんな の見本（スマホの枠の中に、実際の画面と同じ部品） */
.gvs { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 22px; align-items: start; margin-top: 6px; }
@media (max-width: 640px) { .gvs { grid-template-columns: 1fr; } }
.gphone { justify-self: center; width: 100%; max-width: 300px; padding: 10px; border-radius: 34px; background: #2b2522; box-shadow: 0 20px 44px rgba(40, 30, 20, .28); }
.gph-in { max-height: 660px; overflow: hidden; padding: 18px 14px 14px; border-radius: 26px; background: var(--paper); -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); pointer-events: none; }
.gph-t { margin: 2px 0 10px; font-family: var(--serif); font-weight: 700; font-size: 17px; }
.gph-in .ascore { margin-top: 10px; }
.gph-in .big2 { font-size: 64px; }
.gph-in .gcard { margin-top: 10px; padding: 10px 12px; }
.gph-in .dlines { margin: 10px 0 0; padding-left: 1.1em; font-size: 12px; line-height: 1.6; }
.gph-in .dlines li { margin: 2px 0; padding: 0; }
.gph-in .ascore { padding-top: 12px; padding-bottom: 12px; }
.gcases { margin-top: 40px; }

/* ---- 通報 ---- */
.reportlink { display: block; margin: 18px auto 0; border: 0; background: none; font-size: 12px; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.rpopts { display: grid; gap: 6px; margin-bottom: 14px; }
.rpopt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 13.5px; line-height: 1.6; }
.rpopt input { margin-top: 3px; accent-color: var(--accent); }
.rpcount { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: #c2412d; color: #fff; font-size: 12px; font-family: "Zen Kaku Gothic New", sans-serif; vertical-align: 3px; }
.rpitems { margin: 8px 0 0; padding-left: 1.1em; font-size: 12px; line-height: 1.6; color: var(--ink); }
.rpitems li { margin: 3px 0; }
.rpitems span { display: block; color: var(--sub); white-space: pre-wrap; }
.rpitems small { color: var(--dim); }
.rprow .adacts a.btn { text-decoration: none; }

/* ---- PC（横幅1080px以上）。スマホの見た目は変えない ---- */
@media (min-width: 1080px) {
  .site-in, footer.site { max-width: 1160px; padding-left: 32px; padding-right: 32px; }
  /* 一覧のページ（トップ・マイページ・プロフィール・管理）は横に広く */
  html[data-pg="top"] main, html[data-pg="me"] main, html[data-pg="u"] main, html[data-pg="admin"] main { max-width: 1160px; padding-left: 32px; padding-right: 32px; }
  /* リストのページ・答えのページは、読みやすい幅で少し広く */
  html[data-pg="l"] main, html[data-pg="s"] main, html[data-pg="o"] main, html[data-pg="preview"] main, html[data-pg="q"] main, html[data-pg="a"] main { max-width: 920px; }
  html[data-pg="l"] .sharebar .sb-in, html[data-pg="s"] .sharebar .sb-in, html[data-pg="o"] .sharebar .sb-in { max-width: 888px; }
  /* 編集画面 */
  html.edmode main#app { padding-left: max(32px, calc((100% - 900px) / 2)); padding-right: max(32px, calc((100% - 900px) / 2)); }
  html.edmode .dock-in { max-width: 932px; }
  /* トップの先頭：左に文、右にスマホ */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 500px; grid-template-areas: "txt art"; column-gap: 48px; align-items: center; padding: 36px 0 20px; }
  .hero-art { grid-area: art; }
  .hero-txt { grid-area: txt; }
  .hero-ls { --pw: 280px; margin: 0 auto; }
  .hero h1 { font-size: 42px; }
  .hero p.lead { font-size: 15px; }
  .hero .cta-row { justify-content: flex-start; }
  .hero .guidecard { margin-left: 0; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .tgrid { grid-template-columns: repeat(4, 1fr); }
  .tgrid.small { grid-template-columns: repeat(6, 1fr); }
  .hscroll { grid-auto-columns: 250px; gap: 18px; }
  html[data-pg="top"] .hscroll, html[data-pg="me"] .hscroll, html[data-pg="u"] .hscroll { padding-left: 32px; padding-right: 32px; margin: 0 -32px; scroll-padding-inline: 32px; }
  .hscroll.uses { grid-auto-columns: 200px; }
  /* シートは下から出さず、まん中に */
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 24px; max-height: 88vh; padding-bottom: 24px; }
}

/* 英語のとき：日本語の文節ごとの改行どめはしない */
html[lang="en"] .hero h1 .nb, html[lang="en"] .hero .lead .nb { white-space: normal; }
