/* わたなべ英語教室 公式サイト */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1E5AA8;
  --primary-dark: #103E75;
  --primary-soft: #DCEAF8;
  --primary-pale: #F4F8FD;
  --navy: #0C2D52;
  --text: #263548;
  --text-sub: #5E6B7B;
  --white: #FFFFFF;
  --border: #D7E1EC;
  --shadow: 0 14px 40px rgba(16, 62, 117, 0.11);
  --shadow-soft: 0 4px 18px rgba(16, 62, 117, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body {
  color: var(--text);
  background: var(--white);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input { font: inherit; }

.container { width: min(100% - 40px, 760px); margin-inline: auto; }
.container-wide { width: min(100% - 48px, 1120px); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(30,90,168,0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header-inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { margin-right: auto; display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
}
.brand-name { display: block; color: var(--navy); font-size: 0.98rem; font-weight: 700; letter-spacing: 0.03em; }
.brand-sub { display: block; margin-top: 1px; color: var(--text-sub); font-size: 0.62rem; letter-spacing: 0.08em; }
.site-nav ul { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--text); font-size: 0.83rem; font-weight: 500; transition: color 0.2s; }
.site-nav a:hover { color: var(--primary); }
.header-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.header-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-toggle-cb, .nav-toggle { display: none; }

.hero { padding: 96px 0 88px; overflow: hidden; background: var(--white); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr); align-items: center; gap: 76px; }
.eyebrow, .section-label {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.eyebrow { margin-bottom: 18px; }
.hero h1, .section-heading h2, .teacher-copy h2, .cta-section h2 {
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.45rem); line-height: 1.45; }
.hero h1 span { color: var(--primary); }
.hero-lead { max-width: 610px; margin-top: 25px; color: var(--text-sub); font-size: 1rem; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.btn {
  display: inline-flex;
  min-height: 58px;
  padding: 12px 30px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 22px rgba(30,90,168,0.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16,62,117,0.28); }
.btn-sub { margin-top: 3px; font-size: 0.68rem; font-weight: 400; opacity: 0.82; }
.text-link { display: inline-block; color: var(--primary); font-size: 0.9rem; font-weight: 700; border-bottom: 1px solid currentColor; }
.text-link::after { content: "  →"; }
.hero-points { display: flex; gap: 28px; margin-top: 45px; padding-top: 24px; border-top: 1px solid var(--border); }
.hero-points li { min-width: 96px; }
.hero-points strong { display: block; color: var(--navy); font-family: "Noto Serif JP", serif; font-size: 1.2rem; }
.hero-points span { display: block; color: var(--text-sub); font-size: 0.72rem; }

.hero-visual { position: relative; min-height: 480px; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12px -80px 12px 32px;
  border-radius: 50% 0 0 50%;
  background: var(--primary-soft);
}
.study-card { position: absolute; background: var(--white); border: 1px solid rgba(30,90,168,0.14); box-shadow: var(--shadow); }
.study-card-main { top: 42px; left: 0; width: min(100%, 380px); padding: 38px; border-radius: var(--radius); }
.study-kicker { color: var(--primary); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.15em; }
.study-title { margin: 15px 0 27px; color: var(--navy); font-family: "Noto Serif JP", serif; font-size: 1.55rem; font-weight: 700; line-height: 1.55; }
.study-line { display: flex; padding: 12px 0; justify-content: space-between; border-bottom: 1px solid var(--border); color: var(--text-sub); font-size: 0.88rem; }
.study-line b { color: var(--primary); font-size: 0.76rem; }
.study-goal { margin-top: 24px; padding: 14px 18px; background: var(--primary); color: var(--white); font-size: 0.7rem; letter-spacing: 0.12em; }
.study-goal strong { float: right; font-size: 0.92rem; letter-spacing: 0.04em; }
.study-card-note { right: -12px; bottom: 25px; padding: 20px 26px; border-radius: var(--radius-sm); color: var(--text-sub); font-size: 0.8rem; }
.study-card-note strong { color: var(--primary); font-size: 1.02rem; }

.section { padding: 96px 0; }
.section-soft { background: var(--primary-pale); }
.section-heading { max-width: 620px; margin-bottom: 48px; }
.section-heading-center { margin-inline: auto; text-align: center; }
.section-heading h2, .teacher-copy h2, .cta-section h2 { margin-top: 10px; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.55; }
.section-heading > p:last-child { margin-top: 18px; color: var(--text-sub); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { position: relative; min-height: 310px; padding: 34px 30px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.card-number { position: absolute; top: 24px; right: 28px; color: var(--primary-soft); font-family: "Noto Serif JP", serif; font-size: 2.4rem; font-weight: 700; line-height: 1; }
.feature-en { margin-top: 58px; color: var(--primary); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; }
.feature-card h3 { margin-top: 9px; color: var(--navy); font-size: 1.12rem; }
.feature-card > p:last-child { margin-top: 14px; color: var(--text-sub); font-size: 0.9rem; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-card { overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.course-card-accent { border-color: var(--primary); box-shadow: var(--shadow); }
.course-level { padding: 25px 28px; background: var(--primary-pale); border-bottom: 1px solid var(--border); }
.course-card-accent .course-level { background: var(--primary); color: var(--white); }
.course-level span { display: block; color: var(--text-sub); font-size: 0.7rem; letter-spacing: 0.14em; }
.course-card-accent .course-level span { color: rgba(255,255,255,0.76); }
.course-level strong { display: block; margin-top: 4px; color: var(--primary); font-family: "Noto Serif JP", serif; font-size: 1.45rem; }
.course-card-accent .course-level strong { color: var(--white); }
.course-body { padding: 28px; }
.course-name { color: var(--navy); font-size: 1.08rem; font-weight: 700; }
.course-body > p:nth-child(2) { margin-top: 12px; color: var(--text-sub); font-size: 0.88rem; }
.course-body ul { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border); }
.course-body li { position: relative; padding: 7px 0 7px 18px; color: var(--text-sub); font-size: 0.82rem; }
.course-body li::before { content: ""; position: absolute; top: 16px; left: 0; width: 7px; height: 2px; background: var(--primary); }
.course-contact { display: flex; margin-top: 30px; padding: 22px 26px; align-items: center; justify-content: space-between; gap: 24px; background: var(--primary-pale); border-radius: var(--radius-sm); }
.course-contact p { color: var(--text-sub); font-size: 0.84rem; }
.course-contact strong { color: var(--navy); }
.course-contact .text-link { flex-shrink: 0; }

.teacher-grid { display: grid; grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 78px; }
.teacher-photo-wrap { position: relative; }
.teacher-photo-wrap::before { content: ""; position: absolute; inset: 26px -20px -20px 26px; z-index: 0; background: var(--primary-soft); border-radius: var(--radius); }
.teacher-photo-wrap img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); object-fit: cover; }
.teacher-photo-wrap > p { position: relative; z-index: 2; width: max-content; margin: -24px 0 0 24px; padding: 11px 18px; background: var(--white); border-radius: var(--radius-sm); color: var(--primary); font-size: 0.75rem; font-weight: 700; box-shadow: var(--shadow-soft); }
.teacher-copy h2 span { color: var(--text-sub); font-family: "Noto Sans JP", sans-serif; font-size: 0.78rem; font-weight: 400; }
.teacher-facts { display: flex; gap: 0; margin-top: 25px; padding: 18px 0; border-block: 1px solid var(--border); }
.teacher-facts li { min-width: 110px; padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--border); }
.teacher-facts li:last-child { border: 0; margin: 0; padding: 0; }
.teacher-facts strong { display: block; color: var(--primary); font-size: 1.25rem; }
.teacher-facts span { color: var(--text-sub); font-size: 0.72rem; }
.teacher-message { margin-top: 26px; color: var(--text-sub); font-size: 0.92rem; }
.teacher-message p + p { margin-top: 13px; }

.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.voice-card { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); }
.voice-card-top { display: flex; min-height: 94px; align-items: flex-start; justify-content: space-between; gap: 18px; }
.voice-avatar-frame {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  overflow: hidden;
  border: 4px solid var(--white);
  outline: 2px solid var(--primary-soft);
  border-radius: 50%;
  background: var(--primary-pale);
  box-shadow: 0 6px 18px rgba(16,62,117,0.13);
}
.voice-avatar-frame img { width: 100%; height: 100%; object-fit: cover; }
.voice-quote { height: 34px; color: var(--primary-soft); font-family: Georgia, serif; font-size: 3.4rem; line-height: 1; }
.voice-card-top + p { margin-top: 18px; color: var(--text); font-size: 0.9rem; }
.voice-author { margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--border); color: var(--navy); font-size: 0.82rem; font-weight: 700; }
.voice-author span { display: block; color: var(--text-sub); font-size: 0.7rem; font-weight: 400; }

.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 34px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }
.faq-item summary { display: flex; padding: 21px 24px; align-items: center; gap: 14px; color: var(--navy); font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--primary); color: var(--white); font-size: 0.76rem; }
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--primary); font-size: 1.3rem; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item > p { margin: 0 24px 22px 66px; color: var(--text-sub); font-size: 0.9rem; }

.cta-section { padding: 88px 0; background: var(--primary); color: var(--white); text-align: center; }
.cta-section .section-label { color: var(--primary-soft); }
.cta-section h2 { color: var(--white); }
.cta-section .cta-inner > p:nth-of-type(2) { margin-top: 18px; color: rgba(255,255,255,0.82); }
.cta-section .btn { margin-top: 30px; }
.btn-light { background: var(--white); color: var(--primary); box-shadow: none; }
.btn-light:hover { background: var(--primary-pale); color: var(--primary-dark); }

.site-footer { padding: 50px 0 28px; background: var(--navy); color: rgba(255,255,255,0.64); }
.footer-top { display: flex; justify-content: space-between; gap: 50px; }
.footer-brand { max-width: 310px; }
.footer-brand .brand-name { color: var(--white); font-size: 1.05rem; }
.footer-brand p { margin-top: 10px; color: rgba(255,255,255,0.58); font-size: 0.8rem; }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 42px; }
.footer-col h3 { margin-bottom: 11px; color: rgba(255,255,255,0.9); font-size: 0.73rem; letter-spacing: 0.06em; }
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col a { color: rgba(255,255,255,0.64); font-size: 0.78rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-business { max-width: 220px; padding-left: 26px; border-left: 1px solid rgba(255,255,255,0.14); }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-copy { color: rgba(255,255,255,0.44); font-size: 0.72rem; }

.sticky-cta { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 19px;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle span::before { top: -7px; left: 0; }
  .nav-toggle span::after { top: 7px; left: 0; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: max-height 0.25s ease;
  }
  .site-nav ul { display: block; padding: 8px 24px 18px; }
  .site-nav li { border-bottom: 1px solid var(--primary-pale); }
  .site-nav a { display: block; padding: 13px 4px; }
  .header-cta { display: none; }
  .nav-toggle-cb:checked ~ .site-nav { max-height: 340px; }
  .nav-toggle-cb:checked ~ .nav-toggle span { background: transparent; }
  .nav-toggle-cb:checked ~ .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle-cb:checked ~ .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
  .hero-inner { grid-template-columns: 1fr 0.8fr; gap: 40px; }
  .hero-visual { min-height: 440px; }
  .study-card-main { padding: 30px; }
  .feature-grid, .course-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-en { margin-top: 38px; }
  .course-card { display: grid; grid-template-columns: 180px 1fr; }
  .course-level { border-right: 1px solid var(--border); border-bottom: 0; }
  .teacher-grid { gap: 48px; }
  .voice-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-cols { justify-content: flex-start; }
}

@media (max-width: 680px) {
  :root { --header-h: 62px; }
  body { padding-bottom: 82px; }
  .container { width: min(100% - 36px, 760px); }
  .container-wide { width: min(100% - 36px, 1120px); }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 0.9rem; }
  .hero { padding: 68px 0 58px; }
  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.7rem); }
  .hero-lead { font-size: 0.94rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-actions .btn { width: 100%; }
  .hero-points { gap: 13px; justify-content: space-between; }
  .hero-points li { min-width: 0; }
  .hero-points strong { font-size: 1.05rem; }
  .hero-visual { min-height: 425px; }
  .hero-visual::before { inset: 0 -80px 20px 18px; }
  .study-card-main { top: 16px; width: calc(100% - 24px); padding: 27px 24px; }
  .study-title { font-size: 1.35rem; }
  .study-card-note { right: -2px; bottom: 8px; }
  .section { padding: 70px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2, .teacher-copy h2, .cta-section h2 { font-size: 1.75rem; }
  .course-card { display: block; }
  .course-level { border-right: 0; border-bottom: 1px solid var(--border); }
  .course-contact { align-items: flex-start; flex-direction: column; }
  .teacher-grid { grid-template-columns: 1fr; gap: 56px; }
  .teacher-photo-wrap { width: calc(100% - 18px); }
  .teacher-facts { justify-content: space-between; }
  .teacher-facts li { min-width: 0; margin-right: 12px; padding-right: 12px; }
  .faq-item summary { padding: 18px; font-size: 0.92rem; }
  .faq-item > p { margin: 0 18px 19px; font-size: 0.86rem; }
  .cta-section { padding: 70px 0; }
  .cta-section br { display: none; }
  .cta-section .btn { width: 100%; }
  .footer-cols { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 28px 22px; }
  .footer-business { grid-column: 1 / -1; max-width: none; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,0.14); border-left: 0; }
  .sticky-cta {
    display: block;
    position: fixed;
    z-index: 180;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 11px 14px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 -4px 18px rgba(16,62,117,0.15);
  }
  .sticky-cta .btn { width: 100%; min-height: 56px; padding: 11px 18px; font-size: 0.9rem; }
}

@media (max-width: 390px) {
  .brand-sub { display: none; }
  .hero h1 { font-size: 1.92rem; }
  .hero-points { gap: 8px; }
  .hero-points strong { font-size: 0.96rem; }
  .hero-points span { font-size: 0.65rem; }
  .study-card-note { padding: 16px 19px; }
  .feature-card, .course-body, .voice-card { padding-inline: 24px; }
  .teacher-facts strong { font-size: 1.04rem; }
  .teacher-facts span { font-size: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
