:root {
  --navy: #0b1f3a;
  --navy-2: #123d68;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --sky: #38bdf8;
  --sky-dark: #0284c7;
  --cream: #f3f8ff;
  --paper: #ffffff;
  --text: #1f2933;
  --muted: #697586;
  --line: #e6e9ee;
  --shadow: 0 18px 48px rgba(11, 31, 58, 0.13);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text);
  line-height: 1.9;
  background: var(--cream);
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 86px 0;
}

.section.compact {
  padding: 56px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--sky);
  border-radius: 99px;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  line-height: 1.13;
  letter-spacing: -0.04em;
  font-weight: 500;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--navy);
}

h3 {
  margin-bottom: 14px;
  font-size: 1.26rem;
  line-height: 1.55;
  color: var(--navy);
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  color: #334155;
  line-height: 2.05;
  font-weight: 500;
}

.muted {
  color: var(--muted);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 36px 0 90px;
  color: white;
  background:
    radial-gradient(circle at 86% 18%, rgba(56, 189, 248, 0.30) 0 12%, transparent 34%),
    radial-gradient(circle at 16% 22%, rgba(37, 99, 235, 0.52) 0 17%, transparent 42%),
    linear-gradient(135deg, #07182f 0%, #0f3b68 54%, #2563eb 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.15));
}

.hero::after {
  content: "TD";
  position: absolute;
  right: -70px;
  bottom: -130px;
  color: rgba(255,255,255,0.06);
  font-weight: 500;
  font-size: min(34vw, 380px);
  line-height: 1;
  letter-spacing: -0.1em;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.brand-logo {
  min-height: 96px;
  padding: 14px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.22);
  backdrop-filter: blur(10px);
}

.brand-image {
  display: block;
  height: 82px;
  width: auto;
  max-width: min(480px, 52vw);
  object-fit: contain;
}

.brand-fallback {
  display: none;
  align-items: center;
  gap: 12px;
}

.brand.show-fallback .brand-fallback {
  display: flex;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 12px;
  color: white;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  font-size: 0.92rem;
}

.hero h1 span {
  color: #bfdbfe;
}

.hero-copy {
  margin-bottom: 28px;
  color: rgba(255,255,255,0.9);
  font-size: 1.16rem;
  line-height: 2.1;
  font-weight: 500;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  line-height: 1.35;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.btn-secondary {
  color: white;
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.12);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.btn-outline {
  color: var(--blue-dark);
  border: 2px solid rgba(37, 99, 235, 0.22);
  background: white;
  box-shadow: none;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  font-weight: 500;
  font-size: 0.92rem;
}

.hero-card {
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 30px;
  padding: 28px;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 28px 90px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px);
}

.hero-card h2 {
  margin: 0 0 18px;
  color: white;
  font-size: 1.42rem;
  letter-spacing: 0;
}

.schedule-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.9);
  color: var(--text);
}

.schedule-card + .schedule-card {
  margin-top: 14px;
}

.schedule-card .label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.schedule-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.55;
}

.price-mini {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  background: #eaf4ff;
  color: var(--navy);
}

.price-mini b {
  color: var(--sky-dark);
  font-size: 1.48rem;
}

.white {
  background: white;
}

.cream {
  background: var(--cream);
}

.navy-section {
  color: white;
  background:
    radial-gradient(circle at 15% 20%, rgba(37,99,235,0.50), transparent 34%),
    linear-gradient(135deg, var(--navy), #1d4ed8);
}

.navy-section h2,
.navy-section h3 {
  color: white;
}

.navy-section .eyebrow {
  color: #bfdbfe;
}

.navy-section .muted,
.navy-section p {
  color: rgba(255,255,255,0.84);
}

.center {
  text-align: center;
}

.section-head {
  width: min(780px, 100%);
  margin: 0 auto 44px;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

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

.card {
  height: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.06);
}

.card.soft {
  background: #f0f7ff;
}

.card h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.num {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 500;
}

.problem-list,
.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem-list li,
.check-list li {
  position: relative;
  padding: 16px 18px 16px 48px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 9px 24px rgba(11,31,58,0.06);
  font-weight: 500;
}

.problem-list li::before {
  content: "?";
  position: absolute;
  left: 17px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: white;
  background: var(--sky);
  font-size: 0.82rem;
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 17px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 0.82rem;
  font-weight: 500;
}

.quote-box {
  padding: 42px;
  border-radius: 28px;
  color: white;
  background:
    linear-gradient(135deg, rgba(37,99,235,0.94), rgba(11,31,58,0.96)),
    var(--navy);
  box-shadow: var(--shadow);
}

.quote-box p {
  margin-bottom: 0;
  font-size: clamp(1.14rem, 2vw, 1.48rem);
  line-height: 2;
  font-weight: 500;
}

.compare {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-cell {
  padding: 34px;
}

.compare-cell:first-child {
  border-right: 1px solid var(--line);
  background: #f7fafc;
}

.compare-cell .tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: white;
  background: var(--navy-2);
  font-weight: 500;
  font-size: 0.84rem;
}

.compare-cell:last-child .tag {
  background: var(--blue);
}

.curriculum {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.day-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 28px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.day-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--blue-dark), var(--sky));
}

.day-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  color: white;
  background: var(--navy);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.day-card ul {
  margin: 22px 0 0;
  padding-left: 1.2em;
}

.day-card li {
  margin: 0 0 8px;
}

.benefit-card {
  border-top: 6px solid var(--blue);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  font-weight: 500;
  font-size: 1.25rem;
}

.profile-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
  padding: 42px;
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.portrait-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 32px;
  color: white;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,0.28), transparent 36%),
    linear-gradient(135deg, var(--navy), var(--blue));
  text-align: center;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.4;
}

.bonus-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: center;
  padding: 42px;
  border-radius: 30px;
  background: #eaf4ff;
  border: 1px solid #bfdbfe;
  box-shadow: var(--shadow);
}

.bonus-badge {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 22px 38px rgba(2, 132, 199, 0.22);
  text-align: center;
  font-weight: 500;
  line-height: 1.55;
}

.price-section {
  background: white;
}

.price-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.price-card {
  padding: 36px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}

.price-card.highlight {
  border: 3px solid var(--blue);
  background: #eaf4ff;
}

.price-title {
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
}

.price {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.price span {
  font-size: 1rem;
  letter-spacing: 0;
}

.discount {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  color: white;
  background: var(--blue-dark);
  font-weight: 500;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
}

.overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.overview-item {
  padding: 22px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(11,31,58,0.06);
}

.overview-item b {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 0.9rem;
}

.overview-item span {
  display: block;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.55;
}

.faq {
  display: grid;
  gap: 16px;
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 20px rgba(11,31,58,0.05);
}

summary {
  cursor: pointer;
  padding: 22px 24px;
  color: var(--navy);
  font-weight: 500;
}

details p {
  margin: 0;
  padding: 0 24px 24px;
  color: #475569;
}

.final-cta {
  text-align: center;
  color: white;
  background:
    radial-gradient(circle at 86% 12%, rgba(56,189,248,0.34), transparent 28%),
    linear-gradient(135deg, #0b1f3a 0%, #2563eb 100%);
}

.final-cta h2,
.final-cta p {
  color: white;
}

.final-cta .btn-secondary {
  border: 1px solid rgba(255,255,255,0.34);
}

.footer {
  padding: 34px 0;
  color: rgba(255,255,255,0.74);
  background: #07182f;
  font-size: 0.88rem;
  text-align: center;
}

.floating-cta {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 22px;
  display: none;
  padding: 12px 18px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 15px 35px rgba(0,0,0,0.22);
  font-weight: 500;
}

.small-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 920px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .curriculum,
  .profile-card,
  .bonus-wrap,
  .price-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

  .topbar {
    margin-bottom: 54px;
  }

  .hero-card {
    margin-top: 10px;
  }

  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-cell:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    padding: 24px 0 64px;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .topbar .btn {
    display: none;
  }

  .hero-actions,
  .cta-row {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .hero-copy,
  .lead {
    font-size: 1rem;
  }

  .card,
  .day-card,
  .profile-card,
  .bonus-wrap,
  .price-card,
  .quote-box {
    padding: 24px;
    border-radius: 22px;
  }

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

  .bonus-badge {
    width: 150px;
    height: 150px;
  }

  .floating-cta {
    display: inline-flex;
    left: 14px;
    right: 14px;
    justify-content: center;
  }
}


/* ===== Image Slots =====
   Place your image files in the images folder using the filenames below,
   or update the src attributes in index.html.
   - images/hero-image.jpg
   - images/team-workshop.jpg
   - images/instructor-nishimiya.jpg
*/
.image-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(56, 189, 248, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.38);
  min-height: 240px;
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.12);
}

.image-slot img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: rgba(11, 31, 58, 0.62);
  font-weight: 500;
  letter-spacing: 0.03em;
  background:
    radial-gradient(circle at 24% 22%, rgba(255,255,255,0.70), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.45), rgba(255,255,255,0.18));
}

.image-slot.no-image .image-fallback {
  display: flex;
}

.hero-card .image-slot {
  min-height: 210px;
  margin-bottom: 24px;
  border-radius: 20px;
}

.image-section-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.image-section-grid .image-slot {
  min-height: 360px;
}

.profile-card .image-slot {
  width: 100%;
  min-height: 360px;
  align-self: stretch;
  box-shadow: none;
  border: 0;
}

.profile-card .image-slot img {
  min-height: 360px;
}

@media (max-width: 860px) {
  .image-section-grid {
    grid-template-columns: 1fr;
  }

  .image-section-grid .image-slot,
  .profile-card .image-slot,
  .profile-card .image-slot img {
    min-height: 260px;
  }
}

/* ===== Typography Weight Adjustment =====
   Overall boldness has been softened for a cleaner, lighter look.
   - Large headings: 700
   - Small labels / buttons / key text: 600
   - Lead copy: 500
*/
h1,
h2 {
  font-weight: 700;
}

h3,
.brand,
.btn,
.schedule-card strong,
.price-title,
.price,
.overview-item span,
summary {
  font-weight: 600;
}

.eyebrow,
.hero-kicker,
.pill,
.schedule-card .label,
.num,
.problem-list li,
.check-list li,
.problem-list li::before,
.check-list li::before,
.quote-box p,
.compare-cell .tag,
.day-label,
.feature-icon,
.portrait-placeholder,
.bonus-badge,
.discount,
.old-price,
.floating-cta,
.image-fallback {
  font-weight: 600;
}

.lead,
.hero-copy {
  font-weight: 500;
}


@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
  }

  .brand-logo {
    min-height: 72px;
    padding: 10px 14px;
    border-radius: 16px;
  }

  .brand-image {
    height: 58px;
    max-width: 78vw;
  }
}


/* Header logo moved into the hero body */
.topbar-simple {
  margin-bottom: 54px;
}

.site-name {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-brand-panel {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(11, 31, 58, 0.24);
  backdrop-filter: blur(10px);
}

.hero-brand-panel img {
  width: min(430px, 52vw);
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

/* Instructor photo sizing */
.instructor .image-slot,
.instructor-card .image-slot,
#instructor .image-slot {
  max-width: 360px;
}

@media (max-width: 768px) {
  .topbar-simple {
    align-items: flex-start;
    margin-bottom: 42px;
  }

  .topbar-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .topbar-links .btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.86rem;
  }

  .hero-brand-panel {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 18px;
  }

  .hero-brand-panel img {
    width: min(320px, 78vw);
    max-height: 90px;
  }

  .instructor .image-slot,
  .instructor-card .image-slot,
  #instructor .image-slot {
    width: min(240px, 72vw);
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 520px) {
  .site-name {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .hero-brand-panel img {
    width: min(280px, 76vw);
  }

  .instructor .image-slot,
  .instructor-card .image-slot,
  #instructor .image-slot {
    width: min(200px, 68vw);
    max-width: 200px;
  }
}


/* Stronger mobile adjustment for instructor photo */
@media (max-width: 768px) {
  .instructor-image-slot {
    width: min(190px, 58vw) !important;
    max-width: 190px !important;
    min-height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto 24px !important;
    border-radius: 24px !important;
  }

  .instructor-image-slot img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

@media (max-width: 480px) {
  .instructor-image-slot {
    width: min(160px, 54vw) !important;
    max-width: 160px !important;
    border-radius: 20px !important;
  }
}


/* ===== White logo version =====
   白文字ロゴ用：ロゴ背面の白背景・影を外し、青背景にそのまま表示します。
*/
.hero-brand-panel {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hero-brand-panel img {
  width: min(430px, 56vw);
  height: auto;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

@media (max-width: 768px) {
  .hero-brand-panel {
    margin-bottom: 18px;
    padding: 0;
  }

  .hero-brand-panel img {
    width: min(320px, 82vw);
    max-height: 92px;
  }
}

@media (max-width: 480px) {
  .hero-brand-panel img {
    width: min(280px, 78vw);
    max-height: 82px;
  }
}

/* ===== Instructor photo: smaller on mobile, direct hook ===== */
@media (max-width: 768px) {
  .instructor-photo-slot,
  .instructor-image-slot,
  .profile-card > .image-slot,
  .profile-card .image-slot {
    width: 150px !important;
    max-width: 150px !important;
    min-height: 0 !important;
    height: 150px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto 24px !important;
    border-radius: 22px !important;
  }

  .instructor-photo-slot img,
  .instructor-image-slot img,
  .profile-card > .image-slot img,
  .profile-card .image-slot img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
  }
}

@media (max-width: 480px) {
  .instructor-photo-slot,
  .instructor-image-slot,
  .profile-card > .image-slot,
  .profile-card .image-slot {
    width: 130px !important;
    max-width: 130px !important;
    height: 130px !important;
    border-radius: 18px !important;
  }
}

/* ===== Hero redesign: background image + compact layout =====
   ヘッダー内の日付・価格・画像カードをなくし、背景画像を透過レイヤーで見せます。
   背景画像は images/hero-bg.jpg を配置してください。
*/
.hero {
  min-height: auto !important;
  padding: 26px 0 72px !important;
  color: white;
  background:
    linear-gradient(90deg, rgba(7, 24, 47, 0.92) 0%, rgba(11, 31, 58, 0.78) 48%, rgba(37, 99, 235, 0.46) 100%),
    url("images/hero-bg.jpg") center center / cover no-repeat,
    linear-gradient(135deg, #07182f 0%, #0f3b68 54%, #2563eb 100%) !important;
}

.hero::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) !important;
  opacity: 0.7;
}

.hero::after {
  opacity: 0.42;
}

.topbar-simple {
  margin-bottom: 42px !important;
}

.hero-grid {
  display: block !important;
  max-width: 760px;
}

.hero-card {
  display: none !important;
}

.hero-brand-panel {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hero-brand-panel img {
  width: min(500px, 86%) !important;
  max-width: 100% !important;
  max-height: 140px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.hero-kicker {
  margin-bottom: 18px !important;
}

.hero h1 {
  margin-bottom: 18px !important;
}

.hero-copy {
  margin-bottom: 22px !important;
  max-width: 720px;
}

.hero-actions,
.hero-note {
  margin-top: 22px !important;
}

.section {
  padding: 72px 0;
}

.section.compact {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 34px;
}

/* ===== Testimonials ===== */
.testimonials-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.10), transparent 34%),
    #ffffff;
}

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

.testimonial-card {
  position: relative;
  height: 100%;
  padding: 30px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.08);
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 8px;
  left: 22px;
  color: rgba(37, 99, 235, 0.18);
  font-size: 4.8rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-text {
  position: relative;
  margin: 14px 0 22px;
  color: #334155;
  line-height: 2;
  font-weight: 500;
}

.testimonial-meta {
  display: grid;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(37, 99, 235, 0.14);
}

.testimonial-meta span {
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.testimonial-meta b {
  color: var(--navy);
  font-weight: 600;
}

/* ===== Instructor photo: smaller on mobile ===== */
@media (max-width: 768px) {
  .instructor-photo-slot,
  .instructor-image-slot,
  .profile-card > .image-slot,
  .profile-card .image-slot {
    width: 150px !important;
    max-width: 150px !important;
    min-height: 0 !important;
    height: 150px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto 24px !important;
    border-radius: 22px !important;
  }

  .instructor-photo-slot img,
  .instructor-image-slot img,
  .profile-card > .image-slot img,
  .profile-card .image-slot img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
  }
}

@media (max-width: 920px) {
  .hero {
    padding: 22px 0 58px !important;
    background:
      linear-gradient(180deg, rgba(7, 24, 47, 0.92) 0%, rgba(11, 31, 58, 0.80) 56%, rgba(37, 99, 235, 0.52) 100%),
      url("images/hero-bg.jpg") center center / cover no-repeat,
      linear-gradient(135deg, #07182f 0%, #0f3b68 54%, #2563eb 100%) !important;
  }

  .topbar-simple {
    margin-bottom: 34px !important;
  }

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

@media (max-width: 640px) {
  .hero {
    padding: 20px 0 50px !important;
  }

  .hero-brand-panel img {
    width: min(280px, 78vw) !important;
    max-height: 82px !important;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .section {
    padding: 54px 0;
  }

  .section.compact {
    padding: 42px 0;
  }

  .testimonial-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .instructor-photo-slot,
  .instructor-image-slot,
  .profile-card > .image-slot,
  .profile-card .image-slot {
    width: 130px !important;
    max-width: 130px !important;
    height: 130px !important;
    border-radius: 18px !important;
  }
}


/* ===== Lecturers section ===== */
.lecturers-section {
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.08), transparent 30%),
    #ffffff;
}

.lecturer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.lecturer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.lecturer-photo-slot {
  width: 100%;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.lecturer-photo-slot img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.lecturer-content {
  flex: 1;
  padding: 28px;
}

.lecturer-card h3 {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.46rem;
  line-height: 1.45;
}

.lecturer-profile-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lecturer-title {
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-weight: 600;
  line-height: 1.7;
}

@media (max-width: 1020px) {
  .lecturer-grid {
    grid-template-columns: 1fr;
  }

  .lecturer-card {
    display: grid;
    grid-template-columns: 260px 1fr;
  }

  .lecturer-photo-slot {
    min-height: 100%;
    aspect-ratio: auto;
  }

  .lecturer-photo-slot img {
    min-height: 100%;
  }
}

@media (max-width: 640px) {
  .lecturer-card {
    display: block;
  }

  .lecturer-photo-slot {
    width: 150px !important;
    max-width: 150px !important;
    min-height: 0 !important;
    height: 150px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 24px auto 0 !important;
    border-radius: 22px !important;
  }

  .lecturer-photo-slot img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
  }

  .lecturer-content {
    padding: 24px;
  }
}



/* ===== Lecturer photos: keep the top visible =====
   講師写真は顔や頭頂部が切れにくいように、トリミング基準を上寄せにします。
*/
.lecturer-photo-slot img,
.instructor-photo-slot img,
.instructor-image-slot img {
  object-position: center top !important;
}

@media (max-width: 640px) {
  .lecturer-photo-slot img,
  .instructor-photo-slot img,
  .instructor-image-slot img {
    object-position: center top !important;
  }
}
