/* shibno.com — 黒地に細い白線。12音の円と、目次だけ。 */
:root{
  --bg:#000;
  --fg:#f2f2f0;
  --sub:#8d8d8a;
  --line:rgba(242,242,240,.28);
  --line-strong:rgba(242,242,240,.7);
  --display:"Cormorant Garamond", "Times New Roman", serif;
  --text:"Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  color-scheme: dark;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--text);
  font-weight:300;
  font-size:16px;
  line-height:1.9;
  letter-spacing:.04em;
  padding-left:max(24px, env(safe-area-inset-left, 0px));
  padding-right:max(24px, env(safe-area-inset-right, 0px));
}
a{color:inherit; text-decoration:none}
:focus-visible{outline:1px solid var(--fg); outline-offset:6px}

.frame{
  max-width:1040px;
  margin:0 auto;
  min-height:100vh;
  display:flex; flex-direction:column;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
}

/* ---------- 上の帯 ---------- */
.top{
  display:flex; justify-content:space-between; align-items:baseline;
  padding:22px 28px;
  border-bottom:1px solid var(--line);
  font-size:13px; color:var(--sub);
}
.top .mark{font-family:var(--display); font-size:22px; letter-spacing:.02em; color:var(--fg)}
.top nav{display:flex; gap:28px}
.top nav a:hover, .top nav a[aria-current="page"]{color:var(--fg)}

/* ---------- トップ ---------- */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  border-bottom:1px solid var(--line);
}
.hero-text{
  padding:72px 28px 56px;
  display:flex; flex-direction:column; justify-content:flex-end;
  border-right:1px solid var(--line);
}
.hero h1{
  margin:0;
  font-family:var(--display);
  font-weight:300;
  font-style:italic;
  font-size:clamp(72px, 13vw, 148px);
  line-height:.9;
  letter-spacing:-.01em;
}
.hero-text p{margin:28px 0 0; color:var(--sub); font-size:14px; max-width:24em}

.clock{padding:40px 28px; display:grid; place-items:center}
.clock svg{width:100%; max-width:420px; height:auto; overflow:visible}
.clock .ring{fill:none; stroke:var(--line-strong); stroke-width:.6}
.clock .chord{stroke:var(--fg); stroke-width:.6; fill:none}
.clock .axis{stroke:var(--sub); stroke-width:.5; stroke-dasharray:2 4}
.clock .dot{fill:var(--bg); stroke:var(--fg); stroke-width:.8}
.clock text{fill:var(--sub); font-family:var(--display); font-size:11px; text-anchor:middle; dominant-baseline:middle}
.clock figcaption{margin-top:18px; font-size:12px; color:var(--sub); text-align:center}
@media (prefers-reduced-motion: no-preference){
  .clock .chord{stroke-dasharray:400; stroke-dashoffset:400; animation:draw 1.6s ease-out forwards}
  .clock .chord:nth-of-type(2){animation-delay:.12s}
  .clock .chord:nth-of-type(3){animation-delay:.24s}
  .clock .chord:nth-of-type(4){animation-delay:.36s}
  .clock .chord:nth-of-type(5){animation-delay:.48s}
  .clock .chord:nth-of-type(6){animation-delay:.6s}
}
@keyframes draw{to{stroke-dashoffset:0}}

/* ---------- 目次 ---------- */
.index{list-style:none; margin:0; padding:0}
.index li{border-bottom:1px solid var(--line)}
.index a{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:baseline; gap:24px;
  padding:30px 28px;
  transition:background-color .2s ease;
}
.index a:hover{background:rgba(242,242,240,.04)}
.index .name{font-size:clamp(22px, 3.4vw, 30px); font-weight:400}
.index .note{font-size:13px; color:var(--sub)}
.index .desc{grid-column:1 / -1; margin:-14px 0 0; font-size:14px; color:var(--sub)}

/* ---------- 中のページ ---------- */
.page{padding:64px 28px 80px; border-bottom:1px solid var(--line)}
.page h1{
  margin:0 0 10px;
  font-family:var(--display); font-weight:300; font-style:italic;
  font-size:clamp(52px, 9vw, 96px); line-height:1;
}
.page .lead{margin:0 0 48px; color:var(--sub); font-size:14px}
.page .index{border-top:1px solid var(--line); margin:0 -28px}
.empty{
  border-top:1px solid var(--line);
  margin:0 -28px; padding:30px 28px 0;
  color:var(--sub); font-size:14px;
}
.empty p{margin:0}
.empty p + p{margin-top:6px}
.empty a{color:var(--fg); border-bottom:1px solid var(--line-strong)}

/* ---------- 足元 ---------- */
.foot{
  margin-top:auto;
  padding:22px 28px;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-size:12px; color:var(--sub);
}
.foot a{border-bottom:1px solid var(--line)}
.foot a:hover{color:var(--fg)}

@media (prefers-reduced-motion: reduce){ .index a{transition:none} }

/* ---------- スマホ ---------- */
@media (max-width: 760px){
  body{padding-left:max(16px, env(safe-area-inset-left, 0px)); padding-right:max(16px, env(safe-area-inset-right, 0px))}
  .top, .hero-text, .clock, .index a, .page, .foot{padding-left:20px; padding-right:20px}
  .page .index, .empty{margin-left:-20px; margin-right:-20px}
  .empty{padding-left:20px; padding-right:20px}
  .hero{grid-template-columns:1fr}
  .hero-text{border-right:0; border-bottom:1px solid var(--line); padding-top:56px; padding-bottom:40px}
  .top nav{gap:18px}
}
