/* ==========================================================
   KGF 公式サイト
   方針: 罫線と余白で区切る / 左寄せ・非対称 / 装飾は最小限
   ========================================================== */

:root {
  --bg: #f6f4ef;
  --text: #222;
  --muted: #5a5750;
  --accent: #1d6b5e;
  --rule: #d8d4ca;
  --placeholder: #e8e4da;

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --measure: 38em;           /* 本文 1行あたり約38字 */
  --section-space: clamp(64px, 9vw, 120px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body { font-size: 17px; }
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap { white-space: nowrap; }

/* ---------- ヘッダー ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 16px 14px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
}
.logo__kind {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.logo__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px clamp(10px, 3vw, 16px);
}
@media (min-width: 768px) {
  .site-nav ul { gap: 4px 24px; }
}
.site-nav a {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding-block: 4px;
}
.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- メインビジュアル ---------- */

.hero__visual {
  background: var(--placeholder);
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero__visual {
    aspect-ratio: auto;
    height: min(60vh, 600px);
    max-height: none;
  }
}

.hero__visual picture,
.hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__visual img { object-fit: cover; }

/* 画像未配置のあいだは背景色だけを見せる */
img.is-missing { visibility: hidden; }

.hero__text {
  display: grid;
  gap: 24px;
  padding-block: clamp(40px, 6vw, 72px) var(--section-space);
}

.hero__catch {
  font-family: var(--serif);
  font-weight: 600;
  font-size: min(6.2vw, 26px);
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.hero__lead {
  max-width: var(--measure);
  color: var(--text);
}
.hero__since {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .site-nav a { font-size: 14px; }
  .hero__catch { font-size: clamp(28px, 3.6vw, 44px); }
}

@media (min-width: 960px) {
  .hero__text {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
    gap: 48px;
  }
  .hero__lead {
    padding-bottom: 0.6em;
    border-left: 1px solid var(--accent);
    padding-left: 24px;
  }
}

/* ---------- セクション共通 ---------- */

.section__grid {
  display: grid;
  gap: 28px;
  padding-block: var(--section-space);
  border-top: 1px solid var(--rule);
}

/* 最初のセクションの上はヒーロー本文との間に罫線を引く */

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.section__lede {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.section__note {
  max-width: var(--measure);
  margin-bottom: 32px;
}

.prose p { max-width: var(--measure); }
.prose p + p { margin-top: 1.4em; }

.small {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

@media (min-width: 960px) {
  .section__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 48px;
  }
  .section__title,
  .section__side { grid-column: 1; }
  .section__body { grid-column: 2; }
  .section__lede { margin-top: 24px; max-width: 17em; }
}

/* ---------- 写真枠 ---------- */

.photo {
  background: var(--placeholder);
  overflow: hidden;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--wide {
  aspect-ratio: 16 / 9;
  margin-top: 24px;
  margin-inline: calc(var(--gutter) * -1);   /* スマホでは端まで */
}

@media (min-width: 960px) {
  /* 本文列から始まり、右端まで抜ける */
  .photo--wide {
    grid-column: 2;
    margin-top: 40px;
    margin-left: 0;
    margin-right: calc(var(--gutter) * -1);
    aspect-ratio: 16 / 8;
  }
}

.photo--side {
  aspect-ratio: 4 / 5;
  width: 62%;
  max-width: 280px;
  margin-top: 28px;
}

@media (min-width: 960px) {
  .photo--side {
    width: 78%;
    max-width: 300px;
    margin-top: 48px;
  }
}

/* ---------- 取り組みリスト ---------- */

.plan-list {
  border-bottom: 1px solid var(--rule);
}
.plan-list li {
  padding-block: 24px 26px;
  border-top: 1px solid var(--rule);
}
.plan-list h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.plan-list p {
  max-width: var(--measure);
  color: var(--text);
}

@media (min-width: 768px) {
  .plan-list h3 { font-size: 18px; }
}

/* ---------- 四つの根（見出し＋説明の2カラム） ---------- */

.roots__row {
  display: grid;
  gap: 4px;
  padding-block: 22px 24px;
  border-top: 1px solid var(--rule);
}
.roots__row:last-child { border-bottom: 1px solid var(--rule); }

.roots dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.roots dd { max-width: var(--measure); }

@media (min-width: 768px) {
  .roots__row {
    grid-template-columns: 11em minmax(0, 1fr);
    column-gap: 32px;
  }
  .roots dt { font-size: 17px; }
}

/* ---------- 団体概要 ---------- */

.profile__row {
  display: grid;
  gap: 2px;
  padding-block: 18px 20px;
  border-top: 1px solid var(--rule);
}
.profile__row:last-child { border-bottom: 1px solid var(--rule); }

.profile dt {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.profile .person {
  display: block;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.profile .role {
  display: block;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

@media (min-width: 768px) {
  .profile__row {
    grid-template-columns: 9em minmax(0, 1fr);
    column-gap: 32px;
  }
  .profile dt { padding-top: 0.2em; }
}

/* ---------- お問い合わせ ---------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px !important;
}

.button {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 2px;
}
.button:hover {
  background: #17594e;
  text-decoration: none;
}

.contact__address {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- フッター ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 32px 40px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer__name {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.06em;
}
.site-footer small { font-size: inherit; }
