/* ============================================================
   NoraKo — 主要4画面（Today / My NoraKo / Discover / Messages・Community）  [design v2]
   ============================================================ */

/* ---------- Today：ヘッダー ---------- */
.v-hdr-today { grid-template-columns: auto 1fr auto; gap: 8px; padding: 0 8px 0 18px; }
.v-hdr-today .hdr-t { justify-content: center; }
.wordmark { font-family: var(--f-serif); font-weight: 600; font-size: 30px; letter-spacing: 0; line-height: 1; color: var(--ink); }
.wordmark-img { height: 26px; width: auto; }
.v-date { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.25; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.v-date em { font-style: normal; font-weight: 400; font-size: 10.5px; color: var(--ink3); letter-spacing: 0.05em; }

/* ---------- Today：わたしの今日 ---------- */
.today-body { padding-bottom: 32px; }
.v-me { display: flex; align-items: center; gap: 13px; width: calc(100% - 32px); margin: 2px 16px 12px; padding: 10px 0; text-align: left; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v-me .tav { margin: 3px; }
.v-me-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v-me-t b { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.v-me-s { display: flex; align-items: center; gap: 7px; min-width: 0; }
.v-me-s i { font-style: normal; font-size: 10.5px; color: var(--ink3); white-space: nowrap; }
.tl.boxed { border: 1px solid var(--line); padding: 0 8px 0 6px; font-size: 10.5px; color: var(--ink); }
.tl.boxed svg { color: var(--tc); }
.v-me-t { flex: 0 0 auto; }
.v-me-tag { margin-left: auto; text-align: right; font-size: 10.5px; line-height: 1.6; color: var(--ink2); min-width: 0; max-width: 8.6em; text-wrap: balance; word-break: keep-all; }
.v-me > .ic { color: var(--ink3); flex-shrink: 0; }

/* ---------- Today：朝・昼・夜の編集ページ ---------- */
.v-comp { margin: 0 12px; }
.v-comp-row { display: grid; gap: 5px; height: var(--comp-h, 208px); }
.pn { position: relative; min-width: 0; filter: drop-shadow(0 5px 7px rgba(40, 30, 26, 0.2)); }
.pn-clip { position: absolute; inset: 0; overflow: hidden; background: var(--sand); }
.pn.r1 .pn-clip { clip-path: polygon(0 0.6%, 6% 0, 15% 0.7%, 27% 0.1%, 40% 0.8%, 55% 0, 68% 0.7%, 82% 0.1%, 93% 0.6%, 100% 0.2%, 99.5% 16%, 100% 34%, 99.6% 55%, 100% 76%, 99.6% 100%, 90% 99.4%, 76% 100%, 62% 99.3%, 47% 100%, 33% 99.4%, 19% 100%, 7% 99.4%, 0 100%, 0.4% 78%, 0 55%, 0.4% 32%, 0 12%); }
.pn.r2 .pn-clip { clip-path: polygon(0.3% 0.3%, 10% 0.9%, 22% 0, 36% 0.7%, 50% 0.1%, 65% 0.8%, 79% 0, 91% 0.7%, 100% 0.1%, 99.6% 20%, 100% 41%, 99.5% 62%, 100% 82%, 99.7% 99.7%, 88% 99.1%, 74% 100%, 60% 99.2%, 46% 100%, 31% 99.3%, 17% 100%, 6% 99.3%, 0 99.8%, 0.5% 80%, 0 60%, 0.5% 38%, 0 18%); }
.pn.r3 .pn-clip { clip-path: polygon(0 0.2%, 8% 0.8%, 19% 0, 33% 0.8%, 47% 0.1%, 61% 0.7%, 75% 0, 88% 0.8%, 100% 0.3%, 99.5% 22%, 100% 44%, 99.6% 66%, 100% 88%, 99.6% 100%, 87% 99.3%, 72% 100%, 57% 99.2%, 42% 100%, 27% 99.3%, 13% 100%, 3% 99.4%, 0 100%, 0.5% 83%, 0 62%, 0.4% 40%, 0 20%); }
.pn-hit { position: absolute; inset: 0; display: block; width: 100%; height: 100%; text-align: left; }
.pn-hit .ph { height: 100%; border-radius: 0; }
.pn-hit .ph::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(243, 239, 232, 0.58), transparent 38%); }
.pn-l { position: absolute; z-index: 3; left: 0; top: 0; display: flex; flex-direction: column; padding: 9px 10px 4px 10px; line-height: 1.1; pointer-events: none; }
.pn-l b { font-size: 23px; color: var(--ink); font-weight: 400; }
.pn-l i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink); letter-spacing: 0.03em; margin-top: 3px; }
.pn-lk { font-style: normal; margin-left: 3px; color: var(--ink2); }
.pn-cap { position: absolute; z-index: 3; left: 8px; bottom: 10px; max-width: calc(100% - 46px); padding: 2px 7px; font-size: 11px; line-height: 1.5; color: var(--ink); background: rgba(246, 242, 235, 0.88); transform: rotate(-2deg); pointer-events: none; }
.pn-more { position: absolute; z-index: 4; right: 2px; bottom: 2px; width: 34px; height: 30px; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 1px 2px rgba(30, 22, 20, 0.6)); }
.pn.empty:not(.night) .pn-more { color: var(--ink2); filter: none; }
.pn-cam { position: absolute; z-index: 4; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(246, 242, 235, 0.8); color: var(--ink); box-shadow: 0 3px 10px rgba(30, 22, 20, 0.25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pn.has .pn-cam { right: 7px; top: 8px; width: 34px; height: 34px; }
.pn-cam.static { left: 50%; bottom: 50px; transform: translateX(-50%); }
.pn-cta { position: absolute; z-index: 4; left: 0; right: 0; bottom: 30px; padding: 0 6px; text-align: center; font-size: 11px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.pn-text { padding: 50px 11px 30px; font-size: 12px; line-height: 1.65; color: var(--ink2); background: #f7f4ee; }
.pn.empty .pn-clip { background: linear-gradient(160deg, #f6f1e8, #e9e1d3); }
.pn.morning.empty .pn-clip { background: linear-gradient(160deg, #f7eee0, #ecdcc6); }
.pn.day.empty .pn-clip { background: linear-gradient(160deg, #f3f0e9, #e2ded4); }
.pn.night.empty .pn-clip { background: linear-gradient(172deg, #4b4644, #2b2727); }
.pn.night.empty .pn-l b, .pn.night.empty .pn-l i { color: #f1ebe2; }
.pn.night.empty .pn-ph, .pn.night.empty .pn-more { color: #d8cfc4; }
.pn-quiet { display: flex; align-items: flex-end; padding: 0 12px 15px 11px; }
.pn-ph { font-size: 12px; line-height: 1.65; color: var(--ink2); max-width: 6.6em; }
.pn-sun { position: absolute; right: -8px; top: 26px; color: rgba(42, 39, 38, 0.11); }

/* ---------- Today's NoraKo ---------- */
.v-tn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: calc(100% - 24px); margin: 14px 12px 0; padding: 0 12px 0 16px; min-height: 56px; text-align: left; background: var(--sand); }
.v-tn-t { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; line-height: 1.3; }
.v-tn-t b { font-size: 22px; font-weight: 500; color: #6d6660; white-space: nowrap; }
.v-tn-t i { font-style: normal; font-size: 11.5px; color: var(--ink2); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.v-tn-pols { position: relative; display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.v-tn-pols em { font-style: normal; font-size: 13px; color: var(--ink3); line-height: 1.05; margin-left: 10px; width: 3.2em; }
.v-tn-p { display: block; width: 33px; padding: 2px 2px 6px; background: #fdfbf7; box-shadow: 0 2px 6px rgba(40, 30, 26, 0.3); margin-left: -9px; }
.v-tn-p:first-child { margin-left: 0; }
.v-tn-p .ph { border-radius: 0; }
.v-tn-p.p0 { transform: rotate(-6deg) translateY(-3px); }
.v-tn-p.p1 { transform: rotate(3deg) translateY(2px); }
.v-tn-p.p2 { transform: rotate(-3deg) translateY(-2px); }

/* ---------- Friends' Today ---------- */
.v-friends { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.v-friends-h { display: flex; align-items: baseline; gap: 8px; padding: 0 16px 14px; }
.v-friends-h h2 { font-size: 24px; font-weight: 500; white-space: nowrap; line-height: 1.1; }
.v-lock { color: var(--ink3); align-self: center; display: inline-flex; }
.v-friends-h .v-link { margin-left: auto; }
.rs-ref { display: flex; align-items: center; gap: 10px; padding: 2px 0 10px; }
.rs-th { width: 44px; height: 54px; flex: 0 0 44px; overflow: hidden; }
.rs-th .ph { height: 100%; }
.rs-tx { font-size: 13px; color: var(--ink2); line-height: 1.6; }

/* ---------- sticky：小さなピル ---------- */
.v-stick { position: sticky; top: 0; height: 0; z-index: 6; }
.v-pill { position: absolute; left: 50%; top: 8px; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 16px 0 13px; border-radius: 999px; background: var(--charcoal); color: #f6f1e9; font-size: 12.5px; letter-spacing: 0.02em; box-shadow: 0 8px 18px -8px rgba(30, 22, 20, 0.7); transform: translate(-50%, -140%); opacity: 0; pointer-events: none; transition: transform 0.22s ease, opacity 0.22s ease; white-space: nowrap; }
.v-pill b { font-family: var(--f-en); font-weight: 400; font-size: 15px; margin-right: 1px; }
.v-stick.show .v-pill { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

/* ---------- 下段：お知らせ・振り返り（優先度を下げて静かに） ---------- */
.v-more { margin: 30px 16px 0; display: flex; flex-direction: column; }
.v-note { display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px 0; text-align: left; border-top: 1px solid var(--line); }
.v-note-th { width: 48px; height: 48px; flex: 0 0 48px; overflow: hidden; }
.v-note-th .ph { height: 100%; border-radius: 0; }
.v-note-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.v-note-t i { font-style: normal; font-size: 12px; color: var(--rose2); }
.v-note-t i.script { font-size: 17px; }
.v-note-t b { font-size: 14px; font-weight: 500; }
.v-note-t span { font-size: 11.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-note > .ic { color: var(--ink3); }
.v-tip { padding: 14px 0; border-top: 1px solid var(--line); }
.v-tip i { font-style: normal; font-size: 14px; color: var(--rose2); font-family: var(--f-en); }
.v-tip b { display: block; font-size: 14px; font-weight: 500; margin: 2px 0 4px; }
.v-tip p { font-size: 12px; color: var(--ink2); line-height: 1.75; margin-bottom: 8px; }
.v-tip .v-link { text-decoration: underline; text-underline-offset: 3px; }
.v-foot { text-align: center; padding: 26px 24px 4px; color: var(--ink3); font-size: 13px; }

@media (max-width: 359px) {
  .wordmark { font-size: 26px; }
  .v-hdr-today { padding-left: 14px; }
  .v-me-tag { display: none; }
  .pn-l b { font-size: 19px; }
  .pn-cta { font-size: 10px; }
  .fx-cols { gap: 10px; padding: 0 12px; }
  .v-tn-t i { display: none; }
  .v-friends-h h2 { font-size: 21px; }
  .v-friends-h .v-link { font-size: 10.5px; }
  .v-lk-pre { display: none; }
}
@media (max-height: 700px) { .v-comp-row { --comp-h: 176px; } }

/* ============================================================
   My NoraKo / 他人プロフィール：美容人格 ＋ 美容の蓄積
   ============================================================ */
.me-page { padding-bottom: 36px; }
.pf { position: relative; padding: 0 16px; }
.pf-band { height: 3px; margin: 0 -16px; background: var(--tc); }
.pf-top { display: flex; align-items: center; gap: 20px; padding: 22px 0 6px; }
.pf-av .tav { margin: 4px; }
.pf-id { display: flex; flex-direction: column; min-width: 0; }
.pf-name { font-size: 27px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.2; }
.pf-handle { font-size: 12px; color: var(--ink3); margin-top: 1px; }
.pf-stats { display: flex; gap: 18px; margin-top: 12px; }
.pf-stats button { font-size: 12px; color: var(--ink3); }
.pf-stats b { font-size: 15px; font-weight: 700; color: var(--ink); margin-right: 5px; }
.pf-bio { font-size: 13.5px; line-height: 1.85; color: var(--ink2); padding: 8px 0 12px; }
.pf-rel { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 16px; }
.pf-rel .btn { flex: 1 1 auto; }
.pf-type { display: flex; align-items: center; gap: 14px; padding: 16px 0 12px; margin-top: 2px; border-top: 1px solid var(--line); background: linear-gradient(90deg, var(--tt), rgba(243, 239, 232, 0) 78%); margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; cursor: pointer; text-align: left; }
.pf-char { flex: 0 0 92px; display: grid; place-items: center; }
.pf-type-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-type-t i { font-style: normal; font-size: 13px; color: var(--ink3); }
.pf-type-t b { display: flex; align-items: flex-start; gap: 6px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.pf-sym { color: var(--tc); margin-top: 3px; flex-shrink: 0; display: inline-flex; }
.pf-tag { font-size: 12.5px; line-height: 1.7; color: var(--ink2); }
.pf-words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pf-words em { font-style: normal; font-size: 10.5px; color: var(--tc); border: 1px solid var(--tc); border-radius: 999px; padding: 0 9px; line-height: 1.6; }
.pf-same { padding: 2px 0 14px; text-align: right; }
.pf-same .v-link, .pf-cats + .pf-tabs { text-decoration: none; }
.pf-same .v-link { text-decoration: underline; text-underline-offset: 3px; }
.pf-cats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px; }
.pf-cats .lbl { margin: 0; font-weight: 400; color: var(--ink3); }
.pf-tabs { margin-top: 2px; }
.me-body { padding-bottom: 12px; }
/* Daily：アルバム */
.al-mon { display: flex; align-items: baseline; gap: 10px; padding: 26px 16px 12px; }
.al-mon .script { font-size: 36px; line-height: 1; color: var(--ink); }
.al-mon i { font-style: normal; font-family: var(--f-en); font-size: 14px; color: var(--ink3); }
.al-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 12px; padding: 0 16px; }
.al { display: flex; flex-direction: column; gap: 8px; text-align: left; min-width: 0; }
.al.c6 { grid-column: span 6; } .al.c3 { grid-column: span 3; } .al.c2 { grid-column: span 2; }
.al-ph, .al-note { position: relative; display: block; width: 100%; padding: 5px; background: #fdfbf7; box-shadow: 0 7px 12px -9px rgba(40, 30, 26, 0.5), 0 0 0 1px rgba(40, 30, 26, 0.05); overflow: hidden; }
.al-ph .ph { height: 100%; border-radius: 0; }
.al-note { padding: 12px; font-size: 12.5px; line-height: 1.7; color: var(--ink2); }
.al.a .al-ph, .al.a .al-note { transform: rotate(-0.5deg); }
.al.b .al-ph, .al.b .al-note { transform: rotate(0.5deg); }
.al-lock { position: absolute; right: 9px; top: 9px; color: #fff; z-index: 3; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); display: inline-flex; }
.al-d { display: flex; align-items: baseline; gap: 6px; min-width: 0; padding: 0 2px; }
.al-d b { font-size: 21px; font-weight: 500; line-height: 1; }
.al-d i { font-style: normal; font-size: 10.5px; color: var(--ink3); letter-spacing: 0.06em; text-transform: uppercase; }
.al-d em { font-style: normal; margin-left: auto; font-size: 11px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al.c2 .al-d em { display: none; }
.locked { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 46px 30px; text-align: center; color: var(--ink2); }
.gl-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; aspect-ratio: 4 / 3; border: 1px dashed var(--line); color: var(--ink2); font-size: 12px; }

/* ============================================================
   Discover：Public。Todayより少し明るく、開いた余白。Editorial / Gallery
   ============================================================ */
.v-hdr-disc { padding: 0 8px 0 18px; }
.v-ttl { display: flex; align-items: center; gap: 10px; }
.v-ttl b { font-size: 29px; font-weight: 600; line-height: 1; }
.v-public { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 9px; font-size: 10px; letter-spacing: 0.06em; color: #55654d; border: 1px solid #b7c3ab; border-radius: 999px; }
.screen.pub { background: #f8f6f1 var(--paper-grain); }
.screen.pub .search-wrap input { background: transparent; }
.dx-h { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 16px 2px; }
.dx-sec { padding-top: 4px; }
.dx-plist { padding: 0 16px; }
.dx-p { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line2); }
.dx-p-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; text-align: left; }
.dx-p-main .tav { margin: 3px; }
.dx-p-t { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.dx-p-t b { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 700; }
.dx-p-t em { font-style: normal; font-size: 11px; color: var(--tc); }
.dx-p-t i { font-style: normal; font-size: 10.5px; color: var(--ink3); }
.dx-none { padding: 0 16px 10px; }
.dx-cats { display: flex; gap: 20px; overflow-x: auto; padding: 0 16px; border-bottom: 1px solid var(--line2); scrollbar-width: none; }
.dx-cats::-webkit-scrollbar { display: none; }
.dx-cat { position: relative; flex: 0 0 auto; height: 36px; font-size: 12.5px; color: var(--ink3); white-space: nowrap; }
.dx-cat.on { color: var(--ink); font-weight: 500; }
.dx-cat.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.dx-sort { display: inline-flex; gap: 14px; }
.dx-sort button { font-size: 12px; color: var(--ink3); }
.dx-sort button.on { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
/* ギャラリー */
.gl-cols { display: flex; gap: 14px; padding: 14px 16px 0; align-items: flex-start; }
.gl-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.gl-col + .gl-col { padding-top: 32px; }
.gl { display: block; text-align: left; cursor: pointer; }
.gl-ph { position: relative; overflow: hidden; background: var(--sand); }
.gl-ph .ph { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.gl-text { position: absolute; inset: 0; padding: 16px 14px; font-size: 13.5px; line-height: 1.85; color: var(--ink); background: var(--tt); border-left: 2px solid var(--tc); }
.gl-t { font-size: 12.5px; line-height: 1.7; margin: 9px 1px 4px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gl-by { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.gl-by .tav { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 2.5px var(--tc); }
.gl-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.gl-nm b { font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-nm em { font-style: normal; font-size: 9.5px; color: var(--tc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-heart { color: var(--ink3); display: inline-flex; }
.gl-heart.on { color: var(--heart); }
.gl-new .gl-ph { box-shadow: 0 0 0 3px var(--rose3); animation: glow 1.4s ease 2; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(122, 47, 61, 0.14); } }
/* フォロー中 */
.dxf-list { padding: 4px 16px 0; }
.dxf { padding: 18px 0 14px; border-top: 1px solid var(--line2); }
.dxf:first-child { border-top: 0; }
.dxf-who { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; }
.dxf-id { display: flex; align-items: center; gap: 12px; text-align: left; }
.dxf-id .tav { margin: 3px; }
.dxf-id > span { display: flex; flex-direction: column; line-height: 1.35; }
.dxf-id b { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 700; }
.dxf-id em { font-style: normal; font-size: 11px; color: var(--tc); }
.dxf-ph { position: relative; display: block; width: 100%; overflow: hidden; background: var(--sand); }
.dxf-ph .ph { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.dxf-text { display: block; width: 100%; padding: 8px 0 8px 14px; font-size: 15px; line-height: 1.9; text-align: left; border-left: 2px solid var(--tc); }
.dxf-act { display: flex; align-items: center; margin: 8px 0 0 -6px; }
.dxf-tx { font-size: 13.5px; line-height: 1.85; margin-top: 2px; }
.dxf-cats { display: flex; gap: 6px; margin-top: 8px; }
.dxf-cats span { font-size: 10.5px; color: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; }
.dxf-end { padding: 18px 0 4px; }

/* ============================================================
   Messages / Community：関係性の場所。静かで、少し親密
   ============================================================ */
.ms-list { padding: 4px 0 0; }
.ms-row { position: relative; display: flex; align-items: center; gap: 15px; width: 100%; padding: 14px 16px; text-align: left; }
.ms-row::after { content: ""; position: absolute; left: 82px; right: 16px; bottom: 0; height: 1px; background: var(--line2); }
.ms-row .tav { margin: 3px; }
.ms-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ms-name { display: flex; align-items: center; gap: 6px; }
.ms-name b { font-size: 15px; font-weight: 700; }
.ms-rel { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 9.5px; color: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; line-height: 1.6; }
.ms-rel.plain { border-color: transparent; padding: 0; color: var(--ink3); }
.ms-prev { font-size: 12.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-row.unread .ms-prev { color: var(--ink); font-weight: 500; }
.ms-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; min-width: 44px; }
.ms-side i { font-style: normal; font-size: 10.5px; color: var(--ink3); }
.ms-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); display: block; }
.ms-sg { margin-top: 10px; }
.ms-sg .v-sec-h { align-items: baseline; }
.ms-sg-row { display: flex; align-items: center; gap: 13px; padding: 11px 16px; margin: 0 0 0; border-top: 1px solid var(--line2); }
.ms-sg-row:first-of-type { border-top: 0; }
.ms-sg-row .tav { margin: 3px; }
.ms-sg-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.ms-sg-t b { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; }
.ms-sg-t em { font-style: normal; font-size: 11px; color: var(--ink3); }
.ms-say { text-decoration: underline; text-underline-offset: 3px; }
.ms-foot { text-align: center; padding: 26px 24px 6px; font-size: 13px; color: var(--ink3); }
.dm-who .tav { margin: 2px 6px 2px 2px; }
.cm-sec { padding-top: 2px; }
.cm-none { padding: 2px 16px 10px; }
.cm-list2 { padding: 0 16px; }
.cm-row2 { display: flex; align-items: flex-start; gap: 10px; padding: 15px 0; border-top: 1px solid var(--line2); }
.cm-main2 { flex: 1; min-width: 0; display: flex; gap: 14px; text-align: left; }
.cm-main2 > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-main2 b { font-size: 15px; font-weight: 700; }
.cm-main2 em { font-style: normal; font-size: 12.5px; color: var(--rose); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-main2 i { font-style: normal; font-size: 11px; color: var(--ink3); }
.cm-sw { display: grid; place-items: center; flex: 0 0 auto; font-size: 24px; }
.cm-sw .serif { font-weight: 500; }
.cm-row2 .btn { margin-top: 6px; }
.cm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 16px 0; }
.cm-tile { display: flex; flex-direction: column; background: var(--tt); min-width: 0; }
.cm-tile-main { display: flex; flex-direction: column; gap: 3px; padding: 16px 14px 8px; text-align: left; flex: 1; min-height: 168px; }
.cm-tile-mark { font-size: 32px; line-height: 1; margin-bottom: auto; color: var(--tc); display: inline-flex; padding-bottom: 20px; }
.cm-tile-mark i { font-style: normal; font-weight: 500; }
.cm-tile-en { font-size: 12.5px; color: var(--tc); }
.cm-tile b { font-size: 16.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.cm-tile em { font-style: normal; font-size: 11.5px; line-height: 1.6; color: var(--ink2); }
.cm-tile-join { margin: 4px 14px 14px; align-self: flex-start; }
.cm-explore2 { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 22px 16px 0; padding: 16px 2px; text-align: left; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.cm-explore2 > span { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.cm-explore2 b { font-size: 15px; font-weight: 700; }
.cm-explore2 i { font-style: normal; font-size: 11px; color: var(--ink3); }
.cm-cover { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; min-height: 200px; padding: 26px 20px 22px; background: linear-gradient(180deg, var(--tt), rgba(243, 239, 232, 0)); text-align: center; }
.cm-cover-mark { font-size: 40px; color: var(--tc); line-height: 1; margin-bottom: 8px; display: inline-flex; }
.cm-cover-mark i { font-style: normal; font-family: var(--f-serif); font-weight: 500; }
.cm-cover .hand-en { font-size: 15px; color: var(--tc); }
.cm-cover h1 { font-size: 30px; font-weight: 600; line-height: 1.2; }
.cm-desc { padding: 6px 28px 0; text-align: center; font-size: 14px; line-height: 1.9; color: var(--ink2); }
.cm-meta2 { display: flex; justify-content: center; gap: 16px; padding: 10px 0 0; font-size: 11.5px; color: var(--ink3); }
.cm-join-row { display: flex; justify-content: center; padding: 16px 0 6px; }
.cm-join { min-width: 150px; }
.cm-topic2 { margin: 22px 28px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.cm-topic2 p { font-size: 15px; line-height: 1.8; color: var(--ink); margin-top: 2px; }
.cm-type2 { display: flex; align-items: center; gap: 14px; width: calc(100% - 56px); margin: 16px 28px 0; text-align: left; }
.cm-type2 > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.cm-type2 b { font-size: 14px; font-weight: 700; }
.cm-type2 .v-eyebrow { font-size: 12px; }
@media (max-width: 359px) {
  .pf-top { gap: 14px; }
  .pf-name { font-size: 23px; }
  .pf-char { flex-basis: 72px; }
  .pf-char img { width: 72px; height: 72px; }
  .gl-cols { gap: 10px; padding: 12px 12px 0; }
  .al-grid { gap: 18px 8px; padding: 0 12px; }
  .cm-tiles { gap: 8px; padding: 4px 12px 0; }
}

/* ============================================================
   Nora Type ページ：色は面と細線だけ。診断結果ではなく「美容人格」の一冊
   ============================================================ */
.tp { padding-bottom: 44px; }
.tp-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 24px 26px; background: linear-gradient(180deg, var(--tt), rgba(243, 239, 232, 0)); overflow: hidden; }
.tp-mark { position: absolute; right: -30px; top: 6px; color: var(--tc); opacity: 0.1; pointer-events: none; }
.tp-eyebrow { font-size: 15px; color: var(--tc); position: relative; }
.tp-char { display: grid; place-items: center; margin: 4px 0 2px; position: relative; }
.tp-name { font-size: 22px; font-weight: 700; line-height: 1.5; margin: 4px 0 4px; position: relative; text-wrap: balance; }
.tp-one { font-size: 14px; color: var(--ink2); line-height: 1.9; max-width: 19em; position: relative; }
.tp-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 16px; position: relative; }
.tp-sec { padding: 26px 20px 4px; }
.tp-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tp-h .hand-en { font-size: 14px; color: var(--tc); }
.tp-h h3 { font-size: 15.5px; font-weight: 700; }
.tp-p { font-size: 13.5px; line-height: 1.9; color: var(--ink2); }
.tp-p b { color: var(--ink); font-weight: 700; }
.tp-list { list-style: none; margin: 0; padding: 0; }
.tp-list li { position: relative; padding: 9px 0 9px 20px; font-size: 13.5px; line-height: 1.8; border-bottom: 1px solid var(--line2); }
.tp-list li:last-child { border-bottom: 0; }
.tp-list li::before { content: ""; position: absolute; left: 3px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--tc); opacity: 0.85; }
.reveal { position: relative; display: block; width: 100%; min-height: 84px; overflow: hidden; text-align: left; border-left: 2px solid var(--tc); background: var(--tt); }
.reveal-cover { position: absolute; inset: 0; display: grid; place-items: center; background: var(--tt); color: var(--tc); font-size: 13px; transition: opacity 0.3s; }
.reveal.open .reveal-cover { opacity: 0; pointer-events: none; }
.reveal-body { display: block; padding: 16px 16px; font-size: 14px; line-height: 1.95; opacity: 0; transition: opacity 0.3s; }
.reveal.open .reveal-body { opacity: 1; }
.axis { margin: 16px 0 6px; }
.axis-lr { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink2); margin-bottom: 8px; }
.axis-track { position: relative; height: 1px; background: var(--ink3); }
.axis-dot { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--tc); }
.compat { display: flex; flex-direction: column; }
.compat-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line2); text-align: left; }
.compat-s { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--tt); color: var(--tc); flex: 0 0 auto; }
.compat-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.compat-row b { font-size: 14px; font-weight: 700; }
.compat-row i { font-style: normal; font-size: 12px; color: var(--ink2); }
.compat-row > .ic { color: var(--ink3); }
.tp-foot { padding: 30px 24px 6px; text-align: center; }


/* ============================================================
   共通：小部品（返信・クイック返信・写真ドット・アイテム）
   ============================================================ */
.only-mob { display: contents; }
.only-desk { display: none; }
.sec-t { font-size: 20px; color: var(--ink); margin-bottom: 8px; font-family: var(--f-serif); font-weight: 600; }
.qr { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 8px; scrollbar-width: none; }
.qr-chip { flex-shrink: 0; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); font-size: 12px; white-space: nowrap; }
.qr-chip:hover { border-color: var(--ink3); color: var(--ink); }
.rf-row { display: flex; gap: 8px; align-items: center; }
.rf-row .input { flex: 1; border-radius: 999px; padding: 0 16px; }
.rf-send { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; }
.reply-form { margin-top: 10px; }
.fp-replies { display: flex; flex-direction: column; gap: 10px; }
.reply { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.6; }
.reply-t b { font-weight: 700; margin-right: 8px; font-size: 12.5px; }
.dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--ink); }
.fp-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fp-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2); }
.fp-item-th { width: 28px; height: 28px; overflow: hidden; flex: 0 0 auto; background: var(--sand); }
.fp-item-th img, .item-th img { width: 100%; height: 100%; object-fit: cover; }
.item-row, .item-add { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line2); text-align: left; }
.item-add { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 12px 14px; color: var(--ink2); font-size: 13px; }
.item-th { width: 44px; height: 44px; flex: 0 0 auto; overflow: hidden; background: var(--sand); }
.item-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.item-t i { font-style: normal; font-size: 11px; color: var(--ink3); } .item-t b { font-size: 14px; font-weight: 500; } .item-t em { font-style: normal; font-size: 11.5px; color: var(--ink2); }
.item-list { max-height: 34vh; overflow-y: auto; margin: 8px 0 12px; }
.manual { padding-top: 6px; } .manual-row { display: grid; gap: 8px; margin-bottom: 10px; }
.locked { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 46px 30px; text-align: center; color: var(--ink2); }
.about p { margin: 10px 0; line-height: 1.9; font-size: 13.5px; }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; }

/* ============================================================
   Camera / Keep / Compose / NewPost
   ============================================================ */
.cam-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cam-stage { position: relative; flex: 1; min-height: 0; margin: 8px 14px 0; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); }
.cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-video.mirror { transform: scaleX(-1); }
.cam-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent calc(33.3% - 0.5px), rgba(255,255,255,.22) 33.3%, transparent calc(33.3% + 0.5px), transparent calc(66.6% - 0.5px), rgba(255,255,255,.22) 66.6%, transparent calc(66.6% + 0.5px)), linear-gradient(0deg, transparent calc(33.3% - 0.5px), rgba(255,255,255,.22) 33.3%, transparent calc(33.3% + 0.5px), transparent calc(66.6% - 0.5px), rgba(255,255,255,.22) 66.6%, transparent calc(66.6% + 0.5px)); }
.cam-corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.85); }
.cam-corner.tl { left: 12px; top: 12px; border-right: 0; border-bottom: 0; } .cam-corner.tr { right: 12px; top: 12px; border-left: 0; border-bottom: 0; }
.cam-corner.bl { left: 12px; bottom: 12px; border-right: 0; border-top: 0; } .cam-corner.br { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #d8d0c6; }
.cam-choose { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; overflow-y: auto; }
.cam-choose h3 { font-size: 16px; font-weight: 700; } .cam-choose p { font-size: 13px; color: var(--ink2); max-width: 22em; line-height: 1.8; }
.cam-choose .ic-big { color: var(--ink3); }
.cam-drop { width: 100%; max-width: 380px; background: rgba(251,249,245,.6); }
.cam-drop b { font-size: 15px; color: var(--ink); } .cam-drop span { font-size: 12px; }
.cam-alt { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cam-ctrl { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-around; padding: 14px 24px calc(20px + var(--safe-b)); min-height: 20px; }
.cam-ctrl:empty { padding: 8px; }
.shutter { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #f2ebe1; display: grid; place-items: center; }
.shutter span { width: 58px; height: 58px; border-radius: 50%; background: #f2ebe1; transition: transform 0.1s; } .shutter:active span { transform: scale(0.9); }
.cam-side { width: 48px; height: 48px; display: grid; place-items: center; color: #f2ebe1; border-radius: 50%; } .ph-sp { visibility: hidden; }
.screen.cam-screen { background: #141110; color: #eee; }
.cam-screen .hdr .ib, .cam-screen .hdr-date { color: #f2ebe1; }
.cam-screen .cam-stage { background: #000; }
.cam-screen .cam-choose h3 { color: #f2ebe1; } .cam-screen .cam-choose p { color: #b9b0a6; } .cam-screen .cam-drop { border-color: #4a4340; color: #b9b0a6; background: transparent; } .cam-screen .cam-drop b { color: #f2ebe1; }
.cam-screen .btn-line { border-color: #6a625c; color: #f2ebe1; } .cam-screen .btn-ghost { color: #b9b0a6; }
.dz-pc { display: none; font-style: normal; font-size: 10px; color: var(--ink3); }
.kp { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; }
.kp-photo { padding: 0 var(--sp-4); } .kp-frame .ph { width: 100%; box-shadow: var(--sh-2); }
.kp-thumbs { display: flex; gap: 8px; margin-top: 10px; } .kp-th { width: 54px; opacity: .55; } .kp-th.on { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.flt { display: flex; gap: 10px; overflow-x: auto; padding: 12px 4px 6px; scrollbar-width: none; }
.flt-b { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 58px; font-size: 10.5px; color: var(--ink3); }
.flt-b .ph { width: 58px; height: 58px; } .flt-b.on { color: var(--ink); font-weight: 500; } .flt-b.on .ph { outline: 2px solid var(--ink); outline-offset: 2px; }
.pe-prev { max-width: 300px; margin: 0 auto 6px; }
.cf { padding-top: 6px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pgrid-i { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.pgrid-i .ph { position: absolute; inset: 0; height: 100% !important; border-radius: 0; }
.pgrid-n { position: absolute; left: 6px; top: 6px; z-index: 3; width: 20px; height: 20px; border-radius: 50%; background: rgba(30,24,22,.6); color: #fff; font-size: 11px; display: grid; place-items: center; }
.pgrid-i.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--line); background: transparent; color: var(--ink2); font-size: 11.5px; }

/* ============================================================
   Footprint詳細 / Public投稿詳細
   ============================================================ */
.fpd-grid, .pd-grid { padding: 0 0 16px; }
.fpd-photos, .pd-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fpd-photos::-webkit-scrollbar, .pd-photos::-webkit-scrollbar { display: none; }
.fpd-slide, .pd-slide { flex: 0 0 100%; scroll-snap-align: center; padding: 0 var(--sp-4); }
.fpd-slide .ph { aspect-ratio: 4 / 5; border-radius: 0; box-shadow: var(--sh-2); width: 100%; }
.pd-slide .ph { border-radius: 0; box-shadow: var(--sh-2); width: 100%; }
.fpd-note { margin: 8px 16px; border-left: 2px solid var(--tc, var(--line)); padding: 8px 0 8px 16px; font-size: 18px; line-height: 1.9; }
.fpd-side, .pd-side { padding: var(--sp-3) 0 0; }
.fpd-who, .pd-who { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px var(--sp-4) 12px; }
.fpd-text, .pd-text { padding: 4px var(--sp-4) 0; font-size: 15px; line-height: 1.9; }
.fpd-side .fp-meta, .pd-side .fp-meta { padding: 10px var(--sp-4) 0; }
.fpd-side .banner { margin-top: 12px; }
.fpd-actions, .pd-actions { display: flex; align-items: center; gap: 8px; padding: 6px 10px 0; }
.pd-actions .heart.big, .pd-actions .icon-act, .fpd-actions .heart.big { width: 40px; height: 40px; }
.pd-mine, .pd-dm { padding: 12px var(--sp-4) 0; }
.fpd-replies, .pd-cmts, .pd-more { padding: 22px var(--sp-4) 0; }
.fpd-mine { margin-top: 20px; border-top: 1px solid var(--line2); }
.cmt { display: flex; gap: 10px; margin-bottom: 12px; } .cmt div { display: flex; flex-direction: column; line-height: 1.5; font-size: 13px; } .cmt b { font-size: 12px; font-weight: 700; } .cmt i { font-style: normal; font-size: 10.5px; color: var(--ink3); }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .more-th { display: block; aspect-ratio: 1; overflow: hidden; background: var(--sand); } .more-th .ph { height: 100%; border-radius: 0; } .more-txt { display: block; padding: 8px; font-size: 11px; line-height: 1.5; }
.screen.pub .dots i.on { background: var(--ink); }

/* ============================================================
   Day Viewer（友だちの今日を順に見る）
   ============================================================ */
.vw { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vw-top { flex: 0 0 auto; padding: 12px var(--sp-4) 2px; }
.vw-segs { display: flex; gap: 4px; margin-bottom: 8px; } .vw-segs i { flex: 1; height: 2px; background: var(--line); } .vw-segs i.on { background: var(--ink); }
.vw-who { display: flex; align-items: center; justify-content: space-between; }
.vw-who .fp-who { display: flex; align-items: center; gap: 10px; text-align: left; } .vw-who .fp-who span { display: flex; flex-direction: column; line-height: 1.35; } .vw-who .fp-who b { font-size: 14px; font-weight: 700; } .vw-who .fp-who i { font-style: normal; font-size: 11px; color: var(--ink3); }
.vw-body { display: flex; flex-direction: column; }
.vw-meta { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 6px 0 10px; }
.vw-meta b { font-family: var(--f-en); font-weight: 400; font-size: 24px; } .vw-meta i { font-style: normal; font-size: 12px; color: var(--ink2); }
.vw-stage { position: relative; padding: 4px var(--sp-4) 6px; }
.vw-photo { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 54vh; margin: 0 auto; box-shadow: var(--sh-2); }
.vw-photo .ph { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.vw-note { padding: 40px 12px; font-size: 20px; line-height: 2; text-align: center; }
.vw-cg { display: grid; place-items: center; } .vw-cg canvas { max-width: 100%; max-height: 54vh; width: auto; box-shadow: var(--sh-2); }
.vw-nav { position: absolute; top: 0; bottom: 0; width: 34%; z-index: 2; } .vw-nav.l { left: 0; } .vw-nav.r { right: 0; }
.vw-arrow { display: none; position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: rgba(251,249,245,.92); box-shadow: var(--sh-1); place-items: center; }
.vw-arrow.l { left: 4px; } .vw-arrow.r { right: 4px; }
.vw-foot { padding: 6px var(--sp-4) 10px; display: flex; flex-direction: column; gap: 8px; }
.vw-cap { font-size: 15px; line-height: 1.8; text-align: center; }
.vw-react { display: flex; align-items: center; gap: 8px; }
.vw-react .fp-replies { flex: 1; }
.vw-prevday { align-self: center; }
.rf-dm { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }

/* ============================================================
   DM（会話）
   ============================================================ */
.dm-body { padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; }
.dm-row { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-end; }
.dm-row.me { justify-content: flex-end; }
.dm-col { display: flex; flex-direction: column; gap: 4px; max-width: 78%; }
.dm-row.me .dm-col { align-items: flex-end; }
.dm-bub { padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.7; background: #fff; border: 1px solid var(--line2); word-break: break-word; }
.dm-row.me .dm-bub { background: var(--rose); color: #fff; border-color: var(--rose); }
.dm-bub.typing { display: flex; gap: 4px; padding: 14px 16px; } .dm-bub.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); animation: typing 1s infinite; } .dm-bub.typing i:nth-child(2) { animation-delay: .15s; } .dm-bub.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-3px); opacity: .5; } }
.dm-t { font-style: normal; font-size: 10px; color: var(--ink3); }
.dm-foot { flex: 0 0 auto; padding: var(--sp-2) var(--sp-4) calc(var(--sp-3) + var(--safe-b)); border-top: 1px solid var(--line2); background: var(--bg); }
.dm-attach { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.dm-ref { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); background: rgba(251,249,245,.7); text-align: left; max-width: 260px; }
.dm-ref-th { width: 44px; height: 44px; flex: 0 0 auto; overflow: hidden; } .dm-ref-th .ph { height: 100%; border-radius: 0; }
.dm-ref > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; } .dm-ref i { font-style: normal; font-size: 10px; color: var(--ink3); } .dm-ref b { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-who { display: flex; align-items: center; gap: 10px; text-align: left; } .dm-who > span { display: flex; flex-direction: column; line-height: 1.3; } .dm-who b { font-size: 14.5px; font-weight: 700; } .dm-who i { font-style: normal; font-size: 10.5px; color: var(--ink3); }

/* ============================================================
   Monthly / Day Collage 画面（記録の場面：紙・ポラロイド・テープを使ってよい）
   ============================================================ */
.mo { padding-bottom: 40px; }
.mo-nav { display: flex; align-items: center; gap: 4px; } .mo-date { font-size: 15px; font-weight: 500; min-width: 4.5em; text-align: center; } .mo-date b { font-size: 24px; margin-left: 2px; }
.mo-grid { padding: 0 var(--sp-4); }
.mo-cover { position: relative; padding: 8px 0 22px; text-align: center; }
.mo-mon { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 8px 0 14px; } .mo-mon .script { font-size: 44px; line-height: 1; } .mo-mon .hand-en { font-size: 15px; color: var(--ink3); }
.cover-pol { display: block; width: min(300px, 78%); margin: 0 auto; padding: 10px 10px 36px; transform: rotate(-1.2deg); }
.cover-pol .ph { aspect-ratio: 4 / 4.6; border-radius: 0; }
.cover-pol.blank { min-height: 300px; display: grid; place-items: center; } .cover-blank { text-align: center; color: var(--ink2); line-height: 2; font-size: 14px; }
.mo-tag { padding: 20px 20px 0; font-size: 16px; line-height: 1.9; color: var(--ink); }
.mo-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 8px 0 6px; } .mo-title h1 { font-size: 30px; }
.mo-draft { padding: 0 0 8px; font-size: 13.5px; color: var(--ink2); line-height: 1.9; }
.mo-sec { padding: 20px 0 4px; } .mo-sec h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mo-two { display: grid; gap: 0 24px; }
.theme-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; } .theme { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; } .th-ph { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--sand); display: block; } .th-ph .ph { height: 100%; border-radius: 0; } .theme b { font-size: 11px; font-weight: 500; } .theme i { font-style: normal; font-size: 10px; color: var(--ink3); }
.items-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .mi { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; } .mi-th { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--sand); display: block; } .mi-th img { width: 100%; height: 100%; object-fit: cover; } .mi i { font-style: normal; font-size: 10px; color: var(--ink3); }
.boom { list-style: none; margin: 0; padding: 0; } .boom li { padding: 7px 0 7px 18px; position: relative; font-size: 14px; line-height: 1.7; border-bottom: 1px solid var(--line2); } .boom li::before { content: ""; position: absolute; left: 2px; top: 1.1em; width: 6px; height: 6px; border-radius: 50%; background: var(--rose2); }
.scraps { display: grid; gap: 10px; padding: 20px 0 4px; } .scrap { background: #fbf7ee; padding: 12px 16px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 2px; } .scrap:nth-child(odd) { transform: rotate(-0.7deg); } .scrap:nth-child(even) { transform: rotate(0.6deg); } .scrap .hand-en { font-size: 14px; color: var(--rose2); } .scrap .hand { font-size: 14px; line-height: 1.7; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .strip-p { display: block; aspect-ratio: 1; overflow: hidden; background: var(--sand); } .strip-p .ph { height: 100%; border-radius: 0; }
.shelf { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.shelf-lead { padding: 14px var(--sp-4) 2px; font-size: 14px; color: var(--ink2); }
.book { flex: 0 0 108px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.book-cover { position: relative; display: block; width: 108px; aspect-ratio: 3 / 4; overflow: hidden; box-shadow: var(--sh-1); background: var(--sand); border-radius: 2px 6px 6px 2px; }
.book-cover .ph { height: 100%; border-radius: 0; aspect-ratio: auto; }
.book-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(90deg, rgba(0,0,0,.22), transparent); }
.book-blank { display: grid; place-items: center; height: 100%; color: var(--ink3); font-size: 12px; line-height: 1.6; }
.book-mon { font-size: 18px; margin-top: 6px; } .book b { font-size: 13px; font-weight: 700; } .book i { font-style: normal; font-size: 10.5px; color: var(--ink3); }
.me-body .shelf { flex-wrap: wrap; overflow: visible; padding: 16px var(--sp-4); gap: 20px 14px; }
.cg-grid { padding: 4px 0 8px; }
.cg-stage { position: relative; display: grid; place-items: center; padding: 6px var(--sp-5) 12px; }
.cg-canvas { background: var(--sand); box-shadow: var(--sh-2); display: block; border-radius: 2px; }
.cg-canvas.story { height: min(52vh, 500px); width: auto; aspect-ratio: 9 / 16; }
.cg-canvas.feed { height: min(44vh, 420px); width: auto; aspect-ratio: 4 / 5; }
.cg-load { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(243,239,232,.6); }
.cg-load[hidden] { display: none; }
.cg-ctl .field { padding-top: 4px; }
.cg-cap { margin-top: 12px; } .cg-cap textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; background: #fff; resize: none; margin-bottom: 8px; }

/* ============================================================
   設定・プロフィール編集・オンボーディング
   ============================================================ */
.set-me { display: flex; align-items: center; gap: 14px; width: 100%; padding: var(--sp-5) var(--sp-4); text-align: left; }
.set-me .row-t b { font-size: 18px; font-weight: 700; }
.pe { padding-top: var(--sp-3); }
.pe-photo { display: flex; align-items: center; gap: 18px; padding: var(--sp-2) var(--sp-4) var(--sp-4); }
.pe-photo .tav { margin: 4px; } .pe-photo-b { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ob { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ob-dots { display: flex; gap: 8px; } .ob-dots i { width: 22px; height: 3px; background: var(--line); } .ob-dots i.on { background: var(--ink); } .ob-dots i.done { background: var(--ink3); }
.ob-photo { display: flex; align-items: center; gap: 16px; padding: 4px 0 12px; } .ob-photo-ph { width: 88px; height: 88px; border-radius: 50%; border: 1.5px dashed var(--line); display: grid; place-items: center; color: var(--ink3); }

/* ============================================================
   スプリットペイン：Messages（3ペイン）／ Community（一覧＋詳細）
   ============================================================ */
.dm3 { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.lay-desktop .dm3.has-thread:not(.cm3) { grid-template-columns: 340px minmax(0, 1fr) 300px; }
.dm3-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line2); }
.dm3-list-h { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.dm3-list-h h1 { font-size: 28px; font-weight: 600; }
.dm3-list-b { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.dm3-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line2); }
.dm3-thread .hdr { border-bottom: 1px solid var(--line2); max-width: none; }
.dm3-thread .dm-body { padding: var(--sp-4) var(--sp-6); }
.dm3-thread .dm-foot { padding: 12px var(--sp-6) 16px; }
.dm3-empty { flex: 1; display: grid; place-items: center; }
.dm3-info { display: none; overflow-y: auto; padding: 28px 22px; }
.lay-desktop .dm3-info { display: block; }
.dm3-prof { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding-bottom: 14px; }
.dm3-prof .tav { margin: 6px 0 10px; } .dm3-prof h2 { font-size: 20px; font-weight: 700; } .dm3-prof .hand { font-size: 12.5px; color: var(--ink2); margin-top: 6px; } .dm3-bio { font-size: 12.5px; color: var(--ink2); line-height: 1.8; margin-top: 8px; }
.dm3-btns { display: flex; justify-content: center; gap: 8px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line2); }
.dm3-shared { padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.ms-row.on { background: rgba(40, 30, 26, 0.05); }
.cm3-detail .body { padding-top: 8px; }
.cm-row2.on { background: rgba(40, 30, 26, 0.04); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }

/* ============================================================
   レイアウト別：tablet（768–1099）／ desktop（≥1100）
   ============================================================ */
/* 共通：mobile以外は写真・本文の横幅を整える */
#app:not(.lay-mobile) .body { padding-bottom: 48px; }
#app:not(.lay-mobile) .hdr { padding: 0 var(--sp-4); }
#app:not(.lay-mobile) .foot { padding-bottom: var(--sp-4); }
#app:not(.lay-mobile) .toast { bottom: 32px; }
#app:not(.lay-mobile) .v-hdr-today .brand { display: none; }
#app:not(.lay-mobile) .v-hdr-today { grid-template-columns: 1fr auto 1fr; }
#app:not(.lay-mobile) .hdr-serif, #app:not(.lay-mobile) .v-ttl b { font-size: 26px; }
#app:not(.lay-mobile) .dm-row .dm-col { max-width: 64%; }
.lay-tablet .dm3, .lay-desktop .dm3 { height: 100%; }
.lay-tablet .dm3 { grid-template-columns: 300px minmax(0, 1fr); }

/* --- tablet / desktop：モーダル内の二列（Keep・Collage） --- */
#app:not(.lay-mobile) .screen.is-modal .kp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 28px; padding: 16px 28px; align-items: start; }
#app:not(.lay-mobile) .screen.is-modal .kp-photo { padding: 0; }
#app:not(.lay-mobile) .screen.is-modal .cg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 8px 16px; align-items: start; padding: 8px 24px; }
#app:not(.lay-mobile) .screen.is-modal[data-w="narrow"] .cf { padding: 8px 16px; }
#app:not(.lay-mobile) .dz-pc { display: block; }
#app:not(.lay-mobile) .vw-arrow { display: grid; }
#app:not(.lay-mobile) .vw-nav { display: none; }
#app:not(.lay-mobile) .vw-photo { max-height: 58vh; }
#app:not(.lay-mobile) .vw-cg canvas { max-height: 56vh; }

/* --- tablet / desktop：詳細ページは「写真｜情報」の2カラム --- */
#app:not(.lay-mobile) .fpd-grid, #app:not(.lay-mobile) .pd-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 36px; align-items: start; padding: 12px var(--sp-4) 24px; }
#app:not(.lay-mobile) .fpd-media, #app:not(.lay-mobile) .pd-media { position: sticky; top: 8px; }
#app:not(.lay-mobile) .fpd-slide, #app:not(.lay-mobile) .pd-slide { padding: 0; }
#app:not(.lay-mobile) .fpd-who, #app:not(.lay-mobile) .pd-who, #app:not(.lay-mobile) .fpd-text, #app:not(.lay-mobile) .pd-text, #app:not(.lay-mobile) .fpd-replies, #app:not(.lay-mobile) .pd-cmts, #app:not(.lay-mobile) .pd-more, #app:not(.lay-mobile) .pd-mine, #app:not(.lay-mobile) .pd-dm { padding-left: 0; padding-right: 0; }
#app:not(.lay-mobile) .fpd-side .fp-meta, #app:not(.lay-mobile) .pd-side .fp-meta { padding-left: 0; padding-right: 0; }
#app:not(.lay-mobile) .fpd-actions, #app:not(.lay-mobile) .pd-actions { padding-left: 0; }
#app:not(.lay-mobile) .fpd-side .banner { margin-left: 0; margin-right: 0; }
#app:not(.lay-mobile) .fpd-mine .row { padding-left: 0; padding-right: 0; }

/* --- tablet / desktop：Monthly は「表紙｜中身」 --- */
#app:not(.lay-mobile) .mo-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 0 48px; padding: 8px 24px; align-items: start; }
#app:not(.lay-mobile) .mo-cover { position: sticky; top: 8px; padding-top: 16px; }
#app:not(.lay-mobile) .mo-two { grid-template-columns: 1fr 1fr; }
#app:not(.lay-mobile) .strip { grid-template-columns: repeat(4, 1fr); }
#app:not(.lay-mobile) .me-body .shelf { padding-left: 0; padding-right: 0; }

/* --- tablet / desktop：Discover・My NoraKo・Community の余白 --- */
#app:not(.lay-mobile) .v-tabs, #app:not(.lay-mobile) .v-sec-h, #app:not(.lay-mobile) .search-wrap, #app:not(.lay-mobile) .dx-h { padding-left: 24px; padding-right: 24px; }
#app:not(.lay-mobile) .dx-cats { padding-left: 24px; padding-right: 24px; }
#app:not(.lay-mobile) .gl-cols { padding-left: 24px; padding-right: 24px; gap: 20px; }
#app:not(.lay-mobile) .dxf-list { padding-left: 24px; padding-right: 24px; max-width: 640px; margin-inline: auto; }
#app:not(.lay-mobile) .v-friends-h, #app:not(.lay-mobile) .fr-list { padding-left: 24px; padding-right: 24px; }
#app:not(.lay-mobile) .tdy-rail .v-comp { margin-left: 0; margin-right: 0; }
#app:not(.lay-mobile) .cm-list2, #app:not(.lay-mobile) .cm-tiles { padding-left: 24px; padding-right: 24px; }
#app:not(.lay-mobile) .cm-tiles { grid-template-columns: repeat(3, 1fr); }
#app:not(.lay-mobile) .pf { padding-left: 24px; padding-right: 24px; }
#app:not(.lay-mobile) .pf-band { margin-left: -24px; margin-right: -24px; }
#app:not(.lay-mobile) .pf-type { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
#app:not(.lay-mobile) .al-grid { padding-left: 24px; padding-right: 24px; }
#app:not(.lay-mobile) .al-mon { padding-left: 24px; padding-right: 24px; }
#app:not(.lay-mobile) .pf-tabs { padding-left: 24px; padding-right: 24px; }
#app:not(.lay-mobile) .tp-hero, #app:not(.lay-mobile) .tp-sec { padding-left: 32px; padding-right: 32px; }

/* --- desktop（≥1100）：Today は「みんなの今日｜わたしの今日（固定）」 --- */
.lay-desktop .tdy:not(.past) { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 40px; align-items: start; padding: 0 24px; }
.lay-desktop .tdy-main { order: 1; min-width: 0; }
.lay-desktop .tdy-rail { order: 2; position: sticky; top: 8px; }
.lay-desktop .tdy-main .v-friends { margin-top: 0; border-top: 0; padding-top: 0; }
.lay-desktop .v-friends-h { padding-left: 0; padding-right: 0; }
.lay-desktop .tdy-main .fr-list { padding-left: 0; padding-right: 0; }
.lay-desktop .v-stick { display: none; }
.lay-desktop .only-mob { display: none; }
.lay-desktop .only-desk { display: block; }
.lay-desktop .v-me { margin-left: 0; margin-right: 0; width: 100%; }
.lay-desktop .v-tn { margin-left: 0; margin-right: 0; width: 100%; }
.lay-desktop .v-comp-row { --comp-h: 220px; }
.lay-tablet .tdy-rail .v-more, .lay-mobile .rail-more { display: none; }
.lay-tablet .tdy { padding: 0 8px; }
/* Discover：おすすめは「投稿｜おすすめの人」 */
.lay-desktop .dx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0 32px; align-items: start; padding-right: 24px; }
.lay-desktop .dx-rail { order: 2; position: sticky; top: 8px; }
.lay-desktop .dx-main { order: 1; min-width: 0; }
.lay-desktop .dx-rail .v-sec-h { padding-left: 0; padding-right: 0; }
.lay-desktop .dx-plist { padding: 0; }
.dx-grid { display: flex; flex-direction: column; }
.dx-rail { order: -1; }
/* My NoraKo / 他人プロフィール：左に人格、右に蓄積 */
.lay-desktop .me-page > .pg { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 0 24px; align-items: start; }
.lay-desktop .me-page .pf { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: 0; }
.lay-desktop .me-page .pf-cats, .lay-desktop .me-page .pf-tabs, .lay-desktop .me-page .me-body { grid-column: 2; }
.lay-desktop .me-page .al-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lay-desktop .me-page .al.c6 { grid-column: span 2; } .lay-desktop .me-page .al.c3, .lay-desktop .me-page .al.c2 { grid-column: span 1; }
.lay-desktop .me-page .pf-type { margin-left: -24px; margin-right: -24px; }
.lay-desktop .me-page .gl-cols { padding-left: 0; padding-right: 0; }
/* tablet：Todayは1カラム（幅720で中央） */
.lay-tablet .screen[data-w="wide"] { --pg: 760px; }
.lay-tablet .screen[data-w="split"] { --pg: none; }

@media (max-width: 359px) { .cam-choose { padding: 16px; } .mo-mon .script { font-size: 36px; } .theme-row { gap: 6px; } }
@media (max-height: 700px) { .shutter { width: 64px; height: 64px; } .shutter span { width: 50px; height: 50px; } }
@media (prefers-reduced-motion: reduce) { .ph:not(.ld):not(.er)::before, .skel, .spinner { animation-duration: 3s; } }

/* Friends' Today：均一な行フィード */
.fr-list { padding: 0 var(--sp-4); }
.fr { display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line2); align-items: start; }
.fr:first-child { border-top: 0; padding-top: 4px; }
.fr-ph { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); box-shadow: var(--sh-1); }
.fr-ph .ph { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.fr-ph-text { display: flex; align-items: center; padding: 14px; font-size: 13.5px; line-height: 1.8; text-align: left; background: var(--tt); border-left: 3px solid var(--tc); box-shadow: none; }
.fr-main { display: flex; flex-direction: column; min-width: 0; align-self: stretch; }
.fr-who { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; padding: 2px 0; }
.fx-nm { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.fx-nm b { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.fx-sym { display: inline-grid; place-items: center; color: var(--tc); }
.fx-nm em { font-style: normal; font-size: 10.5px; color: var(--tc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-when { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 6px 2px; }
.fr-slot { font-family: var(--f-en); font-size: 15px; color: var(--ink); }
.fr-when i { font-style: normal; font-size: 12px; color: var(--ink2); letter-spacing: 0.03em; }
.fr-cap { font-size: 14px; line-height: 1.75; color: var(--ink); margin: 0 0 4px 2px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fr-last { font-size: 11.5px; color: var(--ink3); margin: 2px 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-last b { font-weight: 500; color: var(--ink2); }
.fr-act { display: flex; align-items: center; margin: auto 0 0 -8px; padding-top: 6px; flex-wrap: wrap; }
.fr-day { margin-left: auto; font-size: 11px; color: var(--ink2); display: inline-flex; align-items: center; gap: 1px; padding: 6px 0 6px 8px; white-space: nowrap; }
.fx-b { display: inline-grid; place-items: center; width: 38px; height: 36px; color: var(--ink); }
.fx-mine { margin: 0 0 0 10px; font-size: 10.5px; color: var(--ink3); display: inline-flex; align-items: center; gap: 3px; }
.fr.mine { background: linear-gradient(90deg, rgba(232, 226, 215, 0.35), transparent 70%); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .fr { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding: 22px 0; } .fr-cap { font-size: 15px; } }
@media (max-width: 359px) { .fr { gap: 10px; } .fr-day { display: none; } .fr-who .tav { width: 30px !important; height: 30px !important; } }
@media (min-width: 1600px) { .lay-desktop .screen[data-w="wide"] { --pg: 1360px; } }
#app:not(.lay-mobile) .screen.is-modal .cg-canvas.story { height: min(66vh, 640px); }
#app:not(.lay-mobile) .screen.is-modal .cg-canvas.feed { height: min(54vh, 540px); }

/* ============================================================
   A「集中」画面（認証・初期設定・Nora Type診断／結果）— PCでも中央 480–560px（Product UI Rules 2）
   ============================================================ */
.au-body { display: block; }
.au { width: 100%; max-width: 520px; margin: 0 auto; padding: 4px 24px calc(48px + var(--safe-b)); min-height: 100%; display: flex; flex-direction: column; }
.au-top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.au-top .wordmark { font-size: 24px; } .au-top .wordmark-img { height: 22px; }
.au-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 12px 0 20px; }
.au-h { font-family: var(--f-serif); font-size: 30px; font-weight: 600; line-height: 1.35; margin: 0 0 8px; }
.au-sub { font-size: 14px; color: var(--ink2); line-height: 1.9; margin: 0 0 24px; max-width: 38em; }
.au .field { padding-left: 0; padding-right: 0; }
.au-inp { position: relative; } .au-inp .input { width: 100%; }
.au-eye { position: absolute; right: 2px; top: 0; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink3); } .au-eye.on { color: var(--ink); }
.au-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink2); line-height: 1.7; margin: 6px 0 12px; cursor: pointer; }
.au-agree input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--rose); flex: 0 0 auto; }
.au-agree a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.au .banner { margin-left: 0; margin-right: 0; }
.au-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.au-alt { text-align: center; font-size: 13px; color: var(--ink2); margin: 16px 0 0; }
.link { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; padding: 4px 2px; }
.au-hero { text-align: center; padding: 8px 0 18px; }
.au-wm-lg { font-size: 56px; } .wordmark-img.au-wm-lg { height: 46px; }
.au-catch { font-size: 19px; line-height: 2; margin: 22px 0 0; }
.au-lead { font-size: 14px; color: var(--ink2); line-height: 2; margin: 0; }
.au-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.au-points li { display: flex; gap: 14px; align-items: flex-start; font-size: 13.5px; line-height: 1.8; color: var(--ink2); }
.au-points li > .ic { flex: 0 0 auto; margin-top: 3px; color: var(--rose); } .au-points b { color: var(--ink); font-weight: 500; }
.au-note { text-align: center; font-size: 12px; color: var(--ink3); margin: 22px 0 0; }
.au-done { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; font-size: 13.5px; line-height: 1.9; color: var(--ink2); } .au-done > .ic { color: var(--ok); flex: 0 0 auto; margin-top: 2px; } .au-done b { color: var(--ink); }
.au-doc { max-width: 640px; } .au-doc-t { font-size: 14px; font-weight: 500; }
.au-prose h2 { font-size: 15px; font-weight: 500; margin: 26px 0 6px; } .au-prose p { font-size: 13.5px; line-height: 2; color: var(--ink2); max-width: 40em; margin: 0; }
.au-load { padding: 96px 0; }
.ob-type-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.8; color: var(--ink2); border-left: 2px solid var(--line); padding: 4px 0 4px 14px; } .ob-type-note > .ic { flex: 0 0 auto; margin-top: 3px; }
.au .ob-photo { padding: 0 0 12px; }
.au .ob-dots { justify-content: center; }
.net-banner { position: fixed; left: 50%; top: calc(var(--safe-t) + 10px); transform: translateX(-50%); z-index: 300; background: var(--charcoal); color: #fff; font-size: 12.5px; line-height: 1.5; padding: 8px 16px; border-radius: 999px; max-width: calc(100vw - 32px); text-align: center; }
.net-banner[hidden] { display: none; }
/* Nora Type 診断 */
.tc-bar { height: 3px; background: var(--line2); margin: 4px 0 30px; } .tc-bar i { display: block; height: 100%; background: var(--rose); transition: width .3s; }
.tc-eyebrow { font-size: 11px; letter-spacing: 0.16em; color: var(--ink3); margin: 0 0 10px; }
.tc-q { font-family: var(--f-serif); font-size: 25px; font-weight: 600; line-height: 1.55; margin: 0 0 26px; }
.tc-opts { display: flex; flex-direction: column; gap: 10px; }
.tc-opt { display: flex; gap: 14px; align-items: center; text-align: left; padding: 15px 18px; min-height: 58px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 15px; line-height: 1.6; background: transparent; width: 100%; transition: border-color .15s, background .15s; }
.tc-opt:hover { border-color: var(--ink3); } .tc-opt.sel { border-color: var(--rose); background: var(--rose4); }
.tc-k { flex: 0 0 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; display: grid; place-items: center; color: var(--ink3); }
.tc-opt.sel .tc-k { background: var(--rose); border-color: var(--rose); color: #fff; }
.tr-hero { text-align: center; padding: 6px 0 2px; } .tr-name { font-size: 21px; font-weight: 600; line-height: 1.55; margin: 8px 0 4px; } .tr-sub { font-size: 15px; color: var(--tc); margin: 0; }
.tr-one { text-align: center; font-size: 14px; color: var(--ink2); line-height: 1.9; margin: 14px 0 0; }
.tr-near { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink2); line-height: 1.7; margin: 14px 0 0; padding: 10px 12px; background: var(--tt); border-radius: var(--r-sm); } .tr-near > .ic { flex: 0 0 auto; margin-top: 2px; }
.tr-h { font-size: 12px; letter-spacing: 0.14em; color: var(--ink3); font-weight: 500; margin: 30px 0 14px; }
.tr-ax { margin-bottom: 18px; } .tr-ax-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ink3); } .tr-ax-h b { color: var(--ink); font-weight: 500; font-size: 13px; }
.tr-ax-bar { position: relative; height: 2px; background: var(--line); margin-top: 13px; } .tr-ax-bar i { position: absolute; top: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--tc); }
.tr-prov { font-size: 11.5px; color: var(--ink3); line-height: 1.7; margin: 18px 0 0; text-align: center; }
@media (min-width: 768px) { .au { padding: 8px 32px 64px; } .au-h { font-size: 34px; } .tc-q { font-size: 28px; } }
@media (max-width: 359px) { .au { padding-left: 16px; padding-right: 16px; } .au-h { font-size: 26px; } .au-wm-lg { font-size: 46px; } }
/* Community：参加している人 */
.cm-members { margin: 20px 0 0; } .cm-pp-list { display: flex; flex-wrap: wrap; gap: 14px 12px; margin-top: 10px; }
.cm-pp { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; font-size: 11px; color: var(--ink2); text-align: center; } .cm-pp span { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-act { align-items: center; } .row-act .row-main { flex: 1; min-width: 0; } .row-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.tr-hero .char { display: block; margin: 0 auto; }
@media (max-width: 420px) { .row-act { flex-wrap: wrap; } .row-btns { width: 100%; padding: 0 0 6px 54px; } }

/* ============================================================
   Desktop：Today を「みんなの今日（流れ）｜わたしの今日（Today Panel）」に。空白は作らず、中央のフィードを自然なSNS密度に
   ============================================================ */
.lay-desktop .tdy:not(.past) { grid-template-columns: minmax(0, 640px) 360px; justify-content: center; gap: 0 56px; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.lay-desktop .fr { grid-template-columns: 290px minmax(0, 1fr); gap: 26px; padding: 26px 0; }
.lay-desktop .fr-cap { font-size: 16px; line-height: 1.85; -webkit-line-clamp: 6; }
.lay-desktop .fr-who .tav { width: 40px !important; height: 40px !important; }
.dtp { padding: 0; }
.dtp-h { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 0 12px; border-bottom: 1px solid var(--ink); }
.dtp-h .hand-en { font-size: 26px; color: var(--ink); } .dtp-h small { font-size: 11.5px; color: var(--ink3); }
.dtp-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line2); position: relative; }
.dtp-row.now::before { content: ""; position: absolute; left: -14px; top: 18px; bottom: 18px; width: 2px; background: var(--rose); }
.dtp-l { display: grid; grid-template-columns: 18px 1fr; column-gap: 8px; align-items: center; color: var(--ink2); }
.dtp-l b { font-family: var(--f-en); font-weight: 400; font-size: 17px; color: var(--ink); line-height: 1.1; grid-column: 2; } .dtp-l > .ic { grid-row: 1 / span 2; align-self: start; margin-top: 3px; }
.dtp-l i { font-style: normal; font-size: 10.5px; color: var(--ink3); grid-column: 2; letter-spacing: 0.02em; white-space: nowrap; }
.dtp-m { display: flex; gap: 12px; align-items: center; min-width: 0; }
.dtp-th { position: relative; flex: 0 0 auto; width: 54px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); box-shadow: var(--sh-1); } .dtp-th .ph { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.dtp-th em { position: absolute; right: 2px; bottom: 2px; font-style: normal; font-size: 10px; background: rgba(30, 24, 22, 0.7); color: #fff; padding: 0 5px; border-radius: 8px; }
.dtp-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; }
.dtp-time { font-size: 11.5px; color: var(--ink3); display: inline-flex; align-items: center; gap: 5px; }
.dtp-cap { font-size: 13.5px; line-height: 1.6; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dtp-ph { font-size: 13px; line-height: 1.7; color: var(--ink3); }
.dtp-a { display: flex; align-items: center; gap: 2px; }
.dtp-row.upcoming .dtp-l, .dtp-row.upcoming .dtp-ph { opacity: 0.7; }
.dtp-add { color: var(--ink3); font-size: 12px; padding: 0 8px; }
.lay-desktop .tdy-rail > .dtp { margin-bottom: 8px; }

/* Discover：Nora Typeから探す（美容人格が入口） */
.dx-tsec { padding: 16px var(--sp-4) 4px; }
.dx-th { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.dx-th h2 { font-size: 20px; font-weight: 600; margin: 0; } .dx-th p { font-size: 12.5px; color: var(--ink3); margin: 3px 0 0; }
.dx-tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.dx-tc { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 8px; border: 1px solid var(--line); border-radius: var(--r-md); text-align: left; background: transparent; min-width: 0; transition: border-color .15s, background .15s; }
.dx-tc:hover { border-color: var(--tc); }
.dx-tc.on { background: var(--tt); border-color: var(--tc); box-shadow: inset 0 0 0 1px var(--tc); }
.dx-tc-ch { flex: 0 0 52px; height: 52px; display: grid; place-items: center; } .dx-tc-ch .char { width: 52px; height: 52px; }
.dx-tc-t { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.dx-tc-t b { font-size: 14px; font-weight: 500; color: var(--tc); }
.dx-tc-t em { font-style: normal; font-size: 11.5px; color: var(--ink2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dx-tc-t i { font-style: normal; font-size: 11px; color: var(--ink3); }
.dx-lead { font-size: 15px; color: var(--ink2); margin: 10px var(--sp-4) 0; }
@media (max-width: 767px) { .dx-tcards { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; } .dx-tc { flex: 0 0 210px; scroll-snap-align: start; } .dx-tsec { padding-left: var(--sp-4); } }

/* Messages：選択中の会話・未読 */
.dm3-list .ms-row { padding: 12px 20px; } .dm3-list .ms-row::after { left: 86px; right: 20px; }
.ms-row.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--tc, var(--rose)); border-radius: 0 2px 2px 0; }
.ms-row.unread .ms-name b { font-weight: 700; }

/* My NoraKo（PC）：今月の1冊 ＋ いまの傾向 */
.lay-desktop .me-page .me-month { grid-column: 2; padding: 8px 24px 0; }
.me-month-b { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 16px; text-align: left; border: 1px solid var(--line); border-radius: var(--r-md); background: linear-gradient(90deg, var(--rose4), transparent 80%); }
.me-month-b:hover { border-color: var(--ink3); }
.me-month-th { flex: 0 0 auto; width: 64px; aspect-ratio: 1; overflow: hidden; background: var(--sand); box-shadow: var(--sh-1); } .me-month-th .ph { height: 100%; border-radius: 0; }
.me-month-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.me-month-t .script { font-family: var(--f-en); font-size: 18px; font-style: normal; color: var(--rose); }
.me-month-t b { font-size: 15px; font-weight: 400; line-height: 1.6; }
.me-month-c { display: flex; flex-wrap: wrap; gap: 6px; } .me-month-c em { font-style: normal; font-size: 11px; color: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; line-height: 1.7; }
.pf-axes { padding: 14px 0 4px; } .pf-axes-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; } .pf-axes-h .hand-en { font-size: 16px; color: var(--ink2); }
.pf-axes .tr-ax { margin-bottom: 14px; }
.dx-grid:has(> .dx-rail:empty) { grid-template-columns: minmax(0, 1fr); }
.dx-rail:empty { display: none; }
