/* Fashion Maker — カラフルなパリジェンヌ（20代女子のための、めくって楽しいファッション誌） */
:root {
  /* テーマカラー：濃いめのイエロー・レッド・ブルー */
  --creme: #fffaf0;
  --card: #ffffff;
  --ink: #1f1c2e;
  --ink2: #6f6880;
  --line: #eadfce;
  --rouge: #e5574f;
  --rouge-l: #fde5e2;
  --bleu: #2b4a9e;
  --bleu-l: #e3e9f8;
  --jaune: #f2c13a;
  --jaune-l: #fff4d2;
  /* わたこ（🌱の子）のミント。ページの外側の背景に使う */
  --menthe: #3fb99c;
  --menthe-l: #ddf3ea;
  --menthe-d: #23927a;   /* 白い文字をのせるとき用の、少し深いミント */
  /* 旧パステル名はこの3色に寄せる */
  --rose: var(--rouge);
  --rose-l: var(--rouge-l);
  --ciel: var(--bleu);
  --ciel-l: var(--bleu-l);
  --lilas: var(--bleu);
  --lilas-l: var(--bleu-l);
  --citron: var(--jaune);
  --citron-l: var(--jaune-l);
  --pistache: var(--jaune);
  --pistache-l: var(--jaune-l);
  --didone: 'Bodoni Moda', 'Didot', serif;
  --head: 'Klee One', 'Hiragino Maru Gothic ProN', cursive;
  --pen: 'Klee One', 'Hiragino Maru Gothic ProN', cursive;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --hand: 'Caveat', cursive;
  --r: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--menthe); background-image: radial-gradient(rgba(255,255,255,.55) 1.5px, transparent 2px); background-size: 22px 22px; }
body {
  margin: 0 auto; max-width: 480px; min-height: 100dvh;
  font-family: var(--sans); color: var(--ink); line-height: 1.75;
  background: var(--creme);
  font-feature-settings: 'palt';
  box-shadow: 0 0 40px rgba(31, 28, 46, .15);
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
#app { padding-bottom: 48px; }
#app[data-view="preset"], #app[data-view="edit"], #app[data-view="diagnosis"], #app[data-view="gacha"], #app[data-view="dna-edit"] { padding-bottom: 186px; }

/* ── 共通 ── */
.kick { margin: 0; display: flex; align-items: baseline; gap: 10px; font-family: var(--didone); font-style: italic; font-size: 13px; letter-spacing: .08em; color: var(--rouge); }
.hand { font-family: var(--hand); font-style: normal; font-size: 20px; letter-spacing: 0; color: var(--bleu); transform: rotate(-4deg); display: inline-block; }
.hand.big { margin: 0 0 2px; font-size: 34px; color: #fff; }
.phead { padding: 26px 0 18px; margin-bottom: 18px; border-bottom: 2px dotted var(--rose); }
.phead h1 { margin: 6px 0 0; font-family: var(--head); font-weight: 600; font-size: 27px; line-height: 1.4; }
.lead { margin: 10px 0 0; font-size: 13.5px; line-height: 1.9; color: #4a4460; }
.sec { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 12px; font-weight: 400; }
.sec span { font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 19px; color: var(--ink); }
.sec em { font-style: normal; font-family: var(--head); font-weight: 600; font-size: 11.5px; color: #fff; padding: 1px 10px; background: var(--rouge); border-radius: 99px; }
.sec + .hand { margin: -10px 0 8px; }
.hint { margin: 8px 0 14px; font-size: 12.5px; color: var(--ink2); }
.link { background: none; border: 0; padding: 4px 0; font-size: 12.5px; font-weight: 500; color: var(--bleu); text-decoration: underline wavy; text-decoration-color: var(--rose); text-underline-offset: 4px; }
.link.center { display: block; margin: 16px auto 0; }
.link.danger { color: var(--rouge); margin-top: 32px; }
.empty { padding: 48px 16px; text-align: center; font-size: 13px; color: var(--ink2); }
.empty a { color: var(--bleu); text-decoration: underline; }

/* ── topbar：カフェのテント ── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px;
  padding: 18px 16px 10px; background: var(--creme);
  box-shadow: 0 6px 14px -12px rgba(38, 33, 61, .4);
}
.topbar::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: repeating-linear-gradient(90deg, var(--rouge) 0 18px, #fff 18px 36px);
  -webkit-mask: radial-gradient(circle at 9px 3px, #000 9px, transparent 9.5px) 0 0 / 18px 12px repeat-x, linear-gradient(#000 0 3px, transparent 3px);
          mask: radial-gradient(circle at 9px 3px, #000 9px, transparent 9.5px) 0 0 / 18px 12px repeat-x, linear-gradient(#000 0 3px, transparent 3px);
}
.topbar .back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--jaune); }
.topbar .mast { font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 20px; text-align: center; white-space: nowrap; color: var(--rouge); }
.topbar .sect { padding: 2px 10px; font-family: var(--didone); font-style: italic; font-size: 11px; white-space: nowrap; color: #fff; background: var(--bleu); border-radius: 99px; }

/* ── カラーストーリー（写真の代わり） ── */
.art { position: relative; aspect-ratio: 3 / 4; background: var(--c1); overflow: hidden; border-radius: var(--r); }
.art i { position: absolute; display: block; }
.art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 25% 15%, rgba(255, 255, 255, .22), transparent 55%); pointer-events: none; }
.art.v0 i:nth-child(1) { right: 0; bottom: 0; width: 48%; height: 52%; background: var(--c2); border-top-left-radius: 999px; }
.art.v0 i:nth-child(2) { left: 12%; top: 16%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--c3); }
.art.v1 i:nth-child(1) { left: 56%; top: 0; bottom: 0; right: 0; background: var(--c2); }
.art.v1 i:nth-child(2) { left: 82%; top: 0; bottom: 0; right: 0; background: var(--c3); }
.art.v2 i:nth-child(1) { left: 16%; top: 20%; width: 68%; aspect-ratio: 1; border-radius: 50%; background: var(--c2); }
.art.v2 i:nth-child(2) { left: 0; right: 0; bottom: 0; height: 12%; background: var(--c3); }
.art.v3 i:nth-child(1) { left: 0; right: 0; top: 46%; height: 34%; background: var(--c2); }
.art.v3 i:nth-child(2) { left: 0; right: 0; top: 80%; bottom: 0; background: var(--c3); }
/* ドット */
.art.v4 i:nth-child(1) { inset: 0; background: radial-gradient(var(--c2) 22%, transparent 24%) 0 0 / 28px 28px; }
.art.v4 i:nth-child(2) { left: 0; right: 0; bottom: 0; height: 22%; background: var(--c3); }
/* マリンボーダー */
.art.v5 i:nth-child(1) { left: 0; right: 0; top: 0; height: 58%; background: repeating-linear-gradient(var(--c1) 0 12px, var(--c2) 12px 22px); }
.art.v5 i:nth-child(2) { right: 10%; bottom: 10%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--c3); }
.art.full { aspect-ratio: auto; position: absolute; inset: 0; border-radius: 0; }
.art.tall { aspect-ratio: 4 / 5; border-radius: 0 0 28px 28px; }
.art.wide { aspect-ratio: 16 / 10; }
.t-ink { --tc: var(--ink); }
.t-white { --tc: #fff; }
.look-no { position: absolute; left: 10px; top: 9px; z-index: 1; font-family: var(--didone); font-style: italic; font-size: 11px; color: var(--tc, #fff); }
.look-no.big { left: 18px; top: 14px; font-size: 26px; line-height: 1; }

/* ── COVER ── */
.cover { padding: 0 16px; }
.cover-art { position: relative; margin: 0 -16px; height: min(80dvh, 650px); min-height: 540px; overflow: hidden; border-radius: 0 0 32px 32px; }
.masthead { position: absolute; left: 18px; right: 16px; top: 18px; margin: 0; font-family: var(--didone); font-style: italic; font-weight: 600; font-size: clamp(56px, 17vw, 80px); line-height: .9; color: var(--tc, #fff); }
.issue { position: absolute; left: 20px; top: calc(28px + clamp(56px, 17vw, 80px) * 1.8); margin: 0; font-family: var(--didone); font-size: 10px; letter-spacing: .16em; line-height: 1.6; color: var(--tc, #fff); }
.sticker { position: absolute; right: 18px; top: calc(20px + clamp(56px, 17vw, 80px) * 1.75); z-index: 1; display: grid; place-items: center; align-content: center; width: 82px; height: 82px; border-radius: 50%; background: var(--citron); color: var(--ink); font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 30px; line-height: .9; transform: rotate(12deg); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.sticker small { font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 9px; letter-spacing: .08em; }
.coverlines { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 18px 22px; background: linear-gradient(transparent, rgba(38, 33, 61, .32)); color: #fff; text-shadow: 0 1px 8px rgba(38, 33, 61, .35); }
.cl-big { text-shadow: none; margin: 0; font-family: var(--head); font-weight: 600; font-size: 32px; line-height: 1.45; color: var(--ink); }
.cl-big mark { padding: 0 8px; background: var(--creme); color: var(--ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; border-radius: 6px; }
.cl-big mark:last-child { background: var(--rose); color: #fff; }
.cl { margin: 12px 0 0; font-size: 13px; font-weight: 500; line-height: 1.8; }
.cl-feature { text-shadow: none; display: inline-flex; gap: 10px; align-items: center; margin-top: 14px; padding: 6px 14px 6px 6px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 12.5px; }
.cl-feature span { padding: 2px 10px; border-radius: 99px; background: var(--rouge); color: #fff; font-family: var(--didone); font-style: italic; font-size: 11px; }
.contents { margin-top: 6px; }
.contents .ct { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 8px; margin-top: 12px; padding: 16px 34px 16px 14px; border-radius: var(--r); }
.contents .c1 { background: var(--rouge); color: #fff; }
.contents .c2 { background: var(--bleu); color: #fff; }
.contents .c3 { background: var(--jaune); }
.contents .ct b { font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 38px; line-height: 1; }
.contents .ct b { color: inherit; }
.contents .c1 i, .contents .c1 small, .contents .c2 i, .contents .c2 small, .contents .c1::after, .contents .c2::after { color: rgba(255, 255, 255, .85); }
.contents .ct span { display: flex; flex-direction: column; font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.4; }
.contents .ct i { font-style: italic; font-family: var(--didone); font-weight: 400; font-size: 12px; color: var(--ink2); }
.contents .ct small { margin-top: 3px; font-family: var(--sans); font-weight: 400; font-size: 12px; color: #5a5470; line-height: 1.6; }
.contents .ct.sub span { font-size: 15px; }
.contents .ct::after { content: '›'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--ink2); }
.dnabar { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r); border: 2px dashed var(--lilas); background: #fff; }
.dnabar span { grid-row: span 2; align-self: center; padding: 4px 10px; border-radius: 99px; background: var(--lilas-l); font-family: var(--didone); font-style: italic; font-size: 12px; color: var(--bleu); }
.dnabar b { font-family: var(--head); font-size: 14px; }
.dnabar em { font-style: normal; font-size: 11.5px; color: var(--ink2); }
.dnabar.on { border: 0; background: var(--bleu); color: #fff; }
.dnabar.on span { background: #fff; color: var(--bleu); }
.dnabar.on em { color: rgba(255, 255, 255, .8); }
.mini-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.resume { display: block; margin-top: 24px; padding: 12px 16px; border-radius: 99px; background: var(--jaune); font-family: var(--head); font-weight: 600; font-size: 13px; text-align: center; }
.colophon { margin: 30px 0 0; font-size: 11.5px; color: var(--ink2); text-align: center; line-height: 1.9; }
.colophon .hand { margin-top: 6px; font-size: 22px; color: var(--rouge); }

/* ── LOOK カード ── */
.look { display: block; }
.look-art { position: relative; }
.look-art .art { box-shadow: 0 6px 16px -8px rgba(38, 33, 61, .35); }
.look-cap { margin: 8px 0 0; font-size: 10.5px; font-weight: 500; color: var(--rouge); }
.look h3 { margin: 1px 0 0; font-family: var(--head); font-weight: 600; font-size: 14px; line-height: 1.5; }
.look.mini h3 { margin-top: 6px; font-size: 12px; }
.look.mini .look-cap { display: none; }
.look .pct { font-family: var(--didone); font-style: italic; font-size: 13px; color: var(--rouge); }
.dna-pct { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 1px 8px; border-radius: 99px; font-family: var(--didone); font-style: italic; font-size: 11px; background: #fff; color: var(--bleu); }

/* ── LOOKBOOK ── */
.lookbook, .feature, .edit, .prompt, .diag, .result, .gacha, .dna, .closet, .find { padding: 0 16px; }
.guide { padding: 0 16px 32px; }
.realm { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 99px; background: var(--rose-l); }
.realm button { display: flex; flex-direction: column; align-items: center; padding: 7px 4px; border: 0; border-radius: 99px; background: none; font-family: var(--head); font-weight: 600; font-size: 13px; line-height: 1.35; color: var(--ink2); }
.realm i { font-style: italic; font-family: var(--didone); font-weight: 400; font-size: 10.5px; }
.realm .on { background: #fff; color: var(--rouge); box-shadow: 0 2px 8px rgba(229, 87, 79, .18); }
.gender-row { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.gender-row::-webkit-scrollbar { display: none; }
.gchip { flex: none; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink2); }
.gchip.on { border-color: var(--bleu); background: var(--bleu); color: #fff; }
.searchrow { display: flex; gap: 8px; margin-top: 12px; }
.search { flex: 1; min-width: 0; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-size: 16px; -webkit-appearance: none; }
.search:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-l); }
.btn-line { flex: none; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 99px; background: #fff; font-size: 12.5px; font-weight: 700; }
.btn-line.on { background: var(--ink); color: #fff; }
.count { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 12px 0 14px; font-size: 12px; }
.count span { margin-right: auto; font-family: var(--didone); font-style: italic; font-size: 15px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; }
.shuffle-banner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin-top: 34px; padding: 18px; border: 0; border-radius: var(--r); background: var(--jaune); text-align: left; overflow: hidden; }
.shuffle-banner::after { content: ''; position: absolute; right: -18px; top: -18px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(#fff 30%, transparent 32%) 0 0 / 18px 18px; opacity: .6; }
.shuffle-banner .kick { color: var(--rouge); }
.shuffle-banner b { font-family: var(--head); font-weight: 600; font-size: 16px; }
.shuffle-banner small { font-size: 11.5px; color: #4d4330; }

/* ── FEATURE ── */
.feature-art { position: relative; margin: 0 -16px 20px; }
.ftitle { margin: 6px 0 0; font-family: var(--head); font-weight: 600; font-size: 25px; line-height: 1.45; }
.feature .lead { margin-bottom: 4px; }
.dna-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--lilas-l); font-size: 12.5px; line-height: 1.7; }
.dna-note b { margin-right: 8px; font-family: var(--didone); font-style: italic; font-weight: 600; color: var(--bleu); }
.dna-note a { margin-left: 6px; color: var(--bleu); text-decoration: underline; }
.credit { list-style: none; margin: 0; padding: 4px 14px; border-radius: var(--r); background: #fff; }
.credit li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1.5px dotted var(--line); }
.credit li:last-child { border-bottom: 0; }
.cat { flex: none; width: 70px; font-family: var(--didone); font-style: italic; font-size: 11.5px; color: var(--rouge); }
.credit .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; font-family: var(--head); font-weight: 600; font-size: 14px; line-height: 1.45; text-align: left; }
.credit .nm small { font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--ink2); }
.credit .col { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink2); white-space: nowrap; }
.credit.compact li { padding: 7px 0; }
.motifs { margin: 10px 0 0; font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
.points { margin: 0; padding: 0; list-style: none; counter-reset: pt; }
.points li { position: relative; margin-bottom: 10px; padding: 14px 16px 14px 56px; border-radius: var(--r); background: var(--rose-l); font-size: 14px; font-weight: 500; line-height: 1.8; counter-increment: pt; }
.points li:nth-child(2) { background: var(--ciel-l); }
.points li:nth-child(3) { background: var(--pistache-l); }
.points li::before { content: counter(pt, decimal-leading-zero); position: absolute; left: 14px; top: 10px; font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--rouge); }
.points li:nth-child(2)::before { color: var(--bleu); }
.points li:nth-child(3)::before { color: #b58400; }
.keyword { margin-top: 10px; padding: 2px 18px 16px; border-radius: var(--r); background: var(--citron-l); }
.keyword .sec { margin-top: 16px; }
.keyword .sec em { background: var(--bleu); }
.keyword p { margin: 0 0 6px; font-size: 13px; line-height: 1.85; }
.keyword b { display: block; margin-bottom: 2px; font-family: var(--head); font-weight: 600; font-size: 20px; }
.keyword .link { margin-right: 14px; }
.spec { margin: 0; padding: 4px 14px; border-radius: var(--r); background: #fff; }
.spec div { display: grid; grid-template-columns: 80px 1fr; padding: 8px 0; border-bottom: 1.5px dotted var(--line); font-size: 12.5px; }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--ink2); font-size: 11.5px; }
.spec dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.cname { display: inline-flex; align-items: center; gap: 5px; }
.sw { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(38, 33, 61, .15); vertical-align: middle; }
.sw.lg { width: 32px; height: 32px; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--rose); }

/* ── action bar / buttons ── */
.actionbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 20;
  width: 100%; max-width: 480px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 247, 239, .95); backdrop-filter: blur(8px);
  border-radius: 24px 24px 0 0; box-shadow: 0 -8px 24px -12px rgba(38, 33, 61, .3);
}
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.3; transition: transform .08s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { width: 100%; min-height: 54px; border: 0; background: var(--rouge); color: #fff; font-family: var(--head); font-weight: 600; font-size: 16px; letter-spacing: .04em; box-shadow: 0 6px 0 #a81c24; }
.btn.primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 #a81c24; }
.btn.primary.done { background: var(--pistache); box-shadow: 0 6px 0 #c99300; }
.btn.dark { border-color: var(--bleu); background: var(--bleu); color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.dashed { width: 100%; margin-top: 14px; border-style: dashed; border-color: var(--rose); background: transparent; color: var(--rouge); }
.sub-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.sub-actions .btn { min-height: 40px; font-size: 12px; padding: 4px; border: 0; }
.sub-actions .btn:nth-child(1) { background: var(--rose-l); }
.sub-actions .btn:nth-child(2) { background: var(--ciel-l); }
.sub-actions .btn:nth-child(3) { background: var(--lilas-l); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.row2.tight { margin-top: 10px; }

/* ── chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 13px; font-size: 12.5px; font-weight: 500; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; white-space: nowrap; }
.chip.on { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.chip.add { border-style: dashed; border-color: var(--rose); color: var(--rouge); }

/* ── ATELIER ── */
.edit > .kick { margin-top: 22px; }
.namebox { border-bottom: 2px dotted var(--rose); }
.name { width: 100%; padding: 6px 0; border: 0; background: none; font-family: var(--head); font-weight: 600; font-size: 22px; }
.name:focus { outline: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 99px; background: var(--ciel-l); }
.seg > * { padding: 8px 4px; text-align: center; font-size: 13px; font-weight: 700; border: 0; border-radius: 99px; background: none; color: var(--ink2); }
.seg .on { background: #fff; color: var(--bleu); box-shadow: 0 2px 8px rgba(43, 74, 158, .16); }
.seg.small > * { font-size: 12px; padding: 7px 4px; }
.erow { display: block !important; }
.erow-main { display: flex; align-items: center; gap: 10px; }
.erow .cat { width: 62px; }
.nm.tap { border: 0; background: none; padding: 0; }
.nm.tap i { font-style: normal; font-family: var(--sans); font-weight: 500; font-size: 10.5px; color: var(--bleu); }
.swbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 60px; border: 0; background: none; padding: 0; }
.swbtn small { font-size: 9.5px; color: var(--ink2); line-height: 1.2; text-align: center; }
.x { width: 28px; height: 28px; flex: none; border: 0; border-radius: 50%; background: var(--rose-l); line-height: 1; color: var(--rouge); }
.more { margin-top: 6px; padding: 2px 0; border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--rouge); }
.attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 4px; }
.attr { display: flex; flex-direction: column; align-items: flex-start; padding: 7px 12px; border: 0; border-radius: 12px; background: var(--creme); font-size: 12.5px; font-weight: 700; text-align: left; line-height: 1.35; }
.attr small { font-size: 10px; font-weight: 400; color: var(--ink2); }
.panel { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: #fff; }
.lbl { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--head); font-weight: 600; font-size: 14px; }
.lbl b { font-family: var(--sans); font-weight: 700; font-size: 12px; color: var(--rouge); }
.range { width: 100%; accent-color: var(--rouge); }
.range-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink2); }

/* ── FOR AI ── */
.prompt .seg { margin: 18px 0 10px; }
.out { width: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.65; resize: vertical; }
.prompt .btn.primary { margin-top: 10px; }

/* ── STYLE CHECK ── */
.progress { height: 6px; margin: 0 -16px; background: var(--rose-l); }
.progress span { display: block; height: 100%; border-radius: 0 99px 99px 0; background: linear-gradient(90deg, var(--rose), var(--rouge)); transition: width .3s; }
.qno { margin: 26px 0 0; font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 50px; line-height: 1; color: var(--rouge); }
.qno small { font-size: 16px; color: var(--ink2); }
.q { margin: 12px 0 4px; font-family: var(--head); font-weight: 600; font-size: 24px; line-height: 1.45; }
.vs { display: grid; gap: 12px; margin-top: 18px; }
.pick { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 20px 18px; text-align: left; border: 0; border-radius: 22px; background: var(--rose-l); transition: transform .08s; }
.pick + .pick { background: var(--ciel-l); }
.pick:active { transform: scale(.98); }
.pick.on { box-shadow: 0 0 0 3px var(--rouge); }
.pick .ab { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 26px; color: var(--rouge); }
.pick + .pick .ab { color: var(--bleu); }
.pick b { font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.3; }
.pick small { font-size: 12px; color: #5a5470; }
.sgroup { margin-top: 18px; }
.sgroup > small { display: block; margin-bottom: 6px; font-family: var(--head); font-weight: 600; font-size: 12px; color: var(--ink2); }

/* ── RESULT ── */
.ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ranking a { display: grid; grid-template-columns: 34px 70px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r); background: #fff; }
.rk { font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 28px; line-height: 1; color: var(--rose); }
.ranking li:first-child .rk { color: var(--rouge); }
.rk-art .art { aspect-ratio: 3 / 4; border-radius: 12px; }
.rk-body { display: flex; flex-direction: column; line-height: 1.5; }
.rk-body small { font-size: 10.5px; color: var(--ink2); }
.rk-body b { font-family: var(--head); font-weight: 600; font-size: 15px; }
.rk-body em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--rouge); }

/* ── SHUFFLE ── */
.cond { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; padding: 10px 14px; border-radius: 14px; background: var(--citron-l); font-size: 12px; color: #6d6450; }
.cond .link { flex: none; }
.gcard { margin-top: 16px; }
.gcard.pop { animation: pop .5s cubic-bezier(.2, 1.3, .4, 1); }
.gart { position: relative; margin-bottom: 14px; }
.lockbtn { flex: none; min-width: 62px; padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-family: var(--didone); font-style: italic; font-size: 11px; }
.lockbtn[aria-pressed="true"] { border-color: var(--citron); background: var(--citron); font-weight: 600; }
.lockbtn.pal { position: absolute; right: 12px; bottom: 12px; }
.gname { margin: 4px 0 12px; font-family: var(--head); font-weight: 600; font-size: 24px; line-height: 1.4; }
.glist li.locked { margin: 0 -14px; padding-left: 14px; padding-right: 14px; background: var(--citron-l); }
.glist .col { font-size: 0; gap: 0; }
.glist .cat { width: 62px; }
.lucky { flex: none; padding: 1px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; color: #fff; background: var(--lilas); }
.hints a { display: block; margin-bottom: 6px; padding: 10px 14px; border-radius: 14px; background: #fff; font-family: var(--head); font-weight: 600; font-size: 13px; }
.btn.roll.rolling { opacity: 1; animation: wiggle .25s ease-in-out infinite; }

/* ── STYLE DNA ── */
.dna-now { padding: 10px 14px; border-radius: 14px; background: var(--lilas-l); font-size: 13px; }
.dna-now span { color: var(--ink2); }
.dnacard { margin-top: 12px; padding: 16px; border-radius: 22px; background: var(--rose-l); }
.dnacard:nth-of-type(3n+2) { background: var(--pistache-l); }
.dnacard:nth-of-type(3n) { background: var(--ciel-l); }
.dnacard.on { box-shadow: 0 0 0 3px var(--lilas); }
.dnacard .kick { color: var(--ink2); }
.dnacard h3 { margin: 2px 0 0; font-family: var(--head); font-weight: 600; font-size: 19px; }
.dnacard .desc { margin: 4px 0 0; font-size: 12.5px; color: #4a4460; }
.dnacard .likes { margin: 8px 0 0; font-size: 11.5px; color: var(--ink2); }
.mbars { display: grid; gap: 4px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .7); }
.mbars div { display: grid; grid-template-columns: 68px 1fr 68px; align-items: center; gap: 8px; }
.mbars small { font-size: 10px; color: var(--ink2); }
.mbars small:last-child { text-align: right; }
.mbar { position: relative; height: 4px; border-radius: 99px; background: var(--line); }
.mbar i { position: absolute; top: -4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 2px #fff; }
.edit-dna > .kick { margin-top: 22px; }
.fields { display: grid; gap: 8px; margin-top: 12px; }
.fields label { display: grid; grid-template-columns: 64px 1fr; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--ink2); }
.fields input { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-size: 16px; }
.panel.slider { margin-top: 10px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; border: 0; border-radius: 99px; background: var(--rose-l); }
.pchip.neg { background: #eeeaf2; color: var(--ink2); }
.pchip .dots i { width: 5px; height: 5px; background: rgba(38, 33, 61, .15); }
.pchip .dots i.on { background: var(--rouge); }
.pchip.neg .dots i.on { background: var(--ink2); }
.rule { display: block; margin-top: 12px; }
.rule span { display: flex; gap: 8px; align-items: baseline; font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 14px; color: var(--rouge); }
.rule em { font-style: normal; font-family: var(--sans); font-weight: 500; font-size: 11px; color: var(--ink2); }
.rule textarea { width: 100%; margin-top: 4px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; line-height: 1.7; resize: vertical; }
.strength { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.strength button { padding: 12px 0; border: 0; border-radius: 14px; background: var(--rose-l); font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 20px; }
.strength .on { background: var(--rouge); color: #fff; }
.sheet-body > .btn { width: 100%; margin-top: 18px; }

/* ── 平置きイラスト / サンプル画像 ── */
.visual { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); background: #fbf6ee; box-shadow: 0 6px 16px -8px rgba(31, 28, 46, .3); }
.visual svg, .visual .sample { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.visual .sample { object-fit: cover; background: #fbf6ee; }
.visual.tall { border-radius: var(--r); }
.feature-art .visual { border-radius: 0 0 28px 28px; box-shadow: none; }
.rk-art .visual { border-radius: 12px; box-shadow: none; }
.look.mini .visual { border-radius: 14px; }
.live { position: relative; width: 80%; margin: 0 auto 14px; }
.live .hand { position: absolute; right: -18%; bottom: 10px; font-size: 18px; color: var(--rouge); }
.prompt .pvis { position: relative; width: 70%; margin: 0 auto 16px; }
.gart .visual { box-shadow: none; }
/* 表紙：上にロゴ、下に今日の置き画 */
.cover-art { background: var(--cbg, var(--jaune-l)); }
.cover-visual { position: absolute; left: 50%; bottom: 64px; width: 78%; transform: translateX(-50%) rotate(-2deg); }
.cover-visual .visual { box-shadow: 0 18px 30px -16px rgba(31, 28, 46, .45); border: 6px solid #fff; border-radius: 6px; }
.cover .coverlines { background: none; text-shadow: none; padding-top: 0; }
.cover .hand.big { position: absolute; right: 18px; bottom: 70px; margin: 0; color: var(--rouge); transform: rotate(-8deg); }

/* 平置き ⇄ 縦並び */
.vswitch { display: inline-flex; padding: 3px; border-radius: 99px; background: #fff; box-shadow: 0 2px 10px -4px rgba(31, 28, 46, .35); }
.vswitch button { padding: 4px 12px; border: 0; border-radius: 99px; background: none; font-family: var(--head); font-weight: 600; font-size: 12px; color: var(--ink2); white-space: nowrap; }
.vswitch .on { background: var(--bleu); color: #fff; }
.vswitch.float { position: absolute; right: 10px; top: 10px; z-index: 2; }
.feature-art .vswitch.float { right: 16px; top: 14px; }
.vswitch.small { box-shadow: none; border: 1.5px solid var(--line); }
.vswitch.small button { padding: 3px 10px; font-size: 11px; }
.count .vswitch { margin-left: auto; }
.count span { margin-right: 0 !important; }

/* ── COLOR STORY（配色） ── */
.contents .c1 .ct-x, .contents .c1 i, .contents .c1 small, .contents .c2 i, .contents .c2 small { color: rgba(255, 255, 255, .88); }
.contents .c1::after, .contents .c2::after { color: #fff; }
.pstrip { display: inline-flex; flex: none; height: 14px; border-radius: 99px; overflow: hidden; box-shadow: inset 0 0 0 1.5px rgba(31, 28, 46, .12); vertical-align: middle; }
.pstrip i { width: 14px; background: var(--c); }
.pstrip.big { height: 34px; border-radius: 12px; }
.pstrip.big i { width: 22px; }
.pstrip.empty { opacity: .35; }
.colorstory-home .palrow { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
.palrow::-webkit-scrollbar { display: none; }
.palcard { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 132px; padding: 12px; border: 0; border-radius: var(--r); background: #fff; text-align: left; box-shadow: 0 4px 12px -8px rgba(31, 28, 46, .4); }
.palcard .pstrip.big { width: 100%; height: 54px; }
.palcard .pstrip.big i { flex: 1; width: auto; }
.palcard b { font-family: var(--head); font-weight: 600; font-size: 12.5px; line-height: 1.4; }
.palcard small { padding: 0 8px; border-radius: 99px; background: var(--jaune-l); font-size: 10.5px; font-weight: 700; color: #8a6400; }
.palpick { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 9px 14px; border: 2px dashed var(--jaune); border-radius: 99px; background: #fff; font-family: var(--head); font-weight: 600; font-size: 13px; }
.palbar { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--jaune-l); }
.palbar > span:not(.pstrip) { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.palbar small { font-size: 10.5px; color: #8a6400; font-weight: 700; }
.palbar b { font-family: var(--head); font-size: 14px; }
.colorstory { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: var(--r); background: #fff; border: 2px solid var(--jaune); }
.colorstory .pstrip.big { flex-direction: column; width: 30px; height: auto; }
.colorstory .pstrip.big i { width: 30px; height: 26px; }
.colorstory b { display: block; margin-top: 2px; font-family: var(--head); font-weight: 600; font-size: 16px; }
.colorstory p:not(.kick) { margin: 2px 0 0; font-size: 12.5px; color: #4a4460; line-height: 1.75; }
.palpanel { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 14px; padding: 12px 14px; border: 0; border-radius: var(--r); background: var(--jaune-l); text-align: left; }
.palpanel > span:not(.pstrip) { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.palpanel small { font-size: 10.5px; font-weight: 700; color: #8a6400; }
.palpanel b { font-family: var(--head); font-size: 14px; }
.palpanel em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--rouge); white-space: nowrap; }
.pkind + .pkind { margin-top: 22px; }
.pkind h3 { margin: 0 0 8px; font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--rouge); }
.pkind h3 small { display: block; font-family: var(--sans); font-weight: 400; font-size: 11.5px; color: var(--ink2); line-height: 1.6; }
.palopt { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 6px; padding: 10px 12px; border: 0; border-radius: 14px; background: #fff; text-align: left; }
.palopt > span:not(.pstrip) { display: flex; flex-direction: column; line-height: 1.45; }
.palopt b { font-family: var(--head); font-size: 14px; }
.palopt small { font-size: 11px; color: var(--ink2); }
.palopt.on { box-shadow: 0 0 0 2.5px var(--rouge); }
.pkind.custom .btn.primary { margin-top: 14px; }
.palgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.palmini { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: left; }
.palmini small { font-size: 11px; font-weight: 500; line-height: 1.3; }
.palmini.on { border-color: var(--rouge); box-shadow: 0 0 0 1px var(--rouge); }

/* ── STYLE PACK ── */
.pcover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); background: var(--cbg, var(--jaune-l)); }
.pcover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcover .visual.bare { position: absolute; left: 8%; right: 8%; top: 6%; bottom: 14%; aspect-ratio: auto; background: none; box-shadow: none; }
.pcover .visual.bare svg rect:first-of-type { fill: transparent; }
.pc-name { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(31, 28, 46, .55)); color: #fff; font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.35; }
.pc-name i { font-family: var(--didone); font-style: italic; font-size: 11px; color: var(--jaune); }
.pcover.hero { margin: 0 -16px 18px; border-radius: 0 0 28px 28px; aspect-ratio: 4 / 5; }
.pcover.hero .pc-name { font-size: 24px; padding: 40px 18px 18px; }
.packlist { display: grid; gap: 16px; }
.packcard { display: grid; grid-template-columns: 42% 1fr; gap: 14px; padding: 12px; border-radius: 22px; background: #fff; box-shadow: 0 6px 16px -10px rgba(31, 28, 46, .35); }
.packcard.on { box-shadow: 0 0 0 3px var(--bleu); }
.packcard .pc-name { font-size: 13px; padding: 20px 10px 8px; }
.pk-body { display: flex; flex-direction: column; min-width: 0; }
.pk-body h3 { margin: 2px 0 0; font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.35; }
.pk-body .desc { margin: 4px 0 0; font-family: var(--pen); font-size: 12.5px; color: #4a4460; }
.pk-meta { margin: 6px 0 0; font-size: 10.5px; color: var(--ink2); }
.pk-body .row2 { grid-template-columns: 1fr; gap: 6px; margin-top: auto; padding-top: 10px; }
.pk-body .btn { min-height: 38px; font-size: 12px; }
.pill { margin-left: 6px; padding: 0 8px; border-radius: 99px; background: var(--bleu); color: #fff; font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: 0; }
.notes { display: grid; gap: 10px; }
.note { padding: 14px 16px; border-radius: var(--r); background: #fff; border-left: 4px solid var(--jaune); }
.note b { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--rouge); }
.note p { margin: 4px 0 0; font-family: var(--pen); font-size: 14px; line-height: 1.9; }
.rules { margin: 10px 0 0; }
.rules div { padding: 6px 0; border-top: 1.5px dotted rgba(31, 28, 46, .15); }
.rules dt { font-family: var(--didone); font-style: italic; font-size: 12px; color: var(--rouge); }
.rules dd { margin: 0; font-family: var(--pen); font-size: 13px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: #fff; }
.gallery figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12px; }
.gallery figcaption .btn { min-height: 34px; margin-top: 4px; font-size: 11.5px; }
.empty.small { padding: 18px; border-radius: var(--r); background: #fff; font-family: var(--pen); }

/* ── お気に入り / MY CLOSET ── */
.heart { position: absolute; right: 8px; top: 8px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--rouge); font-size: 17px; line-height: 1; box-shadow: 0 2px 8px -3px rgba(31, 28, 46, .35); }
.heart.on { background: var(--rouge); color: #fff; }
.heart.sm { position: static; width: 26px; height: 26px; font-size: 14px; box-shadow: none; border: 1.5px solid var(--line); }
.heart.sm.on { border-color: var(--rouge); }
.ibtns { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.mini-btn { padding: 4px 9px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mini-btn.dark { border-color: var(--bleu); background: var(--bleu); color: #fff; }
.credit .col { min-width: 0; }
.favrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.favbtn { padding: 7px 14px; border: 1.5px solid var(--rouge); border-radius: 99px; background: #fff; color: var(--rouge); font-family: var(--head); font-weight: 600; font-size: 13px; }
.favbtn.on { background: var(--rouge); color: #fff; }
.gcard .favbtn { margin: -4px 0 12px; }
.btn.favsave { width: 100%; margin-top: 10px; border-color: var(--rouge); color: var(--rouge); }
.closetbar { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; margin: 12px 0 0; padding: 12px 16px; border-radius: var(--r); background: var(--rouge-l); }
.closetbar span { grid-row: span 2; align-self: center; padding: 4px 10px; border-radius: 99px; background: var(--rouge); color: #fff; font-family: var(--didone); font-style: italic; font-size: 12px; }
.closetbar b { font-family: var(--head); font-weight: 600; font-size: 14px; }
.closetbar em { font-style: normal; font-size: 11.5px; color: var(--ink2); }
.closet .realm { margin-bottom: 4px; }
.cbtns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.visual .sample.mine { object-fit: cover; }
.ip-visual { width: 46%; margin: 0 auto; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; }
.ip-visual svg { width: 100%; height: 100%; display: block; }
.ip-name { margin: 8px 0 4px; text-align: center; font-family: var(--head); font-weight: 600; font-size: 14px; }
.sheet-body .seg { margin-top: 8px; }
.sheet-body .out { margin-top: 10px; }
.sheet-body .btn.primary { margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 120px; z-index: 80; transform: translateX(-50%); padding: 10px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-family: var(--head); font-weight: 600; font-size: 13px; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); animation: toastin .25s ease-out; transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translate(-50%, 10px); }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ── マイパック ── */
.pill.y { background: var(--jaune); color: var(--ink); }
.theme-edit .pcover { width: 60%; margin: 0 auto; }
.theme-edit .cbtns { justify-content: center; margin-top: 8px; }
.theme-edit .hint { text-align: center; }
.note.edit { display: grid; gap: 6px; margin-bottom: 10px; }
.note.edit input, .note.edit textarea, .gallery figcaption input { width: 100%; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--creme); font-family: var(--pen); font-size: 16px; }
.note.edit .link { justify-self: end; font-size: 11.5px; }
.packedit .mini-row .mini-btn { margin-top: 4px; }
.mini-vis { flex: none; width: 54px; }
.mini-vis .visual { border-radius: 10px; box-shadow: none; }
.card-preview { display: block; width: 100%; border-radius: 14px; box-shadow: 0 10px 24px -12px rgba(31, 28, 46, .4); }
.sheet-body .note { margin-top: 14px; }

/* ── お気に入りからDNA ── */
.pickgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pickcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: left; }
.pickcard .visual { border-radius: 12px; box-shadow: none; outline: 2px solid transparent; transition: outline-color .15s; }
.pickcard.on .visual { outline: 3px solid var(--rouge); }
.pickcard .check { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .9); border: 1.5px solid var(--line); color: #fff; font-size: 13px; font-weight: 700; }
.pickcard.on .check { background: var(--rouge); border-color: var(--rouge); }
.pickcard small { font-size: 10.5px; line-height: 1.4; }
.exrow { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 9px 10px; border-radius: 14px; background: #fff; }
.exrow.on { box-shadow: inset 3px 0 0 var(--rouge); }
.exname { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.exname b { font-family: var(--head); font-weight: 600; font-size: 13.5px; }
.exname small { font-size: 10.5px; color: var(--ink2); }
.exrow .dots i { width: 6px; height: 6px; }
.exrow .mini-btn { padding: 3px 8px; }
.singles { margin-top: 18px; }
.singles summary { font-size: 12.5px; color: var(--ink2); cursor: pointer; }
.extract .lbl b { color: var(--ink2); font-weight: 400; }

/* ── アクセスコード・設定・規約 ── */
.gate { min-height: 100dvh; padding: 0 20px 30px; display: flex; flex-direction: column; }
.gate-top { position: relative; margin: 0 -20px; padding: 40px 20px 30px; background: var(--jaune-l); border-radius: 0 0 32px 32px; }
.gate-top::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: repeating-linear-gradient(90deg, var(--rouge) 0 18px, #fff 18px 36px); }
.gate .masthead { position: static; color: var(--rouge); }
.gate .hand.big { position: absolute; right: 24px; bottom: 26px; color: var(--bleu); }
.gate-form { display: grid; gap: 12px; margin-top: 26px; }
.gate-form .search { text-align: center; font-size: 18px; letter-spacing: .12em; }
.gate-err { margin: 0; text-align: center; font-size: 12.5px; color: var(--rouge); }
.gate-form.shake { animation: wiggle .3s ease-in-out 2; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: auto 0 0; padding-top: 24px; font-size: 11.5px; }
.legal-links a { color: var(--ink2); text-decoration: underline; }
.legal-links.home { margin-top: 28px; }
.settings .legal-links { justify-content: flex-start; margin-top: 0; padding-top: 0; }
.legal .lh { margin: 22px 0 6px; font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--rouge); }
.legal .lp { margin: 0; font-size: 13px; line-height: 1.9; }
.backup-hint { display: block; margin: -6px 0 14px; padding: 8px 14px; border-radius: 99px; background: var(--jaune-l); font-size: 12px; text-align: center; }

/* ── ディテール編集 ── */
.dets { margin: 10px 0 6px; padding: 10px 12px; border-radius: 14px; background: var(--creme); }
.dets-h { margin: 0 0 6px; font-family: var(--head); font-weight: 600; font-size: 13px; color: var(--rouge); }
.dets-h small { margin-left: 8px; font-family: var(--sans); font-weight: 400; font-size: 10.5px; color: var(--ink2); }
.dets .chip { padding: 4px 10px; font-size: 11.5px; }
.attr.c2 { width: 100%; margin-top: 8px; background: #fff; }
.attr.c2 span { display: inline-flex; align-items: center; gap: 6px; }

/* ── トレンド・世界観ファッション ── */
.realm.three { grid-template-columns: repeat(3, 1fr); border-radius: 22px; }
.realm.three button { border-radius: 18px; font-size: 12px; padding: 7px 2px; }
.realm.three i { font-size: 9.5px; }
.gchip.trend { border-color: var(--rouge); color: var(--rouge); font-weight: 700; }
.gchip.trend.on { background: var(--rouge); color: #fff; }
.trend-badge { position: absolute; left: 8px; bottom: 8px; z-index: 1; padding: 1px 8px; border-radius: 99px; background: var(--rouge); color: #fff; font-family: var(--didone); font-style: italic; font-size: 10px; letter-spacing: .06em; }
.trend-home .palrow { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
.trend-card { flex: none; width: 118px; }
.world-home { display: grid; gap: 10px; margin-top: 22px; }
.wbanner { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; border: 0; border-radius: var(--r); text-align: left; color: #fff; }
.wbanner b { font-family: var(--head); font-weight: 600; font-size: 18px; }
.wbanner small { font-size: 11.5px; opacity: .9; }
.wbanner .kick { color: var(--jaune); }
.wbanner.sub { background: linear-gradient(120deg, #1f1c2e, #6b2244); }
.wbanner.fan { background: linear-gradient(120deg, var(--bleu), #6a4fd0); }

/* ── 系統・スタイリングチェック ── */
.style-home .scat { margin-top: 10px; padding: 12px 14px; border-radius: var(--r); background: #fff; }
.scat-h { margin: 0 0 8px; font-family: var(--head); font-weight: 600; font-size: 14px; }
.scat-h i { margin-right: 8px; font-family: var(--didone); font-style: italic; font-size: 12px; color: var(--rouge); }
.scat.casual .scat-h i { color: #b58400; } .scat.street .scat-h i { color: var(--ink); } .scat.kireime .scat-h i { color: var(--bleu); }
.style-row { display: flex; gap: 6px; overflow-x: auto; margin: 10px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.style-row::-webkit-scrollbar { display: none; }
.schip { flex: none; padding: 5px 12px; border: 0; border-radius: 99px; background: var(--jaune-l); font-size: 12px; font-weight: 700; color: #6d5200; }
.schip.on { background: var(--jaune); color: var(--ink); }
.stylebox { margin-top: 6px; }
.sb-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin-bottom: 6px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--jaune-l); text-align: left; }
.sb-item b { font-family: var(--head); font-weight: 600; font-size: 16px; }
.sb-item small { font-family: var(--pen); font-size: 12.5px; color: #4a4460; }
.scheck { margin-bottom: 14px; padding: 10px 14px; border-radius: var(--r); background: #fff; border: 2px solid var(--pistache-l); }
.scheck summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; }
.scheck summary::-webkit-details-marker { display: none; }
.scheck summary b { font-family: var(--head); font-weight: 600; font-size: 14px; }
.scheck summary::after { content: '▾'; margin-left: auto; color: var(--ink2); }
.scheck[open] summary::after { content: '▴'; }
.scheck ul { margin: 8px 0 0; padding: 0; list-style: none; }
.scheck li { display: flex; gap: 8px; padding: 6px 0; border-top: 1.5px dotted var(--line); font-family: var(--pen); font-size: 13px; line-height: 1.7; }
.scheck li span { flex: none; width: 18px; font-family: var(--sans); }
.scheck li.ok span { color: #3f9c4f; font-weight: 700; }
.sheet-body .btn.primary { margin-top: 14px; }

/* ── 自由に作る：空欄のカテゴリ ── */
.empty-slot .nm.tap { display: flex; flex-direction: column; align-items: flex-start; color: var(--bleu); font-size: 14px; }
.empty-slot .nm.tap small { font-family: var(--sans); font-weight: 400; font-size: 10.5px; color: var(--ink2); }
.empty-slot { opacity: .85; }
.empty-vis { display: grid; place-items: center; box-shadow: none; border: 2px dashed var(--line); background: #fff; }
.empty-vis p { margin: 0; text-align: center; font-family: var(--pen); font-size: 13px; color: var(--ink2); line-height: 1.8; }

/* ── シーンや雰囲気から探す ── */
.find .chips .chip { font-size: 13px; padding: 7px 14px; }
.find-res { margin-top: 10px; }
.look .why { margin: 2px 0 0; font-size: 10.5px; font-weight: 700; color: var(--bleu); }

/* ── うちの子・もっと遊ぶ ── */
.chara-card { display: block; width: 100%; margin-top: 18px; text-decoration: none; padding: 14px 16px; border: 0; border-radius: 22px; background: var(--menthe-d); color: #fff; text-align: left; }
.chara-card.empty { display: flex; flex-direction: column; gap: 3px; }
.chara-card .kick { color: var(--jaune); }
.chara-card b { font-family: var(--head); font-weight: 600; font-size: 18px; }
.chara-card small { font-size: 12px; opacity: .9; }
.chara-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chara-head .link { margin-left: auto; color: #fff; text-decoration-color: var(--jaune); }
.chara-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; font-size: 12px; }
.chara-card .palrow { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.chara-card .trend-card { flex: none; width: 108px; }
.chara-card .look h3 { color: #fff; }
.chara-card .look .why { color: var(--jaune); }
.chara-card .heart { display: none; }
.more .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 2px; min-height: 84px; padding: 14px; border: 0; border-radius: var(--r); text-align: left; font: inherit; }
.tile b { font-family: var(--head); font-weight: 600; font-size: 15px; }
.tile small { font-size: 11px; opacity: .85; }
.tile.t1 { background: var(--rouge); color: #fff; }
.tile.t2 { background: var(--bleu); color: #fff; }
.tile.t3 { background: var(--jaune); color: var(--ink); }
.tile.t4 { background: linear-gradient(120deg, #1f1c2e, #6b2244); color: #fff; }
.trend-card { flex: none; width: 118px; }

/* ── MY CHARACTER ── */
.cavatar { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--s, #f3dccb); border: 2px solid #fff; position: relative; }
.cavatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cavatar.noimg i:first-child { position: absolute; left: 0; right: 0; top: 0; height: 46%; background: var(--h); border-radius: 0 0 40% 40%; }
.cavatar.noimg i:last-child { position: absolute; left: 30%; top: 58%; width: 40%; height: 10%; background: radial-gradient(circle at 25% 50%, var(--e) 30%, transparent 32%), radial-gradient(circle at 75% 50%, var(--e) 30%, transparent 32%); }
.cavatar.big { width: 84px; height: 84px; }
.chara-head { display: flex; align-items: center; gap: 10px; }
.chara-head > span { display: flex; flex-direction: column; }
.chara-note { margin: 8px 0 0; font-size: 11px; opacity: .85; }
.characard { display: flex; gap: 14px; margin-top: 12px; padding: 14px; border-radius: 22px; background: #fff; }
.characard.on { box-shadow: 0 0 0 3px var(--bleu); }
.cc-body { flex: 1; min-width: 0; }
.cc-body h3 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 18px; }
.cc-body .row2 { grid-template-columns: 1fr auto; }
.cimg { display: grid; place-items: center; padding: 10px; border-radius: var(--r); background: #fff; }
.cimg img { max-width: 100%; max-height: 340px; border-radius: 12px; cursor: crosshair; touch-action: manipulation; }
.cslots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cslot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 2px solid transparent; border-radius: 16px; background: #fff; }
.cslot.on { border-color: var(--rouge); }
.cslot b { font-family: var(--head); font-weight: 600; font-size: 14px; }
.cslot small { font-size: 10.5px; color: var(--ink2); }
.cpal { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.cdot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1.5px var(--line); }
.dna-note.chara { background: var(--bleu-l); }
.dna-note.chara b { color: var(--bleu); }
.dna-note .link { display: block; margin-top: 4px; }

/* マイキャラのOFF */
.ch-btns { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.chara-head .link { margin-left: 0; }
.offbtn { padding: 4px 12px; border: 1.5px solid currentColor; border-radius: 99px; background: transparent; font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 12px; }
.chara-card .offbtn { color: #fff; }
.charabar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 8px 12px; border-radius: 99px; background: var(--bleu-l); font-size: 12.5px; }
.charabar .cavatar { width: 32px; height: 32px; }
.charabar span { flex: 1; }
.charabar .offbtn { color: var(--bleu); }

/* ── bottom sheet ── */
#sheet { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#sheet.open { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(38, 33, 61, .4); animation: fade .2s; }
.sheet-panel {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 480px; max-height: 82dvh; display: flex; flex-direction: column;
  background: var(--creme); border-radius: 28px 28px 0 0; overflow: hidden;
  animation: up .3s cubic-bezier(.2, 1.1, .3, 1);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; }
.sheet-head h2 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 17px; }
.sheet-head .x { width: 32px; height: 32px; }
.sheet-body { overflow-y: auto; padding: 6px 16px calc(20px + env(safe-area-inset-bottom)); }
.fgroup + .fgroup { margin-top: 18px; }
.fgroup h3 { margin: 0 0 8px; font-family: var(--head); font-weight: 600; font-size: 14px; }
.fgroup h3 small { margin-left: 8px; font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--ink2); }
.sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin: 20px -16px calc(-20px - env(safe-area-inset-bottom)); padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--creme); box-shadow: 0 -6px 16px -10px rgba(38, 33, 61, .25); }
.sheet-foot .btn.primary { min-height: 46px; font-size: 14px; box-shadow: 0 4px 0 #a81c24; }
.sh { margin: 4px 0 10px; font-family: var(--head); font-weight: 600; font-size: 13px; }
.sh + .cgrid { margin-bottom: 18px; }
.chips.tabs { margin-bottom: 14px; }
.cgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 4px; }
.cbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; border-radius: 12px; background: none; padding: 5px 0; }
.cbtn small { font-size: 9.5px; line-height: 1.2; text-align: center; }
.cbtn.on { background: #fff; box-shadow: 0 0 0 2px var(--rouge); }
.list { display: grid; gap: 6px; margin-top: 6px; }
.li { padding: 12px 16px; border: 0; border-radius: 14px; background: #fff; text-align: left; font-family: var(--head); font-weight: 600; font-size: 14px; }
.li.on { background: var(--rouge); color: #fff; }
.slotgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slotbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 4px; border: 0; border-radius: 16px; background: #fff; font-family: var(--head); font-weight: 600; font-size: 13px; }
.slotbtn i { font-style: italic; font-family: var(--didone); font-size: 11px; color: var(--rouge); }
.gloss { margin: 0; display: grid; gap: 8px; }
.gloss div { padding: 12px 14px; border-radius: 14px; background: #fff; }
.gloss dt { font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--rouge); }
.gloss dd { margin: 2px 0 0; font-size: 12.5px; color: #4a4460; }
.gdesc { margin: 0; font-size: 14.5px; line-height: 1.9; }

@keyframes up { from { transform: translate(-50%, 100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) rotate(-1deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 読みもの部分は手書き風フォント */
.lead, .points li, .keyword p, .gdesc, .dnacard .desc, .colorstory p:not(.kick), .gloss dd, .palopt small, .shuffle-banner small, .contents .ct small { font-family: var(--pen); }
.points li { font-weight: 600; }
.erow .wear { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 2px 72px; }
.erow .wear small { font-family: var(--pen); font-size: 11px; color: var(--bleu); margin-right: 2px; }
.erow .wear .chip { padding: 4px 10px; font-size: 12px; }
.inner-slot .cat { color: var(--bleu); }
button.look-art.plain { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.mp-empty { text-align: center; padding: 24px 8px; }
.mp-empty .btn { display: inline-block; margin-top: 10px; }
.shuffle-banner.packit { margin: 14px 0 6px; background: var(--bleu); }
.btn[disabled], .li[disabled] { opacity: .45; pointer-events: none; }
/* カテゴリのタイル（あとで画像を差し込む） */
.cat-row { display: flex; gap: 10px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-tile { flex: none; width: 104px; padding: 0 0 8px; border: 0; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 2px 8px rgba(31, 28, 46, .08); overflow: hidden; }
.cat-art { display: block; aspect-ratio: 1; overflow: hidden; background: var(--jaune-l); }
.cat-art svg, .cat-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cat-art svg { transform: scale(1.25) translateY(4%); }
.cat-tile i { display: block; margin-top: 6px; font-family: var(--didone); font-style: italic; font-size: 10px; color: var(--rouge); }
.cat-tile b { display: block; padding: 0 4px; font-family: var(--head); font-size: 11.5px; line-height: 1.3; }
.cat-tile.on { box-shadow: 0 0 0 3px var(--rouge); }
.cat-row.small .cat-tile { width: 84px; }
.cat-row.small .cat-tile b { font-size: 10.5px; }
/* カテゴリ画像は 3:4 の縦長で作る */
.cat-art { aspect-ratio: 3 / 4; }
.cat-art img { object-position: 50% 20%; }
button.cover-visual { padding: 0; border: 0; background: none; cursor: pointer; }
button.cl-feature { border: 0; }
.visual.cover .sample { object-position: 50% 20%; }
/* 表紙の文字は絵に重なっても読めるように、白いふちどり＋やわらかい影 */
.masthead { z-index: 2; text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1.5px 1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px -1.5px 0 #fff, 0 4px 14px rgba(31, 28, 46, .28); }
.issue { z-index: 2; font-weight: 600; text-shadow: 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 0 2px 8px rgba(255, 255, 255, .9); }
/* おまけ：ファッション辞典 */
.tile.t5 { grid-column: 1 / -1; background: var(--creme, #fff6dc); color: var(--ink); }
.guide .realm { margin-bottom: 14px; }
.gsearch { width: 100%; margin-bottom: 4px; }
.gk { scroll-margin-top: 70px; }
.gk .gloss { margin-bottom: 8px; }
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.howto li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 14px; border-radius: var(--r); background: #fff; box-shadow: 0 2px 8px rgba(31, 28, 46, .06); }
.howto .hno { font-family: var(--didone); font-style: italic; font-size: 28px; line-height: 1; color: var(--rouge); }
.howto h3 { margin: 2px 0 4px; font-family: var(--head); font-size: 16px; }
.howto p { margin: 0; font-family: var(--pen); font-size: 13px; line-height: 1.75; color: #4a4460; }
.howto .htip { margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: var(--jaune-l); font-size: 12px; }
.howto .cbtns { margin-top: 8px; }
.howto .cbtns:empty { display: none; }
.contents .c4 { background: var(--menthe-l); }
.contents .c4 i, .contents .c4 small, .contents .c4::after { color: #2f7a66; }
.contents .c4 span { color: #0f5c4a; }
.scan .scan-in { width: 100%; margin-top: 8px; font-size: 12px; }
.scan-result { display: grid; grid-template-columns: 44% 1fr; gap: 12px; align-items: start; }
.scan-result h3 { margin: 4px 0 6px; font-family: var(--head); }
.scan-items { margin: 0; padding: 0; list-style: none; font-size: 12.5px; line-height: 2; }
.note.warn { color: var(--rouge); }
.note-panel .lbl { display: block; }
.note-panel .lbl small { display: block; margin-top: 2px; font-weight: 400; font-size: 11px; color: var(--ink2); }
.note-panel .note-in { display: block; box-sizing: border-box; width: 100%; margin-top: 8px; padding: 10px 12px; border: 1.5px solid #eadfcb; border-radius: 12px; background: #fff; font: inherit; font-size: 14px; line-height: 1.6; resize: vertical; }
/* ビフォーアフター（わたこ） */
.ba { margin-top: 22px; }
.ba-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; margin: 10px -16px 0; padding: 4px 16px 8px; scrollbar-width: none; }
.ba-row::-webkit-scrollbar { display: none; }
.ba-before, .ba-after { flex: none; width: 96px; margin: 0; padding: 0; border: 0; border-radius: 14px; background: #fff; overflow: hidden; text-align: center; box-shadow: 0 2px 8px rgba(31, 28, 46, .08); }
.ba-before { width: 112px; outline: 3px solid var(--menthe); }
.ba-before img, .ba-after img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; }
.ba-before figcaption { padding: 4px 0; font-family: var(--didone); font-style: italic; font-size: 12px; color: var(--menthe-d); }
.ba-after span { display: block; padding: 4px 2px; font-family: var(--head); font-size: 10.5px; line-height: 1.3; }
.ba-arrow { flex: none; font-family: var(--didone); font-size: 26px; color: var(--rouge); }
.ba .hint { margin-top: 4px; }
/* はじめてガイド */
.onboard { text-align: center; }
.ob-wako { width: 110px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; border-radius: 18px; outline: 3px solid var(--menthe); }
.ob-hi { margin: 10px 0 4px; font-family: var(--pen); font-size: 14px; line-height: 1.7; }
.ob-steps { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; text-align: left; }
.ob-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: #fff; }
.ob-steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--menthe-d); color: #fff; font-family: var(--didone); font-style: italic; }
.ob-steps span { font-family: var(--pen); font-size: 12.5px; line-height: 1.6; color: #4a4460; }
.ob-steps em { display: block; font-style: normal; font-family: var(--head); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.onboard .btn { width: 100%; margin-top: 8px; }
.legal-links.home .link { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; }

/* ═════ PC用レイアウト（幅1000px以上）：左にメニュー、右に誌面。スマホの見た目はそのまま ═════ */
#pcnav { display: none; }
@media (min-width: 1000px) {
  body { display: grid; grid-template-columns: 240px minmax(0, 1fr); max-width: 1180px; box-shadow: none; background: transparent; }
  #pcnav { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 26px 18px; background: var(--creme); border-right: 1px solid var(--line); }
  #app { min-width: 0; min-height: 100dvh; background: var(--creme); box-shadow: 0 0 40px rgba(31, 28, 46, .15); }
  .pc-logo { font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 34px; line-height: .95; color: var(--ink); }
  #pcnav nav { display: grid; gap: 2px; }
  #pcnav nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--ink); }
  #pcnav nav a span { width: 22px; text-align: center; }
  #pcnav nav a:hover { background: var(--menthe-l); }
  #pcnav nav a.on { background: var(--menthe-d); color: #fff; }
  .pc-wako { margin-top: auto; text-align: center; }
  .pc-wako img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; border-radius: 16px; outline: 3px solid var(--menthe); }
  .pc-wako p { margin: 6px 0 0; font-family: var(--pen); font-size: 12px; color: var(--ink2); }

  /* 誌面は広く。カードは列を増やす */
  #app > * { padding-left: 32px; padding-right: 32px; }
  #app > .topbar { padding-left: 28px; padding-right: 28px; }
  .topbar .back { visibility: visible; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 18px; }
  .cat-row, .ba-row, .style-row, .mini-row, .chara-card .palrow { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
  .cat-row, .ba-row { flex-wrap: nowrap; }
  .cat-tile, .ba-after, .ba-before { flex: 1 1 0; width: auto; min-width: 0; }
  .ba-before { flex-grow: 1.15; }

  /* 表紙：左にロゴ、右に絵 */
  .cover-art { margin: 0 -32px; height: 600px; min-height: 0; }
  .masthead { font-size: 96px; left: 40px; }
  .issue { left: 44px; top: calc(28px + 96px * 1.8); }
  .sticker { left: 300px; right: auto; top: 300px; }
  .cover-visual { left: auto; right: 60px; width: 360px; bottom: 70px; transform: rotate(-2deg); }
  .cover .coverlines { left: 40px; right: auto; bottom: 30px; padding: 0; }
  .cover .hand.big { right: 40px; bottom: 34px; }
  .contents { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .contents > :first-child { grid-column: 1 / -1; }
  .tiles { grid-template-columns: repeat(3, 1fr); }

  /* 大きくなりすぎる絵は幅をおさえる */
  .feature-art { margin: 0 auto 20px; max-width: 460px; }
  .feature-art .visual { border-radius: 28px; }
  .live { width: 100%; max-width: 360px; }
  .edit, .prompt, .gacha, .dna, .find, .closet, .guide, .diag, .result { max-width: 860px; margin: 0 auto; }
  .lookbook, .feature { max-width: none; }

  /* 下のボタンは誌面の中央に */
  .actionbar { left: calc(50% + 120px); max-width: 640px; }
  /* シートは画面の真ん中に出す */
  .sheet-panel { top: 50%; bottom: auto; transform: translate(-50%, -50%); max-width: 560px; max-height: 84dvh; border-radius: 28px; animation: fade .2s; }
  .toast { left: calc(50% + 120px); }
}
/* マイクローゼットの画像 */
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
.pic { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(31, 28, 46, .1); }
.pic img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pic span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; background: linear-gradient(transparent, rgba(31, 28, 46, .55)); color: #fff; font-family: var(--head); font-size: 11.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pic-view img { display: block; width: 100%; max-height: 52dvh; object-fit: contain; border-radius: 14px; background: #fff; }
.pic-title { display: block; box-sizing: border-box; width: 100%; margin: 12px 0 10px; padding: 10px 12px; border: 1.5px solid #eadfcb; border-radius: 12px; background: #fff; font-size: 14px; }
.sheet-body .pic-view + .pic-title + .row2 .btn, .sheet-body .btn + .link.danger { margin-top: 0; }
.sheet-body > .link.danger { display: block; margin: 14px auto 0; }
