@charset "utf-8";
/* Maple Garden — layout adapted from Minamiこども教室 theme tokens (kyoshitu/base.css reference) */

* {
  box-sizing: border-box;
}

:root {
  --cream: #fffbf2;
  --brown: #583030;
  --green: #66bf58;
  --green-dark: #57a24c;
  --brown-dark: #402323;
  --white: #ffffff;
  --font-body: "Lato", "Noto Sans JP", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN",
    "メイリオ", Meiryo, sans-serif;
  --font-display: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
}

html {
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  line-height: 1.6;
  font-family: var(--font-body);
  color: var(--brown);
  overflow-x: hidden;
}

@media (min-width: 1025px) {
  body {
    font-size: 100%;
  }
}

@media (max-width: 1024px) {
  body {
    font-size: 90%;
  }
}

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

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

.contents {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .contents {
    padding-left: clamp(1.25rem, 7vw, 2rem);
    padding-right: clamp(1.25rem, 7vw, 2rem);
  }
}

section {
  padding: 36px 0;
}

.pc {
  display: block;
}

.sp {
  display: none;
}

@media (max-width: 1024px) {
  .pc {
    display: none !important;
  }
  .sp {
    display: block !important;
  }
}

/* ----- Header ----- */
.top_header {
  background: var(--cream);
  border-bottom: 1px solid rgba(88, 48, 48, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header_logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0 10px;
}

.nav-toggle {
  display: none;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.site-title a {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title span.sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
}

.btn_a {
  border-radius: 999px;
  text-align: center;
  width: min(300px, 100%);
  padding: 0.55rem 1.75rem 0.55rem 1rem;
  background-color: var(--green);
  box-shadow: 0 3px 0 var(--green-dark);
  transition: opacity 0.45s ease, transform 0.35s ease;
}

.btn_a:hover {
  opacity: 0.88;
  transform: translateY(1px);
}

.btn_a a {
  display: block;
  color: var(--white);
  font-weight: 700;
  position: relative;
  padding-right: 1.35rem;
}

.btn_a a::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.21rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

button.btn_a {
  appearance: none;
  border: none;
  border-radius: 999px;
  display: inline-block;
  text-align: center;
  width: min(320px, 100%);
  padding: 0.65rem 2rem 0.65rem 1rem;
  background-color: var(--green);
  box-shadow: 0 3px 0 var(--green-dark);
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.45s ease, transform 0.35s ease;
  position: relative;
  padding-right: 2rem;
}

button.btn_a:hover {
  opacity: 0.88;
  transform: translateY(1px);
}

button.btn_a::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.21rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.btn_b {
  border-radius: 999px;
  text-align: center;
  width: min(320px, 100%);
  padding: 0.65rem 2rem;
  background-color: var(--brown);
  box-shadow: 0 3px 0 var(--brown-dark);
  transition: opacity 0.45s ease, transform 0.35s ease;
}

.btn_b:hover {
  opacity: 0.88;
  transform: translateY(1px);
}

.btn_b a {
  display: block;
  color: var(--white);
  font-weight: 700;
}

/* Main nav — Japanese + English（Minami 型・全幅共通） */
.header_nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.header_nav li {
  position: relative;
}

@media (min-width: 1025px) {
  .header_nav li:not(:last-child) {
    border-right: 1px solid var(--brown);
  }
}

.header_nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  transition: opacity 0.35s ease;
}

.header_nav a:hover {
  opacity: 0.72;
}

.header_nav .nav-ja {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.header_nav .nav-en {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.header_nav li.active > a .nav-ja {
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}

@media (min-width: 1025px) {
  .nav-toggle,
  .nav-backdrop,
  .nav-drawer-head {
    display: none !important;
  }

  .header_nav .nav-drawer-panel {
    display: contents;
  }
}

@media (max-width: 1024px) {
  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid rgba(88, 48, 48, 0.22);
    border-radius: 10px;
    cursor: pointer;
    color: var(--brown);
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .nav-toggle:hover {
    background: rgba(102, 191, 88, 0.12);
    border-color: rgba(102, 191, 88, 0.45);
  }

  .nav-toggle:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header_logo {
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .header_logo .site-title {
    flex: 1;
    min-width: 0;
  }

  /* ドロワー（スマホ・タブレット） */
  .header_nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.32s;
  }

  .header_nav.is-open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(88, 48, 48, 0.42);
    opacity: 0;
    transition: opacity 0.28s ease;
    cursor: pointer;
  }

  .header_nav.is-open .nav-backdrop {
    opacity: 1;
  }

  .nav-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 300px);
    max-width: 100%;
    background: var(--cream);
    box-shadow: -12px 0 36px rgba(64, 35, 35, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .header_nav.is-open .nav-drawer-panel {
    transform: translateX(0);
  }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(88, 48, 48, 0.12);
    flex-shrink: 0;
  }

  .nav-drawer-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1rem;
    color: var(--brown);
  }

  .nav-close {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    color: var(--brown);
    border-radius: 8px;
    transition: background 0.2s ease;
  }

  .nav-close:hover {
    background: rgba(102, 191, 88, 0.14);
  }

  .nav-close:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
  }

  .header_nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    row-gap: 0;
    column-gap: 0;
    padding: 8px 0 28px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
  }

  .header_nav li:not(:last-child) {
    border-right: none;
  }

  .header_nav li {
    flex: 0 0 auto;
  }

  .header_nav a {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 18px;
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(88, 48, 48, 0.08);
  }

  .header_nav .nav-ja {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .header_nav .nav-en {
    display: inline;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.72;
    margin-left: auto;
  }

  .header_nav li.active > a .nav-ja {
    border-bottom: none;
    padding-bottom: 0;
    color: var(--green-dark);
    font-weight: 900;
  }

  .site-title {
    font-size: 1.05rem;
  }

  .site-title span.sub {
    font-size: 0.62rem;
  }
}
/* ----- Hero fullscreen ----- */
.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 1024px) {
  .hero {
    min-height: calc(100svh - 10rem);
    height: auto;
    padding: 2rem 0 2.75rem;
    align-items: center;
  }

  .hero-inner {
    padding-left: clamp(1.25rem, 7vw, 2rem);
    padding-right: clamp(1.25rem, 7vw, 2rem);
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(88, 48, 48, 0.58),
    rgba(88, 48, 48, 0.42)
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 920px;
  padding: 2rem clamp(1.25rem, 5vw, 2.5rem);
  animation: heroEnter 1.05s ease-out both;
}

.hero-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: min(124%, 520px);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(255, 236, 160, 0.55) 0%,
    rgba(255, 236, 160, 0.18) 45%,
    rgba(255, 236, 160, 0) 68%
  );
  z-index: 0;
  pointer-events: none;
}

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

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.hero h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.38;
  color: #fff;
  -webkit-text-stroke: 1.5px var(--brown);
}

@supports not (-webkit-text-stroke: 1.5px red) {
  .hero h2 {
    text-shadow:
      2px 2px 0 var(--brown),
      -2px 2px 0 var(--brown),
      2px -2px 0 var(--brown),
      -2px -2px 0 var(--brown),
      0 2px 6px rgba(0, 0, 0, 0.2);
    -webkit-text-stroke: 0 transparent;
  }
}

.hero p.lead {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero .btn_a,
.hero .btn_b {
  margin: 0;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

/* ----- Typography blocks (Minami-style) ----- */
.h2_square {
  color: var(--white);
  text-align: center;
  margin-bottom: 28px;
}

.h2_square span {
  background-color: var(--green);
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 0.92rem;
  padding: 6px 22px;
  display: inline-block;
}

.h2_leftdash {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: bold;
  margin-bottom: 12px;
  border-bottom: 2px dashed var(--brown);
  padding-bottom: 10px;
  text-align: center;
}

.centerbig {
  font-size: 1.35rem;
  font-family: var(--font-display);
  text-align: center;
  font-weight: bold;
  margin-bottom: 18px;
}

.txa_center {
  text-align: center;
}

.fs_small {
  font-size: 0.85rem;
}

/* ----- Cards / grids ----- */
.col2 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.col2 > .card {
  flex: 1 1 calc(50% - 10px);
  min-width: 260px;
  margin: 0;
}

.col3 {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.col3 > .card {
  flex: 1 1 calc(33.333% - 24px);
  max-width: calc(33.333% - 24px);
  min-width: 240px;
  margin: 0;
}

@media (max-width: 899px) {
  .col3 > .card {
    flex: 1 1 calc(50% - 24px);
    max-width: calc(50% - 24px);
  }
}

@media (max-width: 599px) {
  .col2 > .card,
  .col3 > .card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(88, 48, 48, 0.08);
}

.card-photo {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 18px 20px 22px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--green);
}

.tagline {
  font-weight: 900;
  color: var(--brown);
}

.note-box {
  background: var(--white);
  border-left: 6px solid var(--green);
  /* 左ボーダー分だけ左パディングを詰め、本文ブロックを左右対称に見せる */
  padding: 18px 20px 18px 14px;
  margin: 20px 0;
  box-shadow: 0 8px 22px rgba(88, 48, 48, 0.06);
}

/* ----- Tables ----- */
.table_a table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.table_a th,
.table_a td {
  border: 1px solid #707070;
  padding: 0.55rem 0.85rem;
  vertical-align: top;
}

.table_a th {
  background: #f6f6f6;
  font-weight: 700;
}

/* ----- Schedule ----- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.day-card {
  background: var(--white);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(88, 48, 48, 0.07);
}

.day-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  border-bottom: 2px dashed var(--brown);
  padding-bottom: 10px;
}

.slot {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.slot:last-child {
  border-bottom: none;
}

.slot-time {
  font-weight: 900;
  color: var(--green);
}

/* ----- Trial calendar ----- */
.trial-cal-intro {
  margin-bottom: 20px;
}

.trial-cal-month-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 900;
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--brown);
}

.trial-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  background: var(--white);
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(88, 48, 48, 0.07);
}

.trial-cal-head {
  text-align: center;
  font-weight: 900;
  font-size: 0.68rem;
  padding: 8px 2px;
  color: var(--brown);
}

.trial-cal-cell {
  min-height: 3.2rem;
  border: 1px solid rgba(88, 48, 48, 0.14);
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: center;
  background: #fafafa;
}

.trial-cal-cell.is-empty {
  background: transparent;
  border-color: transparent;
}

.trial-cal-cell .tc-date {
  font-family: var(--font-display);
  font-weight: 900;
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.tc-ok {
  background: #eef8eb;
  border-color: rgba(102, 191, 88, 0.65);
}

.tc-low {
  background: #fff8e6;
  border-color: rgba(252, 185, 0, 0.35);
}

.tc-no {
  background: #f3eeee;
  color: rgba(88, 48, 48, 0.55);
}

.trial-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
  font-size: 0.84rem;
}

.trial-cal-slot-note {
  font-size: 0.82rem;
  margin-top: 10px;
  color: rgba(88, 48, 48, 0.82);
}

/* ----- Forms ----- */
.form-grid label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.55rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.form-grid .field {
  margin-bottom: 14px;
}

/* ----- Blog ----- */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.blog-thumb {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.blog-meta {
  font-size: 0.82rem;
  color: rgba(88, 48, 48, 0.72);
  margin-bottom: 8px;
}

/* ----- Instructor ----- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(88, 48, 48, 0.08);
}

.team-role {
  color: var(--green);
  font-weight: 900;
  margin-bottom: 8px;
}

.team-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #ebe8e4;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.team-sns {
  margin: 12px 0 0;
  font-size: 0.88rem;
}

.team-sns a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.team-sns a:hover {
  opacity: 0.82;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--brown);
  color: var(--white);
  padding: 36px 0 48px;
  margin-top: 24px;
}

.site-footer a:hover {
  opacity: 0.82;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

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

.footer-nav li {
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  opacity: 0.92;
  text-align: center;
}

@media (max-width: 1024px) {
  .site-footer .footer-grid {
    justify-items: center;
    text-align: center;
  }
}

.sns-text {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.8;
}

.sns-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sns-text a:hover {
  opacity: 0.88;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-inner {
    animation: none;
  }
}
