/* ===========================================
   日本サドゥーボード協会(仮) Prototype Site
   Color: Natural — deep green #3a5a40 / cream #f7f5f0 / gray
=========================================== */

:root {
  --color-primary: #3a5a40;
  --color-primary-dark: #2a4530;
  --color-primary-light: #588157;
  --color-accent: #a3b18a;
  /* 木の温もり — エングレービング/木目から採色したアクセント */
  --color-wood: #9a6b3f;
  --color-wood-dark: #6f4a28;
  --color-wood-light: #c4a06a;
  --color-cream: #f4efe6;
  --color-cream-deep: #ece4d6;
  --color-bg: #fbf9f4;
  --color-text: #2b2b2b;
  --color-text-muted: #6b6b6b;
  --color-border: #e3ddd0;
  --color-warning-bg: #fff7e6;
  --color-warning-border: #e0b96a;
  --shadow-sm: 0 1px 3px rgba(60,45,25,0.06);
  --shadow-md: 0 6px 22px rgba(60,45,25,0.10);
  --shadow-lg: 0 18px 48px rgba(45,35,20,0.16);
  --radius: 4px;
  --radius-lg: 14px;
  --max-width: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}

/* セクション見出しの上に置く小さなラベル（静かなリズムの起点） */
.eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-wood);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-wood-light);
  vertical-align: middle;
  margin-right: 10px;
}

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

/* ---------- Prototype Banner ---------- */
.proto-banner {
  background: var(--color-warning-bg);
  border-bottom: 1px solid var(--color-warning-border);
  color: #6b4a10;
  font-size: 13px;
  text-align: center;
  padding: 6px 12px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo__mark {
  width: 36px;
  height: 36px;
}
.site-logo small {
  display: block;
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  font-weight: 400;
}

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.site-nav__list a {
  display: block;
  padding: 8px 9px;
  font-size: 13px;
  color: var(--color-text);
  border-radius: var(--radius);
  white-space: nowrap;
}
.site-nav__list a:hover {
  background: var(--color-cream);
  text-decoration: none;
  color: var(--color-primary);
}
.site-nav__cta {
  margin-left: 12px;
  padding: 10px 16px !important;
  background: var(--color-primary) !important;
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 500;
}
.site-nav__cta:hover { background: var(--color-primary-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Hero (photo / 木の温もり×静謐) ---------- */
.hero--photo {
  position: relative;
  min-height: clamp(440px, 58vh, 600px);
  display: flex;
  align-items: center;
  padding: 72px 24px;
  overflow: hidden;
  color: #fff;
  background: #33503a;
}
.hero--photo .hero__bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  left: 50%;
  background-image: url("../img/photos/hero-board.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}
@keyframes heroPan {
  from { transform: scale(1.06) translateY(0); }
  to   { transform: scale(1.12) translateY(-2%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero--photo .hero__bg { animation: none; }
}
.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #33503a 0%, #33503a 42%, rgba(51,80,58,0.8) 50%, rgba(51,80,58,0.2) 62%, rgba(51,80,58,0) 74%);
  z-index: 1;
}
.hero--photo .hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero--photo .hero__body { max-width: 540px; }
.hero--photo .eyebrow { color: var(--color-wood-light); }
.hero--photo .eyebrow::before { background: var(--color-wood-light); }
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 28px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
}
.hero__title .accent {
  color: #fff;
  position: relative;
  padding-bottom: 2px;
  box-shadow: inset 0 -3px 0 var(--color-wood-light);
}
.hero--photo .hero__sub {
  font-size: 16px;
  max-width: 520px;
  line-height: 2;
  opacity: 0.96;
  margin: 0 0 40px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.hero--photo .hero__cta { justify-content: flex-start; }

/* legacy gradient hero（下層ページで使用中のため温色寄りに調整して残す） */
.hero {
  background: linear-gradient(135deg, #2a4530 0%, #3a5a40 60%, #6f4a28 100%);
  color: #fff;
  padding: 96px 24px 112px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0, transparent 40%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.hero__lead {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 24px;
  color: #fff;
  letter-spacing: 0.04em;
}
.hero__sub {
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 36px;
  opacity: 0.92;
}
.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn--primary { background: #fff; color: var(--color-primary-dark); }
.btn--primary:hover { background: var(--color-cream); text-decoration: none; }
.btn--outline { background: transparent; border-color: #fff; color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.btn--solid { background: var(--color-primary); color: #fff; }
.btn--solid:hover { background: var(--color-primary-dark); text-decoration: none; color: #fff; }
.btn--wood { background: var(--color-wood); color: #fff; }
.btn--wood:hover { background: var(--color-wood-dark); text-decoration: none; color: #fff; }
.btn { letter-spacing: 0.04em; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { background: var(--color-cream); text-decoration: none; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--cream { background: var(--color-cream); }
.section--deep { background: var(--color-cream-deep); }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section__head .eyebrow::before { vertical-align: middle; }
.section__title {
  text-align: center;
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 16px;
}
.section__lead {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 2;
}

/* ---------- Photo split (画像＋テキストの交互レイアウト) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split__media img {
  width: 100%;
  display: block;
  transition: transform 1.2s var(--ease);
}
.split__media:hover img { transform: scale(1.05); }
.split__body h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 20px; }
.split__body p { color: var(--color-text-muted); margin: 0 0 16px; line-height: 2; }
.split__body .btn { margin-top: 12px; }

/* ---------- Pillars (3 columns) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-wood-light);
}
.pillar__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  color: var(--color-wood);
  font-size: 17px;
}
.pillar h3 { margin: 0 0 12px; font-size: 18px; }
.pillar h3 a { color: var(--color-primary-dark); }
.pillar h3 a:hover { color: var(--color-wood); text-decoration: none; }
.pillar p { margin: 0; font-size: 14px; color: var(--color-text-muted); line-height: 1.9; }

/* ---------- News list ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}
.news-list time {
  flex: 0 0 110px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-family: var(--font-serif);
}
.news-list .tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  margin-right: 8px;
  color: var(--color-text-muted);
}

/* ---------- Voices ---------- */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.voice {
  background: #fff;
  border-left: 4px solid var(--color-primary);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.voice__quote {
  font-family: var(--font-serif);
  margin: 0 0 16px;
  color: var(--color-text);
  font-size: 15px;
}
.voice__author {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- Banner / CTA strip ---------- */
.cta-strip {
  position: relative;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 88px 24px;
  text-align: center;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/photos/board-angled.jpg") center/cover;
  opacity: 0.18;
  z-index: 0;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 { color: #fff; margin: 0 0 14px; font-size: clamp(24px, 3vw, 30px); }
.cta-strip p { margin: 0 auto 28px; opacity: 0.92; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1f2d22;
  color: #cfd6cc;
  padding: 56px 24px 24px;
  font-size: 13px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 12px;
  font-family: var(--font-sans);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin: 4px 0; }
.site-footer a { color: #cfd6cc; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  border-top: 1px solid #2e3f33;
  padding-top: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #8a9890;
  font-size: 12px;
}
.site-footer__proto {
  background: rgba(224,185,106,0.15);
  border: 1px solid rgba(224,185,106,0.4);
  color: #f0d59a;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin: 0 auto 24px;
  max-width: var(--max-width);
  text-align: center;
  font-size: 13px;
}

/* ---------- Page header ---------- */
.page-head {
  background: var(--color-cream);
  padding: 72px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.page-head h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 8px;
}
.page-head__sub {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* 写真背景のページヘッダー（下層ページのヒーロー化） */
.page-head--photo {
  position: relative;
  border-bottom: none;
  padding: 132px 24px 108px;
  color: #fff;
  background: #2a2520;
  overflow: hidden;
}
.page-head--photo .page-head__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-head--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,20,15,0.55) 0%, rgba(28,33,25,0.74) 100%);
  z-index: 1;
}
.page-head--photo > h1,
.page-head--photo > .page-head__sub { position: relative; z-index: 2; }
.page-head--photo h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.4); }
.page-head--photo .page-head__sub { color: var(--color-wood-light); }

/* ---------- Figure (本文中の写真) ---------- */
.figure {
  margin: 36px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.figure img { width: 100%; display: block; }
.figure figcaption {
  font-size: 12.5px;
  color: var(--color-text-muted);
  background: var(--color-cream);
  padding: 10px 16px;
  letter-spacing: 0.02em;
}

/* ---------- Article body ---------- */
.article {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px;
}
.article h2 {
  font-size: 24px;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}
.article h3 {
  font-size: 18px;
  margin: 32px 0 12px;
  color: var(--color-primary);
}
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 24px; margin: 0 0 16px; }
.article li { margin: 4px 0; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.article table th, .article table td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.article table th { background: var(--color-cream); color: var(--color-primary-dark); }

.note {
  background: var(--color-warning-bg);
  border-left: 4px solid var(--color-warning-border);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
  color: #6b4a10;
}

/* ---------- Cert cards ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}
.cert-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  padding: 28px 24px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.cert-card--master { border-top-color: var(--color-primary-light); }
.cert-card--trainer { border-top-color: #b08a3e; }
.cert-card__step {
  font-family: var(--font-serif);
  color: var(--color-text-muted);
  font-size: 12px;
  letter-spacing: 0.15em;
}
.cert-card h3 { margin: 4px 0 12px; font-size: 18px; }
.cert-card__price {
  font-size: 24px;
  font-family: var(--font-serif);
  color: var(--color-primary-dark);
  margin: 8px 0;
}
.cert-card__price small { font-size: 12px; color: var(--color-text-muted); margin-left: 4px; }
.cert-card ul { padding-left: 18px; font-size: 14px; flex: 1; }
.cert-card li { margin: 4px 0; }

/* ---------- Form ---------- */
.form { max-width: 640px; margin: 0 auto; }
.form__row { margin-bottom: 20px; }
.form label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--color-text);
  font-weight: 500;
}
.form input[type=text],
.form input[type=email],
.form input[type=tel],
.form select,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(58,90,64,0.12);
}
.form__required { color: #b04545; font-size: 11px; margin-left: 4px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.faq-item__q {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0 0 8px;
  font-size: 16px;
}
.faq-item__q::before {
  content: "Q. ";
  color: var(--color-primary);
}
.faq-item__a { margin: 0; color: var(--color-text); font-size: 14px; }
.faq-item__a::before { content: "A. "; color: var(--color-accent); font-weight: 600; }

/* ---------- Stage cards (philosophy) ---------- */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
.stage {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
}
.stage__num {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-serif);
  margin-bottom: 12px;
}
.stage h4 { margin: 0 0 8px; font-size: 15px; }
.stage p { font-size: 12px; color: var(--color-text-muted); margin: 0; }

/* ---------- Events ---------- */
.event-list { list-style: none; padding: 0; margin: 0; }
.event {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}
.event__date {
  font-family: var(--font-serif);
  text-align: center;
  background: var(--color-cream);
  padding: 10px;
  border-radius: var(--radius);
}
.event__date strong { display: block; font-size: 20px; color: var(--color-primary-dark); }
.event__date span { font-size: 11px; color: var(--color-text-muted); }
.event__body h3 { margin: 0 0 4px; font-size: 16px; }
.event__body p { margin: 0; font-size: 13px; color: var(--color-text-muted); }

/* ---------- Responsive ---------- */
/* ナビ項目が多いため、横一列が窮屈になる1024px以下でハンバーガーに切替 */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
    z-index: 20;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .site-nav__list a { padding: 12px 8px; border-bottom: 1px solid var(--color-border); }
  .site-nav__cta { margin: 12px 0 0 !important; text-align: center; }
}
@media (max-width: 900px) {
  .pillars, .voices, .cert-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .hero--photo { min-height: 0; padding: 88px 24px; }
  .hero--photo .hero__bg { left: 0; background-size: cover; background-position: center 40%; }
  .hero--photo::after { background: linear-gradient(180deg, rgba(16,26,16,0.30) 0%, rgba(16,26,16,0.70) 100%); }
  .section { padding: 72px 0; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .news-list li { flex-direction: column; gap: 4px; }
  .news-list time { flex: none; }
  .event { grid-template-columns: 80px 1fr; }
  .event__cta { grid-column: 1 / -1; }
  .hero { padding: 64px 24px 80px; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
