@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

:root{
  --ink:#000000;
  --paper:#ffffff;
  --line:#000000;
  --hair:#d9d9d9;
  --grey:#575757;
  --tint:#f4f4f4;
  --pad:clamp(1rem,4vw,2.5rem);
  --wrap:1180px;
}

*,*::before,*::after{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  scroll-padding-top:7.5rem;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Noto Sans JP','Hiragino Sans','Yu Gothic',system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  font-weight:400;
  letter-spacing:.01em;
  overflow-x:hidden;
}

h1,h2,h3,h4{line-height:1.28;letter-spacing:-.015em;margin:0 0 .6em;font-weight:700}
p{margin:0 0 1.1em}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
address{font-style:normal}

/* 顶部细条 */
.strip{
  display:flex;
  align-items:center;
  gap:.6rem;
  background:var(--ink);
  color:var(--paper);
  padding:.55rem var(--pad);
  font-size:14px;
  line-height:1.5;
  letter-spacing:.16em;
}
.strip p{margin:0}
.strip-dot{
  width:8px;height:8px;flex:none;
  background:var(--paper);
  border-radius:1px;
  transform:rotate(24deg);
}

/* 顶栏与胶囊导航 */
.masthead{
  position:sticky;
  top:0;
  z-index:30;
  display:flex;
  align-items:center;
  gap:.7rem;
  padding:.6rem var(--pad);
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.mark{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;height:44px;
  border:1px solid var(--line);
  border-radius:4px;
  text-decoration:none;
  color:var(--ink);
  transition:background .22s ease,color .22s ease;
}
.mark svg{width:22px;height:22px}
.mark:hover,.mark:focus-visible{background:var(--ink);color:var(--paper)}

.anchors{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  gap:.4rem;
  overflow-x:auto;
  padding-block:.2rem;
  scrollbar-width:none;
}
.anchors::-webkit-scrollbar{display:none}
.pill{
  flex:none;
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:.4rem 1rem;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:16px;
  line-height:1.4;
  text-decoration:none;
  white-space:nowrap;
  transition:background .22s ease,color .22s ease;
}
.pill:hover,.pill:focus-visible{background:var(--ink);color:var(--paper)}

/* 主网格 */
main{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 var(--pad) 3.5rem;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:2.5rem;
  align-items:start;
}

.sheet{min-width:0}

/* 首屏 */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1.5rem;
  align-items:center;
  min-height:45vh;
  padding:1.75rem 0 2.25rem;
  border-bottom:1px solid var(--line);
}
.hero h1{
  font-size:clamp(1.9rem,5.4vw,3.3rem);
  margin-bottom:.45em;
  letter-spacing:-.03em;
}
.hero-lead{
  margin:0;
  max-width:46ch;
  font-size:1.06rem;
  color:#111;
}
.hero-art{
  width:170px;
  border:1px solid var(--line);
  border-radius:4px;
}

/* 正文区块 */
.sheet > article{
  padding:2.25rem 0;
  border-bottom:1px solid var(--hair);
  scroll-margin-top:7.5rem;
}
.sheet > article:last-child{border-bottom:0}
.sheet > article:target{background:var(--tint)}

.sheet h2{font-size:clamp(1.4rem,3.2vw,2.05rem)}
.sheet h2 + .subtitle,
.sheet .subtitle{color:var(--grey);font-size:1rem;margin:-.35em 0 1.2em}
.sheet h3{
  font-size:1.18rem;
  margin-top:2rem;
  padding-top:1rem;
  border-top:1px solid var(--hair);
}
.sheet p{max-width:70ch}
.sheet ul,.sheet ol{padding-left:1.35rem}
.sheet li{margin-bottom:.5rem}
.sheet a{
  text-decoration:underline;
  text-underline-offset:.2em;
  text-decoration-thickness:1px;
  transition:background .22s ease,color .22s ease;
}
.sheet a:hover{background:var(--ink);color:var(--paper);text-decoration:none}
.sheet figure{margin:1.6rem 0}
.sheet figcaption{font-size:1rem;color:var(--grey);margin-top:.5rem}
.sheet img{border:1px solid var(--line);border-radius:4px}
.sheet blockquote{
  margin:1.6rem 0;
  padding:.2rem 0 .2rem 1.2rem;
  border-left:3px solid var(--line);
  color:#111;
}
.sheet table{width:100%;border-collapse:collapse;font-size:1rem;margin:1.4rem 0}
.sheet th,.sheet td{border:1px solid var(--line);padding:.5rem .65rem;text-align:left}
.sheet hr{border:0;border-top:1px solid var(--line);margin:2rem 0}
.sheet code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.95em;
  background:var(--tint);
  padding:.1em .32em;
  border-radius:4px;
}

/* 侧栏 */
.rail{
  align-self:start;
  padding-top:1.25rem;
  border-top:1px solid var(--line);
}
.rail h2{font-size:1.05rem;letter-spacing:.18em;margin-bottom:.3em}
.rail .subtitle{margin:0 0 1rem;color:var(--grey);font-size:1rem}
.rail-list{list-style:none;margin:0;padding:0}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.55rem 0;
  border-bottom:1px solid var(--hair);
  text-decoration:none;
  transition:padding-left .22s ease,background .22s ease;
}
.rail-list a:hover{padding-left:.55rem;background:var(--tint)}

/* 页脚 */
.site-foot{
  margin-top:2rem;
  background:var(--ink);
  color:var(--paper);
  padding:2.75rem var(--pad) 1.5rem;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1.9rem;
}
.foot-cta{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding-bottom:2rem;
  border-bottom:1px solid rgba(255,255,255,.35);
}
.foot-cta .subtitle{
  margin:0;
  color:var(--paper);
  font-size:clamp(1.15rem,3vw,1.7rem);
  line-height:1.35;
  letter-spacing:-.015em;
}
.cta-btn{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.45rem 1.5rem;
  background:var(--paper);
  color:var(--ink);
  border-radius:999px;
  font-size:16px;
  text-decoration:none;
  transition:transform .22s ease,background .22s ease;
}
.cta-btn:hover,.cta-btn:focus-visible{transform:translateY(-2px)}

.foot-brand address{font-size:1.05rem;font-weight:500;letter-spacing:.02em}

.foot-nav dl{margin:0;display:grid;grid-template-columns:1fr}
.foot-nav dt,.foot-nav dd{margin:0}
.foot-nav dt a,.foot-nav dd a,
.foot-links a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:.5rem 0;
  border-bottom:1px solid rgba(255,255,255,.24);
  text-decoration:none;
  transition:opacity .22s ease;
}
.foot-nav dt a{font-weight:500}
.foot-nav a:hover,.foot-links a:hover{opacity:.62}
.foot-links ul{list-style:none;margin:0;padding:0}

.foot-art{display:flex;align-items:flex-start;justify-content:flex-start}
.foot-art svg{width:44px;height:44px;color:rgba(255,255,255,.7)}

.copy{
  grid-column:1/-1;
  margin:0;
  padding-top:1.25rem;
  border-top:1px solid rgba(255,255,255,.35);
  font-size:1rem;
  line-height:1.6;
  letter-spacing:.06em;
  color:#e8e8e8;
}

/* 断点 */
@media (min-width:640px){
  .hero{grid-template-columns:minmax(0,1fr) 170px}
  .site-foot{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foot-cta{grid-column:1/-1}
  .copy{grid-column:1/-1}
}

@media (min-width:960px){
  main{
    grid-template-columns:minmax(0,1fr) 268px;
    gap:3.5rem;
    padding-top:1.5rem;
  }
  .rail{
    position:sticky;
    top:6.5rem;
    border-top:0;
    border-left:1px solid var(--line);
    padding:0 0 0 1.25rem;
  }
  .hero{padding-top:2.25rem}
}

@media (min-width:1024px){
  .site-foot{grid-template-columns:1.4fr 1fr 1fr .7fr}
  .foot-cta{grid-column:1/-1}
  .copy{grid-column:1/-1}
}

/* 动效 */
@media (prefers-reduced-motion: no-preference){
  @keyframes rise{
    from{opacity:0;transform:translateY(12px)}
    to{opacity:1;transform:none}
  }
  .sheet > article{animation:rise .5s cubic-bezier(.2,.7,.2,1) both}
  .sheet > article:nth-child(2){animation-delay:.05s}
  .sheet > article:nth-child(3){animation-delay:.1s}
  .sheet > article:nth-child(4){animation-delay:.15s}
  .sheet > article:nth-child(5){animation-delay:.2s}
  .sheet > article:nth-child(6){animation-delay:.25s}
  .sheet > article:nth-child(7){animation-delay:.3s}
  .sheet > article:nth-child(8){animation-delay:.35s}
  .rail-list li{animation:rise .45s cubic-bezier(.2,.7,.2,1) both}
  .rail-list li:nth-child(2){animation-delay:.06s}
  .rail-list li:nth-child(3){animation-delay:.12s}
  .rail-list li:nth-child(4){animation-delay:.18s}
  .rail-list li:nth-child(5){animation-delay:.24s}
  .rail-list li:nth-child(6){animation-delay:.3s}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms !important;animation-duration:.01ms !important}
}

button[aria-expanded]{min-width:44px;min-height:44px}
