/* ==========================================================================
   0. Design Tokens
   ========================================================================== */
:root {
  /* Colors */
  --c-red: #c8313a;
  --c-red-dark: #a3252d;
  --c-cream: #fffaf4;
  --c-cream-soft: #f7f1e8;
  --c-hero-blob: #ece2db;
  --c-ink: #3a3630;
  --c-ink-soft: #333;
  --c-white: #ffffff;

  --c-beaver: #ffe4eb;
  --c-beaver-dark: #e07ea3;
  --c-hockey: #b9e2f2;
  --c-hockey-dark: #4ba8cf;
  --c-bear: #e7edb0;
  --c-bear-dark: #9ab52a;
  --c-moose: #f0dcb0;
  --c-moose-dark: #c99a3e;

  --c-kids: #148a26;
  --c-adults: #188fbc;

  --c-badge-yellow: #ffd23f;

  /* Type */
  --font-display: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;

  /* Layout */
  --container: 1120px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(60, 40, 20, 0.08);
}

/* ==========================================================================
   1. Reset / Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.4;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--c-red);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--c-adults);
  outline-offset: 3px;
}

/* Section title with maple-leaf eyebrow, reused across sections */
.section-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-title .leaf {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.section-title .accent {
  color: var(--c-red);
}
.section-title .accent span {
  color: #280000;
}

/* ==========================================================================
   2. Site Header
   ========================================================================== */
.site-header {
  padding: 20px 0;
  background: var(--c-cream);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.site-branding {
  width: 250px;
  height: auto;
}

.site-branding .leaf-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.site-title {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
}

.site-title .en {
  color: var(--c-red);
}

.site-header__badge {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.header_logo {
  margin-right: 10px;
}


/* ==========================================================================
   3. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: 20px 40px;
  overflow: hidden;
  background: #fff;
}

.hero__blob {
  position: absolute;
  inset: 0;
  z-index: 0;

  pointer-events: none;
}

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

.hero__eyebrow {
  display: flex;
  aling-items: center;
  font-size: clamp(1.125rem, 0.989rem + 0.68vw, 1.5rem);
  font-weight: 700;
  color: var(--c-ink-soft);
  margin-bottom: 8px;
}

.hero__eyebrow img {
  margin-right: 10px;
}

.hero__title {
  font-size: clamp(28px, 4.4vw, 60px);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: -40px;
  position: relative;
  z-index: 9999;
}

.hero__figure {
  position: relative;
  overflow: hidden;
  z-index: 1111;
}

.hero__figure img {
  width: 100%;
}

.hero__flags-badge {
  position: absolute;
  right: 24px;
  bottom: 100px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 14px 22px;
  font-size: clamp(20.00px, calc(0.44vw + 18.34px), 24.00px);
  line-height: 1.2;
  font-weight: 700;
  text-align: center;

}

.hero__fun-text {
  margin-top: 56px;
  text-align: center;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 1px;
}

.hero__fun-text span:nth-child(1) { color: #e35b7a; }
.hero__fun-text span:nth-child(2) { color: #3aa845; }
.hero__fun-text span:nth-child(3) { color: #3aa845; }
.hero__fun-text span:nth-child(4) { color: #2f8fc1; }
.hero__fun-text span:nth-child(5) { color: #f2a53c; }
.hero__fun-text span:nth-child(6) { color: #2f8fc1; }
.hero__fun-text span:nth-child(7) { color: #e35b7a; }

/* ==========================================================================
   4. CTA Banner (Trial lesson)
   ========================================================================== */
.cta-banner {
  padding-block: 60px 60px;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner__animal {
  width: 96px;
  height: auto;
  flex-shrink: 0;
}

.cta-banner__card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffdfb8;
  border-radius: 40px;
  padding: 25px 40px;
  box-shadow: var(--shadow-soft);
}

.cta-banner__click {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--c-badge-yellow);
  color: var(--c-ink);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.cta-banner__text h3 {
  font-size: 30px;
  margin-bottom: 2px;
}

.cta-banner__text .en {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-red);
  display: block;
  margin-bottom: 6px;
}

.cta-banner__text p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--c-ink-soft);
}

.cta-banner__link {
  display: inline-block;
  margin-top: 4px;
}

/* ==========================================================================
   5. Features ("選ばれる理由")
   ========================================================================== */
.features {
  background: var(--c-cream-soft);
  padding-block: 64px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.features__icon {
  width: auto;
  height: 75px;
  margin-inline: auto;
  margin-bottom: 18px;
  color: var(--c-red);
}

.features__item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  text-align: center;
}

.features__item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-ink-soft);
  margin: 0;
}

/* ==========================================================================
   6. Teacher spotlight
   ========================================================================== */
.teacher {
  padding-block: 90px;
  background: #fff;
}

.teacher__figure {
  margin: 0 auto;
  position: relative;
  width: 90%;
}

.teacher__figure .teacher__image {
  width: 100%;
  height: auto;
}

.teacher__jp-bar {
  font-size: clamp(16px, 2vw, 24px);
  position: absolute;
  right: -3%;
  bottom: 7%;
  background: #fff;
  padding: 5px 26px;
  font-weight: 700;
  line-height: 1.2;
}

.teacher__name {
  text-align: center;
  margin-top: 18px;
  font-weight: 700;
  font-size: 14px;
}

/* ==========================================================================
   7. Classes ("クラス紹介")
   ========================================================================== */
.classes {
  padding-block: 90px;
  background: #fff;
}

.classes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.class-card {
  padding: 50px 0 30px;
  position: relative;
}

.class-card:nth-child(1) { background: var(--c-beaver); }
.class-card:nth-child(2) { background: var(--c-hockey); }
.class-card:nth-child(3) { background: var(--c-bear); }
.class-card:nth-child(4) { background: var(--c-moose); }

.class-card__tag {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  padding: 0;
  margin-top: auto;
  writing-mode: vertical-rl;
  top: 20px;
  left: 10px;
  position: absolute;
}

.class-card:nth-child(1) .class-card__tag { color: #990037; }
.class-card:nth-child(2) .class-card__tag { color: #00628d; }
.class-card:nth-child(3) .class-card__tag { color: #907900; }
.class-card:nth-child(4) .class-card__tag { color: #553300; }

.class-card__icon {
  width: 100px;
  height: 100px;
  margin-inline: auto;
  position: relative;
  z-index: 9999;
}
.class-card h3 {
  margin: 50px 0 30px;
  padding: 10px 5px;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.5px;
}
.beaver.class-card h3 {
  background: #D80073;
}
.hockey.class-card h3 {
  background: #018fbc;
}
.bear.class-card h3 {
  background: #E3C800;
}
.moose.class-card h3 {
  background: #825A2C;
}

.class-card .jp-name {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  margin-top: 5px;
}

.class-card p {
  padding: 0 10%;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink);
}
.eiken {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto 0;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.eiken img {
  margin-right: 15px;
  width: 25%;
}
.eiken p {
  position: relative;
}
.eiken p span {
  font-size: 26px;
  color: #ff0000;
}
.eiken a {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* ==========================================================================
   8. Pricing ("レッスン費")
   ========================================================================== */
.pricing {
  padding-block: 90px;
  display: flex;
  justify-content: center;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 0 auto;
  max-width: 800px;
}

.pricing-card {
  border-radius: var(--radius-md);
  border: 3px solid var(--card-color, var(--c-kids));
  padding: 28px 0 34px;
  text-align: center;
  background: #fff;
}

.pricing-card--kids { --card-color: var(--c-kids); }
.pricing-card--adults { --card-color: var(--c-adults); }

.pricing-card h3 {
  font-size: 32px;
  color: var(--card-color);
  margin-bottom: 8px;
}

.pricing-card__sub {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}

.pricing-card__note {
  font-size: 16px;
  color: var(--c-ink-soft);
  margin-bottom: 20px;
}

.pricing-card__label {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 6px;
  margin-bottom: 10px;

}
.pricing-card--kids .pricing-card__label {
  background: #148a26;
  position: relative;
}
.pricing-card--kids .pricing-card__label::before {
  content: "";
  display: block;
  clip-path: polygon(50% 30px, 100% 0%, 0% 0%);
  position: absolute;
  bottom: 0;
  left: 0;
  background: #000;
}
.pricing-card--adults .pricing-card__label {
  background: #188fbc;
}

.pricing-card__amount {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--card-color);
}

.pricing-card__amount small {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink-soft);
  display: block;
}

.pricing-card__schedule {
  margin-top: 24px;
  padding: 0 30px;
  text-align: left;
  font-size: 16px;
}

.pricing-card__schedule dt {
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
  margin-bottom: 6px;
  padding: 2px 5px;
  text-align: center;

  border-radius: 30px;
  background: #fbf100;
}

.pricing-card__schedule dd {
  margin: 0 auto 2px;
  width: 90%;
  text-align: center;
  color: var(--c-ink-soft);
  border-bottom: 1px dotted #333;
}
.pricing-card__schedule dd:last-of-type {
  border: 0;
}


/* ==========================================================================
   9. Contact
   ========================================================================== */
.contact {
  margin-top: 60px;
  padding-block: 64px 80px;
  text-align: center;
  background: #f1e7e0;
}

.contact__notes {
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-ink-soft);
  margin-bottom: 24px;
}

.contact__notes p {
  margin: 4px 0;
}

.contact__box {
  display: inline-block;
  background: #fff;
  border-radius: 60px;
  padding: 30px 60px;
  font-size: 14px;
  line-height: 1;
}
.contact__box p {
  margin: 10px 0;
}
.contact__box a {
  font-weight: 700;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer {
  background: #6f1400;
  color: #d8d3ca;
  text-align: center;
  padding: 24px 0;
  font-size: 12.5px;
}

.site-footer a:hover {
  color: #fff;
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .features__grid,
  .classes__grid,
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .classes__grid {
    box-shadow: none;
  }

  .class-card {
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
  }
  .eiken img {
    width: 40%;
  }
}

@media (max-width: 600px) {
  .features__grid,
  .pricing__grid {
    grid-template-columns: 1fr;
  }
  
  .classes__grid {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .hero__flags-badge {
    position: static;
    margin-top: 16px;
    max-width: none;
  }
  .teacher {
    padding-block: 60px 30px;
  }
  .teacher__jp-bar {
    position: static;
    display: block;
    width: 100%;
    text-align: center;
  }
  .teacher__figure {
    width: 100%;
  }

  .site-header .container {
    flex-direction: column;
    text-align: center;
  }
  .eiken {
    flex-direction: column;
  }
  .eiken img {
    margin-right: 0;
    width: 80%;
  }
  .cta-banner__card {
    flex-direction: column-reverse;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
