/* Home（試作 top-prototype.html から） */
html.home,html.home body{height:100%;margin:0}
html.home{scroll-padding-top:env(safe-area-inset-top,0px)}
html.home body{overflow:hidden;line-height:normal}
html.home header::before{display:none}
html.home header a{color:var(--ink);font-size:1rem;letter-spacing:.08em}
html.home header>a{letter-spacing:.3em}
html.home nav a{color:var(--mute);font-size:.875rem}
html.home button:focus-visible{outline:1px solid var(--ink);outline-offset:3px}
#stage{position:fixed;inset:0;overflow:hidden}
#blobs{position:fixed;inset:0;width:100%;height:100%;z-index:0}
.hero,.tag{pointer-events:none}
/* ロゴの線と重なっても読めるよう、小さい文字のまわりを背景色でぼかす */
.hero .jp,.hero .hint{text-shadow:0 0 .4em var(--paper),0 0 .4em var(--paper)}
.hero .hint{margin:2.25rem 0 0;font-size:.75rem;letter-spacing:.4em;color:var(--mute);transition:opacity 1.2s}
.hero .hint.off{opacity:0}
/* 指で触る画面（スマホ・タブレット）では「tap」、マウスでは「click」 */
.hint .ht{display:none}
@media (hover:none) and (pointer:coarse){.hint .hc{display:none}.hint .ht{display:inline}}
.word{position:absolute;writing-mode:vertical-rl;font-size:1.125rem;letter-spacing:.3em;color:var(--ink);pointer-events:none;z-index:3;white-space:nowrap}
.hero{position:fixed;right:clamp(1.5rem,6vw,5rem);top:24%;text-align:right;z-index:4}
.hero,header>a{font-family:"IBM Plex Sans","Noto Sans JP",sans-serif}
.hero h1{margin:0;font-weight:300;color:var(--title);font-size:clamp(2rem,5vw,3.5rem);letter-spacing:.08em;line-height:1.1}
.hero .role{margin:0 0 .75rem;font-size:1rem;letter-spacing:.4em;color:var(--mute)}
.hero .jp{margin:1rem 0 0;font-family:"Noto Sans JP",sans-serif;font-size:.875rem;letter-spacing:.35em;color:var(--mute)}
/* 最新のお知らせ（左下） */
.tag{position:fixed;left:1.5rem;bottom:calc(1.25rem + env(safe-area-inset-bottom,0px));margin:0;font-size:.875rem;color:var(--mute);letter-spacing:.12em;line-height:1.7;z-index:4;max-width:min(60vw,26rem)}
@media (max-width:600px){.tag{max-width:calc(100vw - 2.8rem)}}
.tag a{pointer-events:auto;color:var(--mute);transition:color .4s}
.tag a:hover{color:var(--ink)}
.tag .nd{display:block;font-size:.75rem;letter-spacing:.3em}
.tag .nt{display:block;text-wrap:balance;word-break:auto-phrase}
/* 東京の今日の日の出・日の入り（8桁を右へ 90° 回して縦に）と、今の太陽の位置の弧（右下。src/js/sun.js） */
.sun{position:fixed;right:1.5rem;bottom:calc(1.25rem + env(safe-area-inset-bottom,0px));margin:0;z-index:4;pointer-events:none;display:flex;align-items:flex-end;gap:.75rem;opacity:0;transition:opacity 1.2s ease}
.sun.on{opacity:1}
.sun .num{writing-mode:vertical-rl;font-size:.75rem;letter-spacing:.4em;color:var(--mute);line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}
.sun svg{width:6rem;height:auto;overflow:visible}
.sun path{fill:none;stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}
.sun .low{stroke-dasharray:1 3}
.sun .dot{fill:var(--title);transition:opacity 1.2s ease}
.sun.night .dot{opacity:.45}
/* スマホ：左下の News と重ならないよう、その上に置く */
@media (max-width:600px){.sun{bottom:calc(7rem + env(safe-area-inset-bottom,0px))}}
/* スマホ：中央のロゴ・名前・右下を、画面に対して一回り小さく。
   名前の段はヘッダーのすぐ下（画面の高さの 15% より上には上げない）、ロゴは少し下げて、うねっても「— click」に掛からないように */
@media (max-width:600px){
  #blobs{transform:translateY(2vh) scale(.82)}
  .hero{top:max(calc(env(safe-area-inset-top,0px) + var(--header) + 2rem),15%)}
  .hero h1{font-size:1.75rem}
  .hero .role{font-size:.875rem;margin-bottom:.5rem}
  .hero .jp{font-size:.75rem;margin-top:.75rem}
  .hero .hint{margin-top:1.75rem}
  .sun{gap:.5rem}
  .sun svg{width:4.5rem}
  .sun .num{font-size:.6875rem;letter-spacing:.3em}
}
