/* M.M.C. ENGLISH SCHOOL */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: "Noto Sans JP", sans-serif; color: #33383f; background: #fff; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
img { max-width: 100%; }
a { color: #1f4e87; text-decoration: none; }
a:hover { color: #4fa8c7; }
input, select, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: #b9c2cc; }

.hv1:hover { background:#f5bf22 !important; color:#3a3226 !important }
.hv2:hover { background:#f5bf22 !important }
.hv3:hover { background:#FFF6F2 !important }
.hv4:hover { background:#f5bf22 !important }
.hv5:hover { background:#f5bf22 !important }
.hv6:hover { background:#FFFBEC !important }
.hv7:hover { background:#f5bf22 !important }
.hv8:hover { background:#f5bf22 !important }
.hv9:hover { background:#fffdf5 !important }
.hv10:focus { border-color:#5BB3E4 !important; background:#fff !important }
.hv11:focus { border-color:#5BB3E4 !important; background:#fff !important }
.hv12:focus { border-color:#5BB3E4 !important; background:#fff !important }
.hv13:focus { border-color:#5BB3E4 !important }
.hv14:focus { border-color:#5BB3E4 !important }
.hv15:focus { border-color:#5BB3E4 !important; background:#fff !important }

.sp-br { display: none; }

.nav-campaign span:first-child { color: #E5720A !important; }
.nav-campaign span:last-child { color: #EE7A0C !important; font-weight: 700 !important; }

/* ---- スマホ・タブレット ---- */
@media (max-width: 900px) {
  .hero-title { font-size: 40px !important; }
  .hero-copy { margin-top: -60px !important; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 30px !important; }
  .hero-copy { margin-top: -38px !important; padding-bottom: 48px !important; }
  /* トップ写真: 左右いっぱい・下はふんわり白へ */
  .hero-band { aspect-ratio: 2.6 / 1 !important; min-height: 0 !important; }
  .hero-band > .hero-img { object-position: center center !important; }
  .hero-dot { top: -34px !important; right: -26px !important; width: 74px !important; height: 74px !important; }
  .hero-btns { justify-content: center !important; }
  .hero-btns > a { justify-content: center; }
  .hero-lead { font-size: 16px !important; }
  .contact-heading { white-space: normal !important; font-size: 21px !important; }
  .bubble-row { flex-wrap: nowrap !important; align-items: center !important; gap: 12px !important; }
  .bubble-row > img { width: 52px !important; }
  .bubble-row p { font-size: 13.5px !important; line-height: 1.75 !important; }
  .bubble-row h2 { font-size: 19px !important; line-height: 1.5 !important; }
  .bubble-row h2, .bubble-row p { word-break: normal !important; line-break: auto !important; overflow-wrap: anywhere; white-space: normal !important; }
  .bubble-row h2 br { display: none; }
  .bubble-row > div { padding: 15px 14px !important; border-radius: 30px 32px 28px 30px !important; }
  .contact-card { padding: 26px 18px 30px !important; }
  .form-label { flex: 1 1 100% !important; }
  section:not(#top) { padding-left: 18px !important; padding-right: 18px !important; }
  #top { padding-left: 0 !important; padding-right: 0 !important; }
  footer { padding-left: 18px !important; padding-right: 18px !important; }
  footer .footer-logo img:last-child { height: 42px !important; }
  .footer-bottom { flex-direction: column !important; gap: 10px !important; text-align: center; }
  .sp-br { display: inline !important; }
  .class-text, .class-target, .class-label { text-align: center !important; }

  /* 料金表: 全セルを同じ文字サイズに */
  #price table th, #price table td { font-size: 13px !important; }

  /* 体験・セクション見出し */
  .trial-head { justify-content: center !important; text-align: center; }
  .trial-head > div { font-size: 18px !important; }
  .trial-eyebrow { flex-wrap: wrap !important; justify-content: center !important; }
  .sec-title { flex-direction: column !important; align-items: center !important; gap: 6px !important; }
  .teachers-title img { align-self: center !important; order: -1; }
  .trial-text { text-align: center !important; }
  .trial-btns { justify-content: center !important; }
  .event-copy { text-align: center !important; }
  .event-cta { justify-content: center !important; }

  /* プライバシーポリシー: 読みやすい折り返し */
  .pp-lead { text-align: center !important; }
  /* 理念: 固定改行をやめて自然に折り返す */
  .phil-copy p br { display: none; }
  .phil-copy p { word-break: normal !important; overflow-wrap: anywhere; }
  main p, main li { word-break: normal !important; overflow-wrap: anywhere; text-wrap: auto !important; }
  main p br { display: none; }
}

/* ---- ヘッダー（スマホ） ---- */
@media (max-width: 900px) {
  .site-header .site-logo img:first-child { height: 38px !important; }
  .site-header .site-logo img:last-child { height: 32px !important; }
  .site-header > div { padding: 8px 16px !important; min-height: 54px !important; }
  #nav-toggle { display: flex !important; }
  #site-nav {
    display: none !important;
    flex: 1 1 100%;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 6px 0 10px;
    border-top: 1px solid rgba(140,110,20,0.25);
  }
  #site-nav.is-open { display: flex !important; }
  #site-nav .nav-link {
    flex-direction: row-reverse !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(140,110,20,0.16);
  }
  #site-nav .nav-cta {
    flex-direction: row !important;
    justify-content: center;
    gap: 10px !important;
    margin-top: 12px;
  }
}
