.note { margin: 14px 0 0; font-size: .75rem; color: var(--muted); line-height: 1.7; }
.tagline { margin: 6px 0 0; color: var(--muted); letter-spacing: .04em; }
/* ロゴと入力欄を画面の真ん中より少し上に置く */
.home { justify-content: flex-start; padding-top: max(56px, 14vh); }
.home .search { margin-top: 26px; gap: 10px; }
/* 生年月日は枠のない中身の幅だけの1行にして、名前の欄の補足に見せる */
.birth-row { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.birth-label { margin-right: 4px; white-space: nowrap; }
.birth-row select { font: inherit; font-size: .88rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 4px 4px; }
.birth-row select:invalid { color: var(--muted); }
.helper { margin: 0; font-size: .78rem; color: var(--muted); }
.search button#go { margin-top: 6px; }
.catch { line-height: 1.8; }
@media (max-width: 560px) {
  .birth-row select { padding: 4px 2px; }
}
.sort { margin: 0 0 6px; font-size: .8rem; color: var(--muted); }
.sort button { background: none; border: 0; padding: 0 6px; color: var(--link); font-size: .8rem; }
.sort button.on { color: var(--ink); font-weight: 700; text-decoration: underline; }

/* 通信先のステータスバー */
/* 前の大きさ（.72rem）の約85%。目立たせないため */
.status { margin: 0 24px; font-size: .62rem; color: var(--muted); font-family: ui-monospace, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.status .antenna { width: 1.6em; height: 1.2em; margin-right: 3px; flex-shrink: 0; }
.status .sig { color: var(--muted); }
/* 丸は電波の強さではなく「データを受信している」ランプ。電波とは別のものなので、色はサイトの色で固定し、
   受信のたびに一瞬光る（電波が弱いと、光る回数が減る） */
.status .dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: 5px; background: var(--accent); opacity: .25; transition: opacity .25s; }
.status .dot.on { opacity: 1; transition: none; }
.status .sep { margin: 0 5px; opacity: .5; }
/* 色が付くのはアンテナだけ。文字はほかと同じ色にして、隣の受信ランプと同じものに見えないようにする */
.status.good .antenna { color: #1fa971; }
.status.weak .antenna { color: #c99a06; }
.status.bad .antenna { color: #d64545; }
/* 電波が弱いほど、アンテナの波が欠けて点滅する */
.status.weak .w2 { opacity: .2; }
.status.bad .w2 { opacity: 0; }
.status.bad .w1 { animation: blink 1s steps(1) infinite; }
/* 2回目以降の「通信記録」は、今つながっているわけではないので、ランプを消し、アンテナも点滅させない */
.status.record .dot { display: none; }
.status.record .w1 { animation: none; }
@media (max-width: 960px) { .status { margin-left: 16px; margin-right: 16px; } }

/* レア記事 */
.extra { display: inline-block; background: #c62828; color: #fff; font-weight: 700; font-size: .72rem; padding: 0 6px; border-radius: 3px; margin-right: 6px; letter-spacing: .1em; }
.glitch-text .headline, .glitch-text .lead { text-shadow: 1px 0 rgba(255, 43, 214, .35), -1px 0 rgba(25, 230, 255, .35); }
.glitch-text .photo { filter: grayscale(1) contrast(1.6); }

.ai-box { margin: 6px 0 8px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, #eef7f8, #f4f1fb); border: 1px solid #dfe6ea; font-size: .92rem; line-height: 1.8; }
.ai-box p { margin: 0; }
/* 概要のプロフィール写真。向こうの地球から受信した写真として、右上に小さく置く */
.ai-photo { float: right; width: 112px; height: 112px; margin: 2px 0 8px 14px; border-radius: 10px; background: #d6d9dc; }
@media (max-width: 600px) { .ai-photo { width: 84px; height: 84px; margin-left: 10px; } }
.ai-label { font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 4px !important; }
.ai-note { margin-top: 8px !important; font-size: .72rem; color: var(--muted); }

/* 検索ボタンを押した時：前半は小さくぶれて色がずれるだけ。後半で一気に膨らみ、角ばった形に崩れる */
.search button.break, .bd-go.break, .serp-box.break { animation: break .62s steps(1) both; color: #fff; }
/* 検索窓が崩れるときは、中身ごと崩れる。広がっても横にはみ出さないようにする */
body:has(.serp-box.break) { overflow-x: hidden; }
@keyframes break {
  0%   { transform: none; background: var(--ink); }
  10%  { transform: translate(-2px, 0); background: var(--ink); text-shadow: 2px 0 #ff2bd6, -2px 0 #19e6ff; }
  20%  { transform: translate(2px, 1px); text-shadow: -2px 0 #ff2bd6, 2px 0 #19e6ff; }
  30%  { transform: none; background: #fff; color: #111; text-shadow: none; }
  38%  { transform: translate(-1px, -1px); background: var(--ink); color: #fff; text-shadow: 3px 0 #ff2bd6, -3px 0 #19e6ff; }
  46%  { transform: none; text-shadow: none; }
  54%  { transform: scale(1.5) skewX(-12deg); background: #fff; color: #111; text-shadow: 4px 0 #ff2bd6, -4px 0 #19e6ff;
         clip-path: polygon(0 10%, 30% 0, 55% 18%, 100% 4%, 92% 60%, 100% 100%, 40% 86%, 12% 100%, 4% 55%); }
  62%  { transform: scale(.85) translate(6px, -3px); background: #111; color: #fff; text-shadow: -5px 0 #ff2bd6, 5px 0 #19e6ff;
         clip-path: polygon(8% 0, 100% 12%, 82% 48%, 100% 90%, 60% 100%, 46% 70%, 0 100%, 14% 44%); }
  70%  { transform: scale(2, .6); background: #19e6ff; color: #111; text-shadow: none; clip-path: inset(30% 0 30% 0); }
  78%  { transform: scale(1.3) translate(-8px, 2px) skewX(18deg); background: #ff2bd6; color: #fff;
         clip-path: polygon(0 0, 70% 6%, 100% 0, 96% 40%, 100% 100%, 20% 92%, 0 100%); }
  86%  { transform: scale(2.6, .2); background: #111; clip-path: none; }
  93%  { transform: scale(3.2, .08); background: #fff; opacity: .8; }
  100% { transform: scale(4, .02); background: #fff; opacity: 0; }
}
.flash { position: fixed; inset: 0; z-index: 30; pointer-events: none; animation: flash .4s ease-out forwards; }
@keyframes flash { 0% { background: #fff; } 35% { background: #0b0d10; } 100% { background: #0b0d10; opacity: 0; } }

/* 通信中の画面：横に裂ける帯、色ずれ、全体のぶれ */
.connecting.glitchy { animation: shake 2.4s steps(1) infinite; }
@keyframes shake {
  0%, 18%, 22%, 61%, 64%, 100% { transform: none; filter: none; }
  20% { transform: translate(-6px, 2px) skewX(4deg); filter: hue-rotate(60deg); }
  62% { transform: translate(5px, -3px); filter: invert(1); }
}
.connecting pre { text-shadow: 2px 0 rgba(255, 43, 214, .6), -2px 0 rgba(25, 230, 255, .6); }
.tear { position: absolute; left: 0; right: 0; height: 6vh; background: repeating-linear-gradient(90deg, rgba(127, 227, 192, .25) 0 3px, transparent 3px 9px); mix-blend-mode: screen; opacity: 0; }
.tear.t1 { top: 22%; animation: tear 1.7s steps(1) infinite; }
.tear.t2 { top: 55%; height: 3vh; animation: tear 1.3s steps(1) .4s infinite; }
.tear.t3 { top: 78%; height: 9vh; animation: tear 2.1s steps(1) .9s infinite; }
@keyframes tear {
  0%, 70%, 100% { opacity: 0; transform: none; }
  72% { opacity: 1; transform: translateX(-30px); }
  78% { opacity: 1; transform: translateX(40px) scaleY(1.6); }
  84% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .search button.break, .bd-go.break, .serp-box.break, .connecting.glitchy, .tear, .flash { animation: none; }
}

.news-list { max-width: 680px; padding: 8px 24px 40px; }
.news { display: grid; grid-template-columns: 1fr 112px; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news .photo { order: 2; aspect-ratio: 1; border-radius: 8px; }
.news .src { margin: 0; font-size: .78rem; color: var(--muted); }
.news .src b { color: var(--ink); font-weight: 600; }
.news .headline { display: block; margin: 4px 0 6px; color: var(--link); font-size: 1.12rem; font-weight: 600; line-height: 1.45; text-decoration: none; }
.news .headline:hover { text-decoration: underline; }
.news .lead { margin: 0; font-size: .88rem; color: #3f434b; line-height: 1.7; }
.news.big .headline { font-size: 1.25rem; }

@media (max-width: 960px) { .news-list { padding: 4px 16px 32px; } }
@media (max-width: 560px) {
  .news { grid-template-columns: 1fr 76px; gap: 12px; }
  .news .headline { font-size: 1rem; }
  .news.big .headline { font-size: 1.08rem; }
}

/* ロゴの試し：二つの地球の印。文字の高さに合わせ、色はサイトの色 */
.logo .tw { height: .85em; width: auto; color: var(--accent); overflow: visible; flex-shrink: 0; }
.logo.small .tw { height: 1em; }
.tw .ring { fill: none; stroke: currentColor; stroke-width: 2.6; }
.tw .fill { fill: currentColor; }
.tw .far { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-dasharray: 3 2.6; animation: far 20s linear infinite; transform-origin: 33px 12px; }
.tw .path { stroke: currentColor; stroke-width: 1.6; stroke-dasharray: 1.6 2.6; opacity: .45; }
.tw .sig { fill: currentColor; animation: sig 3.2s ease-in-out infinite; }
.tw-wave path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tw-wave .w-out { animation: wave-out 3s infinite; }
.tw-wave .w-in { animation: wave-in 3s infinite; }
/* 信号の点が、こちらから向こうへ行き、また戻ってくる */
@keyframes sig { 0%, 8% { transform: translateX(0); } 46%, 54% { transform: translateX(18px); } 92%, 100% { transform: translateX(0); } }
/* こちらが送り、少しして向こうが返す */
@keyframes wave-out { 0%, 40%, 100% { opacity: .15; } 10%, 25% { opacity: 1; } }
@keyframes wave-in { 0%, 50%, 90%, 100% { opacity: .15; } 60%, 75% { opacity: 1; } }
/* 向こうの地球は点線の輪がゆっくり回り、遠くてはっきり見えない感じにする */
@keyframes far { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tw * { animation: none !important; } }
/* 二つの地球：大きい輪の上の点が、元のロゴと同じ速さでゆっくり回る。小さいロゴでは動かさない */
.logo .tw-twin { height: 1em; margin-right: .2em; }
.tw-twin .dot { stroke: var(--bg); stroke-width: 1.6; paint-order: stroke; }
.tw-twin .far-earth { stroke-width: 2; opacity: .7; }
.logo.big .tw-twin .orbit { transform-box: view-box; transform-origin: 12px 16px; animation: orbit 12s linear infinite; }
/* キャッチコピーは、読点のところでだけ折り返す（スマホで変なところで切れないように） */
.catch span { display: inline-block; }

/* 記事を開いたときの「受信できない画面」。よくあるサイトの404の画面に似せる */
.nosig-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.nosig { max-width: 640px; margin: 0 auto; padding: max(56px, 12vh) 24px 64px; text-align: center; color: #5f6368; }
.nosig h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(2.2rem, 8vw, 3.8rem); color: #333; letter-spacing: -.01em; line-height: 1.15; }
.nosig .sub { margin: 10px 0 28px; font-size: .85rem; color: #777; }
.nosig .lead { margin: 0 0 34px; font-size: .95rem; line-height: 1.9; color: #444; }
.nosig button { font: inherit; cursor: pointer; }
.nosig .back { background: #333; color: #fff; border: 0; border-radius: 99px; padding: 16px 44px; font-size: .9rem; font-weight: 700; }
.nosig .back:hover { background: #111; }
.nosig .links { margin: 22px 0 0; font-size: .8rem; color: #999; }
.nosig .links span { margin: 0 8px; }
.nosig .links button { background: none; border: 0; padding: 0; color: var(--link); font-size: .8rem; }
.nosig .detail { margin: 18px auto 0; max-width: 460px; padding: 12px 14px; background: #f6f6f6; border-radius: 8px; text-align: left; font-family: ui-monospace, Consolas, monospace; font-size: .75rem; line-height: 1.8; color: #666; word-break: break-all; }
@media (max-width: 560px) {
  .nosig { padding-left: 16px; padding-right: 16px; }
  .nosig .lead { text-align: left; }
}

/* ボタンの下の注意書き。キャッチコピーより小さく薄くして、事務的な決まりごとに見せる */
.home .fixed-note { margin: -2px 0 0; font-size: .78rem; color: var(--muted); letter-spacing: .02em; text-align: center; }
.home .fixed-note span { display: inline-block; }
.home .fixed-note .antenna { margin-right: 5px; vertical-align: -1px; color: var(--accent); }
/* キャッチコピーの下に置くときは、少し間をあけて「続き」ではなく注意書きに見せる */
.home .catch + .fixed-note { margin-top: 22px; }
/* キャッチコピーと注意書きの位置の試し。ボタンから離して、入力の部分と読む部分を分ける */
.home[data-gap="1"] .catch { margin-top: 38px; }
.home[data-gap="2"] .catch { margin-top: 96px; }
/* 大きいロゴは、回る点が右下を通るときに「T」にくっつかないよう、印と文字の間を少しだけあける */
.logo.big .mark { margin-right: .08em; }

/* 記事の全文ページ（読めるレア） */
.full { max-width: 640px; margin: 0 auto; padding: 28px 24px 64px; color: #222; }
.full-media { margin: 0 0 10px; font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.full h1 { margin: 0 0 10px; font-size: 1.5rem; line-height: 1.5; font-weight: 700; }
.full-date { margin: 0 0 20px; font-size: .8rem; color: var(--muted); }
.full .photo { aspect-ratio: 16 / 9; border-radius: 8px; margin-bottom: 22px; }
.full p { font-size: 1rem; line-height: 1.95; margin: 0 0 1.1em; }
.full .full-lead { font-weight: 700; }
.full .full-foot { margin-top: 28px; font-size: .75rem; color: var(--muted); }
.full .back { font: inherit; font-size: .88rem; background: #333; color: #fff; border: 0; border-radius: 99px; padding: 12px 32px; cursor: pointer; }
@media (max-width: 560px) { .full { padding: 20px 16px 48px; } .full h1 { font-size: 1.25rem; } }
.samples button.on { color: var(--accent); font-weight: 700; }
/* 試し用：写真の見比べ */
.compare { padding: 24px 16px; }
.compare table { border-collapse: collapse; }
.compare th { font-size: .75rem; color: var(--muted); padding: 4px 8px; font-weight: 400; }
.compare td { padding: 6px; }
.compare canvas { width: 140px; height: 140px; border-radius: 10px; background: #d6d9dc; display: block; }

/* 共有ボタン（仮）。X は黒、LINE は緑の丸。ロゴの形と色は変えない */
.share { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.share button { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; background: #fff; color: #444; box-shadow: inset 0 0 0 1px #d6dde2; }
.share button:hover { filter: brightness(.94); }
.share svg { width: 17px; height: 17px; }
.share .sh-x { background: #000; box-shadow: none; }
.share .sh-x svg { width: 15px; height: 15px; }
.share .sh-line { background: #06c755; box-shadow: none; }
.share .sh-line svg { width: 21px; height: 21px; }
.share .sh-threads { background: #000; box-shadow: none; }
.share .sh-threads svg { width: 16px; height: 16px; }
.share .sh-facebook svg { width: 36px; height: 36px; }
.share .sh-facebook { box-shadow: none; overflow: hidden; }
.full .share { margin: 0 0 20px; }

/* 共有の確認画面 */
.share-modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 24, 28, .45); display: grid; place-items: center; padding: 16px; }
.sm-card { width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .2); font-size: .88rem; }
.sm-card p { margin: 0; }
.sm-title { font-weight: 700; font-size: 1rem; margin-bottom: 14px !important; }
.sm-sub { font-size: .75rem; color: var(--muted); margin: 14px 0 6px !important; }
.sm-sub:first-of-type { margin-top: 0 !important; }
.sm-preview { border: 1px solid #dfe6ea; border-radius: 12px; padding: 12px 14px; background: linear-gradient(135deg, #eef7f8, #f4f1fb); line-height: 1.7; }
.pv-media, .pv-label { font-size: .72rem; font-weight: 700; color: var(--accent); margin-bottom: 4px !important; }
.pv-title { font-weight: 700; margin-bottom: 4px !important; }
.pv-lead { font-size: .8rem; color: #444; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sm-hide { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 700; cursor: pointer; }
.sm-hide input { position: absolute; opacity: 0; pointer-events: none; }
.sm-hide .sw { width: 40px; height: 22px; border-radius: 99px; background: #c9d1d6; position: relative; transition: background .15s; flex: none; }
.sm-hide .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.sm-hide input:checked + .sw { background: var(--accent); }
.sm-hide input:checked + .sw::after { left: 21px; }
.sm-hide input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.sm-note { margin-top: 8px !important; font-size: .75rem; line-height: 1.7; color: #555; background: #f6f7f8; border-radius: 8px; padding: 8px 10px; }
.sm-card textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: .85rem; line-height: 1.6; border: 1px solid #d6dde2; border-radius: 8px; padding: 8px 10px; resize: vertical; }
.sm-url { margin-top: 6px !important; font-size: .7rem; color: var(--muted); word-break: break-all; }
.sm-count { margin-top: 4px !important; font-size: .72rem; color: var(--muted); text-align: right; }
.sm-count.over { color: #c62828; font-weight: 700; }
.sm-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.sm-btns button { font: inherit; font-size: .85rem; font-weight: 700; border-radius: 99px; padding: 9px 18px; cursor: pointer; border: 0; }
.sm-cancel { background: #eef1f3; color: #333; }
.sm-go { background: #333; color: #fff; }
.sm-go.sm-x { background: #000; }
.sm-go.sm-line { background: #06c755; }
.sm-go.sm-facebook { background: #0866ff; }

/* 共有された結果の目印 */
.shared-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 10px auto 0; max-width: 680px; padding: 10px 14px; border-radius: 10px; background: #f3f6f8; font-size: .82rem; color: #444; }
.shared-note button { font: inherit; font-size: .8rem; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: 99px; padding: 7px 16px; cursor: pointer; }

/* 結果ページの上の検索窓（本物の入力欄） */
.serp-box { position: relative; }
.serp-box input[name="q"] { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; background: transparent; color: inherit; padding: 0; }
.serp-box .bd-open { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin: -4px -8px -4px 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.serp-box .bd-open:hover { background: #f1f3f4; color: #333; }
.bd-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }
.bd-panel[hidden] { display: none; }
.bd-panel .birth-label { font-size: .8rem; color: var(--muted); margin-right: 2px; }
.bd-panel select { font: inherit; font-size: .9rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.bd-panel .bd-go { margin-left: auto; font: inherit; font-size: .85rem; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: 99px; padding: 7px 18px; cursor: pointer; }
.nosig-head .serp-box { max-width: 520px; }

/* 概要のプロフィールの表。パソコンでは2列、スマホでは1列。長い項目は横いっぱい */
.ai-facts { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 20px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #dbe3e8; font-size: .84rem; line-height: 1.7; }
.ai-facts div { display: flex; gap: 8px; min-width: 0; }
.ai-facts div.wide { grid-column: 1 / -1; }
.ai-facts dt { flex: none; font-weight: 700; color: #4a5560; }
.ai-facts dt::after { content: '：'; }
.ai-facts dd { margin: 0; min-width: 0; }
@media (max-width: 560px) { .ai-facts { grid-template-columns: 1fr; } }
.ai-facts a.map { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.ai-facts a.map::after { content: '\00a0↗'; font-size: .8em; color: var(--muted); }
.serp-foot .credit { display: block; margin-top: 6px; font-size: .9em; }
.serp-foot .credit a { color: inherit; }

/* 住んでいる町の航空写真と、今の天気 */
.ai-aerial { margin: 12px 0 0; }
.ai-aerial[hidden] { display: none; }
/* 概要を埋め尽くさないよう、小さめ（横は最大360px）。タイルは768pxあるので、端が欠けない */
.ai-aerial .tiles { position: relative; height: 130px; max-width: 360px; border-radius: 10px; overflow: hidden; background: #cfd6da; }
.ai-aerial .grid { position: absolute; width: 768px; height: 768px; }
.ai-aerial .grid img { position: absolute; width: 256px; height: 256px; display: block; }
/* 点ではなく「このあたり」を示す半透明の円にする（1軒の家を指さないように） */
.ai-aerial .tiles::after { content: ''; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(229, 57, 53, .18); border: 2px solid rgba(229, 57, 53, .75); box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }
.ai-aerial figcaption { margin-top: 4px; font-size: .7rem; color: var(--muted); }
.ai-facts .weather { margin-left: 8px; font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* 概要の読み上げボタン */
.ai-read { margin-left: 8px; font: inherit; font-size: .64rem; font-weight: 400; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; cursor: pointer; vertical-align: 2px; }

/* 記事の札・会員限定・郵便番号 */
.badge { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: .72rem; padding: 0 6px; border-radius: 3px; margin-right: 6px; }
.lock { display: inline-block; color: #6b5a2e; background: #f5ecd3; font-weight: 700; font-size: .72rem; padding: 0 6px; border-radius: 3px; margin-right: 6px; }
.ai-facts .zip { margin-right: 6px; color: #4a5560; }
.ai-aerial .tiles { cursor: pointer; }

/* 有料会員限定の記事 */
.pw-blur { position: relative; filter: blur(4px); opacity: .55; user-select: none; pointer-events: none; max-height: 7em; overflow: hidden; }
.pw-box { margin: -1.5em 0 24px; position: relative; background: #fff; border: 1px solid #e6dcc0; border-radius: 12px; padding: 18px; text-align: center; box-shadow: 0 -16px 24px #fff; }
.pw-box p { margin: 0 0 8px !important; font-size: .88rem !important; }
.pw-box .pw-title { font-weight: 700; font-size: 1rem !important; }
.pw-join { font: inherit; font-size: .88rem; font-weight: 700; color: #fff; background: #b8862b; border: 0; border-radius: 99px; padding: 10px 24px; cursor: pointer; }

/* テレビのニュースの映像（受信できない） */
.video { display: inline-block; color: #fff; background: #333; font-weight: 700; font-size: .72rem; padding: 0 6px; border-radius: 3px; margin-right: 6px; }
.tv-frame { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: 8px; overflow: hidden; margin: 6px 0 18px; }
.tv-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: .55; }
.tv-msg { position: absolute; left: 0; right: 0; top: 34%; margin: 0 !important; text-align: center; color: #fff; font-size: .85rem !important; line-height: 1.7 !important; text-shadow: 0 1px 3px #000; }
.tv-sub { position: absolute; left: 8%; right: 8%; bottom: 44px; margin: 0 !important; text-align: center; color: #fff; font-size: .95rem !important; line-height: 1.6 !important; text-shadow: 0 0 4px #000, 0 0 4px #000; }
.tv-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #ddd; font-size: .72rem; font-family: ui-monospace, Consolas, monospace; }
.tv-line { flex: 1; height: 3px; background: rgba(255, 255, 255, .3); border-radius: 2px; }
.tv-line i { display: block; height: 100%; width: 0; background: #e53935; border-radius: 2px; }
@media (max-width: 560px) { .tv-sub { font-size: .8rem !important; bottom: 36px; } .tv-msg { font-size: .75rem !important; } }

/* 町のカード：航空写真の右に、町の情報を並べる。スマホでは縦に並べる */
.ai-aerial:not([hidden]) { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 4px 18px; align-items: center; }
.ai-aerial figcaption { grid-column: 1 / -1; }
.place-info p { margin: 0 0 4px !important; font-size: .82rem; line-height: 1.6; }
.place-info .pi-town { font-size: 1.05rem; font-weight: 700; color: #333; }
.place-info .pi-addr, .place-info .pi-sun { color: var(--muted); }
.place-info .pi-weather:empty, .place-info .pi-sun:empty { display: none; }
.place-info .pi-sv { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 700; color: var(--accent); text-decoration: none; }
@media (max-width: 560px) { .ai-aerial:not([hidden]) { grid-template-columns: 1fr; } }

/* 上空からの中継映像 */
.tv-frame.live canvas { opacity: 1; image-rendering: auto; }
.tv-frame.live .tv-msg { top: 12px; left: 14px; right: auto; text-align: left; font-size: .78rem !important; }
.tv-live { display: inline-block; background: #e53935; color: #fff; font-weight: 700; padding: 0 6px; border-radius: 3px; margin-right: 6px; }

/* 町のカード：住んでいる所の見出しと、町名（押すとストリートビュー） */
.place-info .pi-label { font-size: .72rem !important; font-weight: 700; color: #4a5560; margin: 0 !important; }
.place-info a.pi-town { display: inline-block; margin-bottom: 4px; font-size: 1.05rem; font-weight: 700; color: #333; text-decoration: underline dotted; text-underline-offset: 4px; }
.place-info a.pi-town::after { content: '\00a0↗'; font-size: .75em; color: var(--muted); }
.ai-facts div[hidden] { display: none; }
/* 中継映像の後半：当時の空撮は少し色あせて見える */
.tv-frame.live.old canvas { filter: sepia(.35) contrast(1.05); }
.tv-live.old { background: #8d6e3f; }

/* 結果ページの「別の人です」の一文 */
.ai-box .ai-other { margin: 0 0 6px; font-size: .76rem; color: #4a5560; }
/* トップの性別（任意） */
.gender-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: .9rem; }
.gender-row label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
/* 写真は大きめに。性別を選んでいない人は、人の形と性別のボタン */
.ai-photo { width: 132px; height: 132px; }
.ai-face { float: right; width: 132px; margin: 2px 0 8px 14px; text-align: center; }
.ai-face svg { display: block; width: 100%; height: auto; }
.ai-face p { margin: 4px 0 !important; font-size: .7rem; line-height: 1.4; color: #4a5560; }
.ai-face div { display: flex; gap: 4px; }
.ai-face button { flex: 1; padding: 4px 0; border: 1px solid #c4ccd3; border-radius: 6px; background: #fff; font-size: .75rem; cursor: pointer; }
.ai-face button:hover { background: #eef2f5; }
@media (max-width: 600px) { .ai-photo { width: 100px; height: 100px; } .ai-face { width: 100px; margin-left: 10px; } }
/* まわりの人 */
.ai-people { clear: both; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #dbe3e8; font-size: .84rem; }
.ai-people .pp-label { font-weight: 700; color: #4a5560; margin-right: 2px; }
.ai-people button { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 10px; border: 1px solid #c4ccd3; border-radius: 999px; background: #fff; font-size: .84rem; color: var(--link); cursor: pointer; }
.ai-people button small { font-size: .7rem; color: var(--muted); }
.ai-people button:hover { background: #eef2f5; }
.person-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(20, 24, 28, .45); display: grid; place-items: center; padding: 16px; }
.ps-card { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 18px 14px; border-radius: 14px; background: linear-gradient(135deg, #eef7f8, #f4f1fb); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.ps-card .ps-name { margin: 0; font-size: 1.1rem; font-weight: 700; }
.ps-card .ps-name small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.ps-card .ai-facts { grid-template-columns: 1fr; }
.ps-card .ai-note { margin: 10px 0 0; font-size: .72rem; color: var(--muted); }
.ps-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: #555; cursor: pointer; }
.ps-photo { float: right; width: 112px; height: 112px; margin: 18px 0 8px 12px; border-radius: 10px; background: #d6d9dc; }
.ps-card .ai-facts { clear: both; }
/* 結果の下：問いかけと、上の検索窓へ戻るボタン（検索窓と同じ白い丸い形） */
.related { margin-top: 34px; text-align: center; }
.related .peek-q { margin: 0 0 10px; font-size: .9rem; color: var(--muted); }
.related .peek-other { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.related .peek-other svg { width: 16px; height: 16px; color: var(--muted); }
.related .peek-other:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
/* 上の検索窓の、生年月日の欄の性別 */
.bd-gender { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; }
.bd-gender label { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
/* スマホ：記事を1画面目に近づけるため、概要を短くする。
   「ほかにも〜のニュースがあります」は出さず、表は短い項目を2列に並べる（長い項目だけ横いっぱい） */
@media (max-width: 560px) {
  .ai-box .ai-others { display: none; }
  .ai-facts { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 2px 12px; font-size: .8rem; }
  .ai-facts div.long, .ai-facts div.wide { grid-column: 1 / -1; }
  .ai-facts div { gap: 4px; }
}
/* スマホで記事の下に移した町のカード。航空写真が出るまでは、箱ごと隠す */
.town-box { margin-top: 24px; }
.town-box:has(> .ai-aerial[hidden]) { display: none; }
/* 概要の注意書き：スマホでは短い1行にする */
.ai-note .short { display: none; }
@media (max-width: 560px) { .ai-note .long { display: none; } .ai-note .short { display: inline; } }
/* 記事の画像。古い記事は白黒・色あせにする */
.photo.pic { background: #d6d9dc; }
.photo.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.era-old img { filter: grayscale(1) sepia(.3) contrast(1.05); }
.photo.era-mid img { filter: saturate(.65) sepia(.18); }

/* 記事の確認用（自分のパソコンで ?test&check のときだけ） */
.check-list { max-width: 640px; margin: 24px auto; padding: 0 16px; line-height: 1.9; }
.check-list h1 { font-size: 20px; }
.check-list small { color: #70757a; }
.check-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: flex; justify-content: space-between; gap: 8px; padding: 10px 16px; background: #202124; font-size: 14px; }
.check-bar a { color: #fff; text-decoration: none; white-space: nowrap; }
.check-bar { align-items: center; }
.check-bar .cb-mid { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #bdc1c6; }
.check-bar .cb-done { padding: 6px 12px; border: 0; border-radius: 16px; background: #1a73e8; color: #fff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.check-tabs { display: flex; gap: 16px; margin: 8px 0 4px; }
.check-tabs a { color: #1a73e8; text-decoration: none; }
.check-tabs a.on { font-weight: bold; border-bottom: 2px solid #1a73e8; }
.ck { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 10px; font-size: 12px; line-height: 20px; }
.ck-todo { background: #fce8e6; color: #c5221f; }
.ck-again { background: #fef7e0; color: #b06000; }
.ck-done { background: #e6f4ea; color: #137333; }

/* 公開するサイトだけ：試験公開中の表示と、説明のページへのリンク（試作では出ない） */
.soft-note { margin: 0; padding: 10px 16px 0; text-align: center; font-size: .75rem; color: #8a6d00; }
.site-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 10px 16px 24px; font-size: .75rem; }
.site-links a { color: var(--muted); text-decoration: none; }
.site-links a:hover { text-decoration: underline; }
.home .soft-note { padding-top: 14px; }
.home ~ .site-links { background: #f4f4f2; padding-top: 0; }

/* きょう：向こうのあなたの、今日1日 */
.today { padding: 18px 0 8px; }
.today h2 { font-size: 1.1rem; margin: 0 0 14px; }
.today-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.today-list li { position: relative; padding: 0 0 18px 18px; }
.today-list li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.today-list li.later::before { background: var(--line); }
.today-list time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.today-list p { margin: 2px 0 0; line-height: 1.7; }
.today-list li.later p { color: var(--muted); font-size: .9rem; }
.today-note { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.today-teaser { display: block; margin: 12px 0 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: #fbfbf8; }
.today-teaser:hover { border-color: var(--accent); }
.today-teaser .tt-label { display: block; font-size: .75rem; color: var(--accent); font-weight: 600; }
.today-teaser .tt-text { display: block; font-size: .9rem; line-height: 1.6; }

/* 年表 */
.timeline { padding: 18px 0 8px; }
.timeline h2 { font-size: 1.1rem; margin: 0 0 14px; }
.tl-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.tl-list li { position: relative; padding: 0 0 16px 18px; }
.tl-list li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tl-list li.tl-news::before { background: var(--accent); width: 10px; height: 10px; left: -6px; }
.tl-list li.tl-now::before { background: var(--ink); }
.tl-when { display: block; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-list p { margin: 2px 0 0; line-height: 1.6; }
.tl-list a { display: block; margin-top: 2px; color: var(--link); line-height: 1.6; font-weight: 600; }
