/* 夢絵日記。クレヨンで塗った空の上に、本物の絵日記の紙が1枚ある（HANDOFF.md 6.4・6.5）
   文字は紙の上に置く。かわいく、よく見ると少し変 */

:root {
  --paper: #fffdf6;
  --paper-2: #f6efdd;
  --ink: #2f2a3a;
  --sub: #686273;
  --line: #5b5566;
  --grid: #8d8798;
  --warn: #b5301c;
  --cell: 30px;
  --font-ui: "Zen Maru Gothic", system-ui, sans-serif;
  --font-hand: "Klee One", "Zen Maru Gothic", serif;
  --font-pop: "Hachi Maru Pop", "Klee One", cursive;
  --font-kid: "Schoolbell", "Klee One", cursive; /* 英語の日記の字（子どもの手書き） */
  --wobble: 255px 14px 225px 16px / 16px 225px 14px 255px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #a9dcf5; }
body {
  margin: 0; min-height: 100vh; position: relative; overflow-x: hidden;
  background: url(/art/sky.svg) 0 0 / 480px 480px;
  color: var(--ink);
  font: 500 16px/1.7 var(--font-ui);
}
.defs { position: absolute; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

/* 空の飾り。広い画面でだけ、紙の外に出る */
body::before, body::after { content: ""; position: absolute; pointer-events: none; background: no-repeat center / contain; }
body::before { top: 22px; left: max(12px, calc(50% - 520px)); width: 150px; height: 150px; background-image: url(/art/sun.svg); }
/* 紙の左右に空の住人。絵が縦につながる */
body::after {
  top: 0; bottom: 0; left: 50%; width: 980px; margin-left: -490px;
  background: url(/art/friends-left.svg) left top / 190px 1200px repeat-y, url(/art/friends-right.svg) right top / 190px 1200px repeat-y;
}
@media (max-width: 860px) {
  body::before { top: -52px; left: -56px; width: 104px; height: 104px; }
  body::after { display: none; }
}

main { max-width: 580px; margin: 0 auto; padding: 8px 12px 20px; position: relative; z-index: 1; }
/* 紙の下にも並ぶ。スマホではここで会える */
main::after { content: ""; display: block; height: 96px; max-width: 340px; margin: 28px auto 0; background: url(/art/friends-row.svg) no-repeat center / contain; }
.loading, .noscript { color: var(--sub); padding: 48px 0; text-align: center; }
.loading.boot::before { content: "ページを開いています"; }
:root:lang(en) .loading.boot::before { content: "Opening the page…"; }

/* 上の帯 */
.top {
  max-width: 580px; margin: 0 auto; padding: 10px 14px 6px; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.brand { font: 400 25px/1.2 var(--font-pop); text-decoration: none; display: inline-flex; white-space: nowrap; padding-left: 26px; }
.brand span { display: block; }
/* 題字のとなりにも、ばく */
.brand::after { content: ""; width: 36px; height: 18px; margin: 8px 0 0 6px; background: url(/art/baku-peek.svg) no-repeat center bottom / contain; }
@media (max-width: 430px) { .brand::after { display: none; } .brand { padding-left: 20px; font-size: 22px; } .nav { gap: 0; } .nav a { min-width: 42px; padding-left: 3px; padding-right: 3px; font-size: 12px; white-space: nowrap; } }
@media (max-width: 345px) { .brand { padding-left: 8px; font-size: 19px; } .top { padding-left: 6px; padding-right: 6px; } .top .nav a { min-width: 38px; font-size: 11px; padding-left: 1px; padding-right: 1px; } }
.brand span:nth-child(1) { color: #c22f1b; transform: rotate(-5deg); }
.brand span:nth-child(2) { color: #1c5f99; transform: translateY(2px) rotate(3deg); }
.brand span:nth-child(3) { color: #2c7a3f; transform: rotate(-2deg); }
.brand span:nth-child(4) { color: #6a3fa8; transform: translateY(1px) rotate(5deg); }
/* 英語の題字は2段（Day dream / Di ary）。ばくの顔は、入らないので出さない */
:root:lang(en) .brand { display: flex; flex: none; flex-wrap: wrap; box-sizing: content-box; width: 6.8em; font-size: 18px; line-height: 1.05; white-space: nowrap; }
:root:lang(en) .brand::before { content: ""; order: 1; flex-basis: 100%; } /* ここで2段目に折る */
:root:lang(en) .brand span:nth-child(n+3) { order: 2; }
:root:lang(en) .brand::after { display: none; }
:root:lang(en) .brand.hero-title::before { display: none; }
:root:lang(en) .brand.hero-title { flex-wrap: nowrap; box-sizing: border-box; width: auto; justify-content: center; font-size: clamp(26px, 8.4vw, 40px); }
:root:lang(en) .brand.hero-title span:nth-child(3) { margin-left: .35em; }
.hero-sub { margin: 6px 8px 0; text-align: center; font-size: 14px; line-height: 1.5; }
:root:lang(en) .styles .pick > span, :root:lang(en) .fortune-part p { font-family: var(--font-ui); }
@media (max-width: 430px) { :root:lang(en) .brand { font-size: 15px; padding-left: 18px; } :root:lang(en) .top .nav { gap: 0; } :root:lang(en) .top .nav a { min-width: 40px; padding-left: 4px; padding-right: 4px; font-size: 12px; } }
@media (max-width: 345px) { :root:lang(en) .brand { padding-left: 6px; } :root:lang(en) .top .nav a { min-width: 38px; padding-left: 1px; padding-right: 1px; font-size: 11px; } }
/* 持っているうんち（上の帯）。題字とメニューのあいだ */
.unchi-chip {
  display: inline-flex; align-items: center; gap: 3px; margin-left: auto; padding: 3px 12px 3px 6px;
  border: 1.5px solid var(--grid); border-radius: 999px; background: rgba(255, 255, 255, .85);
  color: #2d2a3e; font: 700 17px/1 var(--font-hand); text-decoration: none; white-space: nowrap;
}
.unchi-chip[hidden] { display: none; }
.unchi-chip img { width: 26px; height: 26px; display: block; }
.chip-sep { display: block; width: 1.5px; height: 18px; margin: 0 6px 0 7px; background: var(--grid); }
/* スマホは横に入りきらないので、メニューのすぐ下の右端に出す */
@media (max-width: 430px) {
  .top { z-index: 5; }
  .unchi-chip { position: absolute; right: 12px; top: 100%; margin: 0; padding: 1px 7px 1px 3px; font-size: 13px; z-index: 2; }
  .unchi-chip img { width: 18px; height: 18px; }
}
.nav { display: flex; gap: 4px; }
.nav a {
  display: flex; flex-direction: column; align-items: center; min-width: 50px; padding: 2px 6px 6px;
  text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.3;
}
.nav img { width: 26px; height: 26px; display: block; }
.nav a[aria-current="page"] { background: url(/art/under.svg) no-repeat center bottom / 100% 9px; }

/* 紙 */
.sheet {
  position: relative; margin-top: 30px; padding: 12px;
  background: var(--paper) url(/art/stain.svg) no-repeat left -14px bottom -6px / 130px auto;
  box-shadow: 0 1px 2px rgba(47, 42, 58, .28), 0 10px 24px rgba(47, 62, 92, .2);
  border-radius: 3px;
}
/* 紙のふちから何かがのぞいている */
.sheet.peek::before {
  content: ""; position: absolute; top: -33px; right: 26px; width: 66px; height: 33px;
  background: url(/art/baku-peek.svg) no-repeat center bottom / contain;
}

.sheet.peek::after {
  content: ""; position: absolute; top: -29px; left: 24px; width: 58px; height: 30px;
  background: url(/art/sheep-peek.svg) no-repeat center bottom / contain;
}

/* 見出しと文 */
h1 { font: 400 26px/1.4 var(--font-pop); margin: 2px 0 10px; }
.shelf-title { margin: 8px 6px 0; }
.sub { color: var(--sub); font-size: 14px; }
.err { color: var(--warn); font-size: 14px; font-weight: 700; margin: 8px 0 0; }
.err:empty { display: none; }

/* ボタン */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 18px;
  border: 2.5px solid var(--ink); border-radius: var(--wobble);
  background: var(--paper); cursor: pointer; text-decoration: none; font-weight: 700;
}
.btn.primary {
  width: 100%; min-height: 58px; font: 400 21px/1.2 var(--font-pop);
  background: var(--paper) url(/art/fill-yellow.svg) no-repeat center / 104% 112%;
}
.btn.primary:active { background-size: 100% 100%; }
.btn.quiet { border-color: var(--grid); font-weight: 500; }
.btn.danger { border-color: var(--warn); color: var(--warn); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .pick input:focus-visible + span, input:focus-visible { outline: 3px solid #1c5f99; outline-offset: 2px; }
.linklike { background: none; border: 0; padding: 4px 0; color: var(--sub); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* 絵の枠 */
.picture {
  position: relative; width: 100%; aspect-ratio: 3 / 2;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
}
.picture::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  border: 3px solid var(--line); filter: url(#wobble);
}
.picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.picture.blank { aspect-ratio: 3 / 1; background: none; overflow: hidden; justify-content: flex-start; }
.picture.blank::after { border-style: dashed; border-color: var(--grid); }
.picture.blank p { margin: 0; padding: 0 118px 0 16px; font: 400 16px/1.7 var(--font-hand); color: var(--sub); }
.picture.blank .baku { position: absolute; right: 4px; bottom: -14px; width: 104px; height: auto; object-fit: contain; }
.picture.hero { aspect-ratio: 32 / 21; }
.picture .state { padding: 8px 16px; text-align: center; }
.picture .state p { margin: 0 0 10px; }
.picture.swallowed .state .baku { width: 46%; }
.picture.swallowed .state p { white-space: pre-line; }
.soft-note { margin: 8px 12px; }
.picture .state .baku { width: 24%; margin: 0 auto 4px; object-fit: contain; height: auto; }
.picture.blank { min-height: 112px; }
/* 絵なしの日記：文とボタンの高さに合わせる（3:1 に固定すると文が切れる） */
.picture.blank.no-pic { aspect-ratio: auto; }
.picture.blank .state { width: 100%; padding: 8px 16px; }
.picture.blank .state p { padding: 0; }
/* 高画質のモデルで描いた絵のしるし（右下の小さな札） */
.picture .premium-tag { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 0 8px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 3px; font: 600 13px/1.7 var(--font-hand); color: var(--ink); }

/* 本文と日付の段。右に日付、左に向かって書いていく */
.text-row { display: flex; margin-top: 10px; align-items: stretch; }
.grid-box { position: relative; flex: none; width: calc(var(--cols, 9) * var(--cell)); overflow: hidden; }
/* 罫線。これだけを歪ませる */
.grid-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to left, var(--grid) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, var(--grid) 1.5px, transparent 1.5px);
  background-size: var(--cell) var(--cell);
  background-position: right top;
  border-left: 1.5px solid var(--grid); border-bottom: 1.5px solid var(--grid);
  filter: url(#wobble);
}
.grid-box:focus-within { --grid: #1c5f99; }

/* 日本語の日記を書く欄（横書き）。書いた字は上の紙に映る */
.body-field { margin-top: 10px; }
.body-input {
  display: block; box-sizing: border-box; width: 100%; min-height: 6.5em;
  padding: 10px 12px; border: 1.5px solid var(--grid); border-radius: 10px;
  background: #fff; color: inherit; resize: none; overflow: hidden;
  font: 400 17px/1.7 var(--font-hand);
}
.body-input:focus { outline: none; border-color: #1c5f99; box-shadow: 0 0 0 3px rgba(28, 95, 153, .15); }
.body-input::placeholder { color: var(--sub); opacity: .75; }
.sheet:has(.body-input:focus) .grid-box { --grid: #1c5f99; }

/* 表示用。1字1マス */
.grid-text {
  position: relative; writing-mode: vertical-rl; text-orientation: upright; display: grid;
  grid-template-columns: repeat(var(--rows, 11), var(--cell));
  grid-auto-rows: var(--cell);
  width: max-content; min-width: 100%;
  font: 400 calc(var(--cell) * .8) / 1 var(--font-hand);
}
.grid-text span { display: flex; align-items: center; justify-content: center; }
.grid-text span.blot { background: url(/art/blot.svg) no-repeat center / 86%; }

/* 英語の日記：日付の帯と、3本線の文章（横書き） */
.lined { margin-top: 8px; }
.date-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 4px; }
.date-strip .date { position: relative; font: 400 24px/1.3 var(--font-kid); }
.date-strip .date small { font-size: 1em; color: var(--sub); }
.date-strip .date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.date-strip .date.can-change { text-decoration: underline dashed var(--grid) 1.5px; text-underline-offset: 5px; }
.date-strip .mark { flex: none; width: 44px; height: 44px; padding: 3px; background: url(/art/ring.svg) no-repeat center / 100% 100%; }
.date-strip .mark img { width: 100%; height: 100%; display: block; }
.lines {
  --row: 46px;
  display: block; width: 100%; margin: 0; padding: 0 8px; min-height: calc(var(--row) * 5);
  font: 400 29px/var(--row) var(--font-kid); color: var(--ink);
  background: url(/art/rule.svg) 0 0 / calc(var(--row) * 3) var(--row);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
textarea.lines { border: 0; border-radius: 0; resize: none; overflow: hidden; field-sizing: content; }
textarea.lines:focus { outline: none; box-shadow: inset 0 -3px 0 #1c5f99; }
textarea.lines::placeholder { color: var(--sub); opacity: .75; }
@media (max-width: 380px) { .lines { --row: 42px; font-size: 26px; } }

/* 日付の欄 */
.date-col {
  position: relative; flex: 1; min-width: 48px; margin-left: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0;
}
.date-col::before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--grid); filter: url(#wobble); pointer-events: none; }
.date-col .date { writing-mode: vertical-rl; font: 600 21px/1.2 var(--font-hand); letter-spacing: .06em; white-space: nowrap; }
.date-col .date small { font-size: 15px; font-weight: 400; color: var(--sub); }
.date-col .date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.date-col .date.can-change { text-decoration: underline dashed var(--grid) 1.5px; text-underline-offset: 5px; }
.date-col .mark { width: 42px; height: 42px; padding: 3px; background: url(/art/ring.svg) no-repeat center / 100% 100%; }
.date-col .mark img { width: 100%; height: 100%; display: block; }

.count { font-size: 13px; color: var(--sub); margin-top: 4px; }
.count.over { color: var(--warn); font-weight: 700; }

/* 選ぶ（夢の天気・画風）。選ぶと赤いクレヨンで丸をつける */
.field { margin-top: 14px; }
.field > .label { display: block; font: 600 15px/1.4 var(--font-hand); margin-bottom: 4px; }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick > span { display: block; text-align: center; user-select: none; background: no-repeat center / 100% 100%; }
.pick input:checked + span { background-image: url(/art/ring.svg); font-weight: 700; }

.weathers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.weathers .pick > span { padding: 5px 0 7px; font-size: 11px; line-height: 1.25; min-height: 80px; }
.weathers img { width: 40px; height: 40px; display: block; margin: 0 auto 1px; }

.styles { display: flex; flex-wrap: wrap; gap: 2px; }
.styles .pick > span { padding: 8px 9px; font: 400 16px/1.5 var(--font-hand); min-height: 44px; }
.styles .pick input:checked + span { font-weight: 600; }

.submit { margin-top: 16px; }
.submit .hint { margin: 8px 0 0; font-size: 14px; color: var(--sub); text-align: center; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.danger-zone { margin-top: 26px; padding: 0 6px; }
.danger-zone .confirm { background: var(--paper); padding: 12px; border-radius: 3px; }
.danger-zone .linklike { color: var(--ink); }

/* 描いている途中：クレヨンが勝手に動く */
.drawing { height: 34px; position: relative; margin: 0 auto 10px; width: 60%; }
.drawing i {
  position: absolute; left: 0; right: 0; height: 6px; border-radius: 3px; background: #e2452f;
  transform-origin: left center; animation: scribble 2.4s ease-in-out infinite;
}
.drawing i:nth-child(1) { top: 2px; }
.drawing i:nth-child(2) { top: 14px; animation-delay: .4s; background: #4f9bd9; }
.drawing i:nth-child(3) { top: 26px; animation-delay: .8s; background: #ffd23f; }
@keyframes scribble { 0% { transform: scaleX(.05) rotate(-3deg); } 50% { transform: scaleX(1) rotate(2deg); } 100% { transform: scaleX(.05) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .drawing i { animation: none; transform: none; } }

/* 本棚：板の上に日記が立てかけてある */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 6px; overflow: hidden; }
.shelf a { position: relative; display: block; text-decoration: none; padding: 12px 8px 22px; }
.shelf a::after { content: ""; position: absolute; left: -8px; right: -100vw; bottom: 6px; height: 9px; background: #a8743f; border-bottom: 2.5px solid #6e4823; filter: url(#wobble); }
.shelf .leaf { position: relative; display: block; padding: 5px 5px 2px; background: var(--paper); box-shadow: 0 2px 5px rgba(47, 42, 58, .35); }
.shelf .thumb { aspect-ratio: 1; background: var(--paper-2); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 13px; }
.shelf .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shelf .thumb .horiz { font: 400 17px/1.4 var(--font-kid); color: var(--ink); height: 90%; padding: 0 8px; overflow: hidden; overflow-wrap: anywhere; }
.shelf .thumb .vert { writing-mode: vertical-rl; font: 400 14px/1.5 var(--font-hand); color: var(--ink); height: 88%; overflow: hidden; }
.shelf .cap { display: flex; align-items: center; justify-content: space-between; gap: 4px; font: 600 14px/1.5 var(--font-hand); min-height: 30px; }
.shelf .cap img { width: 26px; height: 26px; }
.shelf .locked .thumb { flex-direction: column; white-space: pre-line; text-align: center; line-height: 1.6; border: 1.5px dashed var(--sub); background: none; }
.shelf .locked .thumb small { display: block; margin-top: 6px; font-size: 11px; }
.empty { padding: 26px 16px; text-align: center; }
.empty p { margin: 0 0 16px; font: 400 17px/1.7 var(--font-hand); white-space: pre-line; }
.empty .baku { width: 150px; display: block; margin: 0 auto 10px; }

/* はじめての画面 */
.hero-title { display: flex; justify-content: center; padding: 0; font-size: 44px; margin: 22px 0 0; }
.login { margin-top: 16px; display: grid; gap: 12px; justify-items: center; }
.dev-login { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.dev-login input { border: 1.5px solid var(--grid); border-radius: 8px; padding: 8px 10px; background: var(--paper); width: 9em; }

.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1.5px dashed var(--grid); }
.settings-row:last-of-type { border-bottom: 0; }
.confirm { display: grid; gap: 10px; justify-items: start; }
.confirm p { margin: 0; }
.confirm .actions { margin-top: 0; }

.gsi-slot { color-scheme: light; width: fit-content; height: 40px; overflow: hidden; white-space: nowrap; font-size: 0.8rem; }
/* ボタンの iframe が読み込まれるまでの仮のボタンは、Google のインライン CSS を CSP が止めるので、ロゴの大きさをここで決める */
.gsi-slot svg { width: 18px; height: 18px; display: block; }
.gsi-slot [role="button"] { height: 40px; padding: 0 14px; border: 1px solid #dadce0; border-radius: 20px; background: #fff; color: #3c4043; }
.gsi-slot [role="button"] > div:last-child { display: flex; align-items: center; gap: 8px; height: 100%; }
.gsi-slot #button-label { display: none; }

/* 招待リンク（オーナーだけ） */
.passes { margin-top: 18px; }
.passes h2 { margin: 0 0 6px; font: 600 18px/1.4 var(--font-hand); }
.passes .sub { margin: 0; font-size: 14px; color: var(--sub); }
.pass-new { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pass-memo { flex: 1 1 180px; min-width: 0; padding: 8px 10px; background: #fff; border: 1.5px solid var(--grid); border-radius: 3px; }
.pass-row { padding: 12px 0; border-top: 1.5px dashed var(--grid); }
.pass-head { display: flex; justify-content: space-between; gap: 12px; }
.pass-url { margin-top: 4px; font-size: 13px; color: var(--sub); overflow-wrap: anywhere; user-select: all; }
.pass-row .actions { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* オーナーの画面：絵の具（直近24時間の使用量）。縦の線は、高画質を休む線・安いモデルに替える線・無料の人の上限（赤） */
.paint-bar { position: relative; height: 16px; margin: 12px 0 4px; background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 3px; overflow: hidden; }
.paint-fill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--grid); }
.paint-mark { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); }
.paint-mark.end { background: var(--warn); }
.paint-used { margin: 0 0 10px; font-size: 14px; }
.paint .plan-terms { margin-bottom: 8px; }


/* 利用規約・プライバシーポリシー */
.doc h2 { margin: 22px 0 6px; font: 600 18px/1.5 var(--font-hand); }
.doc p, .doc ul { margin: 0 0 10px; font-size: 15px; line-height: 1.8; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 4px; }
/* 特定商取引法に基づく表記：項目と中身の表 */
.doc-table { margin: 0; font-size: 15px; line-height: 1.8; }
.doc-table > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 14px; padding: 10px 0; border-bottom: 1.5px dashed var(--grid); }
.doc-table dt { font-weight: 700; }
.doc-table dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .doc-table > div { grid-template-columns: 1fr; gap: 0; } }
.doc-date { color: var(--sub); margin-top: 22px; }
.doc-links { margin: 14px 0 0; font-size: 13px; color: var(--sub); text-align: center; }
.doc-links a { color: inherit; }
/* トップは大きな絵にばくがいるので、題字のとなりには出さない */
.hero-title::after { display: none; }
.post-box { margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed var(--grid); }
.post-box .sub { margin: 6px 0 0; }
.post-box .sub:empty { display: none; }

/* ばくの夢占い */
.fortune { margin-top: 22px; padding: 16px 16px 14px; }
.fortune h2 { margin: 0; font: 400 24px/1.4 var(--font-pop); color: #6a3fa8; }
.fortune.arrive { animation: fortune-in .5s ease-out; }
@keyframes fortune-in { from { transform: translateY(14px); opacity: .2; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fortune.arrive { animation: none; } }
.fortune-title { margin: 8px 0 12px; padding-bottom: 8px; font: 600 21px/1.5 var(--font-hand); background: url(/art/under.svg) no-repeat left bottom / min(100%, 280px) 9px; }
.fortune-taste { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.fortune-taste span, .fortune-part h3 { font: 600 14px/1.5 var(--font-hand); color: var(--sub); margin: 0; }
.fortune-taste strong { font: 400 24px/1.3 var(--font-pop); color: #c22f1b; }
.luck { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 10px 0; border-top: 1.5px dashed var(--grid); border-bottom: 1.5px dashed var(--grid); }
.luck-row { display: grid; gap: 2px; font: 600 14px/1.5 var(--font-hand); }
.stars { display: block; flex: none; width: 90px; height: 18px; background: url(/art/star-off.svg) repeat-x left center / 18px 18px; }
.stars i { display: block; height: 100%; width: calc(var(--n, 0) * 18px); background: url(/art/star-on.svg) repeat-x left center / 18px 18px; }
.fortune-part { margin-top: 14px; }
.fortune-part p { margin: 2px 0 0; font: 400 17px/1.8 var(--font-hand); }
.fortune-again { color: #6a3fa8; font-size: 15px !important; }
.deep { margin: 16px 0 4px; padding: 12px 14px; border: 1.5px dashed #6a3fa8; border-radius: 14px; }
.deep h3 { margin: 0 0 6px; font: 600 14px/1.5 var(--font-hand); color: #6a3fa8; }
.deep p { margin: 4px 0 0; font: 400 16px/1.8 var(--font-hand); }
.deep-q b, .deep-a b { display: inline-block; min-width: 2.5em; color: #6a3fa8; font-weight: 600; }
.deep-a b { color: var(--sub); }
.deep textarea { display: block; box-sizing: border-box; width: 100%; margin: 8px 0; padding: 8px 10px; font: 400 16px/1.6 var(--font-hand); }
.deep .sub { font-size: 14px; }
.spirit { display: grid; gap: 10px; margin: 12px 0 4px; padding: 12px 0; border-bottom: 1.5px dashed var(--grid); }
.spirit-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.spirit-row p { margin: 0; font: 400 15px/1.6 var(--font-hand); }
.spirit-row .spirit-name { font: 600 16px/1.5 var(--font-hand); }
.spirit-name span { margin-right: 8px; font-size: 13px; font-weight: 600; color: var(--sub); }
.spirit-mark { display: block; width: 30px; height: 30px; font-size: 26px; line-height: 30px; text-align: center; }
.aura-dot { display: block; width: 26px; height: 26px; margin: 2px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0, var(--aura) 60%); box-shadow: 0 0 10px 2px var(--aura); }
.oracle { margin: 16px 0 0; padding: 12px 14px; border: 1.5px solid #6a3fa8; border-radius: 12px; text-align: center; }
.oracle h3 { margin: 0 0 4px; font: 600 13px/1.5 var(--font-hand); color: #6a3fa8; letter-spacing: .1em; }
.oracle p { margin: 0; font: 400 17px/1.8 var(--font-hand); }
.fortune-dict { margin: 8px 0 0; font: 400 15px/1.7 var(--font-hand); color: var(--sub); }
.fortune-dict a { color: #6a3fa8; }
.hatsu-badge { display: inline-block; margin: 10px 0 0; padding: 2px 12px; border: 1.5px solid #c22f1b; border-radius: 999px; font: 600 14px/1.6 var(--font-hand); color: #c22f1b; }
.hatsu-badge.engi { background: #c22f1b; color: #fffdf6; }
.pieces { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.pieces li { display: grid; grid-template-columns: minmax(4.5em, max-content) 1fr; gap: 10px; font: 400 15px/1.6 var(--font-hand); }
.pieces b { font-weight: 600; }
.fortune-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; }
.bubble { position: relative; margin: 18px 0 2px; padding: 12px 74px 12px 14px; min-height: 52px; background: #efe7fb; border-radius: 16px; }
.bubble p { margin: 0; font: 400 16px/1.7 var(--font-hand); }
.bubble img { position: absolute; right: 6px; bottom: 0; width: 64px; height: 32px; }
.fortune-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--sub); }
.fortune-stale { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; padding: 8px 10px; background: var(--paper-2); border-radius: 6px; }
.fortune-stale p { margin: 0; font-size: 14px; }
.fortune-wait { text-align: center; padding: 8px 0 4px; }
.fortune-wait .baku { width: 120px; display: block; margin: 0 auto 4px; animation: baku-chew 1s ease-in-out infinite; }
.fortune-wait p { margin: 0; font: 400 16px/1.7 var(--font-hand); }
@keyframes baku-chew { 50% { transform: translateY(3px) scaleY(.96); } }
@media (prefers-reduced-motion: reduce) { .fortune-wait .baku { animation: none; } }
.care-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; line-height: 1.7; }
.care-list li { padding: 10px 12px; background: var(--paper-2); border-radius: 6px; }

/* フレンド */
.friends-toggle { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.friends-toggle label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; cursor: pointer; }
.friends-toggle input { width: 22px; height: 22px; accent-color: #6a3fa8; }
.friends-toggle .err { flex-basis: 100%; }
/* ふだんならフレンドに見せない言葉が入った夢を、見せてよいか聞く */
.share-confirm { flex-basis: 100%; margin-top: 12px; padding: 12px 14px; border: 2px solid var(--warn); border-radius: 12px; background: var(--paper); }
.share-confirm p { margin: 0 0 10px; color: var(--ink); font-weight: 700; line-height: 1.6; }
.share-confirm .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-confirm { text-align: center; padding: 18px 16px 22px; }
.friend-confirm .baku { width: 130px; display: block; margin: 0 auto 8px; }
.friend-confirm p { margin: 0 0 12px; font: 400 17px/1.7 var(--font-hand); white-space: pre-line; }
.friend-confirm .sub { font-size: 14px; }
.friend-confirm .pass-new { justify-content: center; }
.friend-confirm .linklike { display: inline-block; margin-top: 12px; }
/* みんなの夢ログ：1日で1枚の紙 */
.feed { display: grid; }
.log-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; }
.log-title .linklike { margin: 0 6px; }
.log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-bottom: 8px; border-bottom: 1.5px dashed var(--grid); }
.log-head h2 { margin: 0; font: 400 21px/1.4 var(--font-pop); }
.log-head .btn { margin-left: auto; min-height: 40px; padding: 4px 14px; }
.log-entry { padding: 12px 0 14px; }
.log-entry + .log-entry { border-top: 1.5px dashed var(--grid); }
.log-entry:last-child { padding-bottom: 2px; }
.log-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; padding-top: 12px; }
.log-tile { display: block; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.log-thumb { display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); border: 2px solid var(--line); border-radius: 3px; }
.log-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.log-snippet { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; padding: 6px; font: 400 13px/1.5 var(--font-hand); overflow-wrap: anywhere; }
.log-cap { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding-top: 2px; font: 600 14px/1.5 var(--font-hand); }
.log-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-stamped { flex: none; min-width: 20px; padding: 0 5px; border: 1.5px solid #c22f1b; border-radius: 8px 6px 9px 5px; color: #c22f1b; font: 700 12px/1.4 var(--font-ui); text-align: center; }
.feed-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-bottom: 8px; }
.feed-head a { text-decoration-color: var(--grid); }
.feed-head b { font: 600 17px/1.5 var(--font-hand); overflow-wrap: anywhere; }
.feed-head img { width: 30px; height: 30px; margin-left: auto; }

/* はんこ：先生が押すような、少し傾いた赤いはんこ */
.stamps { margin-top: 6px; }
.stamp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 44px; }
.hanko-face {
  display: inline-block; padding: 2px 8px; border: 2px solid #c22f1b; border-radius: 9px 7px 10px 6px / 7px 10px 6px 9px;
  color: #c22f1b; font: 400 14px/1.4 var(--font-pop); transform: rotate(-3deg); white-space: nowrap;
}
.emoji-face { font-size: 22px; line-height: 1.2; }
.stamp-chip, .hanko { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 2px 4px; border: 0; background: none; cursor: pointer; }
.stamp-n { font-size: 14px; font-weight: 700; }
.stamp-chip[aria-pressed="true"] .hanko-face, .hanko[aria-pressed="true"] .hanko-face { background: #c22f1b; color: #fffdf6; }
.stamp-chip[aria-pressed="true"] .emoji-face { background: url(/art/ring.svg) no-repeat center / 100% 100%; padding: 2px 5px; }
.stamp-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; padding: 2px 0 4px; }
.emoji-input { width: 5.5em; min-height: 40px; margin-left: 4px; padding: 4px 8px; border: 1.5px solid var(--grid); border-radius: 8px; background: var(--paper); text-align: center; }
.reacted-by { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.reacted-by li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 14px; overflow-wrap: anywhere; }
.stamps-title { margin: 0 0 6px; font: 600 16px/1.4 var(--font-hand); }

/* つづけて見る */
.player { width: 100%; max-width: 560px; max-height: 100dvh; height: 100dvh; margin: auto; padding: 12px; border: 0; background: none; color: inherit; overflow-y: auto; }
.player[open] { display: flex; flex-direction: column; }
.player-stage { margin: auto 0; }
.player::backdrop { background: #10132b; }
.player-bars { display: flex; gap: 4px; padding-right: 64px; min-height: 22px; align-items: center; }
.player-bars i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.player-bars b { display: block; height: 100%; width: 0; background: #fffdf6; }
.player-bars .done b { width: 100%; }
.player-bars .now b { animation: player-fill var(--hold, 4s) linear forwards; }
.player-bars .held b { width: 50%; }
@keyframes player-fill { to { width: 100%; } }
.player-close { position: absolute; top: 2px; right: 8px; min-height: 44px; padding: 0 8px; border: 0; background: none; color: #fffdf6; font-weight: 700; cursor: pointer; }
.player-card { margin-top: 12px; }
.player-card .feed-body { max-height: 8.5em; overflow-y: auto; }
.player-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.player-nav .btn { flex: 1; min-height: 44px; }
.player-end { text-align: center; padding: 26px 16px; }
.player-end .baku { width: 130px; display: block; margin: 0 auto 8px; }
.player-end p { margin: 0; font: 400 18px/1.7 var(--font-hand); }
.player-end .actions { justify-content: center; }

.feed-body { margin: 10px 2px 2px; font: 400 16px/1.8 var(--font-hand); white-space: pre-wrap; overflow-wrap: anywhere; }
.friends-card { margin-top: 18px; padding: 14px 16px; }
.friends-card h2 { margin: 0 0 4px; font: 600 18px/1.4 var(--font-hand); }
.friends-card .sub { margin: 0 0 8px; }
.friend-list { list-style: none; margin: 4px 0 10px; padding: 0; }
.friend-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; padding: 8px 0; border-bottom: 1.5px dashed var(--grid); overflow-wrap: anywhere; }
.friend-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.friend-tag { font-size: 12px; font-weight: 700; color: var(--sub); border: 1.5px solid var(--grid); border-radius: 999px; padding: 0 8px; }
.friend-quiet { font-size: 13px; color: var(--sub); }
.friend-list li.muted b { color: var(--sub); }
.friend-acts { display: inline-flex; flex-wrap: wrap; gap: 14px; }
.invited { margin: 0; padding: 8px 12px; background: #efe7fb; border-radius: 8px; font-size: 14px; text-align: center; }

/* 名前と「〇〇の日記」 */
.shelf-title { overflow-wrap: anywhere; }
.name-nudge { margin: 2px 6px 8px; font-size: 14px; color: var(--sub); }
.name-setting { padding: 4px 0 14px; border-bottom: 1.5px dashed var(--grid); }
.name-setting h2 { margin: 0; font: 600 18px/1.4 var(--font-hand); }
.name-preview { margin: 4px 0; font: 400 24px/1.4 var(--font-pop); overflow-wrap: anywhere; }
.name-setting .sub { margin: 0; }

/* プラン（設定の画面） */
.plan { padding: 14px 0; border-bottom: 1.5px dashed var(--grid); }
.plan h2 { margin: 0; font: 600 18px/1.4 var(--font-hand); }
.plan-name { margin: 2px 0 0; font: 400 21px/1.4 var(--font-pop); }
.plan > .sub, .plan > .warn { margin: 2px 0 0; }
.plan .actions { margin-top: 10px; }
.plan-note { margin: 0 0 8px; padding: 8px 12px; background: #efe7fb; border-radius: 8px; font-size: 14px; }
.plan-note:empty { display: none; }
.warn { color: var(--warn); font-size: 14px; font-weight: 700; }
.plan-offer { margin-top: 12px; padding: 12px 14px; background: var(--paper); border: 1.5px solid var(--grid); border-radius: 3px; }
.plan-price { margin: 0; font: 600 17px/1.5 var(--font-hand); }
.plan-points { margin: 6px 0 0; padding-left: 1.3em; font-size: 15px; }
.plan-offer h3 { margin: 0 0 8px; font: 600 17px/1.5 var(--font-hand); }
.plan-terms { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0 0 10px; font-size: 14px; }
.plan-terms dt { font-weight: 700; }
.plan-terms dd { margin: 0; }
.plan-offer > .sub { margin: 0 0 10px; }
.plan-offer .sub a { color: inherit; }
/* ばくのうんち */
.unchi-hint { flex-basis: 100%; margin: 0; }
.unchi-hint a { margin-left: 6px; color: inherit; }
.unchi-btn { display: inline-flex; align-items: center; gap: 6px; }
.unchi-btn img { width: 26px; height: 26px; flex: none; }
.unchi-left { white-space: nowrap; }
.unchi-line { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.unchi-line > img { width: 52px; height: 52px; flex: none; }
.unchi-line p { margin: 0; }
.unchi-name { font: 600 17px/1.5 var(--font-hand); }
.unchi-name b { margin-left: 8px; font: 400 21px/1.3 var(--font-pop); }
.plan.unchi > .sub { margin: 2px 0 0; }
/* もらったとき：ばくのおしりからぽとんと落ちて、ここへ跳ねてくる（動きは app.js の dropUnchi。1回だけ） */
.unchi-earned { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.unchi-earned .baku { width: 60px; height: auto; flex: none; }
.unchi-earned .unchi-drop { width: 44px; height: 44px; flex: none; position: relative; z-index: 2; transform-origin: 50% 90%; translate: 0 0; scale: 1; }
.baku { transform-origin: 50% 100%; }
.unchi-earned .n { display: inline-block; position: relative; font-weight: 700; }
.unchi-earned .n.old { color: transparent; }
.unchi-earned .n.old::after { content: attr(data-old); content: attr(data-old) / ""; position: absolute; inset: 0; text-align: center; color: var(--ink); }
.promo { margin-top: 10px; }
.promo .pass-new { margin-top: 0; }
.promo-code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .05em; }
.promo-days { flex: 0 0 auto; }
.promo-uses-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.promo-uses { width: 6em; flex: none; }
@media (max-width: 420px) {
  .plan-terms { grid-template-columns: 1fr; gap: 0; }
  .plan-terms dd { margin-bottom: 6px; }
}

/* ホーム画面に追加 */
.install-box { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; padding: 12px 14px; background: var(--paper); border: 1.5px dashed var(--grid); border-radius: 3px; }
.install-box[hidden] { display: none; }
.install-box .baku { flex: none; width: 56px; height: auto; margin: 0; }
.install-box p { margin: 0; }
.install-box .actions { margin-top: 8px; align-items: center; }
.install-steps { margin: 10px 0 0; padding-left: 1.4em; font-size: 14px; }
.install-steps[hidden] { display: none; }

/* 入力欄を描き直させるための、目に見えない変化 */
.post-box .btn ~ .btn { margin-top: 8px; }

/* 夜（21時〜5時。端末の設定は見ない。night.js が data-night を付ける）
   空だけが夜になり、絵日記の紙は月明かりの色で残る。空の住人は影になって、目だけがこちらを見ている */
:root[data-night] {
  --paper: #dedae6;
  --paper-2: #cbc6d8;
  --sub: #5c5769;
  --grid: #7b7590;
  color-scheme: dark;
}
:root[data-night], [data-night] body { background-color: #141836; }
[data-night] body {
  background-image: url(/art/night-eyes.svg), url(/art/night-sky.svg);
  background-size: 960px 960px, 480px 480px;
  color: #ece9f7;
  --sub: #bdb9d4;
}
[data-night] .sheet, [data-night] .leaf, [data-night] .install-box, [data-night] .confirm, [data-night] .btn, [data-night] .house { color: var(--ink); --sub: #5c5769; color-scheme: light; }
[data-night] .sheet { box-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 30px rgba(0, 0, 0, .55); }
[data-night] body::before { background-image: url(/art/night-moon.svg); }
@media (max-width: 860px) { [data-night] body::before { top: -20px; left: -24px; width: 70px; height: 70px; } }
[data-night] body::after, [data-night] main::after { filter: brightness(.34) saturate(.55); }
[data-night] .sheet.peek::before, [data-night] .sheet.peek::after, [data-night] .brand::after { filter: brightness(.72) saturate(.8); }
[data-night] .nav img { filter: invert(1) hue-rotate(180deg) brightness(1.15); }
[data-night] .brand span:nth-child(1) { color: #ff8d7a; }
[data-night] .brand span:nth-child(2) { color: #8cc6f5; }
[data-night] .brand span:nth-child(3) { color: #8ddb9f; }
[data-night] .brand span:nth-child(4) { color: #c9a9f5; }
[data-night] .danger-zone .linklike { color: #ece9f7; }
[data-night] .danger-zone .confirm { background: var(--paper); }
[data-night] .danger-zone .confirm .linklike { color: var(--ink); }
[data-night] .pass-memo { background: #f0edf5; }
/* 投稿用の画像や絵そのものは、夜でも変えない */
[data-night] .bubble { background: #cdc0e6; }
[data-night] .invited { background: #cdc0e6; color: var(--ink); }

/* 夢占い辞典（public/dreams/。tools/make-dreams.mjs で作る） */
.dict h1 { margin: 6px 0 14px; font: 600 26px/1.4 var(--font-hand); }
.dict h3 { margin: 16px 0 2px; font: 700 15px/1.5 var(--font-ui); }
.crumbs { font-size: 13px; color: var(--sub); }
.crumbs a { color: inherit; }
.dict-meaning { margin: 0 0 16px; padding: 12px 14px; background: var(--paper-2); border-radius: 6px; font: 600 16px/1.7 var(--font-hand); }
.dict-say { display: block; font: 500 12px/1.6 var(--font-ui); color: var(--sub); }
.dict-luck { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 10px; font-size: 15px; }
.dict-luck div { display: flex; gap: 8px; }
.dict-luck dt { font-weight: 700; }
.dict-luck dd { margin: 0; }
.dict .dict-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.dict-chips a { display: inline-block; padding: 5px 12px; border: 1.5px solid var(--grid); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.5; }
.dict-words span { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--sub); font-size: 14px; line-height: 1.5; }
.dict-chips a:hover { background: var(--paper-2); }
.dict-cta { margin: 26px 0 8px; padding: 16px; border: 2px dashed var(--grid); border-radius: 8px; }
.dict-cta p { margin: 0 0 12px; }
.dict-cta .btn { display: inline-block; text-decoration: none; }
.dict .dict-note { margin-top: 26px; font-size: 13px; color: var(--sub); }

/* ほかのアプリの紹介。広告が入るはずの場所（紙の下）に1つだけ。AdSense が通ったら広告に替える */
.ad-slot { max-width: 580px; margin: 0 auto; padding: 0 12px 28px; position: relative; z-index: 1; }
.ad-slot:empty { display: none; }
.house { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--wobble); text-decoration: none; }
.house img { flex: none; width: 128px; height: auto; aspect-ratio: 40 / 21; border-radius: 6px; object-fit: cover; }
.house-t { display: grid; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--sub); }
.house-t small { font-size: 11px; }
.house-t b { font: 600 16px/1.4 var(--font-hand); color: var(--ink); }
@media (max-width: 400px) { .house img { width: 96px; } }
.dict-aka { margin: -6px 0 12px; font-size: 14px; color: var(--sub); }
.dict-care { margin: 18px 0 0; padding: 10px 12px; border-left: 3px solid var(--grid); font-size: 14px; }
.dict-aka { margin: -6px 0 12px; font-size: 14px; color: var(--sub); }
.dict-care { margin: 18px 0 0; padding: 10px 12px; border-left: 3px solid var(--grid); font-size: 14px; }

/* ログイン前だけの「夢絵日記とは」。検索エンジンが読める文（index.html に直接書いてある） */
.about-site { max-width: 580px; margin: 0 auto; padding: 0 24px 32px; position: relative; z-index: 1; font-size: 14px; color: var(--ink); }
.about-site h2 { margin: 0 0 6px; font: 600 18px/1.4 var(--font-hand); }
.about-site p { margin: 0 0 8px; }
.about-site, .about-site a { text-shadow: 0 0 6px var(--paper), 0 0 2px var(--paper); }
[data-night] .about-site, [data-night] .about-site a { color: #ece9f7; text-shadow: none; }

/* オーナーだけの「インスタの自動投稿」（ownerSns） */
.sns-post { margin-top: 10px; font-size: 14px; }
.sns-post summary { cursor: pointer; }
.sns-imgs { display: flex; gap: 6px; overflow-x: auto; margin: 8px 0; }
.sns-imgs img { width: 120px; border-radius: 3px; border: 1px solid var(--line); }
.sns-cap { white-space: pre-wrap; font-size: 13px; background: var(--paper-2); padding: 8px; border-radius: 3px; }
