/* =========================================================================
   名古屋大学ファンクラブ — v0（最小公開版）
   v1のサブセット。Masthead / News / Contact のみ。
   ========================================================================= */

:root {
  --paper: #f1ecdd;
  --ink: #1a1a12;
  --ink-mute: #4a4a3e;
  --ink-faint: #7a7a6e;
  --rule: #b8b09a;
  --green-900: #0f3d2e;
  --ember: #c95a25;
  --f-serif-jp:
    "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --f-serif-en: "Cormorant Garamond", "Times New Roman", Times, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --col-max: 820px;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-serif-jp);
  font-size: 16px;
  line-height: 1.85;
  text-size-adjust: 100%;
}

body {
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--green-900);
  color: var(--paper);
}

main {
  flex: 1;
}

/* =========================================================================
   Site header — sticky · transparent · 紙地に溶ける
   ========================================================================= */

.siteheader {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.siteheader.is-scrolled {
  border-bottom-color: var(--rule);
}

.siteheader__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.siteheader__mark {
  width: 28px;
  height: auto;
  mix-blend-mode: multiply;
  background: transparent;
}

.siteheader__name {
  font-family: var(--f-serif-jp);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.siteheader__nav {
  display: flex;
  gap: clamp(14px, 2vw, 22px);
}

.siteheader__nav a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.siteheader__nav a:hover {
  color: var(--ember);
  border-bottom-color: var(--ember);
}

@media (max-width: 480px) {
  .siteheader__name {
    display: none;
  }
}

/* スクロール先がヘッダーに隠れないように */

:target {
  scroll-margin-top: 72px;
}

#top,
#about,
#news,
#contact {
  scroll-margin-top: 72px;
}

/* ---- A11y ---- */

.skip {
  position: absolute;
  left: -10000px;
  top: auto;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 12px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
}

/* ---- Tokens ---- */

.micro {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.ember {
  color: var(--ember);
}

.dot {
  color: var(--ink-faint);
  margin: 0 4px;
}

.rule {
  height: 1px;
  background: var(--ink);
  max-width: var(--col-max);
  margin: 0 auto;
}

/* =========================================================================
   §01 · Masthead
   ========================================================================= */

.masthead {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: clamp(60px, 12vw, 140px) var(--gutter) clamp(36px, 6vw, 64px);
  text-align: center;
}

.masthead__logo {
  width: clamp(180px, 26vw, 280px);
  height: auto;
  margin: 0 auto clamp(20px, 3vw, 28px);
  mix-blend-mode: multiply;
  background: transparent;
}

.masthead__h1 {
  margin: 0;
  font-family: var(--f-serif-jp);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--ink);
}

.masthead__sub {
  margin: 10px 0 0;
  font-family: var(--f-serif-en);
  font-style: italic;
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.masthead__rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  max-width: 120px;
  margin: clamp(22px, 3vw, 32px) auto 0;
}

/* =========================================================================
   §02 · About
   ========================================================================= */

.about {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
}

.about__head {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.about__h {
  margin: 8px 0 0;
  font-family: var(--f-serif-jp);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.about__body p {
  margin: 0 0 1em;
  font-size: clamp(14.5px, 1.3vw, 16px);
  line-height: 2;
}

.about__facts {
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.about__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.about__row dt {
  margin: 0;
  align-self: baseline;
  padding-top: 4px;
}

.about__row dd {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 15.5px);
}

.about__note {
  font-family: var(--f-serif-jp);
  font-size: 0.86em;
  color: var(--ink-mute);
  margin-left: 6px;
}

.x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  margin-left: 8px;
  vertical-align: -0.22em;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.2s;
}

.x-link:hover {
  color: var(--ink);
}

.x-icon {
  width: 0.95em;
  height: 0.95em;
  fill: currentColor;
}

@media (max-width: 540px) {
  .about__row {
    grid-template-columns: 76px 1fr;
    gap: 10px;
  }
}

/* =========================================================================
   §03 · News
   ========================================================================= */

.news {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
}

.news__head {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.news__h {
  margin: 8px 0 0;
  font-family: var(--f-serif-jp);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.toc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.toc__row {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.toc__date {
  white-space: nowrap;
}

.toc__title {
  font-size: clamp(14.5px, 1.3vw, 16.5px);
}

@media (max-width: 540px) {
  .toc__row {
    grid-template-columns: max-content 1fr;
  }
}

/* =========================================================================
   §04 · Contact
   ========================================================================= */

.contact {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
  text-align: left;
}

.contact__h {
  margin: 12px 0 18px;
  font-family: var(--f-serif-jp);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.contact__lead {
  margin: 0 0 24px;
  font-size: clamp(14px, 1.2vw, 15.5px);
  color: var(--ink-mute);
  line-height: 1.95;
}

.contact__cta {
  margin: 0;
}

.contact__mail {
  margin: 0;
  font-family: var(--f-serif-en);
  font-size: clamp(20px, 2.6vw, 28px);
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  font-family: var(--f-serif-jp);
  font-size: clamp(14px, 1.2vw, 15.5px);
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.btn:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--paper);
}

.link {
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.link:hover {
  color: var(--ember);
  border-bottom-color: var(--ember);
}

/* =========================================================================
   Footer
   ========================================================================= */

.colophon {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) var(--gutter) clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--rule);
  text-align: center;
}

.colophon .micro {
  color: var(--ink-faint);
}

/* ---- Print ---- */

@media print {
  .skip {
    display: none;
  }
  body {
    background: white;
  }
}
