/* ============================================================
   公益資本主義 実装センター — Site Styles
   Based on Visitors design system (analytical / vibrant spectrum)
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Inter', var(--font-openrunde);
  font-size: 17px;
  line-height: 1.85;
  color: var(--color-slate-ink);
  background: var(--color-canvas-white);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .28s ease, border-color .25s ease, background .25s ease;
  will-change: transform;
}
.site-header.hide { transform: translateY(-100%); }
.site-header.scrolled {
  border-bottom-color: var(--color-light-gray);
  background: rgba(255, 255, 255, 0.95);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-text { font-size: 16px; color: var(--color-slate-ink); }
.brand-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  display: block;
}
.brand-logo-footer {
  width: 40px; height: 40px;
  filter: brightness(1.05);
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 15px;
  padding: 10px 14px;
  color: var(--color-medium-gray);
  border-radius: 9999px;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--color-action); background: var(--color-blue-pale); }
.nav-cta {
  font-size: 15px;
  padding: 10px 14px;
  color: var(--color-medium-gray);
  border-radius: 9999px;
  margin-left: 4px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav-cta:hover { color: var(--color-action); background: var(--color-blue-pale); }
.nav-link { white-space: nowrap; }
.brand-text { white-space: nowrap; }

@media (max-width: 720px) {
  .nav-link { display: none; }
  .nav-cta { padding: 8px 14px; }
  .brand-text { font-size: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 9999px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--color-action);
  color: #fff;
  box-shadow: var(--shadow-subtle);
}
.btn-primary:hover { background: var(--color-action-hover); transform: translateY(-1px); }
.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-hero {
  padding: 18px 56px;
  font-size: 18px;
  min-width: 420px;
  background: linear-gradient(100deg,
    var(--color-blue) 0%, #2c78fc 35%, var(--color-blue-deep) 65%, var(--color-blue) 100%);
  background-size: 220% auto;
  box-shadow: 0 10px 28px rgba(var(--rgb-blue), 0.38), var(--shadow-subtle);
  animation: btnHeroFlow 18s linear infinite;
}
@keyframes btnHeroFlow {
  from { background-position: 0% center; }
  to   { background-position: 220% center; }
}
.btn-hero:hover {
  background: linear-gradient(100deg,
    var(--color-blue) 0%, #2c78fc 35%, var(--color-blue-deep) 65%, var(--color-blue) 100%);
  background-size: 220% auto;
  box-shadow: 0 14px 36px rgba(var(--rgb-blue), 0.5), var(--shadow-subtle);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .btn-hero { animation: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-sunset-harbor.webp');
  background-size: cover;
  background-position: center 100%;
  filter: saturate(110%);
  transform-origin: center top;
  transform: scale(1.35) translateX(7%);
  will-change: transform;
  animation: heroPan 18s linear infinite alternate;
}
@keyframes heroPan {
  from { transform: scale(1.35) translateX(7%); }
  to   { transform: scale(1.35) translateX(-7%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; transform: scale(1.05); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,18,40,0.45) 0%, rgba(10,18,40,0.35) 40%, rgba(10,18,40,0.65) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 120px 24px 140px;
  text-align: center;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.4em;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(28px, 5.4vw, 56px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  font-weight: 700;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg,
    #ffd76b 0%, #ffa600 22%, #ff7a59 44%, #8fc31f 70%, #2c78fc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 4px;
  animation: heroTitleFlow 16s ease-in-out infinite alternate;
}
@keyframes heroTitleFlow {
  from { background-position: 0% center; }
  to   { background-position: 100% center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title em { animation: none; }
}
.hero-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 2;
  color: rgba(255,255,255,0.92);
  margin-bottom: 40px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 2px; height: 8px;
  background: rgba(255,255,255,0.85);
  margin: 6px auto 0;
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 8vw, 112px) 0;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.32em;
  font-weight: 600;
  color: var(--color-action);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-slate-ink);
  /* 日本語の禁則を強める：単語/句の途中で折返さない */
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}
.section-sub {
  margin-top: 16px;
  color: var(--color-medium-gray);
  font-size: 17px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

/* ---------- About (Mission) ---------- */
.about-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(32px, 5vw, 64px);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.34fr;
  gap: 36px;
  align-items: start;
}
.about-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}
.about-brand-logo {
  height: 76px;
  width: auto;
  flex-shrink: 0;
}
.about-brand-name {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--color-slate-ink);
  word-break: keep-all;
}
.about-mission {
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 2;
  font-weight: 600;
  color: var(--color-slate-ink);
  text-align: center;
}
.about-right {
  padding-top: 52px;
  padding-left: 6px;
}
.about-right p { color: var(--color-medium-gray); margin-bottom: 20px; font-size: 17px; line-height: 2; }
.about-right .lead { font-size: 18px; color: var(--color-slate-ink); }
.about-right .quote {
  margin: 28px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--color-action);
  background: linear-gradient(90deg, rgba(var(--rgb-blue),0.08) 0%, rgba(var(--rgb-blue),0) 100%);
  border-radius: 0 12px 12px 0;
  font-size: 19px;
  line-height: 1.9;
}
.about-right .quote strong {
  font-size: 24px;
  color: var(--color-action);
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-right { padding-top: 0; padding-left: 0; }
}

/* ---------- About PIC ---------- */
.about-pic { background: var(--color-green-pale); }
.about-pic-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(32px, 5vw, 64px);
  box-shadow: var(--shadow-subtle-3);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-pic-left .section-title { margin-bottom: 24px; }
.about-pic-left p { color: var(--color-medium-gray); margin-bottom: 16px; line-height: 1.95; font-size: 17px; }
.about-pic-right { margin-top: 45px; }
.about-pic-left .muted { color: var(--color-muted-gray); font-size: 14px; margin-top: 20px; margin-bottom: 24px; }

.shachu-diagram {
  display: block;
  width: 90%;
  max-width: 378px;
  height: auto;
  margin: 0 auto;
}
/* 親側でも中央寄せを保証（モバイル時に左寄せに見えるのを防ぐ） */
.about-pic-right { text-align: center; }

/* 「公益資本主義とは」の下の、アカデミーへのボタン（2026-11-21） */
.about-pic-cta { display: flex; justify-content: center; margin-top: 32px; }
.about-pic-cta .btn { max-width: 100%; }

@media (max-width: 860px) {
  .about-pic-card { grid-template-columns: 1fr; }
  .shachu-diagram { max-width: 320px; }
}

/* ---------- Programs ---------- */
.programs { background: var(--surface-subtle-accent); }
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.program-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-light-gray);
  box-shadow: var(--shadow-subtle-3);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.04);
}
.card-academy:hover { border-color: var(--color-program-academy); }
.card-keiei:hover { border-color: var(--color-program-keiei); }
.card-coco:hover { border-color: var(--color-program-coco); }
.card-thirdage:hover { border-color: var(--color-thirdage); }
.card-thirdage .card-title { white-space: normal; }
.card-thirdage .card-more { margin-top: auto; padding-top: 14px; }

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.program-card:hover .card-media img { transform: scale(1.04); }
.card-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  color: #fff;
}
.tag-yellow { background: var(--color-program-academy); color: #5a3a00; }
.tag-blue { background: var(--color-program-keiei); }
.tag-pink { background: var(--color-program-coco); }
.tag-red { background: var(--color-thirdage); }

.card-body {
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  white-space: nowrap;
}
.card-title small {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-medium-gray);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.card-title .kana-tight { letter-spacing: -0.04em; }
.card-lead {
  font-size: 16px;
  color: var(--color-medium-gray);
  margin-bottom: 16px;
  line-height: 1.7;
}
.card-bullets {
  list-style: none;
  margin-bottom: 16px;
  padding: 0;
}
.card-bullets li {
  font-size: 15px;
  color: var(--color-slate-ink);
  padding: 6px 0 6px 18px;
  position: relative;
  line-height: 1.6;
}
.card-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-action);
}
.card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.meta-pill {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--color-blue-pale);
  color: var(--color-blue-deep);
  font-weight: 500;
}
.card-price {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--color-light-gray);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-num {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-slate-ink);
}
.price-unit {
  font-size: 14px;
  color: var(--color-medium-gray);
}
.price-label {
  font-size: 14px;
  color: var(--color-medium-gray);
  margin-right: 6px;
  align-self: center;
}
.card-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-action);
}
a.card-more:hover { color: var(--color-action-hover); text-decoration: underline; }
.third-age-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.third-age-links .card-more { margin-top: 0; }

@media (max-width: 960px) {
  .program-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 40px; }
}

/* ---------- Third Age Project (banner) ---------- */
.third-age { background: var(--color-red-pale); }
.third-age-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(32px, 5vw, 64px);
  box-shadow: var(--shadow-subtle-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.tag-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 16px;
}
.tag-comingsoon { background: var(--color-thirdage); }
.eyebrow-thirdage { display: block; color: var(--color-thirdage); }
.third-age-lead {
  color: var(--color-medium-gray);
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 24px;
}
.third-age-lead a {
  color: var(--color-action);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.third-age-lead a:hover { color: var(--color-action-hover); }
.third-age-recruit {
  font-size: 15px;
  color: var(--color-medium-gray);
  margin-bottom: 20px;
}

.third-age-event {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle-3);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.third-age-event-media {
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}
.third-age-event-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.third-age-event-body {
  background: #fff;
  padding: 24px clamp(20px, 3vw, 28px) 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.third-age-event-meta { margin-bottom: 18px; }
.third-age-event-meta .meta-pill { font-size: 15px; }
.third-age-event-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 16px;
}
.third-age-event-cta .btn {
  width: 224px;
  max-width: 100%;
  padding: 11px 18px;
  font-size: 14.5px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .third-age-card { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .third-age-left { text-align: left; }
}

@media (max-width: 640px) {
  .third-age-card { padding: 36px 20px; border-radius: 20px; }
  .third-age-event-body { padding: 20px 16px 24px; }
}

/* ---------- Company ---------- */
.company-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: start;
}
.company-body .lead {
  font-size: 18px;
  line-height: 2;
  margin: 16px 0 20px;
}
.company-body p {
  color: var(--color-medium-gray);
  line-height: 2;
  margin-bottom: 16px;
  font-size: 17px;
}
.company-side {
  padding-top: 111px;
}
.company-info {
  border-top: 1px solid var(--color-light-gray);
}
.company-info > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-light-gray);
  font-size: 15px;
}
.company-info dt {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--color-medium-gray);
  margin-bottom: 4px;
}
.company-info dd {
  color: var(--color-slate-ink);
  line-height: 1.7;
}
.profile-link {
  display: inline;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-action);
  cursor: pointer;
  white-space: nowrap;
}
.profile-link:hover { color: var(--color-action-hover); text-decoration: underline; }

/* Profile modal */
.profile-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.profile-photo {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}
.profile-role {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-action);
  margin-bottom: 4px;
}
.profile-romaji {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-muted-gray);
  margin-top: 4px;
}
.profile-body p {
  color: var(--color-medium-gray);
  line-height: 1.95;
  font-size: 17px;
}

@media (max-width: 860px) {
  .company-grid { grid-template-columns: 1fr; gap: 28px; }
  .company-side { padding-top: 0; }
}

/* ---------- Contact ---------- */
.contact { background: var(--surface-subtle-accent); }
.contact-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  box-shadow: var(--shadow-subtle-3);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(var(--rgb-blue),0.10) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(var(--rgb-magenta),0.08) 0%, transparent 50%);
}
.contact-card .lead {
  font-size: 18px;
  color: var(--color-medium-gray);
  margin: 16px auto 32px;
  max-width: 680px;
}
.contact-card .btn { margin-bottom: 12px; }
.contact-card .muted {
  font-size: 13px;
  color: var(--color-muted-gray);
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-orange);
  color: #fff;
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 28px;
  color: #fff;
}
.footer-line strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.footer-addr { font-size: 15px; }
.footer-line a {
  font-size: 15px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-line a:hover { opacity: 0.85; }
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

/* ---------- Third Age Project detail page ---------- */
.thirdage-hero {
  background: linear-gradient(160deg, var(--color-red-pale) 0%, #fff 65%);
  text-align: center;
}
.thirdage-hero-inner { max-width: 680px; margin: 0 auto; }
.thirdage-hero .section-eyebrow { color: var(--color-thirdage); }
.thirdage-hero-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-slate-ink);
  margin: 16px 0 12px;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}
.thirdage-hero-lead {
  color: var(--color-medium-gray);
  font-size: 17px;
  line-height: 1.9;
}

.thirdage-about p {
  color: var(--color-medium-gray);
  font-size: 17px;
  line-height: 2;
  max-width: 680px;
  margin: 0 auto 16px;
}
.thirdage-about p:last-child { margin-bottom: 0; }

/* ---- Hero: 4段階の図 + 問いかけ + 参画ノート（2カラム） ---- */
.thirdage-hero-media-full {
  max-width: 880px;
  margin: 36px auto;
}
.thirdage-hero-media-full img {
  width: 100%;
  height: auto;
  display: block;
}
.thirdage-hero-question {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-thirdage);
  margin: 20px 0 0;
}
.thirdage-hero-note {
  color: var(--color-medium-gray);
  font-size: 15.5px;
  line-height: 1.9;
  padding-top: 18px;
  border-top: 1px solid var(--color-light-gray);
}

@media (max-width: 640px) {
  .thirdage-hero-media-full { margin: 28px auto; }
}

/* ---- Section 1: ２つの問題 ---- */
.thirdage-problems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 32px auto;
}
.thirdage-problem-card {
  background: var(--surface-subtle-accent);
  border-radius: 16px;
  padding: 28px 24px;
}
.thirdage-problem-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: var(--color-thirdage);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.thirdage-problem-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-slate-ink);
  line-height: 1.6;
  margin-bottom: 10px;
}
.thirdage-problem-card p {
  color: var(--color-medium-gray);
  font-size: 15.5px;
  line-height: 1.85;
}

.thirdage-pivot {
  max-width: 680px;
  margin: 40px auto;
  padding: 24px 28px;
  border-left: 3px solid var(--color-thirdage);
  background: linear-gradient(90deg, var(--color-red-pale) 0%, rgba(230,0,18,0) 100%);
  border-radius: 0 12px 12px 0;
  font-size: 18px;
  line-height: 1.9;
  color: var(--color-slate-ink);
  font-weight: 600;
}

/* ---- Section 1: たとえば「社中」／「公益」とは ---- */
.thirdage-definitions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 760px;
  margin: 40px auto;
}
.thirdage-def-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-thirdage);
  margin-bottom: 12px;
}
.thirdage-def-card p {
  color: var(--color-medium-gray);
  font-size: 17px;
  line-height: 2;
}
.thirdage-def-card + .thirdage-def-card {
  padding-top: 32px;
  border-top: 1px solid var(--color-light-gray);
}
.thirdage-def-card--shachu {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.thirdage-def-image {
  margin-top: 0;
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@media (max-width: 640px) {
  .thirdage-def-card--shachu { grid-template-columns: 1fr; }
  .thirdage-def-image { margin-top: 20px; }
}

.thirdage-closing {
  max-width: 680px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.9;
  color: var(--color-slate-ink);
}
.thirdage-closing strong { color: var(--color-thirdage); }

/* ---- Section 2: パートナー ---- */
.thirdage-partner-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-subtle-3);
  max-width: 880px;
  margin: 0 auto;
}
.thirdage-partner-card > p {
  color: var(--color-medium-gray);
  font-size: 17px;
  line-height: 2;
  margin-bottom: 20px;
}
.thirdage-partner-card > p:last-child { margin-bottom: 0; }
.thirdage-partner-card a {
  color: var(--color-action);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.thirdage-partner-card a:hover { color: var(--color-action-hover); }
.thirdage-people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 560px;
  margin: 28px auto 32px;
}
.thirdage-person { text-align: center; }
.thirdage-person-photo {
  width: 140px;
  height: 140px;
  border-radius: 9999px;
  object-fit: cover;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-subtle-3);
}
.thirdage-person-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-slate-ink);
  margin-bottom: 4px;
}
.thirdage-person-suffix {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-medium-gray);
  margin-left: 2px;
}
.thirdage-person-title {
  font-size: 13.5px;
  color: var(--color-medium-gray);
  line-height: 1.6;
}

/* ---- Section 3: 提供するもの ---- */
.thirdage-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.thirdage-feature-card {
  background: var(--color-red-pale);
  border-radius: 16px;
  padding: 28px 24px;
}
.thirdage-feature-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-thirdage);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.thirdage-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-thirdage);
  line-height: 1.5;
  margin-bottom: 12px;
}
.thirdage-feature-card p {
  color: var(--color-medium-gray);
  font-size: 15.5px;
  line-height: 1.85;
}

/* ---- Section 4: トピックス（イベント＋アンケート） ---- */
.event-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
}

/* ---- Section 5: 参画の道（お問合せカード内） ---- */
.thirdage-paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: left;
}
.thirdage-path {
  background: var(--surface-subtle-accent);
  border-radius: 16px;
  padding: 22px 24px;
}
.thirdage-path h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-thirdage);
  margin-bottom: 8px;
}
.thirdage-path p {
  color: var(--color-medium-gray);
  font-size: 14.5px;
  line-height: 1.8;
}

@media (max-width: 860px) {
  .thirdage-problems { grid-template-columns: 1fr; max-width: 480px; margin: 32px auto; }
  .thirdage-definitions { max-width: 480px; }
  .thirdage-def-image { max-width: 260px; }
  .thirdage-feature-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 20px; }
  .event-banner-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 24px; }
  .thirdage-paths { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .thirdage-stages-figure { margin: 28px auto 24px; }
  .thirdage-hero-question { font-size: 19px; margin: 22px 0 20px; }
  .thirdage-problem-card { padding: 22px 20px; }
  .thirdage-pivot { padding: 20px 22px; font-size: 16.5px; }
  .thirdage-closing { font-size: 17px; }
  .thirdage-partner-card { padding: 32px 20px; border-radius: 20px; }
  .thirdage-people { gap: 20px; max-width: 320px; }
  .thirdage-person-photo { width: 108px; height: 108px; }
  .thirdage-feature-card { padding: 22px 20px; }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 19, 38, 0.6);
  backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 24px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  animation: slideUp .3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-media {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.modal-content { padding: 28px 48px 40px; }
.modal-profile .modal-dialog { padding: 40px 40px 36px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  font-size: 22px;
  color: var(--color-slate-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background .2s ease;
}
.modal-close:hover { background: #fff; }
.modal-tag {
  position: absolute;
  top: 20px;
  left: 24px;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
}
/* 半透明背景：下の画像が透けて見える */
.modal-tag.tag-yellow { background: rgba(var(--rgb-orange), 0.78); color: #fff; }
.modal-tag.tag-blue   { background: rgba(var(--rgb-blue),   0.78); }
.modal-tag.tag-pink   { background: rgba(var(--rgb-magenta),0.78); }
.modal-title {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 8px;
}
.modal-title small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-medium-gray);
  margin-top: 6px;
}
.modal-lead {
  color: var(--color-medium-gray);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.modal-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-action);
  margin-bottom: 8px;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-light-gray);
}
.modal-steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.modal-steps li {
  position: relative;
  padding: 0 0 14px 36px;
  counter-increment: step;
}
.modal-steps li:last-child { padding-bottom: 0; }
.modal-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 1px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-action);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.modal-steps li strong {
  display: block;
  font-size: 18px;
  color: var(--color-slate-ink);
  margin-bottom: 3px;
}
.modal-steps li span {
  display: block;
  font-size: 15px;
  color: var(--color-medium-gray);
  line-height: 1.65;
}
.modal-info-list > div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 4px 0;
  font-size: 14.5px;
  line-height: 1.6;
}
.modal-info-list dt {
  font-weight: 600;
  color: var(--color-medium-gray);
}
.modal-info-list dd { color: var(--color-slate-ink); }
.modal-section-spaced { margin-top: 24px; }
.modal-section-sub {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-muted-gray);
}
.modal-outcome p strong { color: var(--color-section-pic); }
.modal-outcome {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-light-gray);
}
.modal-outcome p {
  color: var(--color-medium-gray);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
}
.modal-note {
  font-size: 12.5px;
  color: var(--color-muted-gray);
  margin-top: 14px;
  line-height: 1.7;
}
.modal-section {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-section-pic);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--color-light-gray);
}
.modal-list, .modal-check {
  list-style: none;
  padding: 0;
}
.modal-list li {
  padding: 6px 0 6px 18px;
  position: relative;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-slate-ink);
}
.modal-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--color-action);
}
.modal-check li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-slate-ink);
}
.modal-check li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 8px;
  color: var(--color-section-pic);
  font-weight: 700;
}
.modal-q { font-size: 17px; margin: 12px 0 6px; color: var(--color-slate-ink); }
.modal-q + p { color: var(--color-medium-gray); font-size: 16px; line-height: 1.8; margin-bottom: 12px; }
.modal-grid .muted.small { font-size: 12px; color: var(--color-muted-gray); margin-top: 12px; line-height: 1.7; }

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-light-gray);
  flex-wrap: wrap;
}
.modal-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.modal-price .price-num { font-size: 24px; }
.modal-price .price-label {
  align-self: center;
  color: var(--color-section-pic);
  font-weight: 700;
}

@media (max-width: 720px) {
  .modal-dialog { padding: 36px 24px 28px; }
  .modal-grid { grid-template-columns: 1fr; gap: 24px; }
  .modal-title { font-size: 24px; }
  .modal-footer { flex-direction: column; align-items: stretch; }
  .modal-footer .btn { width: 100%; }
}

/* ============================================================
   レスポンシブ — 文字サイズ & スペーシング
   既存のレイアウト用 @media と併用される（カスケード順で上書き）
   Breakpoints:
     ≤ 960px : タブレット
     ≤ 720px : モバイル
     ≤ 480px : 小型モバイル
   ============================================================ */

/* ---------- タブレット ---------- */
@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .section { padding: clamp(56px, 7vw, 96px) 0; }
  .section-head { margin-bottom: 44px; }

  /* ヘッダーを圧縮（720pxまでの間でメニューが詰まらないよう） */
  .nav { gap: 2px; }
  .nav-link { font-size: 14px; padding: 8px 10px; }
  .nav-cta { font-size: 14px; padding: 8px 14px; margin-left: 4px; }
  .brand-text { font-size: 15px; }
  .brand-logo { width: 32px; height: 32px; }

  /* about(Vision)はこの幅から1カラム化されるので余白を抑える */
  .about-right .quote { padding: 22px 24px; }

  .about-pic-card { padding: clamp(28px, 4vw, 56px); gap: 32px; }
}

/* ---------- モバイル ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.8; }

  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }

  /* ヘッダー */
  .nav-container { height: 60px; }
  .brand-logo { width: 32px; height: 32px; }

  /* ヒーロー */
  .hero { min-height: 78vh; }
  .hero-inner { padding: 96px 18px 108px; }
  .hero-eyebrow { font-size: 12px; letter-spacing: 0.3em; margin-bottom: 20px; }
  .hero-title { line-height: 1.4; margin-bottom: 24px; }
  .hero-lead { line-height: 1.95; margin-bottom: 32px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: auto; max-width: 100%; }
  .btn-hero { min-width: 0; padding: 14px 28px; font-size: 15.5px; }

  /* セクション見出し */
  .section-eyebrow { font-size: 12px; letter-spacing: 0.28em; }
  .section-sub { font-size: 16px; }

  /* Vision */
  .about-right p { font-size: 16px; line-height: 1.95; margin-bottom: 16px; }
  .about-right .lead { font-size: 17px; }
  .about-right .quote { padding: 20px 22px; font-size: 17px; line-height: 1.85; margin: 24px 0; }
  .about-right .quote strong { font-size: 20px; }

  /* 公益資本主義とは */
  .about-pic-card { padding: 28px 24px; gap: 28px; }
  .about-pic-left p { font-size: 16px; line-height: 1.9; }
  .about-pic-left .muted { font-size: 13px; }
  .shachu-diagram { max-width: 300px; }

  /* プログラムカード */
  .card-media { aspect-ratio: 16 / 9; }
  .card-tag { top: 12px; left: 12px; font-size: 12px; padding: 5px 11px; }
  .card-body { padding: 22px 22px 24px; }
  .card-title { font-size: 24px; }
  .card-title small { font-size: 13px; }
  .card-lead { font-size: 15px; margin-bottom: 14px; }
  .meta-pill { font-size: 12px; }
  .price-num { font-size: 19px; }
  .price-unit, .price-label { font-size: 13px; }
  .card-more { font-size: 14px; }

  /* 会社紹介 */
  .company-grid { gap: 32px; }
  .company-body .lead { font-size: 17px; }
  .company-body p { font-size: 16px; line-height: 1.95; }
  .company-info > div { padding: 14px 0; font-size: 14px; }
  .company-info dt { font-size: 12px; letter-spacing: 0.04em; }

  /* お問合せ */
  .contact-card { padding: 36px 24px; }
  .contact-card .lead { font-size: 16px; margin-bottom: 28px; }
  .btn-lg { padding: 14px 32px; font-size: 16px; width: auto; }

  /* フッター */
  .footer-line { gap: 4px 20px; }
  .footer-line strong { font-size: 17px; }
  .footer-addr, .footer-line a { font-size: 14px; }

  /* モーダル */
  .modal { padding: 16px; }
  .modal-content { padding: 24px 24px 28px; }
  .modal-profile .modal-dialog { padding: 32px 24px 28px; }
  .modal-media { aspect-ratio: 16 / 9; }
  .modal-tag { font-size: 12px; top: auto; bottom: 14px; left: 16px; }
  .modal-title { font-size: 24px; }
  .modal-title small { font-size: 13px; }
  .modal-lead { font-size: 16px; line-height: 1.85; margin-bottom: 24px; }
  .modal-section { font-size: 13px; }
  .modal-list li { font-size: 15px; padding: 5px 0 5px 16px; }
  .modal-check li { font-size: 16px; padding: 7px 0 7px 24px; }
  .modal-q { font-size: 16px; }
  .modal-q + p { font-size: 15px; }
  .modal-price .price-num { font-size: 22px; }
}

/* ---------- 小型モバイル ---------- */
@media (max-width: 480px) {
  body { font-size: 15.5px; }

  .container { padding: 0 16px; }
  /* セクション間の余白を統一（縦リズムの基準） */
  .section { padding: 56px 0; }

  .nav-container { height: 56px; }
  .brand-text { font-size: 13px; }
  .brand-logo { width: 28px; height: 28px; }
  .nav-cta { padding: 7px 12px; font-size: 14px; }

  .hero-inner { padding: 84px 16px 96px; }
  .hero-title { letter-spacing: 0.005em; }
  .hero-lead { font-size: 16px; }

  /* セクション見出し共通リズム */
  .section-head { margin: 0 auto 40px; }
  .section-title { margin-bottom: 0; }
  .section-eyebrow { margin-bottom: 12px; }
  .section-sub { margin-top: 12px; }

  /* MISSION セクション（about-card） */
  .about-card { padding: 36px 20px 40px; border-radius: 20px; }
  .about-grid { gap: 36px; }
  .about-left .section-eyebrow { margin-bottom: 24px; }
  .about-brand { gap: 10px; margin-bottom: 28px; }
  .about-brand-logo { height: 76px; }
  .about-brand-name { font-size: 32px; line-height: 1.2; letter-spacing: 0; }
  .about-mission {
    font-size: 19px;
    line-height: 1.85;
    text-align: left;
    font-weight: 700;
  }
  .about-right { padding-top: 0; padding-left: 0; }
  .about-right p { font-size: 16px; line-height: 1.95; margin-bottom: 16px; }
  .about-right .lead { font-size: 17px; }
  .about-right .quote { font-size: 16px; padding: 18px 20px; margin: 20px 0; line-height: 1.85; }
  .about-right .quote strong { font-size: 19px; }

  /* 公益資本主義とは（about-pic） */
  .about-pic-card { padding: 32px 20px; border-radius: 20px; gap: 24px; }
  .about-pic-left p { font-size: 16px; line-height: 1.95; margin-bottom: 16px; }
  .about-pic-left .muted { font-size: 13px; margin-top: 16px; margin-bottom: 20px; }
  .about-pic-right { margin-top: 8px; }
  .shachu-diagram { max-width: 260px; width: 92%; }

  /* プログラム */
  .program-grid { gap: 48px; }
  .program-card { border-radius: 18px; }
  .card-body { padding: 24px 20px 24px; }
  .card-title { font-size: 22px; margin-bottom: 12px; }
  .card-lead { font-size: 14.5px; margin-bottom: 14px; }
  .card-meta { margin-bottom: 16px; }
  .card-price { padding-top: 14px; }
  .price-num { font-size: 18px; }
  .card-more { margin-top: 12px; }

  /* お問合せ */
  .contact-card { padding: 36px 20px; border-radius: 20px; }
  .contact-card .lead { font-size: 16px; margin-bottom: 24px; }

  /* モーダル */
  .modal-dialog { border-radius: 18px; }
  .modal-content { padding: 22px 20px 24px; }
  .modal-eyebrow { font-size: 13px; margin-bottom: 6px; }
  .modal-title { font-size: 22px; margin-bottom: 6px; }
  .modal-lead { font-size: 15px; margin-bottom: 22px; }
  .modal-grid { gap: 22px; padding-top: 20px; }
  .modal-list li { font-size: 14.5px; }
  .modal-check li { font-size: 15.5px; }
  .modal-steps li { padding-bottom: 12px; }
  .modal-steps li strong { font-size: 16px; }
  .modal-steps li span { font-size: 13.5px; }
  .modal-outcome { margin-top: 22px; padding-top: 20px; }
  .modal-footer { margin-top: 22px; padding-top: 20px; }
  .modal-price .price-num { font-size: 20px; }
  .modal-note { font-size: 12px; margin-top: 12px; }
}
