/* ===== Design tokens (from Claude Design: 京都研究所ホームページデザイン案) ===== */
:root {
  --bg: #eee7d9;
  --white: #ffffff;
  --nav-bg: #fbfbfb;
  --section-light: #f5f3ee;
  --card-bg: #faf8f4;
  --program-bg: #f3f5eeba;
  --contact-bg: #abaeaa;
  --green: #33473a;
  --green-dark: #22301f;
  --green-btn: #4d6049;
  --green-btn-hover: #3f5040;
  --terracotta: #a97a56;
  --text-dark: #2b2a25;
  --text-muted: #6b6a5e;
  --text-muted-2: #7a7568;
  --cream: #f5efe4;
  --border: rgba(43, 42, 37, 0.1);
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.9;
  overflow-x: hidden;
}

a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  color: var(--terracotta);
}

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

ul {
  list-style: none;
}

/* ===== Shared section rhythm ===== */
.hero,
.about,
.initiatives,
.program,
.representative,
.voices,
.news-media,
.contact,
.contact-forms {
  padding: 56px 20px;
}

@media (min-width: 900px) {
  .about,
  .initiatives,
  .program,
  .representative,
  .voices,
  .news-media,
  .contact,
  .contact-forms {
    padding: 96px 72px;
  }
}

.about,
.founder-quote,
.initiatives,
.program,
.representative,
.voices,
.news-media,
.contact,
.contact-forms {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  font-weight: 700;
  margin: 0 0 18px;
}

.eyebrow-large {
  font-size: clamp(22px, 4vw, 32px);
  margin-bottom: 32px;
}

.sec-head {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 28px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sec-head-accent {
  color: var(--terracotta);
}

.sec-body {
  font-size: 16px;
  line-height: 2.1;
  color: #3a392f;
  margin: 0 0 32px;
  max-width: 620px;
}

/* ===== Photo placeholder slots ===== */
.photo-slot {
  background: linear-gradient(135deg, rgba(51, 71, 58, 0.14), rgba(169, 122, 86, 0.18));
  border: 1px dashed rgba(43, 42, 37, 0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  padding: 12px;
}

/* ===== Real photo containers (replace .photo-slot once an asset is available) ===== */
.photo-fill {
  border: none;
  background: none;
  padding: 0;
  overflow: hidden;
}

.photo-fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border-radius: 32px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary,
.btn-terracotta {
  background: var(--terracotta);
  color: var(--cream);
}
.btn-primary:hover,
.btn-terracotta:hover {
  background: #8f6547;
  color: var(--cream);
}

.btn-hero,
.btn-grey {
  background: var(--contact-bg);
  color: var(--cream);
}
.btn-hero:hover,
.btn-grey:hover {
  background: #94978f;
  color: var(--cream);
}

.btn-small {
  padding: 10px 22px;
  font-size: 12px;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Nav ===== */
.site-nav {
  background: var(--nav-bg);
  padding: 22px 20px;
  text-align: center;
}

.nav-logo {
  font-size: clamp(15px, 3vw, 20px);
  font-weight: 700;
  color: #5b5b5b;
  letter-spacing: 0.02em;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero {
    aspect-ratio: 16 / 9;
  }
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(34, 48, 31, 0.55) 0%,
    rgba(34, 48, 31, 0.28) 45%,
    rgba(34, 48, 31, 0) 75%
  );
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
  padding: 0 24px;
}

.hero-overlay h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 4.2vw, 40px);
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.about-photo-slot {
  aspect-ratio: 4 / 5;
  min-height: 260px;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
  }
}

.founder-quote {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px 28px;
}

.founder-quote-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  flex: none;
}

.founder-quote-name {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 700;
  color: var(--green);
  text-align: center;
}

.founder-quote-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: #3a392f;
}

@media (min-width: 768px) {
  .founder-quote {
    flex-direction: row;
    align-items: flex-start;
    padding: 56px;
  }
  .founder-quote-name,
  .founder-quote-text {
    text-align: left;
  }
}

/* ===== Initiatives (4つの取り組み) ===== */
.initiatives {
  background: var(--section-light);
}

.act-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .act-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .act-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.act-photo-slot {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
}

.act-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
}

.act-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted-2);
}

/* ===== Program (いのちの授業について) ===== */
.program {
  background: var(--program-bg);
}

.program-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 900px) {
  .program-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.deepdive-card {
  background: rgba(245, 239, 228, 0.5);
  border: 1px solid rgba(58, 58, 58, 0.15);
  border-radius: var(--radius);
  padding: 32px;
}

.deepdive-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  color: #3e3e3e;
}

.program-list {
  margin: 0 0 24px;
  padding-left: 18px;
  list-style: disc;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(58, 58, 58, 0.75);
}
.program-list li {
  margin-bottom: 8px;
}

.program-steps-wrap {
  border-top: 1px solid rgba(58, 58, 58, 0.2);
  padding-top: 24px;
}

.program-steps-wrap h4 {
  font-size: 15px;
  color: #3e3e3e;
  margin: 0 0 20px;
}

.stepwrap {
  display: flex;
  align-items: center;
  gap: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stepnum {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #3e3e3e;
  color: #3e3e3e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

.step span {
  font-size: 12px;
  color: rgba(58, 58, 58, 0.75);
  white-space: nowrap;
}

.stepline {
  flex: 1;
  height: 1px;
  background: rgba(58, 58, 58, 0.3);
  margin: 0 10px;
}

.program-photo-slot {
  aspect-ratio: 4 / 3;
  min-height: 220px;
}

/* ===== Representative (講師紹介) ===== */
.representative {
  background: var(--white);
}

.representative-grid {
  display: grid;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.representative-photo-slot {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto;
}

.representative-body h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 600;
  color: var(--text-dark);
}

.representative-role {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.04em;
}

.representative-quals {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.representative-bio {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.9;
  color: #3a392f;
}

.representative-history-heading {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.04em;
}

.representative-history {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-muted);
}

.representative-history:last-of-type {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .representative-grid {
    grid-template-columns: 240px 1fr;
    text-align: left;
    align-items: start;
  }
  .representative-photo-slot {
    margin: 0;
  }
}

/* ===== Voices (子ども・保護者・学校からの反応) ===== */
.voices {
  background: var(--section-light);
}

.voice-grid {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .voice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .voice-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.voice-q {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 0 16px;
}

.voice-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--terracotta);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.voice-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(51, 71, 58, 0.25), rgba(169, 122, 86, 0.3));
  flex: none;
}

/* ===== News & Media ===== */
.news-media {
  background: var(--white);
}

.news-media-grid {
  display: grid;
  gap: 56px;
}

@media (min-width: 900px) {
  .news-media-grid {
    gap: 64px;
  }
}

.media-col h3,
.instagram-col h3 {
  margin: 0 0 20px;
  font-size: 18px;
  color: var(--text-dark);
  font-weight: 600;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 700px) {
  .media-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.media-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
}

.media-photo-slot {
  height: 260px;
  border-radius: 0;
  font-weight: 700;
  font-size: 13px;
  background: var(--card-bg);
}

.media-photo-slot img {
  object-fit: contain;
}

.media-card-body {
  padding: 14px 16px;
}

.media-title {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 600;
}

.media-tag {
  margin: 0;
  font-size: 12px;
  color: var(--terracotta);
}

.instagram-embed {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 640px;
  background: var(--section-light);
  border-radius: 16px;
  padding: 24px;
  flex-wrap: wrap;
}

.ig-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
}

.ig-text {
  flex: 1;
  min-width: 140px;
}

.ig-handle {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.ig-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted-2);
}

/* ===== Contact teaser ===== */
.contact {
  background: var(--contact-bg);
  color: var(--cream);
  text-align: center;
}

.contact-head {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 600;
  margin: 0 0 40px;
  letter-spacing: -0.01em;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.contact-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 36px 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.contact-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.4;
}

.contact-card p {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-note {
  margin: 32px 0 0;
  font-size: 15px;
  color: rgba(43, 42, 37, 0.7);
}

/* ===== Contact forms (functional, tabbed) ===== */
.contact-forms {
  background: var(--section-light);
}

.contact-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  flex: 1 1 200px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: transparent;
  color: var(--green);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.tab-btn.is-active {
  background: var(--green);
  color: var(--cream);
}

.contact-panel[hidden] {
  display: none;
}

.contact-form-title {
  max-width: 640px;
  margin: 0 auto 18px;
  padding-left: 14px;
  border-left: 4px solid var(--terracotta);
  font-size: 1.05rem;
  color: var(--green);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 10px 30px rgba(43, 42, 37, 0.08);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.required {
  color: var(--terracotta);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 4px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.4em;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: var(--terracotta);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--white);
  padding: 48px 20px;
  text-align: center;
}

.footer-brand {
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 700;
  color: #525252;
  margin: 0 0 12px;
}

.footer-address {
  font-size: 13px;
  color: var(--text-muted-2);
  margin: 0 0 16px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-social a {
  color: var(--text-muted-2);
  font-size: 13px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(43, 42, 37, 0.5);
  margin: 0;
}
