@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;600;800&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

:root {
  --primary: #16323f;
  --primary-soft: #23495a;
  --accent: #e0812c;
  /* 小さめテキスト用のアクセント。--surface / --surface-alt 上で WCAG AA (4.5:1) を満たす */
  --accent-text: #9a520d;
  --surface: #f7f3ea;
  --surface-alt: #eee6d3;
  --text: #1c1c1a;
  --text-soft: #4c4c47;
  --border: #d8cdb3;
  --max-width: 960px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", sans-serif;
  line-height: 1.75;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: "Shippori Mincho", serif;
  color: var(--primary);
  margin: 0;
}

a {
  color: var(--primary-soft);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus {
  transform: none;
}

/* header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

header .wrap {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  font-family: "Shippori Mincho", serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

header nav a {
  display: inline-block;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--text-soft);
  border-radius: 4px;
}

header nav a:hover,
header nav a[aria-current] {
  color: var(--primary);
  background: var(--surface-alt);
}

/* アンカー移動時に固定ヘッダーへ隠れないようにする */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* section heading system */
.section-head {
  margin-bottom: 32px;
}

.section-head .label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--accent-text);
  font-weight: 700;
}

.section-head h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-top: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  background: var(--accent);
}

/* hero */
.hero {
  padding: 88px 0 72px;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--accent-text);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.6rem, 6.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.45;
  max-width: 22ch;
}

/* 文節単位で改行させ、小書き文字などでの不自然な折り返しを防ぐ */
.hero h1 span {
  display: inline-block;
}

.hero p {
  margin-top: 28px;
  max-width: 46ch;
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* about */
.about {
  padding: 40px 0 96px;
}

.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.about .section-head {
  margin-bottom: 0;
}

.about .body {
  color: var(--text-soft);
  max-width: 60ch;
}

.about .body p {
  margin: 0;
}

.about .body p + p {
  margin-top: 1em;
}

/* purpose list */
.purpose {
  padding: 72px 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.purpose .sub {
  color: var(--text-soft);
  margin: -16px 0 40px;
}

.purpose ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: item;
}

.purpose li {
  counter-increment: item;
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.purpose li:last-child {
  border-bottom: none;
}

.purpose li::before {
  content: counter(item, decimal-leading-zero);
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  color: var(--accent-text);
  font-size: 1.05rem;
  flex-shrink: 0;
  width: 2.4em;
}

.purpose li span {
  color: var(--text-soft);
}

/* board */
.board {
  padding: 88px 0 64px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  color: var(--text-soft);
  font-weight: 500;
  width: 10em;
  vertical-align: top;
}

/* profile */
.profile {
  padding: 48px 0 96px;
}

.profile dl {
  margin: 0;
}

.profile .row {
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: 16px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
}

.profile dt {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.profile dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.profile dd a {
  color: var(--primary-soft);
  text-underline-offset: 3px;
}

/* footer */
footer {
  background: var(--primary);
  color: #d9dcd6;
  padding: 48px 0 36px;
  font-size: 0.85rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(217, 220, 214, 0.25);
}

.footer-logo {
  font-family: "Shippori Mincho", serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #f2efe6;
}

.footer-logo span {
  color: var(--accent);
}

footer nav ul {
  gap: 4px 12px;
}

footer nav a {
  display: inline-block;
  padding: 4px 6px;
  color: #d9dcd6;
  text-decoration: none;
}

footer nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #b8bfb9;
}

/* responsive */
@media (max-width: 720px) {
  .about .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  th {
    width: 7em;
  }
}
