/* ============================================================
   一般社団法人剣の道 STYLESHEET
   Palette:
     --ink:    #0D0F1A   (deep indigo-black)
     --washi:  #F2EDE4   (aged washi paper)
     --gold:   #C9A84C   (antique lacquer gold)
     --fog:    #2A2D3E   (dark mid-tone)
     --mist:   #7C7F8E   (soft grey)
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #0D0F1A;
  --washi:  #F2EDE4;
  --gold:   #C9A84C;
  --gold-light: #E2C57A;
  --fog:    #1E2130;
  --fog2:   #2A2D3E;
  --mist:   #7C7F8E;
  --white:  #FFFFFF;

  --font-serif: 'Noto Serif JP', 'Times New Roman', serif;
  --font-sans:  'Noto Sans JP', 'Inter', sans-serif;
  --font-ui:    'Inter', 'Noto Sans JP', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--ink);
  color: var(--washi);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

ul { list-style: none; }

/* ---------- TYPOGRAPHY SCALE ---------- */
.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--washi);
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--mist);
  max-width: 48ch;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.22s var(--ease-out), color 0.22s, border-color 0.22s, transform 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn--ghost {
  background: transparent;
  color: var(--washi);
  border-color: rgba(34,34,34,0.35);
}
.btn--ghost:hover {
  border-color: var(--washi);
  background: rgba(34,34,34,0.07);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--ink);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 600;
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn--lg {
  padding: 1rem 2.4rem;
  font-size: 0.95rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 15, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  transition: background 0.3s;
}
.nav.scrolled {
  background: rgba(13, 15, 26, 0.97);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
  text-decoration: none;
}
.nav__logo-kanji {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--washi);
  letter-spacing: 0.05em;
}
.nav__logo-sub {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(34,34,34,0.75);
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  transition: color 0.2s;
  text-decoration: none;
}
.nav__link:hover,
.nav__link.active { color: var(--washi); }

.nav__link--cta {
  background: var(--gold);
  color: var(--ink) !important;
  padding: 0.45rem 1rem;
  font-weight: 600;
  margin-left: 0.5rem;
}
.nav__link--cta:hover {
  background: var(--gold-light);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--washi);
  transition: transform 0.25s, opacity 0.25s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--nav-h) 0 0;
}

/* Ink wash background blobs */
.hero__ink-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ink {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.ink--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2A3560 0%, transparent 70%);
  top: -10%; right: -5%;
  animation: inkDrift 18s ease-in-out infinite alternate;
}
.ink--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #C9A84C 0%, transparent 70%);
  bottom: 10%; right: 20%;
  opacity: 0.08;
  animation: inkDrift 22s ease-in-out infinite alternate-reverse;
}
.ink--3 {
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, #1a1f3a 0%, transparent 70%);
  top: 40%; left: -10%;
  opacity: 0.3;
  animation: inkDrift 26s ease-in-out infinite alternate;
}

@keyframes inkDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.08); }
}

/* Vertical kanji accent */
.hero__vertical-kanji {
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  color: rgba(201,168,76,0.07);
  letter-spacing: 0.1em;
  user-select: none;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem 6rem 8rem;
  max-width: 680px;
  margin-left: clamp(2rem, 10vw, 12rem);
}

.hero__eyebrow {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--washi);
  margin-bottom: 1.8rem;
}
.hero__title em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.hero__body {
  font-size: 1rem;
  color: rgba(34,34,34,0.72);
  line-height: 1.8;
  max-width: 46ch;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.4;
}
.hero__scroll-hint span {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--washi);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--washi), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.8); }
}

/* ============================================================
   MISSION STRIP
   ============================================================ */
.mission-strip {
  background: var(--fog);
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 2rem 2rem;
}
.mission-strip__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.mission-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.mission-strip__num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.mission-strip__label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--mist);
}
.mission-strip__divider {
  width: 1px;
  height: 48px;
  background: rgba(201,168,76,0.2);
}

/* ============================================================
   ACTIVITIES SECTION
   ============================================================ */
.activities {
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 2rem;
}
.activities__header {
  margin-bottom: 3.5rem;
}

.activities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(201,168,76,0.1);
  border: 1.5px solid rgba(201,168,76,0.1);
}

.act-card {
  background: var(--fog);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.3s var(--ease-out);
  overflow: hidden;
}
.act-card::before {
  content: attr(data-index);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(201,168,76,0.3);
}
.act-card:hover {
  background: var(--fog2);
}
.act-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1.5rem 2rem;
  padding: 2.5rem 2.5rem;
}
.act-card--featured .act-card__icon { font-size: 2rem; margin-top: 0.2rem; }
.act-card--featured .act-card__title { font-size: 1.4rem; grid-column: 2; grid-row: 1; }
.act-card--featured .act-card__body  { grid-column: 2; grid-row: 2; }
.act-card--featured .act-card__link  { grid-column: 3; grid-row: 1 / 3; align-self: center; }

.act-card__icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}
.act-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--washi);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.act-card__body {
  font-size: 0.88rem;
  color: rgba(34,34,34,0.65);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}
.act-card__link {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  transition: letter-spacing 0.2s;
  white-space: nowrap;
}
.act-card__link:hover {
  letter-spacing: 0.12em;
}

.activities__more {
  margin-top: 3rem;
  text-align: center;
}

/* ============================================================
   BUSHIDO FEATURE
   ============================================================ */
.bushido-feature {
  background: var(--fog);
  border-top: 1px solid rgba(201,168,76,0.12);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 560px;
  overflow: hidden;
}

.bushido-feature__text-col {
  padding: 6rem 4rem 6rem 8rem;
  max-width: 640px;
}

.bushido-feature__body {
  font-size: 0.95rem;
  color: rgba(34,34,34,0.72);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.bushido-feature__quote {
  border-left: 2px solid var(--gold);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0 2.5rem;
  font-family: var(--font-serif);
}
.bushido-feature__quote p {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--washi);
}
.bushido-feature__quote cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.bushido-feature__visual-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bushido-feature__circle {
  width: 300px;
  height: 300px;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bushido-feature__circle::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.1);
}
.bushido-feature__big-kanji {
  font-family: var(--font-serif);
  font-size: 10rem;
  font-weight: 900;
  color: rgba(201,168,76,0.15);
  line-height: 1;
  user-select: none;
}
.bushido-feature__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bushido-feature__lines span {
  position: absolute;
  background: rgba(201,168,76,0.08);
}
.bushido-feature__lines span:nth-child(1) {
  width: 1px; height: 100%;
  left: 50%; top: 0;
}
.bushido-feature__lines span:nth-child(2) {
  width: 100%; height: 1px;
  top: 50%; left: 0;
}
.bushido-feature__lines span:nth-child(3) {
  width: 200px; height: 1px;
  top: 30%; left: 50%;
  transform: rotate(45deg);
}

/* ============================================================
   SUPPORT CALLOUT
   ============================================================ */
.support-callout {
  padding: 5rem 2rem;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.support-callout::before {
  content: '♻';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18rem;
  opacity: 0.03;
  pointer-events: none;
  line-height: 1;
}
.support-callout__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.support-callout__badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.support-callout__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--washi);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
.support-callout__body {
  font-size: 0.95rem;
  color: rgba(34,34,34,0.65);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

/* ============================================================
   NEWS
   ============================================================ */
.news {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.news__header {
  margin-bottom: 3rem;
}
.news__list {
  border-top: 1px solid rgba(201,168,76,0.15);
}
.news-item {
  display: grid;
  grid-template-columns: 100px 80px 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  transition: background 0.2s;
}
.news-item:hover {
  padding-left: 0.5rem;
}
.news-item__date {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--mist);
  letter-spacing: 0.05em;
}
.news-item__tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 2px;
  white-space: nowrap;
}
.news-item__title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(34,34,34,0.85);
}
.news-item__title a:hover {
  color: var(--gold);
}
.news__more {
  margin-top: 2.5rem;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--fog);
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: '剣の道';
  position: absolute;
  right: -2rem;
  bottom: -3rem;
  font-family: var(--font-serif);
  font-size: 14rem;
  font-weight: 900;
  color: rgba(201,168,76,0.04);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}
.cta-banner__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--washi);
  margin-bottom: 1.25rem;
}
.cta-banner__body {
  font-size: 0.95rem;
  color: rgba(34,34,34,0.65);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #07090F;
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 4rem 2rem 0;
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}
.footer__logo-kanji {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--washi);
  display: block;
  margin-bottom: 0.5rem;
}
.footer__tagline {
  font-size: 0.78rem;
  color: var(--mist);
  letter-spacing: 0.1em;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__nav-col h4 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer__nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__nav-col a {
  font-size: 0.83rem;
  color: rgba(34,34,34,0.5);
  transition: color 0.2s;
}
.footer__nav-col a:hover { color: var(--washi); }
.footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: rgba(124,127,142,0.5);
  letter-spacing: 0.08em;
}

/* ============================================================
   SCROLL-REVEAL UTILITY
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   IMAGE FRAMES
   実写・撮り下ろし画像を差し込むための共通枠。
   images/ 以下に対応ファイルを配置すると自動的に表示され、
   未配置の間は控えめなプレースホルダーが表示されます。
   ============================================================ */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(150deg, var(--fog) 0%, var(--fog2) 100%);
  isolation: isolate;
}
.img-frame::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(201,168,76,0.14);
  pointer-events: none;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-frame__placeholder {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 10px;
  padding: 1.25rem;
  text-align: center;
  border: 1px dashed rgba(201,168,76,0.3);
}
.img-frame--empty .img-frame__placeholder { display: flex; }
.img-frame__placeholder-icon {
  font-size: 1.4rem;
  color: rgba(201,168,76,0.55);
}
.img-frame__placeholder-text {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: rgba(34,34,34,0.4);
}
.img-frame__placeholder-file {
  font-size: 0.65rem;
  color: rgba(201,168,76,0.5);
  font-family: 'Courier New', monospace;
}

/* Hero background photo (sits behind the ink washes) */
.hero__photo {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__photo img { opacity: 0.55; }
.hero__photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,15,26,0.55) 0%, rgba(13,15,26,0.75) 60%, var(--ink) 100%);
}
.hero__photo .img-frame__placeholder { display: none !important; }
.hero__photo.img-frame--empty { background: var(--ink); }
.hero__photo.img-frame--empty::before { background: none; }

/* Small thumbnail inside the featured activity card */
.act-card__photo {
  aspect-ratio: 16 / 10;
  margin-top: 1.25rem;
}
.act-card--featured .act-card__photo { grid-column: 1 / -1; grid-row: 3; }

/* Bushido feature portrait image, replaces plain circle backdrop */
.bushido-feature__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
}

/* Wide banner photo used as support-callout backdrop */
.support-callout__photo {
  position: absolute; inset: 0;
  z-index: 0;
}
.support-callout__photo img { opacity: 0.32; }
.support-callout__photo.img-frame--empty { background: var(--fog); }

/* In-page content block photos (activities.html) */
.content-block__photo {
  aspect-ratio: 16 / 9;
  margin-top: 1.5rem;
  max-width: 560px;
}

/* Page-hero wide banner (bushido.html) */
.page-hero__photo {
  aspect-ratio: 21 / 8;
  grid-column: 1 / -1;
  margin-top: 2.5rem;
}

/* Contact page portrait photo */
.contact-info__photo {
  aspect-ratio: 3 / 4;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .act-card--featured .act-card__photo { grid-column: 1; grid-row: auto; }
  .page-hero__photo { aspect-ratio: 4 / 3; }
}

/* ============================================================
   ACTIVITIES PAGE / BUSHIDO PAGE SHARED
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 2rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  margin-bottom: 5rem;
}
.page-hero__label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--washi);
}
.page-hero__body {
  font-size: 1rem;
  color: rgba(34,34,34,0.65);
  line-height: 1.85;
}

.page-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.content-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.content-block:last-child { border-bottom: none; }
.content-block__num {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(201,168,76,0.4);
  padding-top: 0.4rem;
}
.content-block__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--washi);
  margin-bottom: 0.8rem;
}
.content-block__body {
  font-size: 0.9rem;
  color: rgba(34,34,34,0.68);
  line-height: 1.85;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 6rem;
  align-items: start;
}
.contact-info__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.contact-info__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--washi);
  margin-bottom: 1.5rem;
}
.contact-info__body {
  font-size: 0.92rem;
  color: rgba(34,34,34,0.65);
  line-height: 1.85;
  margin-bottom: 3rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-detail__icon { font-size: 1.1rem; margin-top: 0.1rem; }
.contact-detail__label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.contact-detail__value {
  font-size: 0.9rem;
  color: rgba(34,34,34,0.75);
}

.contact-form {
  background: var(--fog);
  border: 1px solid rgba(201,168,76,0.12);
  padding: 3rem 2.5rem;
  border-radius: 2px;
}
.contact-form__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--washi);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.form-group {
  margin-bottom: 1.4rem;
}
.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(34,34,34,0.6);
  margin-bottom: 0.4rem;
}
.form-label span { color: #e05555; margin-left: 0.2rem; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(13,15,26,0.6);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 2px;
  color: var(--washi);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(34,34,34,0.25);
}
.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}
.form-select {
  cursor: pointer;
}
.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.form-submit:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .bushido-feature {
    grid-template-columns: 1fr;
  }
  .bushido-feature__text-col {
    padding: 4rem 2rem;
    max-width: 100%;
  }
  .bushido-feature__visual-col {
    padding: 3rem;
    min-height: 260px;
  }
}

@media (max-width: 900px) {
  .activities__grid {
    grid-template-columns: 1fr 1fr;
  }
  .act-card--featured {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
  }
  .act-card--featured .act-card__link {
    grid-column: 2;
    grid-row: 3;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .page-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-page {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(13,15,26,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 2rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(201,168,76,0.12);
  }
  .nav__links.open { display: flex; }
  .nav__link { padding: 0.75rem 0.5rem; font-size: 1rem; }
  .nav__link--cta { margin: 0.75rem 0 0; text-align: center; }
  .nav__burger { display: flex; }

  .hero__vertical-kanji { display: none; }
  .hero__content {
    padding: 4rem 1.5rem 5rem;
    margin-left: 0;
  }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .mission-strip__inner { gap: 2rem; }
  .mission-strip__divider { display: none; }

  .activities__grid { grid-template-columns: 1fr; }
  .act-card--featured {
    grid-template-columns: 1fr;
  }
  .act-card--featured .act-card__icon,
  .act-card--featured .act-card__title,
  .act-card--featured .act-card__body,
  .act-card--featured .act-card__link { grid-column: 1; grid-row: auto; }

  .news-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .footer__nav {
    grid-template-columns: 1fr 1fr;
  }
  .content-block {
    grid-template-columns: 1fr;
  }
  .content-block__num { display: none; }
}

@media (max-width: 480px) {
  .footer__nav { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== LIGHT THEME OVERRIDE ===== */
.footer,.footer *{color:rgba(255,255,255,.78);}
.footer h4,.footer__title{color:#fff;}
:root{--ink:#FAF8F3;--washi:#222222;--gold:#E0533A;--gold-light:#2B5C8A;--fog:#FFFFFF;--fog2:#EFEBE2;--mist:#6B6F76;--white:#fff;}
body{background-color:#FAF8F3;color:#222222;}
.nav{background:rgba(255,255,255,.88);border-bottom:1px solid rgba(43,92,138,.18);}
.nav.scrolled{background:rgba(255,255,255,.97);}
.nav__link{color:rgba(34,34,34,.8);}
.nav__link:hover{color:#2B5C8A;}
.nav__burger span{background:#222222;}
.nav__logo,.nav__brand{color:#222222;}
@media(max-width:900px){.nav__links{background:rgba(255,255,255,.98);}}
.ink--1{background:radial-gradient(circle,rgba(43,92,138,.18),transparent 70%)!important;}
.ink--2{background:radial-gradient(circle,rgba(224,83,58,.14),transparent 70%)!important;}
.ink--3{background:radial-gradient(circle,rgba(43,92,138,.10),transparent 70%)!important;}
.hero{background:linear-gradient(180deg,#FAF8F3,#EFEBE2);}
.hero__photo{background:#EFEBE2!important;}
.hero__photo::after,.hero__photo::before{background:linear-gradient(180deg,rgba(255,255,255,.55),#FAF8F3)!important;}
.hero__photo.img-frame--empty{background:#EFEBE2!important;}
.hero__vertical-kanji{color:rgba(43,92,138,.09)!important;}
.hero__title,.section-title,.hero__body{color:#222222;}
.hero__eyebrow,.eyebrow,.section-label{color:#E0533A;}
.btn--primary,.btn--gold,.nav__link--cta,.form-submit{background:#E0533A!important;color:#fff!important;border-color:#E0533A!important;}
.btn--primary:hover,.btn--gold:hover,.nav__link--cta:hover,.form-submit:hover{filter:brightness(1.08);}
.btn--ghost{color:#222222;border-color:rgba(34,34,34,.35);}
.btn--outline{color:#2B5C8A;border-color:#2B5C8A;}
.mission-strip{background:#2B5C8A;border-color:transparent;color:#fff;}
.mission-strip *{color:#fff;}
.activities__grid{background:rgba(43,92,138,.14);}
.act-card{background:#FFFFFF;}
.act-card:hover{background:#EFEBE2;}
.act-card p,.act-card__body{color:rgba(34,34,34,.72);}
.bushido-feature{background:#EFEBE2;}
.support-callout{background:#FAF8F3;}
.support-callout__photo img{opacity:.9;}
.news-item{border-color:rgba(43,92,138,.25);}
.cta-banner{background:#EFEBE2;}
.cta-banner::after{color:rgba(43,92,138,.06);}
.footer{background:#1F3F5E;color:rgba(255,255,255,.75);}
.footer a{color:rgba(255,255,255,.85);}
.img-frame{background:linear-gradient(135deg,#EFEBE2,#FFFFFF);}
.img-frame::after{border-color:rgba(43,92,138,.25);}
.form-input,.form-textarea,.form-select,input,textarea,select{background:#fff;color:#222222;border-color:rgba(34,34,34,.2);}

/* ===== PHOTOS ===== */
.hero__photo img{opacity:.30;object-fit:cover;object-position:center 40%;}
.img-frame img{object-fit:cover;width:100%;height:100%;}
.bushido-feature__photo img{object-position:center 35%;}
.act-card .img-frame{max-height:420px;}
.act-card .img-frame img{object-position:center 35%;}
@media(max-width:768px){.act-card .img-frame{max-height:260px;}}
.hero__photo img{opacity:.38;}
.support-callout__photo img{opacity:.22;object-position:center 40%;}
.support-callout__photo img{opacity:.18;} .support-callout__body{color:#222!important;}
.bushido-feature__photo img{object-position:center 30%;}
.page-hero__photo{aspect-ratio:4/3;max-height:none;}
.page-hero__photo img{object-position:center 62%;}

/* ===== HERO: 葉隠発祥の地 ===== */
.hero__photo img{opacity:1;width:100%;height:100%;object-fit:cover;object-position:center 80%;}
.hero__photo::before,.hero__photo::after{background:linear-gradient(90deg,rgba(250,248,243,.96) 0%,rgba(250,248,243,.9) 40%,rgba(250,248,243,.35) 68%,rgba(250,248,243,0) 100%)!important;}
.hero__vertical-kanji{display:none;}
@media(max-width:768px){
  .hero{padding-top:calc(var(--nav-h) + 340px);}
  .hero__photo{inset:var(--nav-h) 0 auto 0;height:340px;}
  .hero__photo img{object-position:center 96%;}
  .hero__photo::before,.hero__photo::after{background:linear-gradient(180deg,rgba(250,248,243,0) 88%,#FAF8F3 100%)!important;}
  .hero__scroll,.scroll-indicator{display:none;}
}
@media(max-width:768px){.hero__scroll-hint{display:none;}}

/* ===== MATCHING ===== */
.m-wrap{max-width:1100px;margin:0 auto;padding:calc(var(--nav-h) + 3.5rem) 1.5rem 5rem;display:flex;flex-direction:column;gap:3.5rem;}
.m-head{display:flex;flex-direction:column;gap:1rem;}
.m-eyebrow{font-family:var(--font-ui);font-size:.75rem;letter-spacing:.2em;color:var(--gold);}
.m-title{font-family:var(--font-serif);font-size:clamp(2rem,5vw,3rem);font-weight:700;color:var(--washi);}
.m-lead{max-width:40em;line-height:1.9;color:var(--mist);}
.m-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:.5rem;}
.m-rules{background:var(--fog2);padding:1.5rem 1.5rem 1.6rem;border-radius:4px;}
.m-rules ul{display:flex;flex-direction:column;gap:.6rem;padding-left:1.2rem;line-height:1.8;}
.m-h2{font-family:var(--font-serif);font-size:1.4rem;font-weight:700;margin-bottom:1rem;}
.m-h3{font-size:1rem;font-weight:500;margin:1.5rem 0 .8rem;padding-top:1.2rem;border-top:1px solid rgba(43,92,138,.2);}
.m-note{font-size:.82rem;line-height:1.7;color:var(--mist);margin:0 0 1.2rem;}
.m-section{display:block;scroll-margin-top:calc(var(--nav-h) + 1rem);}
.m-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.2rem;}
.m-card{background:var(--fog);border:1px solid rgba(43,92,138,.18);border-radius:4px;overflow:hidden;display:flex;flex-direction:column;}
.m-card__photo{position:relative;aspect-ratio:4/3;background:var(--fog2);}
.m-card__photo img{width:100%;height:100%;object-fit:cover;display:block;}
.m-card__nophoto{display:grid;place-items:center;height:100%;color:var(--mist);font-size:.85rem;}
.m-card__badge{position:absolute;top:.6rem;left:.6rem;background:var(--gold);color:#fff;font-size:.75rem;padding:.2rem .6rem;border-radius:2px;}
.m-card.is-done .m-card__photo img{filter:grayscale(.8);opacity:.7;}
.m-card__body{padding:1rem 1.1rem 1.2rem;display:flex;flex-direction:column;gap:.5rem;min-width:0;}
.m-card__no{font-family:var(--font-ui);font-size:.72rem;letter-spacing:.12em;color:var(--gold);}
.m-card__type{font-size:1.05rem;font-weight:700;line-height:1.5;}
.m-card__dl{display:grid;grid-template-columns:4.5em 1fr;gap:.2rem .6rem;font-size:.85rem;}
.m-card__dl dt{color:var(--mist);}
.m-card__dl dd{margin:0;min-width:0;overflow-wrap:anywhere;}
.m-card__feature{font-size:.85rem;line-height:1.7;color:var(--mist);overflow-wrap:anywhere;}
.m-card__btn{margin-top:.4rem;align-self:flex-start;background:var(--gold);color:#fff;padding:.55rem 1rem;font-size:.85rem;border-radius:2px;}
.m-empty{padding:2rem 1.2rem;background:var(--fog);border:1px dashed rgba(43,92,138,.35);border-radius:4px;line-height:1.9;color:var(--mist);}
.m-bot{position:absolute;left:-9999px;height:0;overflow:hidden;}
.m-check{display:flex;align-items:flex-start;gap:.75rem;}
.m-check input{margin-top:3px;accent-color:var(--gold);width:16px;height:16px;flex-shrink:0;}
.m-check label{font-size:.82rem;line-height:1.7;color:var(--mist);cursor:pointer;}
.m-check label span{color:#e05555;}
.contact-form input[type=file]{margin-bottom:.5rem;padding:.5rem;}
@media(max-width:600px){.m-wrap{padding-inline:max(16px,env(safe-area-inset-left,0px));}.contact-form{padding:2rem 1.2rem;}}

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

/* ===== PRIVACY / PROSE ===== */
.m-prose{max-width:46rem;display:flex;flex-direction:column;gap:1rem;line-height:1.9;}
.m-prose h2{font-family:var(--font-serif);font-size:1.15rem;font-weight:700;margin-top:1.6rem;padding-bottom:.4rem;border-bottom:1px solid rgba(43,92,138,.25);}
.m-prose ul{display:flex;flex-direction:column;gap:.5rem;padding-left:1.3rem;}
.m-prose p,.m-prose li{overflow-wrap:anywhere;}
.m-date{color:var(--mist);margin-top:1.5rem;}
.m-check a{color:var(--gold);text-decoration:underline;}
.m-prose ul{list-style:disc;} .m-prose li::marker{color:var(--gold);}

/* ===== A11 additions ===== */
.img-frame--portrait{max-width:420px;max-height:none!important;aspect-ratio:auto;margin-top:1.25rem;}
.img-frame--portrait img{width:100%;height:auto!important;object-fit:contain;display:block;}
.timeline-item__quote{font-family:var(--font-serif);font-size:1.05rem;color:var(--gold-light);margin:.25rem 0 .5rem;}
.cta-banner__title{white-space:nowrap;font-size:clamp(1.25rem,5.2vw,3rem);}
.back-btn{position:fixed;left:max(14px,env(safe-area-inset-left,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:900;display:inline-flex;align-items:center;gap:.4em;padding:.7rem 1.1rem;border:1px solid #2B5C8A;border-radius:999px;background:#fff;color:#2B5C8A;font:600 .95rem/1 var(--font-sans,sans-serif);box-shadow:0 2px 10px rgba(0,0,0,.15);cursor:pointer;}
.back-btn:hover{background:#2B5C8A;color:#fff;}
/* A11: PC hero — 石碑『葉隠発祥の地』を右側パネルに全文字表示 */
@media(min-width:769px){
  .hero__photo{inset:0 0 0 auto!important;width:46%;height:auto;}
  .hero__photo img{object-position:center 75%;}
  .hero__photo::before,.hero__photo::after{background:linear-gradient(90deg,#FAF8F3 0%,rgba(250,248,243,.7) 18%,rgba(250,248,243,0) 45%)!important;}
  .hero__content{max-width:min(640px,54vw);margin-left:clamp(2rem,6vw,9rem);padding-left:2rem;}
  .hero__title{font-size:clamp(1.9rem,3.3vw,3.4rem);line-height:1.35;}
}
@media(min-width:769px){
  .hero__photo{background:transparent!important;}
  .hero__photo::before,.hero__photo::after{display:none!important;}
  .hero__photo img{-webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.6) 18%,#000 42%);mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.6) 18%,#000 42%);}
  .hero__title{font-size:clamp(1.9rem,2.8vw,3rem);}
}
@media(max-width:768px){.hero__title{font-size:1.6rem;line-height:1.45;}}

/* A11: 国際交流ギャラリー */
.intl-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem;margin-top:1.25rem;}
.intl-fig{margin:0;min-width:0;}
.intl-fig img{width:100%;height:auto;display:block;border-radius:2px;}
.intl-fig figcaption{margin-top:.5rem;font-size:.9rem;color:#6B6F76;line-height:1.5;text-align:center;}
.intl-fig:first-child{grid-column:1/-1;max-width:720px;}

/* A11: 竹刀供養ギャラリー */
.kuyo-gallery{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:flex-start;margin-top:1.25rem;}
.kuyo-gallery .img-frame{margin-top:0;flex:0 1 420px;min-width:0;}
.kuyo-gallery .img-frame--slim{flex:0 1 260px;}
@media(max-width:768px){.kuyo-gallery .img-frame,.kuyo-gallery .img-frame--slim{flex:1 1 100%;max-width:100%;}.kuyo-gallery .img-frame--slim{max-width:260px;}}
