/* Shippori Mincho for mobile drawer (academic style) */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600&display=swap');

/* ===================================
   Reset & Base
   =================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.8;
  overflow-x: hidden;
  padding-top: 84px; /* 40px (row1) + 44px (row2) */
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ===================================
   Header
   =================================== */
.header {
  width: 100%;
}

/* Legacy .header-top-bar / .header-main-nav (two-row header) removed —
   replaced by single-row .ears-header in style.css. */

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 40px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Nav - inline flex, fills remaining space */
.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}

.nav-list {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #0B1F3A;
  letter-spacing: 0.05em;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #C9A96E;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: #C9A96E;
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Nav Dropdown */
.nav-has-dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 260px;
  z-index: 1060;
}

.nav-has-dropdown:hover .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: #333;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown li a:hover {
  background: #f7f5f0;
  color: #C9A96E;
}

.nav-dropdown-heading {
  padding: 8px 20px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0B1F3A;
  letter-spacing: 0.05em;
}

/* Mobile-only elements: hide on desktop */
.nav-close,
.nav-drawer-header,
.nav-back-btn,
.nav-close-btn,
.nav-drawer-brand,
.menu-subtext,
.nav-drawer-footer {
  display: none;
}

/* Safety clamp: prevent drawer logo from ever growing large */
.nav-drawer-logo {
  width: 96px !important;
  max-width: 100%;
  height: auto;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================================
   Hero
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #00509e 0%, #003366 40%, #1a1a2e 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 900"><defs><radialGradient id="a" cx="50%25" cy="50%25" r="50%25"><stop offset="0%25" stop-color="%23fff" stop-opacity="0.05"/><stop offset="100%25" stop-color="%23fff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="300" r="400" fill="url(%23a)"/><circle cx="1200" cy="600" r="350" fill="url("#a#a")"/></svg>') center/cover no-repeat;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

/* ── Hero Crest: Logo only ── */
.hero-crest {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.crest-link {
  display: block;
  cursor: pointer;
}

.crest-logo {
  width: 210px;
  height: 210px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  animation: crest-logo-in 1s 0.2s ease both,
             logoBreathe 4s 1.2s ease-in-out infinite;
}

.crest-link:hover .crest-logo,
.crest-link:active .crest-logo {
  transform: scale(1.12);
  animation-play-state: paused;
}

@keyframes crest-logo-in {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes logoBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  }
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 50px;
  transition: background 0.3s ease, color 0.3s ease;
}

.hero-btn:hover {
  background: #fff;
  color: #00509e;
}

/* ===================================
   Sections (common)
   =================================== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #00509e;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.05em;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #00509e;
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===================================
   Philosophy
   =================================== */
.philosophy {
  background: #fff;
}

.philosophy-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.philosophy-mission,
.philosophy-vision {
  background: #f8faff;
  border-radius: 12px;
  padding: 36px;
  border-left: 4px solid #00509e;
}

.philosophy-mission h3,
.philosophy-vision h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00509e;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

/* Philosophy statement (ver2) */
.philosophy-statement {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
}

.philosophy-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: #222;
  line-height: 2;
  margin-bottom: 20px;
}

.philosophy-sub {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.9;
}

/* Message block (理事長メッセージ) */
.message-block {
  max-width: 760px;
  margin: 0 auto;
  background: #f8faff;
  border-radius: 12px;
  padding: 40px 36px;
  border-left: 4px solid #00509e;
}

.message-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00509e;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.message-body p {
  font-size: 0.9rem;
  color: #444;
  line-height: 2;
  margin-bottom: 12px;
}

.message-body p:last-child {
  margin-bottom: 0;
}

.message-sign {
  margin-top: 24px;
  font-size: 0.85rem;
  color: #666;
  text-align: right;
  line-height: 1.6;
}

/* Nav cards (主要導線) */
.nav-cards-section {
  background: #f7f9fc;
}

.nav-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.nav-card {
  display: block;
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 80, 158, 0.12);
}

.nav-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #00509e;
}

.nav-card-icon svg {
  width: 100%;
  height: 100%;
}

.nav-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.nav-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 16px;
}

.nav-card-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #00509e;
}

/* Kaya (広報誌) */
.kaya-section {
  background: #fff;
}

.kaya-card {
  max-width: 700px;
  margin: 0 auto;
  background: #f8faff;
  border-radius: 12px;
  padding: 40px 36px;
  text-align: center;
  border: 1px solid #e0e8f0;
}

.kaya-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00509e;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.kaya-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  line-height: 1.6;
  margin-bottom: 16px;
}

.kaya-card-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 24px;
}

.kaya-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.kaya-card-topics span {
  font-size: 0.75rem;
  color: #00509e;
  background: #e8f0fe;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* About services link */
.about-services-link {
  text-align: center;
  margin-top: 32px;
}

.about-services-link a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #00509e;
  transition: opacity 0.3s;
}

.about-services-link a:hover {
  opacity: 0.7;
}

/* Research theme cards */
.research-themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.research-theme-card {
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.research-theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 80, 158, 0.1);
}

.research-theme-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00509e;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.research-theme-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.5;
}

.research-theme-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.85;
}

/* Last card centered when 7 items in 3-column grid */
.research-themes-grid .research-theme-card:last-child {
  grid-column: 2 / 3;
}

/* Scholarship page */
.scholarship-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.scholarship-intro p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.9;
}

.scholarship-body {
  max-width: 800px;
  margin: 0 auto;
}

.scholarship-body p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.9;
}

.scholarship-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.scholarship-card {
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scholarship-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 80, 158, 0.1);
}

.scholarship-card-icon {
  width: 48px;
  height: 48px;
  color: #00509e;
  margin: 0 auto 16px;
}

.scholarship-card-icon svg {
  width: 100%;
  height: 100%;
}

.scholarship-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.6;
}

.scholarship-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scholarship-list li {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
  padding-left: 22px;
  position: relative;
}

.scholarship-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00509e;
}

.scholarship-relation {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.scholarship-relation p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 24px;
}

.scholarship-link {
  display: inline-block;
  padding: 14px 40px;
  background: #00509e;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 50px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.scholarship-link:hover {
  background: #003d7a;
  transform: translateY(-2px);
}

/* Whitepaper volume card */
.wp-volume {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  padding: 40px 36px;
  text-align: center;
}

.wp-volume-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00509e;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.wp-volume h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  line-height: 1.6;
}

.philosophy-mission p,
.philosophy-vision p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.9;
}

.values-heading {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 36px;
  letter-spacing: 0.05em;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 80, 158, 0.1);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: #00509e;
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.8;
}

/* Last two value cards centered */
.values-grid .value-card:nth-child(4) {
  grid-column: 1 / 2;
}

.values-grid .value-card:nth-child(5) {
  grid-column: 2 / 3;
}

/* ===================================
   Services
   =================================== */
.services {
  background: #f7f9fc;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 80, 158, 0.12);
}

.service-card-img {
  height: 180px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 28px 24px;
}

.service-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.5;
}

.service-card-body p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: #00509e;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #003d7a;
}

/* Fourth card spans or starts fresh row */
.services-grid .service-card:nth-child(4) {
  grid-column: 2 / 3;
}

/* ===================================
   Programs (index overview)
   =================================== */
.programs {
  background: #fff;
}

.programs--compact.section {
  padding: 40px 0;
}
.programs--compact .section-header--sm {
  margin-bottom: 16px;
}
.section-header--sm .section-label {
  font-size: 0.65rem;
}
.section-header--sm .section-title {
  font-size: 1.2rem;
}

/* Compact accordion programs */
.programs-compact {
  max-width: 700px;
  margin: 0 auto;
}

.prog-item {
  border-bottom: 1px solid #e5e7eb;
}
.prog-item:first-child {
  border-top: 1px solid #e5e7eb;
}

.prog-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}
.prog-header:hover {
  background: #f7f9fc;
}

.prog-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: #e05050;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  white-space: nowrap;
}

.prog-name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}

.prog-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.prog-toggle::before,
.prog-toggle::after {
  content: "";
  position: absolute;
  background: #999;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.prog-toggle::before {
  top: 50%;
  left: 3px;
  right: 3px;
  height: 1.5px;
  transform: translateY(-50%);
}
.prog-toggle::after {
  left: 50%;
  top: 3px;
  bottom: 3px;
  width: 1.5px;
  transform: translateX(-50%);
}
.prog-header[aria-expanded="true"] .prog-toggle::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.prog-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.prog-body-inner {
  padding: 0 8px 20px 8px;
}
.prog-body-inner p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 10px;
}

.prog-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #00509e;
  text-decoration: none;
}
.prog-link:hover {
  text-decoration: underline;
}

.svc-event-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-event-list li {
  font-size: 0.875rem;
  color: #444;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}
.svc-event-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C9A96E;
}

/* Legacy grid kept for subpages if needed */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.program-card {
  display: block;
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  padding: 36px 32px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 80, 158, 0.12);
}

.program-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #e05050;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.program-card-icon {
  width: 48px;
  height: 48px;
  color: #00509e;
  margin-bottom: 16px;
}

.program-card-icon svg {
  width: 100%;
  height: 100%;
}

.program-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.5;
}

.program-card p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 16px;
}

.program-card-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #00509e;
}

/* ===================================
   Page Hero (subpages)
   =================================== */
.page-hero {
  padding-top: 0;
  background: linear-gradient(135deg, #00509e 0%, #003366 100%);
}

.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  text-align: center;
}

.page-hero-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.page-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.page-hero-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.page-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.page-hero-breadcrumb a:hover {
  color: #fff;
}

/* ===================================
   DX Program (detail page)
   =================================== */
.dx-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

.dx-program-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #00509e;
  margin-bottom: 16px;
  line-height: 1.6;
}

.dx-program-desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.9;
}

.dx-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.dx-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f8faff;
  border-radius: 12px;
  padding: 24px;
}

.dx-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: #00509e;
}

.dx-feature-icon svg {
  width: 100%;
  height: 100%;
}

.dx-feature-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

.dx-feature-item p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
}

.dx-courses-heading {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.dx-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.dx-course-card {
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 10px;
  padding: 24px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dx-course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 80, 158, 0.1);
}

.dx-course-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #00509e;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.dx-course-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.dx-course-card p {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.7;
}

.dx-info {
  max-width: 700px;
  margin: 0 auto;
}

.dx-info-table {
  width: 100%;
  border-collapse: collapse;
  background: #f8faff;
  border-radius: 12px;
  overflow: hidden;
}

.dx-info-table tr {
  border-bottom: 1px solid #e8ecf2;
}

.dx-info-table tr:last-child {
  border-bottom: none;
}

.dx-info-table th,
.dx-info-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
}

.dx-info-table th {
  width: 120px;
  font-weight: 700;
  color: #00509e;
  white-space: nowrap;
}

.dx-info-table td {
  color: #444;
}

/* Detail course cards (subpage) */
.dx-course-card--detail {
  padding: 28px 24px;
}

.dx-course-target {
  font-size: 0.78rem;
  color: #00509e;
  font-weight: 500;
  margin-bottom: 12px;
}

.dx-course-list {
  list-style: none;
  padding: 0;
}

.dx-course-list li {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
  padding: 4px 0 4px 18px;
  position: relative;
}

.dx-course-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: #00509e;
  border-radius: 50%;
}

/* CTA */
.dx-cta {
  text-align: center;
  margin-top: 48px;
}

.dx-cta p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

/* ===================================
   Course detail (AI-DX Academy etc.)
   =================================== */
.course-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.course-header-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.course-header-label--blue { background: #00509e; }
.course-header-label--purple { background: #7c3aed; }
.course-header-label--indigo { background: #4338ca; }

.course-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
}

.course-header-sub {
  font-size: 0.9rem;
  color: #666;
  margin-top: 2px;
}

.course-purpose {
  background: #fff;
  border-left: 4px solid #00509e;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 28px 28px 28px 24px;
  margin-bottom: 24px;
}

.course-purpose--purple { border-left-color: #7c3aed; }
.course-purpose--indigo { border-left-color: #4338ca; }

.course-purpose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.course-purpose ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-purpose li {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
}

.course-purpose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00509e;
}

.course-purpose--purple li::before { background: #7c3aed; }
.course-purpose--indigo li::before { background: #4338ca; }

.course-outcome {
  background: #f0f4f8;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 36px;
}

.course-outcome h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.course-outcome p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.curriculum-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.curriculum-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.curriculum-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 600px;
}

.curriculum-table thead tr {
  background: #f0f4f8;
}

.curriculum-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  color: #555;
  border-bottom: 2px solid #e0e8f0;
}

.curriculum-table td {
  padding: 16px;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.7;
  border-bottom: 1px solid #eaeef3;
  vertical-align: top;
}

.curriculum-day { width: 60px; text-align: center; }
.curriculum-theme { width: 200px; }
.curriculum-hours { width: 70px; text-align: center; }

.td-theme {
  font-weight: 600;
  color: #222;
}

.td-hours {
  text-align: center;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.day-badge--blue { background: #00509e; }
.day-badge--purple { background: #7c3aed; }
.day-badge--indigo { background: #4338ca; }

/* Pricing */
.pricing-card {
  max-width: 480px;
  margin: 0 auto 40px;
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00509e;
  margin-bottom: 4px;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}

.pricing-note {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 24px;
}

.pricing-includes {
  list-style: none;
  padding: 0;
  border-top: 1px solid #eaeef3;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 280px;
  margin: 0 auto;
}

.pricing-includes li {
  font-size: 0.9rem;
  color: #444;
  padding-left: 24px;
  position: relative;
  text-align: left;
}

.pricing-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
}

/* ===================================
   About
   =================================== */
.about {
  background: #fff;
}

.about-table-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table tr {
  border-bottom: 1px solid #eaeef3;
}

.about-table th,
.about-table td {
  padding: 20px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

.about-table th {
  width: 140px;
  font-weight: 700;
  color: #00509e;
  white-space: nowrap;
}

.about-table td {
  color: #444;
  line-height: 1.8;
}

.about-table td a {
  color: #00509e;
  transition: opacity 0.3s;
}

.about-table td a:hover {
  opacity: 0.7;
}

/* ===================================
   Contact Form
   =================================== */
.contact-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form-intro {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.9;
  text-align: center;
  margin-bottom: 48px;
}


.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0B1F3A;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-required {
  color: #C9A96E;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #333;
  background: #f9fafb;
  border: 1px solid #dde2e8;
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #C9A96E;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.45);
}
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline-color: #C9A96E;
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.form-submit-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 40px auto 0;
  padding: 14px 0;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #0B1F3A;
  border: 2px solid #0B1F3A;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background 0.3s ease, color 0.3s ease;
}

.form-submit-btn:hover {
  background: #C9A96E;
  border-color: #C9A96E;
}

/* ===================================
   Contact
   =================================== */
.contact {
  background: #f7f9fc;
}

.contact-body {
  text-align: center;
}

.contact-body p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 24px;
}

.contact-email {
  display: inline-block;
  padding: 16px 48px;
  background: #00509e;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  letter-spacing: 0.03em;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-email:hover {
  background: #003d7a;
  transform: translateY(-2px);
}

/* ===================================
   Footer
   =================================== */
/* ── Footer: 深绀色 + 金色 三列布局 ── */
.footer {
  background: #0B1F3A;
  color: #A0AAB2;
  border-top: 1px solid rgba(201, 169, 110, 0.3);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Left column: Brand & Vision ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-logo-main {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.footer-logo-sub {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.footer-vision {
  font-family: "Yu Mincho", "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 15px;
  color: #C9A96E;
  font-weight: bold;
  line-height: 1.8;
  margin-top: 20px;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(201, 169, 110, 0.6),
               0 0 20px rgba(201, 169, 110, 0.3);
}

/* ── Center column: Contact ── */
.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-contact p {
  font-size: 0.8rem;
  color: #A0AAB2;
  line-height: 1.9;
}
.footer-contact .footer-contact-icon {
  margin-right: 6px;
  font-style: normal;
  color: #C9A96E;
}

.footer-contact a {
  color: #A0AAB2;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-contact a:hover {
  color: #C9A96E;
  transform: translateX(3px);
}

/* ── Right column: Links ── */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.footer-links li a {
  font-size: 0.82rem;
  color: #A0AAB2;
  line-height: 2.2;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links li a:hover {
  color: #C9A96E;
  transform: translateX(3px);
}

/* ── Column headings ── */
.footer-heading {
  font-size: 0.7rem;
  font-weight: 600;
  color: #C9A96E;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ── Copyright bar ── */
.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}

/* ===================================
   Fade-in Animation
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  animation: fade-in-fallback 0s 3s forwards; /* safety: show after 3s if JS fails */
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

@keyframes fade-in-fallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   Responsive: Tablet (~1024px)
   =================================== */
@media (max-width: 1024px) {
  .nav-list {
    margin: 0 15px;
  }
  .nav-link {
    font-size: 0.7rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-card:nth-child(4) {
    grid-column: auto;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid .value-card:nth-child(4) {
    grid-column: auto;
  }

  .values-grid .value-card:nth-child(5) {
    grid-column: auto;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .dx-features {
    grid-template-columns: 1fr;
  }

  .dx-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-title {
    font-size: 1.6rem;
  }

  .nav-cards-grid {
    grid-template-columns: 1fr;
  }

  .research-themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-themes-grid .research-theme-card:last-child {
    grid-column: auto;
  }
}

/* ===================================
   Responsive: Mobile (~768px)
   =================================== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* ── Drawer: 白底 + 金色 学術和風 ── */
  .nav {
    position: fixed;
    top: 0;
    left: auto;
    right: -85vw;
    width: 85vw;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    background:
      linear-gradient(135deg, rgba(201,169,110,0.04) 0%, transparent 50%, rgba(201,169,110,0.03) 100%),
      #FAFAFA;
    border-left: 2px solid #C9A96E;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1050;
    pointer-events: auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-family: "Yu Mincho", "Shippori Mincho", "Noto Serif JP", serif;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav.open {
    right: 0;
  }

  /* ── Corner buttons: absolute positioned ── */
  .nav-back-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 100;
    background: none;
    border: none;
    color: #0B1F3A;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-back-btn:hover {
    color: #C9A96E;
    transform: translateX(-3px);
  }

  /* ── Drawer brand: centered below buttons ── */
  .nav-drawer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 72px;
    padding-bottom: 20px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(201, 169, 110, 0.4);
  }

  .nav-drawer-logo-link {
    display: block;
  }

  .nav-drawer-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 50%;
    filter: none;
    opacity: 1;
    transition: transform 0.3s ease;
  }

  .nav-drawer-logo:hover,
  .nav-drawer-logo:active {
    transform: scale(1.12);
  }

  .nav-drawer-brand-name {
    font-family: "Yu Mincho", "Shippori Mincho", serif;
    font-size: 0.6rem;
    color: #C9A96E;
    letter-spacing: 0.3em;
    font-weight: 500;
  }

  .nav-close-btn {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 100;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #0B1F3A;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-close-btn:hover {
    color: #C9A96E;
  }

  .nav-list {
    flex: 1;
    flex-direction: column;
    gap: 0;
    justify-content: space-evenly;
    text-align: center;
    pointer-events: auto;
    width: 100%;
    padding: 0;
  }

  /* ── Staggered entrance ── */
  .nav-list > li {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    border-bottom: 1px solid rgba(201, 169, 110, 0.4);
  }
  .nav-list > li:first-child {
    border-top: none;
  }

  .nav.open .nav-list > li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav.open .nav-list > li:nth-child(1) { transition-delay: 0.05s; }
  .nav.open .nav-list > li:nth-child(2) { transition-delay: 0.10s; }
  .nav.open .nav-list > li:nth-child(3) { transition-delay: 0.15s; }
  .nav.open .nav-list > li:nth-child(4) { transition-delay: 0.20s; }
  .nav.open .nav-list > li:nth-child(5) { transition-delay: 0.25s; }
  .nav.open .nav-list > li:nth-child(6) { transition-delay: 0.30s; }
  .nav.open .nav-list > li:nth-child(7) { transition-delay: 0.35s; }

  .nav-link {
    font-family: "Yu Mincho", "Shippori Mincho", "Noto Serif JP", serif;
    font-size: 1rem;
    font-weight: 500;
    color: #0B1F3A;
    letter-spacing: 0.2em;
    display: block;
    padding: 18px 28px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  /* Hover: gold + slide right */
  .nav-link::before {
    display: none;
  }

  .nav-link:hover,
  .nav-link:active {
    color: #C9A96E;
    transform: translateX(5px);
  }

  /* Desktop underline: disable on mobile */
  .nav-link::after {
    display: none;
  }

  /* ── English subtitle ── */
  .menu-subtext {
    display: block;
    font-size: 0.58rem;
    font-weight: 400;
    color: rgba(201, 169, 110, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 4px;
    pointer-events: none;
    font-family: "Times New Roman", "Georgia", serif;
  }

  /* Mobile dropdown */
  .nav-has-dropdown:hover .nav-dropdown {
    display: none;
  }

  .nav-dropdown {
    display: none;
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }

  .nav-has-dropdown .nav-dropdown.open {
    display: block;
  }

  .nav-dropdown li a {
    font-family: "Yu Mincho", "Shippori Mincho", serif;
    font-size: 0.88rem;
    padding: 10px 28px;
    color: rgba(11, 31, 58, 0.55);
    text-align: center;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .nav-dropdown li a:hover {
    background: transparent;
    color: #C9A96E;
    transform: translateX(5px);
  }

  .nav-dropdown-heading {
    padding: 10px 28px 4px;
    font-size: 0.65rem;
    color: rgba(201, 169, 110, 0.7);
    letter-spacing: 0.12em;
    text-align: center;
  }

  /* ── Drawer footer ── */
  .nav-drawer-footer {
    display: block;
    margin-top: auto;
    padding: 20px 28px 28px;
    border-top: 1px solid rgba(201, 169, 110, 0.4);
    flex-shrink: 0;
    text-align: center;
  }

  .nav-drawer-footer p {
    font-size: 0.6rem;
    color: rgba(11, 31, 58, 0.4);
    letter-spacing: 0.05em;
    line-height: 1.7;
    font-family: "Times New Roman", "Georgia", serif;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .crest-logo {
    width: 150px;
    height: 150px;
  }

  .hero-crest {
    margin-bottom: 28px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .philosophy-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .dx-features {
    grid-template-columns: 1fr;
  }

  .dx-courses-grid {
    grid-template-columns: 1fr;
  }

  .dx-info-table th {
    display: block;
    width: 100%;
    padding-bottom: 2px;
  }

  .dx-info-table td {
    display: block;
    padding-top: 0;
    padding-bottom: 14px;
  }

  .about-table th {
    display: block;
    width: 100%;
    padding-bottom: 4px;
  }

  .about-table td {
    display: block;
    padding-top: 0;
    padding-bottom: 16px;
  }

  .footer-container {
    padding: 40px 24px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links ul {
    align-items: center;
  }

  .logo {
    margin-right: 0;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-title {
    font-size: 1.4rem;
  }

  .page-hero-inner {
    padding: 48px 24px 36px;
  }

  .course-header-title {
    font-size: 1.2rem;
  }

  .course-header-label {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .curriculum-theme {
    width: auto;
  }

  .pricing-amount {
    font-size: 2rem;
  }

  .nav-cards-grid {
    grid-template-columns: 1fr;
  }

  .research-themes-grid {
    grid-template-columns: 1fr;
  }

  .scholarship-cards {
    grid-template-columns: 1fr;
  }

  .message-block {
    padding: 28px 20px;
  }

  .kaya-card {
    padding: 28px 20px;
  }

  .kaya-card-topics {
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile nav overlay — frosted glass */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1040;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
}

/* ===================================
   Whitepaper Cover (封面)
   =================================== */
.wp-cover {
  position: relative;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px;
  overflow: hidden;
}

/* Gold double-line frame */
.wp-cover-frame {
  position: absolute;
  top: 36px;
  left: 36px;
  right: 36px;
  bottom: 36px;
  border: 2px solid #C9A96E;
  pointer-events: none;
}
.wp-cover-frame::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid #C9A96E;
}

/* Gold ornamental corners — arabesque / filigree motif */
.wp-cover-corner {
  position: absolute;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 1;
}
.wp-cover-corner::before,
.wp-cover-corner::after {
  content: "";
  position: absolute;
}
/* SVG arabesque corner pattern */
.wp-cover-corner--tl { top: 20px; left: 20px; }
.wp-cover-corner--tr { top: 20px; right: 20px; transform: scaleX(-1); }
.wp-cover-corner--bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.wp-cover-corner--br { bottom: 20px; right: 20px; transform: scale(-1, -1); }

.wp-cover-corner::before {
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' fill='none'%3E%3Cpath d='M4 4 C4 4 4 40 4 40 C4 50 8 56 20 60 C28 63 36 64 40 76' stroke='%23C9A96E' stroke-width='1.5' fill='none'/%3E%3Cpath d='M12 4 C12 4 12 32 12 32 C12 40 16 46 26 50 C32 52 38 56 40 64' stroke='%23C9A96E' stroke-width='1' fill='none' opacity='0.7'/%3E%3Cpath d='M4 12 C4 12 20 12 20 12 C28 12 34 16 38 26 C40 30 40 36 40 40' stroke='%23C9A96E' stroke-width='1' fill='none' opacity='0.7'/%3E%3Cpath d='M4 4 C12 4 18 8 22 14 C26 20 28 28 40 40' stroke='%23C9A96E' stroke-width='1' fill='none' opacity='0.5'/%3E%3Ccircle cx='4' cy='4' r='2.5' fill='%23C9A96E'/%3E%3Ccircle cx='22' cy='22' r='1.5' fill='%23C9A96E' opacity='0.6'/%3E%3Ccircle cx='10' cy='30' r='1' fill='%23C9A96E' opacity='0.4'/%3E%3Ccircle cx='30' cy='10' r='1' fill='%23C9A96E' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* Top/bottom center ornaments */
.wp-cover::before,
.wp-cover::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='24' fill='none'%3E%3Cpath d='M10 12 C30 4 50 4 70 12 C78 15 82 15 90 12 C98 9 102 9 110 12 C130 20 150 20 170 12' stroke='%23C9A96E' stroke-width='1' fill='none'/%3E%3Cpath d='M30 12 C50 6 60 6 70 12' stroke='%23C9A96E' stroke-width='0.8' fill='none' opacity='0.5'/%3E%3Cpath d='M110 12 C120 18 130 18 150 12' stroke='%23C9A96E' stroke-width='0.8' fill='none' opacity='0.5'/%3E%3Ccircle cx='90' cy='12' r='2' fill='%23C9A96E'/%3E%3Ccircle cx='70' cy='12' r='1.2' fill='%23C9A96E' opacity='0.6'/%3E%3Ccircle cx='110' cy='12' r='1.2' fill='%23C9A96E' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}
.wp-cover::before { top: 50px; }
.wp-cover::after { bottom: 50px; transform: translateX(-50%) scaleY(-1); }

.wp-cover-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 700px;
  width: 100%;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.wp-cover-top,
.wp-cover-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wp-cover-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 30px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(30%) saturate(500%) hue-rotate(5deg) brightness(90%) contrast(90%);
  animation: wpLogoBreathe 4s 0.5s ease-in-out infinite;
}

@keyframes wpLogoBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
    filter: brightness(0) saturate(100%) invert(72%) sepia(30%) saturate(500%) hue-rotate(5deg) brightness(90%) contrast(90%)
           drop-shadow(0 0 2px rgba(201, 169, 110, 0.2));
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(72%) sepia(30%) saturate(500%) hue-rotate(5deg) brightness(90%) contrast(90%)
           drop-shadow(0 0 15px rgba(201, 169, 110, 0.5));
  }
}

.wp-cover-label {
  font-family: "Times New Roman", "Georgia", serif;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: #C9A96E;
  text-transform: uppercase;
}

.wp-cover-line {
  width: 60px;
  height: 1px;
  background: #C9A96E;
  margin-top: 20px;
}

.wp-cover-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.wp-cover-title {
  font-family: "Shippori Mincho", "Yu Mincho", "游明朝", serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: #0B1F3A;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.wp-cover-title-en {
  font-family: "Times New Roman", "Georgia", serif;
  font-size: 0.9rem;
  color: #C9A96E;
  letter-spacing: 0.15em;
  font-style: italic;
}

.wp-cover-subtitle {
  font-family: "Shippori Mincho", "Yu Mincho", "游明朝", serif;
  font-size: 1rem;
  color: rgba(11, 31, 58, 0.55);
  letter-spacing: 0.1em;
  line-height: 1.8;
  margin-top: 8px;
}

.wp-cover-org {
  font-family: "Shippori Mincho", "Yu Mincho", "游明朝", serif;
  font-size: 0.95rem;
  color: #0B1F3A;
  letter-spacing: 0.12em;
}

.wp-cover-org-en {
  font-family: "Times New Roman", "Georgia", serif;
  font-size: 0.75rem;
  color: rgba(11, 31, 58, 0.5);
  letter-spacing: 0.1em;
}

.wp-cover-year {
  font-family: "Times New Roman", "Georgia", serif;
  font-size: 0.85rem;
  color: #C9A96E;
  letter-spacing: 0.2em;
  margin-top: 4px;
}

/* Scroll indicator */
.wp-cover-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(11, 31, 58, 0.3);
  text-decoration: none;
  font-family: "Times New Roman", serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  transition: color 0.3s ease;
  animation: wp-cover-bounce 2s ease-in-out infinite;
  z-index: 1;
}

.wp-cover-scroll:hover {
  color: #C9A96E;
}

@keyframes wp-cover-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Cover responsive */
@media (max-width: 768px) {
  .wp-cover {
    padding: 48px 24px;
  }
  .wp-cover-frame {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  .wp-cover-corner { width: 60px; height: 60px; }
  .wp-cover-corner--tl { top: 10px; left: 10px; }
  .wp-cover-corner--tr { top: 10px; right: 10px; }
  .wp-cover-corner--bl { bottom: 10px; left: 10px; }
  .wp-cover-corner--br { bottom: 10px; right: 10px; }
  .wp-cover::before { top: 30px; }
  .wp-cover::after { bottom: 30px; }
  .wp-cover-title {
    font-size: 1.8rem;
  }
  .wp-cover-subtitle {
    font-size: 0.85rem;
  }
}

/* ===================================
   Whitepaper Accordion
   =================================== */
.wp-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wp-acc-item {
  border-bottom: 1px solid #e5e7eb;
}
.wp-acc-item:first-child {
  border-top: 1px solid #e5e7eb;
}

.wp-acc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}
.wp-acc-header:hover {
  background: #f7f9fc;
}

.wp-acc-label {
  font-family: "Times New Roman", "Georgia", serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #C9A96E;
  text-transform: uppercase;
  min-width: 80px;
  flex-shrink: 0;
}

.wp-acc-title {
  font-family: "Shippori Mincho", "Yu Mincho", "游明朝", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0B1F3A;
  flex: 1;
}

.wp-acc-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.wp-acc-icon::before,
.wp-acc-icon::after {
  content: "";
  position: absolute;
  background: #0B1F3A;
  transition: transform 0.3s ease;
}
.wp-acc-icon::before {
  top: 50%;
  left: 3px;
  right: 3px;
  height: 1.5px;
  transform: translateY(-50%);
}
.wp-acc-icon::after {
  left: 50%;
  top: 3px;
  bottom: 3px;
  width: 1.5px;
  transform: translateX(-50%);
}
.wp-acc-header[aria-expanded="true"] .wp-acc-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.wp-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.wp-acc-content {
  padding: 0 8px 32px 96px;
}
.wp-acc-content p {
  color: #333;
  line-height: 1.9;
  font-size: 0.95rem;
}
.wp-acc-content .wp-diagram {
  margin-top: 24px;
}
.wp-acc-content .wp-closing-wish {
  margin-top: 16px;
  font-style: italic;
  color: #666;
}
.wp-acc-content .wp-closing-sign {
  margin-top: 24px;
  font-weight: 600;
  color: #0B1F3A;
}

@media (max-width: 768px) {
  .wp-acc-label { min-width: 60px; font-size: 0.6rem; }
  .wp-acc-title { font-size: 0.95rem; }
  .wp-acc-content { padding: 0 8px 24px 8px; }
  .wp-acc-header { gap: 10px; padding: 16px 4px; }
}

/* ===================================
   Whitepaper Chapter 6 — 4 Abilities
   =================================== */
.wp-chapter-subtitle {
  font-family: "Shippori Mincho", "Noto Sans JP", serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #00509e;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.wp-ch6-abilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.wp-ch6-ability-card {
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
}

.wp-ch6-ability-card--primary {
  border-color: #C9A96E;
  background: linear-gradient(135deg, #fffdf7 0%, #fff 100%);
}

.wp-ch6-ability-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #00509e;
  margin-bottom: 8px;
}

.wp-ch6-ability-card--primary .wp-ch6-ability-num {
  color: #C9A96E;
}

.wp-ch6-ability-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
  line-height: 1.5;
}

.wp-ch6-ability-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .wp-ch6-abilities {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Whitepaper (白皮書)
   =================================== */
.page-hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-top: 8px;
  margin-bottom: 12px;
}

.wp-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.wp-intro p {
  font-size: 0.95rem;
  color: #444;
  line-height: 2;
}

.wp-chapter-body {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}

.wp-chapter-body p {
  font-size: 0.95rem;
  color: #444;
  line-height: 2;
}

/* Whitepaper overview image */
.wp-overview-image {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.wp-overview-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Whitepaper chapter image */
.wp-chapter-image {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #e0e8f0;
}

.wp-chapter-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Whitepaper diagram */
.wp-diagram {
  max-width: 700px;
  margin: 0 auto;
}

.wp-diagram-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}

/* Dual card diagram (Ch1, Ch2) */
.wp-diagram-dual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.wp-diagram-card {
  flex: 1;
  max-width: 260px;
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.wp-diagram-card--ai {
  border-top: 3px solid #00509e;
}

.wp-diagram-card--human {
  border-top: 3px solid #e67e22;
}

.wp-diagram-card--central {
  border-top: 3px solid #00509e;
}

.wp-diagram-card--distributed {
  border-top: 3px solid #e67e22;
}

.wp-diagram-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: #00509e;
}

.wp-diagram-card--human .wp-diagram-card-icon,
.wp-diagram-card--distributed .wp-diagram-card-icon {
  color: #e67e22;
}

.wp-diagram-card-icon svg {
  width: 100%;
  height: 100%;
}

.wp-diagram-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

.wp-diagram-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wp-diagram-list li {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
  text-align: left;
}

.wp-diagram-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00509e;
}

.wp-diagram-card--human .wp-diagram-list li::before,
.wp-diagram-card--distributed .wp-diagram-list li::before {
  background: #e67e22;
}

/* Connector between cards */
.wp-diagram-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
}

.wp-diagram-connector-line {
  width: 2px;
  height: 20px;
  background: #ccc;
}

.wp-diagram-connector-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00509e;
  background: #e8f0fe;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Triangle diagram (Ch3) */
.wp-diagram-triangle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.wp-diagram-tri-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wp-diagram-tri-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff3e0;
  color: #e67e22;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 2px solid #e67e22;
}

.wp-diagram-tri-circle svg {
  width: 40px;
  height: 40px;
}

.wp-diagram-tri-circle--blue {
  background: #e8f0fe;
  color: #00509e;
  border-color: #00509e;
}

.wp-diagram-tri-circle--green {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #2e7d32;
}

.wp-diagram-tri-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
}

.wp-diagram-tri-sub {
  font-size: 0.8rem;
  color: #888;
}

.wp-diagram-tri-lines {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, #00509e, #e67e22, #2e7d32);
  border-radius: 2px;
}

.wp-diagram-tri-bottom {
  display: flex;
  gap: 80px;
  justify-content: center;
}

/* Transform diagram (Ch4) */
.wp-diagram-transform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.wp-diagram-transform-card {
  flex: 1;
  max-width: 260px;
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.wp-diagram-transform-card--old {
  background: #f8f8f8;
  border-color: #ddd;
}

.wp-diagram-transform-card--new {
  background: #f8faff;
  border-color: #00509e;
  border-width: 2px;
}

.wp-diagram-transform-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #888;
  background: #eee;
  padding: 3px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.wp-diagram-transform-badge--new {
  color: #fff;
  background: #00509e;
}

.wp-diagram-transform-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
}

.wp-diagram-transform-card--new .wp-diagram-list li::before {
  background: #00509e;
}

.wp-diagram-transform-card--old .wp-diagram-list li::before {
  background: #aaa;
}

.wp-diagram-transform-arrow {
  padding: 0 16px;
  flex-shrink: 0;
}

.wp-diagram-transform-arrow svg {
  width: 48px;
  height: 24px;
}

/* Foundation statement (Ch5) */
.wp-foundation-statement {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-left: 4px solid #00509e;
  border-radius: 8px;
  padding: 40px 36px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.wp-foundation-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: #222;
  line-height: 2;
  letter-spacing: 0.03em;
}

/* Closing */
.wp-closing {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.wp-closing p {
  font-size: 0.95rem;
  color: #444;
  line-height: 2;
}

.wp-closing-wish {
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  line-height: 2;
}

.wp-closing-sign {
  margin-top: 32px;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* Whitepaper responsive */
@media (max-width: 768px) {
  .wp-diagram-dual,
  .wp-diagram-transform {
    flex-direction: column;
    gap: 16px;
  }

  .wp-diagram-card,
  .wp-diagram-transform-card {
    max-width: 100%;
    width: 100%;
  }

  .wp-diagram-connector {
    flex-direction: row;
    padding: 8px 0;
  }

  .wp-diagram-connector-line {
    width: 20px;
    height: 2px;
  }

  .wp-diagram-transform-arrow {
    padding: 8px 0;
    transform: rotate(90deg);
  }

  .wp-diagram-tri-bottom {
    gap: 32px;
  }

  .wp-foundation-statement {
    padding: 28px 20px;
  }
}

/* ===================================
   About Us (私たちについて)
   =================================== */

/* Statement (はじめに) */
.about-statement {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.about-statement-lead {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  line-height: 2;
  margin-bottom: 24px;
}

.about-statement-body {
  font-size: 1rem;
  color: #444;
  line-height: 2.2;
  margin-bottom: 32px;
}

.about-statement-contrast {
  background: #f8faff;
  border-left: 4px solid #00509e;
  border-radius: 8px;
  padding: 28px 32px;
  text-align: left;
}

.about-statement-contrast p {
  font-size: 0.95rem;
  color: #333;
  line-height: 2;
}

/* Chapter body */
.about-chapter {
  max-width: 760px;
  margin: 0 auto;
}

.about-chapter-intro {
  font-size: 1rem;
  color: #333;
  line-height: 2;
  margin-bottom: 24px;
  text-align: center;
}

/* Point list */
.about-point-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-point-list li {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
  padding-left: 24px;
  position: relative;
}

.about-point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00509e;
}

/* Highlight block */
.about-highlight {
  background: #f8faff;
  border-left: 4px solid #00509e;
  border-radius: 8px;
  padding: 28px 32px;
  margin-top: 28px;
  text-align: center;
}

.about-highlight p {
  font-size: 1.05rem;
  color: #222;
  line-height: 2;
}

.about-highlight strong {
  color: #00509e;
}

/* Stance block */
.about-stance {
  text-align: center;
  margin: 24px 0;
}

.about-stance p {
  font-size: 0.95rem;
  color: #444;
  line-height: 2.2;
}

.about-stance strong {
  color: #00509e;
}

/* Dual lists (対比) */
.about-dual-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0 8px;
}

.about-dual-list {
  border-radius: 12px;
  padding: 28px 24px;
}

.about-dual-list h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-align: center;
}

.about-dual-list ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-dual-list li {
  font-size: 0.9rem;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.about-dual-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* Not list */
.about-dual-list--not {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.about-dual-list--not h4 {
  color: #888;
}

.about-dual-list--not li {
  color: #888;
}

.about-dual-list--not li::before {
  background: #ccc;
}

/* Yes list */
.about-dual-list--yes {
  background: #f8faff;
  border: 2px solid #00509e;
}

.about-dual-list--yes h4 {
  color: #00509e;
}

.about-dual-list--yes li {
  color: #333;
}

.about-dual-list--yes li::before {
  background: #00509e;
}

/* Closing */
.about-closing {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-closing p {
  font-size: 1rem;
  color: #444;
  line-height: 2.2;
  margin-bottom: 24px;
}

.about-closing strong {
  color: #00509e;
}

.about-closing-final {
  font-size: 1.05rem;
  font-weight: 500;
  color: #222;
  margin-top: 8px;
}

/* About Us responsive */
@media (max-width: 768px) {
  .about-dual-lists {
    grid-template-columns: 1fr;
  }

  .about-statement-contrast {
    padding: 20px;
  }

  .about-highlight {
    padding: 20px;
  }

  .about-statement-lead {
    font-size: 1.05rem;
  }
}

/* ===================================
   Kaya (広報誌『萱』detail page)
   =================================== */
.kaya-vol-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.kaya-vol-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #00509e;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.kaya-vol-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
  line-height: 1.7;
}

.kaya-body {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.kaya-body p {
  font-size: 1rem;
  color: #444;
  line-height: 2.2;
  margin-bottom: 16px;
}

.kaya-body p:last-child {
  margin-bottom: 0;
}

.kaya-sign {
  margin-top: 32px;
  font-size: 0.9rem;
  color: #666;
  text-align: right;
  line-height: 1.8;
}

.kaya-questions {
  max-width: 600px;
  margin: 0 auto;
}

.kaya-question-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kaya-question-list li {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
  padding-left: 24px;
  position: relative;
}

.kaya-question-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00509e;
}

.kaya-quotes {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kaya-quote {
  background: #fff;
  border-left: 4px solid #00509e;
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.kaya-quote p {
  font-size: 1rem;
  color: #444;
  line-height: 2;
  font-style: italic;
}

.kaya-margin {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 0;
}

.kaya-margin-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #00509e;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.kaya-margin-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 2.2;
  font-weight: 300;
}

.kaya-margin-next {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .kaya-vol-title {
    font-size: 1.3rem;
  }

  .kaya-quote {
    padding: 20px;
  }
}

/* ===================================
   いちごちゃん Chat Widget — 9 Images
   =================================== */

/* ── Floating button ── */
.ichigo-widget-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 100px;
  height: 100px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ichigoBreath 3s ease-in-out infinite;
}
.ichigo-widget-btn:hover {
  animation-play-state: paused;
  transform: scale(1.05);
}

@keyframes ichigoBreath {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* Dual-image hover swap (normal ↔ hover) */
.ichigo-btn-img {
  position: absolute;
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.15));
  transition: opacity 0.3s ease;
}
.ichigo-btn-normal { opacity: 1; }
.ichigo-btn-hover  { opacity: 0; }
.ichigo-widget-btn:hover .ichigo-btn-hover  { opacity: 1; }

/* ── 動作フレームシステム v2.8.0 — single animated frame + drag feedback ── */
/* The face is now ONE JS-animated frame; never hide it on hover. */
.ichigo-widget-btn:hover .ichigo-btn-normal { opacity: 1; }
/* allow dragging on touch without the page scrolling under the finger */
.ichigo-widget-btn { touch-action: none; }
/* drag "lift": larger, stronger shadow, float paused, raised above the panel */
.ichigo-widget-btn.is-grabbing {
  animation: none;
  transform: scale(1.14);
  cursor: grabbing;
  z-index: 10001;
}
.ichigo-widget-btn.is-grabbing .ichigo-btn-img {
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.30));
}
/* snap-back bounce when reset (double-tap / long-press) to the default corner */
.ichigo-widget-btn.ichigo-reset { animation: ichigoReset 0.5s ease; }
@keyframes ichigoReset {
  0%   { transform: scale(0.72); }
  55%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Tooltip — academic gold/navy speech bubble */
.ichigo-tooltip {
  position: absolute;
  top: -52px;
  right: -8px;
  background: #0B1F3A;
  color: #C9A96E;
  border: 1px solid #C9A96E;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(4px);
}
.ichigo-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 24px;
  width: 10px;
  height: 10px;
  background: #0B1F3A;
  border-right: 1px solid #C9A96E;
  border-bottom: 1px solid #C9A96E;
  transform: rotate(45deg);
}
.ichigo-widget-btn:hover .ichigo-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* ── Chat panel ── */
.ichigo-chat-panel {
  position: fixed;
  bottom: 130px;
  right: 24px;
  width: 360px;
  height: 500px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ichigo-chat-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Header */
.ichigo-chat-header {
  background: #0B1F3A;
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.ichigo-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ichigo-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
}
.ichigo-header-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.ichigo-header-status {
  display: block;
  font-size: 10px;
  color: #4ade80;
}
.ichigo-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  line-height: 1;
}
.ichigo-close-btn:hover { opacity: 1; }

/* Chat body */
.ichigo-chat-body {
  flex: 1;
  padding: 16px;
  background: #F9FAFB;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Messages */
.ichigo-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.ichigo-msg--ai { flex-direction: row; }
.ichigo-msg--user { flex-direction: row-reverse; }

.ichigo-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: contain;
}

.ichigo-bubble {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 80%;
}
.ichigo-msg--ai .ichigo-bubble {
  background: #fff;
  border: 1px solid #E5E7EB;
  color: #374151;
  border-bottom-left-radius: 4px;
}
.ichigo-msg--ai .ichigo-bubble a {
  color: #00509e;
}
.ichigo-msg--user .ichigo-bubble {
  background: #0B1F3A;
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.ichigo-typing .ichigo-bubble {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 18px;
}
.ichigo-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999;
  animation: ichigoBounce 1.2s infinite;
}
.ichigo-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ichigo-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes ichigoBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Footer */
.ichigo-chat-footer {
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #E5E7EB;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
#ichigoChatInput {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 24px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#ichigoChatInput:focus {
  border-color: #0B1F3A;
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.18);
}
#ichigoChatInput:focus-visible {
  outline-color: #0B1F3A;
}
.ichigo-send-btn {
  background: #0B1F3A;
  color: #C9A96E;
  border: none;
  padding: 0 18px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.2s;
}
.ichigo-send-btn:hover {
  background: #142d52;
}

/* ── Mobile: windowed (same as desktop, adjusted size) ── */
@media (max-width: 768px) {
  .ichigo-chat-panel {
    right: 12px;
    bottom: 110px;
    width: calc(100vw - 24px);
    max-width: 360px;
    height: 55vh;
    border-radius: 16px;
  }
  .ichigo-widget-btn {
    bottom: 16px;
    right: 16px;
    width: 80px;
    height: 80px;
  }
  .ichigo-btn-face { width: 68px; height: 68px; }
}

/* v2.14.0 — 旧フローティング草莓猫ボタンを廃止し、ichigo-widget(新キャラ)に置換。
   チャットパネル(.ichigo-chat-panel)は維持。旧ボタンは全サイトで非表示。 */
.ichigo-widget-btn { display: none !important; }

/* v2.14.2 — チャットアバターを新ウィジェット(ichigo-widget)の全身フレームから
   頭部にクロップして表示。浮動キャラと同一キャラに統一。 */
.ichigo-chat-avatar {
  display: inline-block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: #FFF2F6; border: 2px solid rgba(120,185,230,.45);
  box-shadow: 0 4px 12px rgba(47,128,216,.14); flex-shrink: 0; vertical-align: bottom;
}
.ichigo-chat-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(2.15); transform-origin: 50% 16%;   /* 全身→頭部にズーム */
}
.ichigo-chat-header .ichigo-chat-avatar { width: 44px; height: 44px; }
.ichigo-msg .ichigo-chat-avatar { width: 34px; height: 34px; }

/* v2.14.3 — ヘッダーアバターを base+eyes の重ねレイヤーにし、浮動キャラの
   まばたき/口パク/表情をライブミラーできるようにする(同一クロップで重ねる) */
.ichigo-chat-avatar { position: relative; }
.ichigo-chat-avatar img { position: absolute; inset: 0; }
.ichigo-chat-eyes { pointer-events: none; }

/* v2.14.4 — チャットアバターを「頭部特写」から「上半身」表示へ(顔+蝴蝶结+手)。
   base と eyes は同一 .ichigo-chat-avatar img ルールで同じクロップ→まばたき整列を維持。 */
.ichigo-chat-header .ichigo-chat-avatar { width: 52px; height: 52px; }
.ichigo-msg .ichigo-chat-avatar { width: 40px; height: 40px; }
.ichigo-chat-avatar img { transform: scale(1.5); transform-origin: 50% 22%; }
.ichigo-msg .ichigo-chat-avatar img { transform: scale(1.6); transform-origin: 50% 22%; }
