/* =========================================================
   English Field School — style.css
   色やフォントは :root の変数を変えるだけで全体に反映されます
   ========================================================= */
:root {
  --red: #b3122e;        /* メインカラー（リバプールレッド） */
  --red-dark: #8a0d23;
  --green: #1f6b45;      /* アクセント（芝生グリーン） */
  --green-light: #e7f2ec;
  --cream: #fbf8f3;      /* 背景 */
  --ink: #1f1d1b;        /* 本文 */
  --muted: #6b655e;
  --line: #e6dfd5;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 29, 27, .08);
  --max: 1100px;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0; }
.section--white { background: var(--white); }
.section--green { background: var(--green-light); }

/* セクション見出し */
.eyebrow {
  font-family: var(--font-en);
  font-style: italic;
  color: var(--red);
  font-size: 1.05rem;
  letter-spacing: .02em;
  display: block;
  margin-bottom: .2em;
}
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head p { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.brand-name { font-family: var(--font-en); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.brand-name small { display: block; font-family: var(--font-jp); font-size: .7rem; color: var(--muted); font-weight: 400; }

.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--white); color: var(--red); }
.header-tel {
  white-space: nowrap; text-decoration: none; font-weight: 700;
  background: var(--red); color: var(--white) !important;
  padding: 9px 16px; border-radius: 999px; font-size: .9rem;
}
.header-tel:hover { background: var(--red-dark); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    display: none; padding: 12px 16px 24px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px; font-size: 1rem; }
  .header-tel { display: none; }
  .nav .nav-tel { display: block; }
}
.nav .nav-tel { display: none; }
@media (max-width: 960px) {
  .nav .nav-tel a { background: var(--red); color: var(--white); text-align: center; margin-top: 8px; border-radius: 999px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; min-height: min(78vh, 680px); display: grid; }
.hero-slides, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides img { object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-slides img.is-active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20, 12, 10, .72) 0%, rgba(20, 12, 10, .35) 55%, rgba(20, 12, 10, .1) 100%);
}
.hero-content { position: relative; z-index: 1; align-self: center; padding: 80px 0; }
.hero h1 { margin: 0; }
.hero .en { font-family: var(--font-en); font-style: italic; font-weight: 600; font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.05; display: block; }
.hero .jp { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 500; letter-spacing: .2em; display: block; margin-top: 12px; }
.hero-badge {
  display: inline-block; background: var(--red); color: var(--white);
  padding: 4px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; margin-bottom: 18px;
}
.hero-lead { margin-top: 24px; max-width: 32em; font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: .2s; font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--red); }
.btn--outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn--outline:hover { background: var(--red); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Recruit band ---------- */
.recruit { background: var(--red); color: var(--white); padding: 40px 0; }
.recruit-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.recruit h2 { font-size: 1.5rem; margin: 0 0 4px; }
.recruit p { margin: 0; opacity: .92; }
.recruit .btn { background: var(--white); color: var(--red); }
.recruit .btn:hover { background: var(--cream); }

/* ---------- Vision / Policy ---------- */
.vision { text-align: center; }
.vision-quote { font-family: var(--font-en); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.3rem); color: var(--red); margin: 0 0 .2em; }
.vision-jp { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 700; }

.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; text-align: left; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow); border-top: 4px solid var(--green);
}
.card h3 { font-size: 1.15rem; margin-bottom: .2em; }
.card .eyebrow { font-size: .95rem; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 1.3em; margin-bottom: .7em; font-size: .95rem; }
.card li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.card .note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .policy-grid { grid-template-columns: 1fr; } }

/* ---------- Link cards ---------- */
.link-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.link-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  color: var(--white); text-decoration: none; min-height: 240px; box-shadow: var(--shadow);
}
.link-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.link-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.1)); }
.link-card:hover img { transform: scale(1.05); }
.link-card div { position: absolute; z-index: 1; left: 28px; bottom: 24px; right: 28px; }
.link-card h3 { font-size: 1.4rem; margin: 0; }
.link-card span { font-size: .9rem; opacity: .9; }
.link-card:hover { color: var(--white); }
@media (max-width: 720px) { .link-cards { grid-template-columns: 1fr; } }

/* ---------- Teacher ---------- */
.teacher { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.teacher-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 317 / 402; object-fit: cover; }
.teacher-name { font-size: 1.6rem; margin-bottom: 0; }
.teacher-role { color: var(--green); font-weight: 700; font-size: .95rem; }
.teacher-profile img { border-radius: var(--radius); border: 1px solid var(--line); margin-top: 16px; }
.notice-box {
  margin-top: 20px; padding: 16px 20px; border-radius: 10px;
  background: var(--cream); border-left: 4px solid var(--red); font-size: .95rem;
}
@media (max-width: 760px) { .teacher { grid-template-columns: 1fr; } .teacher-photo { max-width: 300px; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Access / Company ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.info-list { margin: 0; }
.info-list dt { font-weight: 700; color: var(--green); font-size: .88rem; margin-top: 14px; }
.info-list dd { margin: 0; }
.map-embed { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }
.sponsors { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 12px; }
.sponsors img { height: 64px; width: auto; background: var(--white); padding: 6px; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact-tel { text-align: center; margin-bottom: 48px; }
.contact-tel a {
  display: inline-block; font-size: clamp(2rem, 6vw, 3rem); font-weight: 700;
  color: var(--red); text-decoration: none; letter-spacing: .04em;
}
.contact-tel p { color: var(--muted); margin: 0; }
.form { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); max-width: 720px; margin-inline: auto; }
.form-note { font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.form .req { color: var(--red); font-size: .78rem; margin-left: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; font: inherit; border: 1px solid var(--line);
  border-radius: 8px; background: var(--cream); margin-bottom: 18px;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--green); border-color: transparent; }
.form textarea { min-height: 160px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .form { padding: 24px; } }
.form-status { margin-top: 12px; font-weight: 700; color: var(--green); }

/* ---------- Page header (下層ページ) ---------- */
.page-hero { position: relative; color: var(--white); padding: 96px 0 72px; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(20, 12, 10, .6); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.page-hero p { margin: 8px 0 0; opacity: .92; }

/* ---------- Features page ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding: 64px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { display: grid; gap: 12px; align-content: start; position: sticky; top: 96px; }
.feature-media img { border-radius: var(--radius); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.feature-media img.tall { aspect-ratio: auto; }
.feature-num { font-family: var(--font-en); font-style: italic; color: var(--red); font-size: 2.4rem; line-height: 1; }
.feature h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-top: 8px; }
.feature h2 small { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.highlight { background: var(--green-light); padding: 18px 22px; border-radius: 10px; font-weight: 500; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media { position: static; grid-template-columns: 1fr 1fr; }
}

/* ---------- Price page ---------- */
.price-block { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; margin-bottom: 32px; }
.price-block h2 { font-size: 1.4rem; border-left: 5px solid var(--red); padding-left: 14px; }
.price-block .target { display: inline-block; background: var(--green-light); color: var(--green); font-weight: 700; font-size: .85rem; padding: 3px 12px; border-radius: 999px; margin-bottom: 14px; }
.price-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.price-table th, .price-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { background: var(--cream); font-size: .88rem; }
.price-table td.yen { text-align: right; font-weight: 700; white-space: nowrap; }
.price-table td.yen small { font-weight: 400; color: var(--muted); }
.small { font-size: .88rem; color: var(--muted); }
.schedule-img { border-radius: var(--radius); box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
@media (max-width: 600px) { .price-block { padding: 24px 18px; } .price-table th, .price-table td { padding: 10px 6px; font-size: .9rem; } }

/* ---------- Article (notice) ---------- */
.article { max-width: 780px; margin-inline: auto; background: var(--white); padding: 48px; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 600px) { .article { padding: 28px 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: #1f1d1b; color: #d9d3cb; padding: 56px 0 28px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-family: var(--font-en); font-size: 1.2rem; }
.footer-grid h4 { color: #fff; font-size: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid li a { text-decoration: none; }
.footer-grid li a:hover { text-decoration: underline; }
.copyright { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a3632; font-size: .8rem; color: #9a938a; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* スマホ固定の電話ボタン */
.fixed-tel {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  background: var(--red); color: #fff !important; text-align: center; text-decoration: none;
  font-weight: 700; padding: 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
@media (max-width: 760px) { .fixed-tel { display: block; } body { padding-bottom: 76px; } }

/* 表示アニメーション */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
@media (max-width: 600px) {
  .price-table--stack tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .price-table--stack th, .price-table--stack td { display: block; border: 0; padding: 2px 4px; background: none; text-align: left !important; }
}
