/* ============================================
   KNCT University — "Clean Trust" Design System
   Light base / Cream beige accent / Black for hero & CTA
   Typography: Archivo Black × Noto Sans JP × Montserrat
   ============================================ */

:root {
  /* Brand Colors */
  --color-black: #0D0D0D;
  --color-near-black: #111111;
  --color-cream: #E8E0CC;
  --color-cream-light: #F5F0E8;
  --color-cream-bg: #F7F2E8;
  --color-cream-dark: #C8B89A;
  --color-cream-darker: #8A8070;

  /* Text on light */
  --color-text: #111111;
  --color-text-body: #444444;
  --color-text-muted: #666666;
  --color-text-light: #999999;

  /* Text on dark */
  --color-text-on-dark: #E8E0CC;
  --color-text-on-dark-body: #B0A898;
  --color-text-on-dark-muted: #6E6759;

  /* UI */
  --color-bg: #FFFFFF;
  --color-bg-cream: #F7F2E8;
  --color-border: #E8E0CC;
  --color-border-strong: #D8C9A8;
  --color-border-dark: #2A2A2A;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --transition-fast: 160ms var(--ease-out);
  --transition-base: 200ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', -apple-system, BlinkMacSystemFont,
               'BIZ UDPGothic', 'Yu Gothic Medium', 'Yu Gothic', Meiryo, 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo', 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.005em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-text); text-decoration: none; transition: color var(--transition-base); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

/* ============================================
   Typography helpers
   ============================================ */
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-cream-dark);
  margin-bottom: 16px;
}
.eyebrow-light {
  color: var(--color-cream-dark);
}
.eyebrow-on-dark {
  color: var(--color-cream-dark);
}

h2.section-title {
  font-size: 40px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
}
.section-title.on-dark { color: var(--color-cream); }

h1.page-title {
  font-size: 56px;
  font-weight: 600;
  color: var(--color-cream);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
}
/* When header is NOT scrolled (still over dark hero/page-header): use cream colors */
.site-header:not(.scrolled) .site-logo { color: var(--color-cream); }
.site-header:not(.scrolled) .site-logo span.subtitle { color: var(--color-cream-dark); }
.site-header:not(.scrolled) .site-nav a.nav-link { color: var(--color-text-on-dark-body); }
.site-header:not(.scrolled) .site-nav a.nav-link:hover { color: var(--color-cream); }
.site-header:not(.scrolled) .site-nav a.nav-link::after { background: var(--color-cream); }
.site-header:not(.scrolled) .btn-primary {
  background: var(--color-cream);
  color: var(--color-near-black);
  border-color: var(--color-cream);
}
.site-header:not(.scrolled) .btn-primary:hover {
  background: var(--color-near-black);
  color: var(--color-cream);
  border-color: var(--color-cream);
}
.site-header:not(.scrolled) .hamburger span { background: var(--color-cream); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-family: 'Archivo', 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--color-text);
  display: flex;
  align-items: center;
}
.site-logo img {
  display: block;
  height: 48px;
  width: auto;
  border-radius: 4px;
  transition: opacity var(--transition-base);
}
.site-logo:hover img { opacity: 0.85; }
@media (max-width: 768px) {
  .site-logo img { height: 36px; }
}
.site-logo span.subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  font-weight: 600;
  margin-left: 8px;
  color: var(--color-cream-dark);
  text-transform: uppercase;
  vertical-align: middle;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
}
.site-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--transition-base);
}
.site-nav a.nav-link:hover { color: var(--color-text); }
.site-nav a.nav-link:hover::after,
.site-nav a.nav-link.active::after { width: 100%; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  text-align: center;
}
.btn:active { transform: scale(0.97); transition-duration: 120ms; }

.btn-primary {
  background: var(--color-near-black);
  color: var(--color-cream);
  border-color: var(--color-near-black);
}
.btn-primary:hover {
  background: var(--color-cream);
  color: var(--color-near-black);
}

.btn-outline {
  background: transparent;
  color: var(--color-cream);
  border-color: var(--color-cream);
}
.btn-outline:hover {
  background: var(--color-cream);
  color: var(--color-near-black);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-near-black);
  border-color: var(--color-near-black);
}
.btn-outline-dark:hover {
  background: var(--color-near-black);
  color: var(--color-cream);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 88vh;
  background: var(--color-black);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(232, 224, 204, 0.07), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(232, 224, 204, 0.04), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--color-cream-dark); margin-bottom: 24px; }
.hero h1 {
  font-family: 'Archivo', 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: clamp(44px, 7.5vw, 88px);
  font-weight: 800;
  color: var(--color-cream);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.hero .lead {
  font-size: 17px;
  color: var(--color-text-on-dark-body);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.95;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Page Header (dark)
   ============================================ */
.page-header {
  background: var(--color-black);
  color: var(--color-cream);
  padding: 144px 0 80px;
  position: relative;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(232, 224, 204, 0.05), transparent 60%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .eyebrow { color: var(--color-cream-dark); }
.page-header h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  color: var(--color-cream);
}

/* ============================================
   Section
   ============================================ */
section.section {
  padding: 96px 0;
  background: var(--color-bg);
}
section.section-cream { background: var(--color-bg-cream); }
section.section-dark { background: var(--color-black); color: var(--color-cream); }

section.section h2,
section.section-cream h2 { color: var(--color-text); }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header h2 {
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 600;
  margin-bottom: 0;
}

.section-body {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-body);
}
.section-body p { margin-bottom: 20px; }
.section-body p:last-child { margin-bottom: 0; }

/* 2-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col-text { max-width: 480px; }

/* ============================================
   Numbered list (For Whom)
   ============================================ */
.numbered-list {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
}
.numbered-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}
.numbered-list li:last-child { border-bottom: none; }
.numbered-list .num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-near-black);
  color: var(--color-cream);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.numbered-list .text {
  font-size: 15px;
  color: var(--color-text-body);
  line-height: 1.85;
}

/* ============================================
   Icon cards (Curriculum)
   ============================================ */
.icon-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.icon-cards.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .icon-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .icon-cards,
  .icon-cards.cols-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.icon-card {
  padding: 32px 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.icon-card:hover { border-color: var(--color-cream-dark); }
.icon-card .icon {
  width: 44px;
  height: 44px;
  background: var(--color-cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-near-black);
  margin-bottom: 20px;
}
.icon-card .icon svg { width: 22px; height: 22px; }
.icon-card h3 {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.icon-card p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.85;
}

/* ============================================
   Team / Member cards
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.member-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 36px;
}
.member-card .header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.member-card .avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--color-near-black);
  color: var(--color-cream);
  font-family: 'Archivo', 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 28px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}
.member-card .avatar.avatar-photo {
  background: transparent;
}
.member-card .avatar.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.member-card h3 {
  font-family: 'Archivo', 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}
.member-card .role {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-cream-dark);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.member-card .bio {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.95;
  margin-bottom: 20px;
}
.member-card .bio p { margin-bottom: 14px; }
.member-card .bio p:last-child { margin-bottom: 0; }
.member-card .tags-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--color-cream-light);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 500;
}

/* ============================================
   Info table (特商法)
   ============================================ */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.info-table th, .info-table td {
  padding: 22px 28px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }
.info-table th {
  width: 32%;
  background: var(--color-cream-light);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  letter-spacing: 0.04em;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}
.info-table td {
  color: var(--color-text);
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', 'Noto Sans JP', sans-serif;
}
.info-table td .note {
  display: block;
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* ============================================
   Policy content
   ============================================ */
.policy-content { color: var(--color-text-body); }
.policy-content h2 {
  font-family: 'Archivo', 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 24px;
  color: var(--color-text);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
}
.policy-content h2:first-of-type { margin-top: 0; }
.policy-content p { margin-bottom: 16px; font-size: 15px; line-height: 1.95; }
.policy-content ul { margin: 16px 0 16px 24px; }
.policy-content ul li { margin-bottom: 8px; font-size: 15px; line-height: 1.85; }
.policy-content a { color: var(--color-text); text-decoration: underline; }
.policy-meta {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.04em;
}

/* ============================================
   Contact form
   ============================================ */
.contact-form {
  background: var(--color-bg);
  padding: 48px;
  border: 1px solid var(--color-border);
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg);
  font-size: 15px;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', 'Noto Sans JP', sans-serif;
  color: var(--color-text);
  transition: border-color var(--transition-base);
  border-radius: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-near-black);
}
.form-group textarea { min-height: 160px; resize: vertical; line-height: 1.75; }
.required {
  color: #B04545;
  font-size: 10px;
  margin-left: 6px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.form-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--color-text-body);
  cursor: pointer;
}
.form-checkbox input {
  width: auto;
  margin-top: 5px;
  accent-color: var(--color-near-black);
}
.form-submit { text-align: center; margin-top: 32px; }

.contact-side-block {
  background: var(--color-cream-light);
  padding: 36px;
  border: 1px solid var(--color-border);
  text-align: center;
}
.contact-side-block .eyebrow { margin-bottom: 16px; }
.contact-side-block h3 {
  font-family: 'Archivo', 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 22px;
  color: var(--color-text);
  margin-bottom: 12px;
  font-weight: 600;
}
.contact-side-block p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

/* ============================================
   CTA section
   ============================================ */
.cta-section {
  background: var(--color-black);
  color: var(--color-cream);
  padding: 112px 0;
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232, 224, 204, 0.05), transparent 70%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section .eyebrow { color: var(--color-cream-dark); }
.cta-section h2 {
  font-family: 'Archivo', 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: clamp(32px, 4.5vw, 44px);
  color: var(--color-cream);
  margin-bottom: 22px;
  font-weight: 600;
}
.cta-section p {
  color: var(--color-text-on-dark-body);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.95;
}
.cta-section .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-black);
  color: var(--color-text-on-dark-body);
  padding: 72px 0 32px;
  border-top: 1px solid var(--color-border-dark);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.site-footer h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-footer .brand-name {
  font-family: 'Archivo', 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-cream);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.site-footer p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--color-text-on-dark-body);
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a {
  color: var(--color-text-on-dark-body);
  font-size: 13px;
  transition: color var(--transition-base);
}
.site-footer ul a:hover { color: var(--color-cream); }
.site-footer .copyright {
  padding-top: 32px;
  border-top: 1px solid var(--color-border-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-text-on-dark-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .copyright-links { display: flex; gap: 24px; }
.site-footer .copyright-links a {
  font-size: 11px;
  color: var(--color-text-on-dark-body);
}
.site-footer .copyright-links a:hover { color: var(--color-cream); }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.7s var(--ease-out) both;
}

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background: var(--color-near-black);
  color: var(--color-cream);
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .container, .container-narrow { padding: 0 20px; }

  .hero { min-height: 70vh; padding: 88px 0 56px; }
  .hero h1 { font-size: clamp(40px, 12vw, 60px); }
  .hero .lead { font-size: 14px; }

  .page-header { padding: 108px 0 56px; }
  .page-header h1 { font-size: 32px; }

  section.section { padding: 64px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 28px; }

  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col-text { max-width: 100%; }

  .site-header .container { height: 60px; }
  .site-logo { font-size: 16px; letter-spacing: 0.04em; }
  .site-logo .subtitle {
    display: inline;
    font-size: 8px;
    letter-spacing: 0.24em;
    margin-left: 6px;
  }
  .site-nav { gap: 10px; }
  .site-nav .nav-link { display: none; }
  .site-nav .btn-primary {
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  /* Improved text wrapping on mobile — avoid orphan lines like "す。" alone
     ※ icon-card と section-body は除外（右端まで自然に流す方が見栄えが良いため） */
  .hero .lead,
  .cta-section p,
  .member-card .bio p,
  .policy-content p,
  .page-header p {
    text-wrap: pretty;
  }
  /* Slightly tighter body for better fit */
  .section-body p { font-size: 14px; line-height: 1.85; }
  .icon-card p { font-size: 13px; line-height: 1.75; }

  /* スマホでカード内の余白を縮めて、テキストが右端まで広がるように */
  .icon-card {
    padding: 28px 20px;
  }
  .testimonial-card {
    padding: 28px 20px 24px;
  }

  .info-table th, .info-table td {
    display: block;
    width: 100%;
    padding: 14px 18px;
  }
  .info-table th { border-bottom: none; padding-bottom: 6px; }
  .info-table td { padding-top: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--color-border); }

  .member-card { padding: 28px 24px; }
  .contact-form { padding: 32px 24px; }
  .cta-section { padding: 72px 0; }

  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer .copyright { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================
   Our Approach — Mincho serif headline
   ============================================ */
.approach-headline {
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: 30px;
  line-height: 1.7;
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .approach-headline {
    font-size: 19px;
    line-height: 1.75;
    letter-spacing: 0;
  }
}

/* ============================================
   Mobile-only line break control
   - .mobile-br : スマホ表示時だけ改行する <br>
   - 既存の <br> は、要素ごとに「自然に折り返す」か「指定位置で改行する」かを使い分け
   ============================================ */
/* デスクトップでは .mobile-br を改行扱いにしない */
br.mobile-br { display: none; }
@media (max-width: 768px) {
  br.mobile-br { display: initial; }
}

/* スマホでは、これらの「自然改行に任せた方が綺麗な箇所」だけ既存の <br> を無効化 */
@media (max-width: 768px) {
  .hero .lead br:not(.mobile-br),
  .cta-section h2 br:not(.mobile-br),
  .site-footer p br:not(.mobile-br) {
    display: none;
  }
  /* section-title と approach-headline の <br> はスマホでも維持 */
}

/* ============================================
   Hamburger button + Mobile menu drawer
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 102;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base), background var(--transition-base);
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7.25px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7.25px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 101;
  padding: 80px 28px 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu a {
  display: block;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', 'Noto Sans JP', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text);
  padding: 20px 4px;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.02em;
}
.mobile-menu a.is-secondary {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 14px 4px;
}
.mobile-menu .line-cta-mobile {
  display: block;
  margin-top: 32px;
  padding: 16px 24px;
  text-align: center;
  background: var(--color-near-black);
  color: var(--color-cream);
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-bottom: 0;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  body.menu-open { overflow: hidden; }
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  position: relative;
  padding: 40px 36px 32px;
  background: var(--color-cream-light);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
.testimonial-card .quote-mark {
  font-family: 'Noto Serif JP', serif;
  font-size: 72px;
  line-height: 0.6;
  color: var(--color-cream-dark);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}
.testimonial-card .quote {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', 'Noto Sans JP', sans-serif;
  font-size: 14.5px;
  line-height: 2;
  color: var(--color-text-body);
  margin-bottom: 28px;
  flex: 1;
}
.testimonial-card .author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-strong);
}
.testimonial-card .avatar {
  width: 48px;
  height: 48px;
  background: var(--color-near-black);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial-card .avatar.avatar-photo {
  background: transparent;
}
.testimonial-card .avatar.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.testimonial-card .author-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 2px;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', 'Noto Sans JP', sans-serif;
}
.testimonial-card .author-role {
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }
  .testimonial-card { padding: 32px 24px 24px; }
  .testimonial-card .quote-mark { font-size: 56px; }
  .testimonial-card .quote { font-size: 14px; line-height: 1.9; }
}

/* ============================================
   Testimonial disclaimer (景品表示法 — 打消し表示)
   ============================================ */
.testimonial-disclaimer {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--color-bg-cream);
  border-left: 3px solid var(--color-cream-dark);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--color-text-muted);
  text-align: left;
  border-radius: 2px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .testimonial-disclaimer {
    font-size: 11.5px;
    padding: 16px 18px;
    margin-top: 32px;
    line-height: 1.8;
  }
}

/* ============================================
   Footer legal note (学校教育法に関する注記)
   ============================================ */
.site-footer .legal-note {
  padding: 20px 0;
  border-top: 1px solid var(--color-border-dark);
  margin-bottom: 24px;
}
.site-footer .legal-note p {
  font-size: 11px;
  line-height: 1.85;
  color: var(--color-text-on-dark-muted);
  letter-spacing: 0.02em;
  max-width: 760px;
}
@media (max-width: 768px) {
  .site-footer .legal-note p { font-size: 10.5px; }
}

/* ============================================
   Mobile: About セクションのレイアウト調整
   - 見出し・eyebrow は中央揃え
   - 見出しは1行に収まるサイズに縮小
   - 本文は左揃え + コンテナ幅いっぱいに揃え
   ============================================ */
@media (max-width: 768px) {
  .two-col .section-title {
    text-align: center;
    font-size: 26px;
    line-height: 1.4;
  }
  .two-col > .fade-in > .eyebrow {
    text-align: center;
  }
  .two-col-text {
    text-align: left;
    max-width: 100%;
  }
  .two-col-text p {
    text-align: left;
  }
}
