/* ── kmanul.org 共通スタイル ── */
@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&family=BIZ+UDPMincho:wght@400;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  /* みそら色（NPO/kimyo-na-manul） */
  --sky:        #5B8EC4;
  --sky-dark:   #2E5F8E;
  --sky-light:  #EBF3FB;
  --sky-mid:    #D0E4F5;

  --misora-bg:  #EEF4FB;

  /* まぬるすこれ色（グリーン） */
  --green:      #4FAD4A;
  --green-dark: #2D7A2A;
  --green-light:#C8E8C6;
  --green-bg:   #F0F8EF;

  /* 共通 */
  --navy:       #0F1E35;
  --navy-mid:   #1A3050;
  --white:      #FFFFFF;
  --cream:      #FAFAFA;
  --stone:      #F2F4F6;
  --text:       #1A1A1A;
  --text-muted: #5A6670;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'UD デジタル 教科書体 NP-R', 'UDDigiKyokashoNP-R', 'BIZ UDPGothic', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.8;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,30,53,0.97);
  backdrop-filter: blur(8px);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: 'UD デジタル 教科書体 NP-R', 'UDDigiKyokashoNP-R', 'BIZ UDPGothic', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--sky) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 999px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--sky-dark) !important; }

/* lang toggle */
.lang-toggle {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.5);
  font-family: 'UD デジタル 教科書体 NP-R', 'UDDigiKyokashoNP-R', 'BIZ UDPGothic', sans-serif;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  nav { padding: 0 16px; height: 56px; }
  .nav-logo img { height: 30px; }
  .nav-hamburger { display: flex; padding: 8px; }
  .nav-hamburger span { width: 22px; }
  .lang-toggle { margin-right: 8px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0;
    height: calc(100vh - 56px);
    background: rgba(15,30,53,0.99);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    overflow-y: auto;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-cta {
    margin: 16px 24px 8px;
    text-align: center;
    padding: 14px 20px !important;
    font-size: 15px !important;
  }
}

/* ── LAYOUT ── */
section { padding: 80px 0; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 900px) {
  .container { padding: 0 16px; }
  section { padding: 48px 0; }
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-family: 'UD デジタル 教科書体 NP-R', 'UDDigiKyokashoNP-R', 'BIZ UDPGothic', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
}
.eyebrow-sky { color: var(--sky); }
.eyebrow-sky::before { background: var(--sky); }
.eyebrow-green { color: var(--green); }
.eyebrow-green::before { background: var(--green); }
.eyebrow-white { color: rgba(255,255,255,0.6); }
.eyebrow-white::before { background: rgba(255,255,255,0.3); }

.section-title {
  font-family: 'BIZ UDPMincho', 'Yu Mincho', serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.section-title-en {
  font-family: 'Playfair Display', serif;
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 28px;
  display: block;
}
.section-lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 2;
  max-width: 620px;
  margin-bottom: 48px;
}
@media (max-width: 600px) {
  .section-title { font-size: 24px; margin-bottom: 4px; }
  .section-title-en { font-size: 12px; margin-bottom: 20px; }
  .section-lead { font-size: 14px; margin-bottom: 32px; }
  .eyebrow { font-size: 10px; margin-bottom: 8px; }
}

/* ── BUTTONS ── */
.btn-sky {
  background: var(--sky);
  color: var(--white);
  font-family: 'UD デジタル 教科書体 NP-R', 'UDDigiKyokashoNP-R', 'BIZ UDPGothic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 999px;
  display: inline-block;
  transition: all 0.25s;
}
.btn-sky:hover { background: var(--sky-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(91,142,196,0.4); }

.btn-green {
  background: var(--green);
  color: var(--white);
  font-family: 'UD デジタル 教科書体 NP-R', 'UDDigiKyokashoNP-R', 'BIZ UDPGothic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 999px;
  display: inline-block;
  transition: all 0.25s;
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79,173,74,0.4); }

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-family: 'UD デジタル 教科書体 NP-R', 'UDDigiKyokashoNP-R', 'BIZ UDPGothic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 999px;
  display: inline-block;
  transition: all 0.25s;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-outline-sky {
  border: 2px solid var(--sky);
  color: var(--sky);
  font-family: 'UD デジタル 教科書体 NP-R', 'UDDigiKyokashoNP-R', 'BIZ UDPGothic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 999px;
  display: inline-block;
  transition: all 0.25s;
}
.btn-outline-sky:hover { background: var(--sky); color: var(--white); }

.btn-gold {
  background: linear-gradient(135deg, #C8942A, #E8B84B);
  color: var(--white);
  font-family: 'UD デジタル 教科書体 NP-R', 'UDDigiKyokashoNP-R', 'BIZ UDPGothic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 999px;
  display: inline-block;
  transition: all 0.25s;
}
.btn-gold:hover { background: linear-gradient(135deg, #A87B1E, #C8942A); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,148,42,0.4); }

@media (max-width: 600px) {
  .btn-sky, .btn-green, .btn-outline-white, .btn-outline-sky {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    font-size: 15px;
  }
}

/* ── SECTION MISORA ── */
.section--misora {
  background: var(--misora-bg);
}
.section--misora .label {
  color: var(--sky-dark);
}
.section--misora h2 {
  color: var(--navy);
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 56px 0 28px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-logo img { width: 140px; height: auto; margin-bottom: 14px; display: block; }
.footer-tagline {
  font-family: 'UD デジタル 教科書体 NP-R', 'UDDigiKyokashoNP-R', 'BIZ UDPGothic', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 2;
}
.footer-col-title {
  font-family: 'UD デジタル 教科書体 NP-R', 'UDDigiKyokashoNP-R', 'BIZ UDPGothic', sans-serif;
  font-size: 10px;
  color: var(--sky);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-family: 'UD デジタル 教科書体 NP-R', 'UDDigiKyokashoNP-R', 'BIZ UDPGothic', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 48px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-family: 'UD デジタル 教科書体 NP-R', 'UDDigiKyokashoNP-R', 'BIZ UDPGothic', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
  .footer-bottom { padding: 20px 20px 0; flex-direction: column; gap: 8px; text-align: center; }
}
