/* ============================================================
   岡山県立大学ローターアクトクラブ — テンプレートページ
   1 枚もののシンプルな構成。色は 1 つのアクセントと墨色の階調だけで組む。
   ============================================================ */

:root {
  --bg:       #fbfaf7;
  --paper:    #ffffff;
  --ink:      #23211e;
  --ink-dim:  #5b5750;   /* --bg 上で 6.9:1 */
  --ink-faint:#6f6a62;   /* --bg 上で 5.1:1 */
  --accent:   #a3123f;   /* --bg 上で 7.4:1。リンクと見出しの英字に使う */
  --line:     rgba(35, 33, 30, 0.12);
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic",
          "Noto Sans JP", Meiryo, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* 本文は文節の途中で折り返さない。折り返せるのは句読点の後と <wbr> だけ */
.hero__lede, .body, .project__text { word-break: keep-all; text-wrap: pretty; }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top__brand { font-weight: 700; font-size: 15px; letter-spacing: 0.06em; }
.top__links { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 13px; color: var(--ink-dim); }
.top__links a { transition: color 0.25s; }
.top__links a:hover { color: var(--accent); }
@media (max-width: 560px) { .top__links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 14vh, 140px) 0 clamp(56px, 10vh, 100px); border-bottom: 1px solid var(--line); }
.hero__en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.hero__title {
  margin-top: 18px;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.04em;
}
.hero__lede { margin-top: 24px; max-width: 30rem; font-size: clamp(15px, 1.4vw, 17px); color: var(--ink-dim); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 10vh, 96px) 0; border-bottom: 1px solid var(--line); }
.section__title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 28px;
}
.section__title span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.body { max-width: 34rem; font-size: clamp(15px, 1.3vw, 16px); color: var(--ink-dim); }
.body + .body { margin-top: 14px; }
/* 未確定の文章。確定したら HTML から .is-draft を外す */
.is-draft { color: var(--ink-faint); }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.project {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px 24px;
}
.project__tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-faint); }
.project__name { margin-top: 6px; font-size: 20px; font-weight: 900; line-height: 1.4; }
.project__text { margin-top: 12px; font-size: 14.5px; color: var(--ink-dim); flex: 1; }
.project__link {
  margin-top: 22px;
  align-self: flex-start;
  display: inline-flex;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 2px solid rgba(163, 18, 63, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.project__link:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ---------- Footer ---------- */
.foot { padding: 32px 0; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.06em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
