/* ==========================================================================
   一般財団法人 桜蹊財団 — okay-foundation.com
   ========================================================================== */

:root {
  --white: #ffffff;
  --cream: #f5f0e6;
  --sand: #e9e3d5;
  --ink: #2b2520;
  --ink-green: #1e2a24;
  --sub: #5a4f45;
  --ochre: #74561b;
  --terra: #8c4f33;
  --line: #cbc2ad;
  --umber: #3a3028;
  --on-dark: #f3efe6;
  --on-dark-sub: #d5d8c6;
  --on-dark-mute: #bcc2a8;
  --on-dark-line: #6b7358;
  --gold: #d8bc7a;

  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --gutter: clamp(24px, 6vw, 72px);
  --section: clamp(44px, 5.6vw, 72px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 2.1;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[id] { scroll-margin-top: var(--header-h); }

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nb { display: inline-block; }

/* ---- 共通パーツ ---- */
.label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.3em;
  color: var(--ochre);
}
.label__num { font-family: var(--mincho); font-size: 20px; letter-spacing: 0; }
.label__line { width: 48px; height: 1px; background: currentColor; }
.label--gold { color: var(--gold); }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.24em;
  color: var(--ochre);
}
.eyebrow--wide { letter-spacing: 0.3em; }

.statement {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(28px, 4.7vw, 60px);
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.statement--center { text-align: center; }
.is-muted { color: var(--on-dark-mute); }

.signature {
  font-family: var(--mincho);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-align: end;
  color: var(--ink-green);
}
.signature--light { font-size: 15px; letter-spacing: 0.16em; color: var(--on-dark-sub); }

.caption {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--sub);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 40px;
  border: 1px solid var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--line { color: var(--ink); }
.btn--small { min-height: 44px; padding: 0 22px; font-size: 13px; }
.btn:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
@media (hover: hover) {
  .btn--solid:hover { background: var(--terra); border-color: var(--terra); }
  .btn--line:hover { background: var(--ink); color: var(--cream); }
}

/* ---- ヘッダー（固定） ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 37, 32, 0.1);
}
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 12px;
}
.site-header__brand {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.6;
  letter-spacing: 0.16em;
  white-space: nowrap;
  text-decoration: none;
}
.site-header .btn { flex: 0 0 auto; }

/* ---- 一 想い ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.hero__pulse {
  position: absolute;
  right: clamp(-40px, 4vw, 120px);
  top: clamp(40px, 7vw, 110px);
  width: clamp(300px, 44vw, 600px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 104, 66, 0.5) 0%, rgba(214, 160, 104, 0.32) 34%, rgba(222, 196, 140, 0.16) 54%, rgba(245, 240, 230, 0) 70%);
  filter: blur(10px);
  animation: beat 3.4s ease-in-out infinite;
}
.hero__ring {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(140, 79, 51, 0.45);
  opacity: 0;
  animation: ring 3.4s ease-out 0.4s infinite;
}
.hero__ring--late { border-color: rgba(140, 79, 51, 0.32); animation-delay: 1.15s; }
@keyframes beat {
  0% { transform: scale(0.9); opacity: 0.5; }
  11% { transform: scale(1.07); opacity: 1; }
  21% { transform: scale(0.96); opacity: 0.7; }
  33% { transform: scale(1.12); opacity: 1; }
  62% { transform: scale(0.92); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 0.5; }
}
@keyframes ring {
  0% { transform: scale(0.7); opacity: 0.7; }
  70% { opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}
.hero__inner {
  position: relative;
  min-height: 560px;
  padding-block: clamp(32px, 4vw, 56px) clamp(32px, 5.6vw, 72px);
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(48px, 7vw, 96px);
}
.hero__title {
  flex: 0 0 auto;
  writing-mode: vertical-rl;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(76px, 10.6vw, 136px);
  line-height: 1.3;
  letter-spacing: 0.08em;
}
.hero__text {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__question {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.8;
  letter-spacing: 0.06em;
}
.hero__lead { line-height: 2.2; color: var(--sub); }

/* ---- ご挨拶 ---- */
.greeting { background: var(--sand); color: var(--ink-green); }
.greeting__inner {
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(48px, 10vw, 128px) clamp(24px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 80px);
}
.greeting__head { flex: 0 0 200px; display: flex; flex-direction: column; gap: 16px; }
.greeting__title {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.greeting__body {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.5vw, 32px);
}

/* ---- 二 桜蹊村 ---- */
.village { background: var(--white); }
.village__head {
  padding-block: clamp(48px, 5.6vw, 72px) clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vw, 32px);
}
.village__title {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(92px, 17vw, 216px);
  line-height: 1.15;
  letter-spacing: 0.04em;
}
.village__intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 64px;
}
.village__yomi {
  font-size: 13px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.3em;
  color: var(--sub);
}
.village__lead {
  flex: 0 1 660px;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.8;
  letter-spacing: 0.06em;
}
.village__wide { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.village__wide img { width: 100%; height: clamp(260px, 31vw, 400px); object-fit: cover; }
.village__wide .caption { width: 100%; }
.village__body {
  padding-block: var(--section);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4vw, 48px);
}
.village__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.village__photos figure { display: flex; flex-direction: column; gap: 10px; }
.village__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.village__place {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.8;
  letter-spacing: 0.06em;
  text-align: center;
}
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 40px);
}
.values li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: clamp(18px, 2vw, 26px) 0;
  border-top: 1px solid var(--line);
}
.values__num { flex: 0 0 auto; font-family: var(--mincho); font-size: 18px; line-height: 1.5; color: var(--ochre); }
.values__text {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(24px, 2.3vw, 29px);
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* ---- 「桜蹊」の由来 ＋ 開村 ---- */
.origin { position: relative; overflow: hidden; background: var(--sand); }
.origin__petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.petal { position: absolute; top: -4%; animation: fall linear infinite; }
.petal i {
  display: block;
  background: #fff;
  border-radius: 85% 15% 85% 15% / 70% 30% 70% 30%;
  box-shadow: 0 1px 4px rgba(116, 86, 27, 0.3);
  animation: sway ease-in-out infinite alternate;
}
@keyframes fall { from { top: -4%; } to { top: 104%; } }
@keyframes sway {
  0% { transform: translateX(-34px) rotate(-50deg); }
  50% { transform: translateX(8px) rotate(70deg) scaleX(0.6); }
  100% { transform: translateX(38px) rotate(200deg); }
}
.origin__inner {
  position: relative;
  padding-block: var(--section) clamp(32px, 3.4vw, 44px);
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(36px, 6vw, 88px);
}
.origin__motto {
  flex: 0 0 auto;
  writing-mode: vertical-rl;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 2.1;
  letter-spacing: 0.2em;
}
.origin__text {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 32px);
}
.origin__title {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.kanji__row {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-top: 1px solid var(--line);
}
.kanji dt { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kanji__char { font-family: var(--mincho); font-weight: 600; font-size: clamp(52px, 6vw, 76px); line-height: 1; color: var(--terra); }
.kanji__yomi { font-size: 12px; line-height: 1.6; letter-spacing: 0.2em; color: var(--sub); }
.kanji dd { padding-top: 4px; }
.origin__closing {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.8;
  letter-spacing: 0.06em;
}
.opening {
  position: relative;
  padding-block: clamp(32px, 3.4vw, 44px) var(--section);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.6vw, 20px);
  text-align: center;
}
.opening__logo { width: clamp(150px, 17vw, 210px); }
.opening__lead {
  padding-top: clamp(16px, 2vw, 28px);
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.8;
  letter-spacing: 0.06em;
}
.opening__word {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(84px, 16vw, 200px);
  line-height: 1.15;
  letter-spacing: 0.04em;
}
.opening__date { padding-top: clamp(16px, 2vw, 28px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.opening__when { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 8px 24px; font-family: var(--mincho); font-weight: 500; }
.opening__num { font-size: clamp(64px, 10vw, 128px); line-height: 1; letter-spacing: 0.02em; }
.opening__label { font-size: clamp(20px, 2.6vw, 32px); line-height: 1.4; letter-spacing: 0.1em; }
.opening__where { line-height: 2.2; color: var(--sub); }

/* ---- 三 桜蹊財団 ---- */
.foundation { background: var(--ink-green); color: var(--on-dark); }
.foundation__inner { padding-block: var(--section); display: flex; flex-direction: column; gap: clamp(40px, 4vw, 48px); }
.foundation__message { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.outline { display: flex; flex-direction: column; gap: 24px; }
.outline__title { font-family: var(--mincho); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; letter-spacing: 0.1em; }
.outline__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--on-dark-line);
}
.outline__list > div {
  display: flex;
  flex-wrap: wrap;
  column-gap: 32px;
  row-gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--on-dark-line);
}
.outline__list dt { flex: 0 0 112px; font-size: 13px; font-weight: 500; line-height: 1.9; letter-spacing: 0.1em; color: var(--on-dark-sub); }
.outline__list dd { flex: 1 1 240px; font-size: 15px; line-height: 1.9; }

/* ---- 続報登録 ---- */
.follow { background: var(--cream); }
.follow__inner { padding-block: var(--section); display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); }
.follow__title { font-family: var(--mincho); font-weight: 600; font-size: clamp(40px, 6.2vw, 80px); line-height: 1.35; letter-spacing: 0.04em; }
.follow__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 64px; }
.follow__text { flex: 0 1 460px; line-height: 2.2; }
.follow__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---- フッター ---- */
.site-footer { background: var(--umber); color: var(--on-dark); }
.site-footer__inner { padding-block: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.site-footer__brand { font-family: var(--mincho); font-size: 15px; line-height: 1.6; letter-spacing: 0.16em; }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 12px; line-height: 1.8; letter-spacing: 0.08em; color: #c9cfc6; }

/* ---- プライバシーポリシーなど下層ページ ---- */
.page { background: var(--white); }
.page__inner { max-width: 820px; margin-inline: auto; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.page__title { font-family: var(--mincho); font-weight: 500; font-size: clamp(28px, 4vw, 44px); line-height: 1.5; letter-spacing: 0.06em; margin-bottom: clamp(32px, 5vw, 56px); }
.page h2 { font-family: var(--mincho); font-weight: 600; font-size: 20px; line-height: 1.7; letter-spacing: 0.06em; margin: 48px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.page p + p { margin-top: 12px; }
.page ul { margin: 12px 0 0; padding-left: 1.4em; }
.page a { color: var(--terra); text-underline-offset: 4px; }
.page__date { margin-top: 56px; text-align: end; color: var(--sub); font-size: 14px; }
.page__back { margin-top: 40px; }

/* ---- スクロールで現れる演出（JSが有効なときだけ隠す） ---- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---- スマホ・タブレット ---- */
@media (max-width: 767px) {
  .village__photos { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .outline__list { grid-template-columns: 1fr; }
  .follow__actions, .follow__actions .btn { width: 100%; }
  .btn { padding-inline: 24px; }
}

/* ---- 動きを減らす設定 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__glow, .hero__ring, .petal, .petal i { animation: none; }
  .hero__ring, .origin__petals { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
