/* ===== Rehastud ===== */
:root {
  --teal: #0F6B6E;
  --teal-600: #0c585a;
  --teal-50: #eef6f5;
  --teal-100: #d9ecea;
  --amber: #E0A43A;
  --amber-light: #F2C063;
  --deep: #0E2F33;
  --ink: #1d2b2d;
  --muted: #5b6b6d;
  --line: #dfe8e7;
  --bg: #fbfaf7;
  --white: #fff;

  --font-ja: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --font-en: "Nunito", var(--font-ja);
  --radius: 18px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ja);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-weight: 700; line-height: 1.45; margin: 0; }
p { margin: 0 0 1em; }
strong { color: var(--teal); font-weight: 700; }
em { font-style: normal; background: linear-gradient(transparent 62%, rgba(224,164,58,.35) 62%); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.pc { display: none; }
@media (min-width: 768px) { .pc { display: inline; } }

/* ===== Header ===== */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(251,250,247,.9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img:first-child { width: 30px; height: auto; }
.brand-word { width: 118px; height: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 700; }
.nav a:hover { color: var(--teal); }
.nav .nav-cta {
  background: var(--teal); color: var(--white);
  padding: 8px 18px; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--teal-600); color: var(--white); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 10px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--deep); border-radius: 2px; transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .nav-cta { margin-top: 16px; text-align: center; border: 0; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 8px 20px -10px rgba(15,107,110,.7); }
.btn-primary:hover { background: var(--teal-600); }
.btn-ghost { color: var(--teal); border: 2px solid var(--teal); }
.btn-amber { background: var(--amber-light); color: var(--deep); }
.btn-amber:hover { background: var(--amber); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 110px;
  background:
    radial-gradient(circle at 88% 20%, rgba(224,164,58,.14), transparent 40%),
    radial-gradient(circle at 10% 100%, rgba(15,107,110,.10), transparent 45%);
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; margin-bottom: 22px;
  font-size: .9rem; font-weight: 700; color: var(--teal);
  padding: 6px 14px; border-radius: 999px; background: var(--teal-50);
}
.hero-title {
  font-size: clamp(2.4rem, 7.5vw, 4.6rem);
  line-height: 1.3; letter-spacing: .04em; color: var(--deep);
  margin-bottom: 28px;
}
.hero-lead { font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--ink); max-width: 40em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mark {
  position: absolute; right: -40px; bottom: -60px; width: 440px;
  opacity: .08; pointer-events: none;
}
@media (max-width: 767px) {
  .hero { padding: 64px 0 80px; }
  .hero-mark { width: 260px; right: -60px; bottom: -40px; }
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
@media (max-width: 767px) { .section { padding: 72px 0; } }
.section-tint { background: var(--teal-50); }
.section-deep { background: var(--deep); color: #e7f0ef; }
.section-deep .section-title { color: var(--white); }
.section-deep .section-label { color: var(--amber-light); }

.section-label {
  font-family: var(--font-en); font-weight: 800; font-size: .85rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 10px; display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--deep); margin-bottom: 22px; }
.section-lead { color: var(--muted); max-width: 42em; margin-bottom: 44px; }

/* ===== Cards (Why) ===== */
.cards { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.card-num { font-family: var(--font-en); font-weight: 800; color: var(--amber); font-size: 1.05rem; }
.card h3 { font-size: 1.12rem; color: var(--deep); margin: 8px 0 10px; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ===== Model ===== */
.model { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .model { grid-template-columns: 1fr; gap: 36px; } }
.model-figure { display: flex; flex-direction: column; gap: 12px; }
.layer {
  border-radius: var(--radius); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.layer strong { color: inherit; font-size: 1.12rem; }
.layer small { font-size: .88rem; line-height: 1.7; opacity: .85; }
.layer-tag {
  align-self: flex-start; font-size: .75rem; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; margin-bottom: 4px;
}
.layer-top { background: var(--white); border: 2px dashed var(--amber); margin: 0 26px; color: var(--deep); }
.layer-top .layer-tag { background: var(--amber-light); color: var(--deep); }
.layer-base { background: var(--teal); color: var(--white); }
.layer-base .layer-tag { background: rgba(255,255,255,.18); }
.layer-root {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--deep); color: var(--white); font-weight: 700;
  border-radius: var(--radius); padding: 14px 18px; font-size: .95rem; text-align: center;
}

/* ===== Philosophy ===== */
.philo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 16px; }
@media (max-width: 820px) { .philo { grid-template-columns: 1fr; } }
.philo-item {
  background: var(--white); border-radius: var(--radius);
  padding: 34px 32px; border-top: 5px solid var(--teal);
  box-shadow: 0 10px 30px -22px rgba(14,47,51,.4);
}
.philo-item h3 { font-size: 1.3rem; color: var(--deep); margin-bottom: 14px; }
.philo-item h3 span { display: block; font-size: .95rem; color: var(--teal); }
.philo-item p { color: var(--ink); font-size: .98rem; margin: 0; }
.philo-accent { background: var(--deep); border-top-color: var(--amber); }
.philo-accent h3 { color: var(--amber-light); font-size: 1.7rem; }
.philo-accent p { color: #dbe7e6; }

/* ===== Programs ===== */
.programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 12px; }
@media (max-width: 820px) { .programs { grid-template-columns: 1fr; } }
.program {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 32px 30px;
}
.program-main { grid-column: 1 / -1; background: var(--teal); border-color: var(--teal); }
.program-head { margin-bottom: 14px; }
.program h3 { color: var(--white); font-size: 1.35rem; margin-top: 10px; }
.program p { color: #d4e3e2; font-size: .97rem; }
.program-main p { color: #eaf5f4; }
.program-badge {
  display: inline-block; font-size: .78rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: var(--white);
}
.badge-amber { background: var(--amber-light); color: var(--deep); }
.badge-muted { background: rgba(255,255,255,.08); color: #aac3c2; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.program-main .checks { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 28px; }
.checks li { position: relative; padding-left: 28px; color: var(--white); font-size: .95rem; line-height: 1.7; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 14px; border-radius: 50%; background: var(--amber-light);
}
.tags { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .88rem; padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(242,192,99,.6); color: var(--amber-light);
}
.program .note { font-size: .86rem; color: #9fbcbb; margin: 0; }

/* ===== Principles ===== */
.principles {
  list-style: none; padding: 0; margin: 0; counter-reset: p;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 28px;
}
.principles li {
  counter-increment: p; position: relative;
  padding: 26px 0 26px 64px; border-top: 1px solid var(--line);
}
.principles li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute; left: 0; top: 22px;
  font-family: var(--font-en); font-weight: 800; font-size: 1.7rem; color: var(--teal);
  line-height: 1;
}
.principles h3 { font-size: 1.1rem; color: var(--deep); margin-bottom: 6px; }
.principles p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== Message ===== */
.message { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .message { grid-template-columns: 1fr; gap: 32px; } }
.message blockquote {
  margin: 8px 0 28px; padding: 4px 0 4px 20px;
  border-left: 4px solid var(--amber);
  font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 700; color: var(--deep); line-height: 1.7;
}
.message-body p { font-size: 1rem; }
.signature { margin-top: 30px; display: flex; flex-direction: column; }
.sig-role { font-size: .88rem; color: var(--muted); }
.sig-name { font-size: 1.5rem; font-weight: 700; color: var(--deep); letter-spacing: .12em; }
.profile {
  background: var(--white); border-radius: var(--radius); padding: 30px 28px;
  border: 1px solid var(--line);
}
.profile-mark { width: 54px; margin-bottom: 18px; }
.profile dl { margin: 0; }
.profile dt { font-weight: 700; color: var(--teal); font-size: .9rem; margin-top: 14px; }
.profile dt:first-child { margin-top: 0; }
.profile dd { margin: 4px 0 0; font-size: .93rem; line-height: 1.75; }

/* ===== Roadmap ===== */
.roadmap {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative;
}
@media (max-width: 820px) { .roadmap { grid-template-columns: 1fr; } }
.roadmap li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; position: relative;
}
.roadmap li:not(:last-child)::after {
  content: ""; position: absolute; right: -16px; top: 42px;
  width: 12px; height: 12px; border-top: 3px solid var(--amber); border-right: 3px solid var(--amber);
  transform: rotate(45deg);
}
@media (max-width: 820px) {
  .roadmap li:not(:last-child)::after { right: 50%; top: auto; bottom: -16px; transform: translateX(50%) rotate(135deg); }
}
.rm-when { font-family: var(--font-en); font-weight: 800; color: var(--amber); font-size: .95rem; }
.roadmap h3 { font-size: 1.3rem; color: var(--deep); margin: 4px 0 10px; }
.roadmap p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== Contact ===== */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-logo { width: min(420px, 90%); margin-bottom: 44px; }
.contact p { color: #d4e3e2; max-width: 38em; margin-bottom: 32px; }

/* ===== Draft notes (remove before publishing) ===== */
.todo {
  font-size: .8rem; color: #9a6a12; background: #fff5df;
  border-radius: 8px; padding: 6px 10px; margin: 16px 0 0;
}
.todo-dark { color: var(--deep); margin-top: 20px; }

/* ===== Footer ===== */
.site-footer { background: #0a2427; color: #9fbcbb; padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; font-size: .88rem; }
.footer-inner p { margin: 0; }
.footer-inner .copy { margin-left: auto; font-family: var(--font-en); }
@media (max-width: 600px) { .footer-inner .copy { margin-left: 0; width: 100%; } }
.programs .program:last-child:nth-child(even) { grid-column: 1 / -1; }

/* ===== Issues (Why) ===== */
.issues { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 820px) { .issues { grid-template-columns: 1fr; } }
.issue {
  background: var(--white); border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius); padding: 26px 28px;
}
.issue-title {
  font-size: 1.2rem; color: var(--deep); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.issue-title::before {
  content: "課題"; flex-shrink: 0;
  font-size: .72rem; font-weight: 700; color: var(--teal);
  background: var(--teal-50); border-radius: 6px; padding: 2px 8px; letter-spacing: .08em;
}
.issue-body { margin: 0; display: grid; gap: 12px; }
.issue-body > div { display: grid; grid-template-columns: 3.2em 1fr; gap: 12px; align-items: baseline; }
.issue-body dt { font-size: .78rem; font-weight: 700; text-align: center; border-radius: 999px; padding: 1px 0; }
.issue-body div:first-child dt { color: var(--muted); border: 1px solid var(--line); }
.issue-body div:last-child dt { color: var(--deep); background: var(--amber-light); }
.issue-body dd { margin: 0; font-size: .95rem; line-height: 1.8; color: var(--ink); }
.issue-body div:first-child dd { color: var(--muted); }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }
.team-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; border-top: 5px solid var(--amber-light);
}
.team-item h3 { font-size: 1.15rem; color: var(--deep); margin-bottom: 10px; }
.team-item p { font-size: .95rem; color: var(--muted); margin: 0; }
.team-join { margin: 32px 0 0; font-weight: 700; color: var(--deep); }
.team-join a { font-weight: 700; }

/* ===== Activities additions ===== */
.section-lead-dark { color: #c9dcdb; }
.section-lead-dark strong { color: var(--amber-light); }
.program-alt { background: #154a4d; border-color: #154a4d; }
.program-future { grid-column: 1 / -1; }
.program .note-light { color: #cfe3e1; margin-top: 16px; }
.program-head h3:first-child { margin-top: 0; }

/* ===== Japanese line breaking & measure ===== */
body { line-break: strict; }
h1, h2, h3, p, li, dd, blockquote, small, strong, .issue-title, .issue-sum, .layer-root {
  word-break: auto-phrase;       /* Chrome/Edge: break at 文節 boundaries */
}
h1, h2, h3, blockquote, .issue-title, .issue-sum { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.program > p, .model-text p, .philo-item p, .message-body p { max-width: 40em; }
