/* ===========================================================
   Apex Only One - 学習塾 公式サイト
   チラシ再現版スタイル
   配色: オレンジ #E8740A / ネイビー #1B2B5E
   フォント: Noto Sans JP
=========================================================== */

:root {
  --orange: #E8740A;
  --orange-dark: #C75F00;
  --orange-light: #FFF1E4;
  --orange-pale: #FDF6EF;
  --navy: #1B2B5E;
  --navy-dark: #14224C;
  --navy-light: #2E417F;
  --gray: #555b69;
  --light-gray: #f4f6fa;
  --line: #e3e8f2;
  --white: #ffffff;
  --text: #222633;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 34px rgba(27, 43, 94, 0.10);
  --shadow-sm: 0 4px 16px rgba(27, 43, 94, 0.08);
  --max: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text); line-height: 1.85; background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: 92%; max-width: var(--max); margin: 0 auto; }
.orange-txt { color: var(--orange); }
.navy-txt { color: var(--navy); }

/* ====== 上部オレンジヘッダー ====== */
.topbar { background: var(--orange); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 18px;
}
.brand-logo { display: flex; flex-direction: column; line-height: 1.1; }
.brand-logo .en { color: var(--navy); font-weight: 900; font-size: 1.9rem; letter-spacing: .06em; }
.brand-logo .en .o { color: var(--white); }
.brand-logo .jp { color: var(--white); font-size: .72rem; letter-spacing: .32em; margin-top: 4px; font-weight: 700; }
.topbar-cta {
  background: var(--navy); color: #fff; font-weight: 800; font-size: .92rem;
  text-align: center; padding: 12px 22px; border-radius: 10px; line-height: 1.45;
  box-shadow: 0 4px 12px rgba(0,0,0,.18); transition: .2s;
}
.topbar-cta:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* ====== 白ナビ ====== */
.mainnav { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.mainnav-inner { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.mainnav a {
  font-weight: 800; color: var(--navy); font-size: .95rem;
  padding: 18px 18px; position: relative; transition: .2s;
}
.mainnav a:hover { color: var(--orange); }
.mainnav a.current { color: var(--orange); }
.mainnav a.current::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 10px; height: 3px;
  background: var(--orange); border-radius: 3px;
}
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 14px; margin-left: auto; }
.menu-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; }
.navlinks { display: flex; align-items: center; gap: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ====== ボタン ====== */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; padding: 16px 36px; border-radius: 50px; transition: .25s; font-size: 1rem; cursor: pointer; border: 0; }
.btn .chev { font-size: 1.1em; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(232,116,10,.4); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(27,43,94,.3); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange-light); }

/* ====== 写真（フォールバック背景付き） ====== */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--navy-light), var(--navy)); min-height: 200px; }
.photo::before { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.85); font-weight: 700; font-size: .9rem; text-align: center; padding: 20px; }
.photo img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ====== ヒーロー（チラシ型：左テキスト＋右写真） ====== */
.hero { background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--orange) 60%, var(--orange) 100%); }
.hero.plain { background: #fff; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 56px 0; }
.hero-tab { display: inline-block; background: var(--navy); color: #fff; font-weight: 900; font-size: 1.05rem; padding: 10px 26px 10px 0; padding-left: 26px; margin-bottom: 26px; clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%); }
.hero-tab.round { background: var(--orange); border-radius: 50px; clip-path: none; padding: 8px 26px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 900; line-height: 1.35; color: var(--navy); letter-spacing: .01em; }
.hero h1 .o { color: var(--orange); }
.hero .lead { margin-top: 24px; font-size: 1.02rem; color: var(--text); line-height: 2; }
.hero .lead strong { color: var(--orange); }
.hero .hero-photo { position: relative; }
.hero .hero-photo .photo { min-height: 340px; }
.photo-badge {
  position: absolute; right: -14px; bottom: -18px; width: 132px; height: 132px; border-radius: 50%;
  background: var(--orange); color: #fff; display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: .82rem; line-height: 1.5; padding: 14px; box-shadow: 0 10px 24px rgba(232,116,10,.45); z-index: 3;
}

/* ====== セクション ====== */
.section { padding: 72px 0; }
.section.alt { background: var(--light-gray); }
.section.orange-bg { background: var(--orange); }
.sec-title { text-align: center; font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 900; color: var(--navy); margin-bottom: 44px; position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; }
.sec-title .num { color: var(--orange); font-size: 1.4em; }
.sec-title::before, .sec-title::after { content: ""; width: 34px; height: 3px; background: var(--orange); transform: rotate(60deg); }
.sec-title.plain::before, .sec-title.plain::after { display: none; }
.sec-title.line { gap: 20px; }
.sec-title.line::before, .sec-title.line::after { width: 60px; transform: none; }
.sec-sub { text-align: center; color: var(--gray); margin: -28px auto 40px; max-width: 720px; }

/* ====== 5つの強み カード ====== */
.cards5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; text-align: center; box-shadow: var(--shadow-sm); transition: .25s; }
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.scard .numbadge {
  width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff;
  font-weight: 900; font-size: 1rem; display: grid; place-items: center; margin: 0 auto 14px;
}
.scard .ico { height: 64px; display: grid; place-items: center; margin-bottom: 14px; color: var(--navy); }
.scard .ico svg { width: 58px; height: 58px; }
.scard h3 { color: var(--navy); font-size: 1.06rem; font-weight: 900; line-height: 1.4; margin-bottom: 12px; }
.scard p { color: var(--gray); font-size: .85rem; line-height: 1.75; }
.scard p .hl { color: var(--orange); font-weight: 700; }

/* ====== カード(横並び、アイコン上、白枠) on orange ====== */
.fcards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.fcard { background: #fff; border-radius: var(--radius); padding: 22px 16px; box-shadow: var(--shadow); text-align: center; }
.fcard .ico { color: var(--navy); margin-bottom: 12px; display: flex; justify-content: center; }
.fcard .ico svg { width: 46px; height: 46px; }
.fcard h3 { color: var(--orange); font-size: 1rem; font-weight: 900; line-height: 1.4; margin-bottom: 8px; }
.fcard p { color: var(--text); font-size: .82rem; line-height: 1.7; }

/* ====== ネイビー囲み + 右側 ====== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; align-items: stretch; }
.navybox { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; }
.navybox h2 { font-size: clamp(1.3rem,2.6vw,1.7rem); font-weight: 900; margin-bottom: 16px; }
.navybox h2 .o { color: var(--orange); }
.navybox p { font-size: .92rem; color: #dde3f2; line-height: 1.95; }
.navybox .map { margin-top: 18px; }
.recbox { background: var(--orange-pale); border-radius: var(--radius); padding: 32px 36px; }
.recbox h3 { color: var(--navy); font-size: 1.3rem; font-weight: 900; margin-bottom: 18px; }
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--text); font-size: 1rem; }
.checklist li .ck {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; background: var(--orange); color: #fff;
  display: grid; place-items: center; font-size: .85rem; font-weight: 900; margin-top: 3px;
}

/* ====== STEP フロー ====== */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 0; flex-wrap: wrap; }
.flow .step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; flex: 1; min-width: 150px; box-shadow: var(--shadow-sm); }
.flow .arrow { display: flex; align-items: center; color: var(--navy); font-size: 1.4rem; padding: 0 4px; }
.step .stepno { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; font-size: .78rem; line-height: 1; margin-bottom: 12px; }
.step .stepno small { display: block; font-size: .52rem; letter-spacing: .1em; }
.step .ico { color: var(--navy); height: 54px; display: grid; place-items: center; margin-bottom: 8px; }
.step .ico svg { width: 48px; height: 48px; }
.step h3 { color: var(--navy); font-size: 1rem; font-weight: 900; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: .8rem; line-height: 1.7; }

/* ====== メガホン CTA 帯 ====== */
.ctabar { background: #fff; border: 2px solid var(--orange); border-radius: var(--radius); padding: 24px 30px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ctabar .mega { color: var(--orange); flex-shrink: 0; }
.ctabar .mega svg { width: 54px; height: 54px; }
.ctabar .txt { flex: 1; min-width: 240px; }
.ctabar .txt h3 { color: var(--navy); font-size: 1.2rem; font-weight: 900; }
.ctabar .txt h3 .o { color: var(--orange); }
.ctabar .txt p { color: var(--gray); font-size: .9rem; margin-top: 4px; }

/* ====== オレンジ帯（中央見出し） ====== */
.bandtitle { text-align: center; padding: 30px 0; }
.bandtitle h2 { color: var(--navy); font-size: clamp(1.3rem,3.2vw,2rem); font-weight: 900; }
.bandtitle h2 .o { color: var(--orange); }
.band-orange { background: var(--orange); color: #fff; text-align: center; padding: 22px 0; }
.band-orange h2 { font-size: clamp(1.2rem,3vw,1.8rem); font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 14px; }
.band-orange .hand svg { width: 40px; height: 40px; }

/* ====== 保護者の声 吹き出し ====== */
.voices { display: grid; gap: 18px; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; position: relative; font-size: .92rem; color: var(--text); box-shadow: var(--shadow-sm); }
.bubble::after { content: ""; position: absolute; left: 28px; bottom: -12px; border: 12px solid transparent; border-top-color: #fff; }
.bubble + .bubble-who { font-size: .78rem; color: var(--gray); margin: 6px 0 0 8px; }

/* ====== 立地アイコン ====== */
.access { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: center; }
.access .ai { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 8px; }
.access .ai .ico { color: var(--navy); margin-bottom: 6px; }
.access .ai .ico svg { width: 38px; height: 38px; }
.access .ai .nm { font-weight: 800; color: var(--navy); font-size: .82rem; }
.access .ai .ds { color: var(--orange); font-size: .76rem; font-weight: 700; margin-top: 2px; }

/* ====== 学校タグ（ネイビー囲み内の白タグ） ====== */
.schoolbox { background: var(--orange-pale); border: 1px solid #f0d9c2; border-radius: var(--radius); padding: 22px; }
.schoolbox h4 { background: var(--orange); color: #fff; text-align: center; font-weight: 800; padding: 8px; border-radius: 8px; margin-bottom: 16px; font-size: .95rem; }
.schooltags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.schooltags .st { background: #fff; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 800; border-radius: 50px; padding: 8px 20px; font-size: .9rem; }
.schooltags .more { color: var(--gray); font-size: .85rem; }

/* ====== 情報ボックス（連絡先） ====== */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-box { background: var(--orange-light); border-radius: var(--radius); padding: 24px; text-align: center; }
.info-box .ti { color: var(--orange); font-weight: 800; font-size: .82rem; letter-spacing: .08em; }
.info-box .val { color: var(--navy); font-weight: 900; font-size: 1.2rem; margin-top: 6px; }

/* ====== フォーム ====== */
.form-card { background: var(--navy); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.form-card .fhead { background: var(--navy); color: #fff; text-align: center; font-weight: 900; font-size: 1.25rem; padding: 18px; }
.form-body { background: #fff; padding: 30px; }
.tagline-req { display: inline-block; background: var(--orange); color: #fff; font-weight: 800; font-size: .75rem; padding: 4px 12px; border-radius: 6px; margin-bottom: 14px; }
.tagline-opt { display: inline-block; background: var(--navy); color: #fff; font-weight: 800; font-size: .75rem; padding: 4px 12px; border-radius: 6px; margin: 14px 0; }
.form-row { margin-bottom: 16px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label { display: block; font-weight: 800; color: var(--navy); margin-bottom: 6px; font-size: .9rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d7dceb; border-radius: 8px;
  font-size: .98rem; font-family: inherit; background: #fafbff; transition: .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,116,10,.15); }
.form-row textarea { resize: vertical; min-height: 100px; }
.choices { display: flex; gap: 14px; flex-wrap: wrap; }
.choice { flex: 1; min-width: 180px; border: 1.5px solid var(--orange); border-radius: 10px; padding: 14px 18px; display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--navy); cursor: pointer; background: var(--orange-pale); }
.choice input { width: auto; }
.form-submit-btn { width: 100%; background: var(--orange); color: #fff; border: 0; font-weight: 900; font-size: 1.1rem; padding: 16px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; transition: .2s; }
.form-submit-btn:hover { background: var(--orange-dark); }

/* ====== フッター ====== */
.site-footer { background: var(--navy); color: #cfd6ea; }
.footer-main { padding: 30px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand .en { color: #fff; font-weight: 900; font-size: 1.5rem; letter-spacing: .05em; }
.footer-brand .en .o { color: var(--orange); }
.footer-brand p { font-size: .85rem; margin-top: 6px; color: #b9c2dd; }
.footer-contact { text-align: right; }
.footer-contact .tel { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; font-size: 1.7rem; justify-content: flex-end; }
.footer-contact .tel svg { width: 26px; height: 26px; }
.footer-contact .hours { font-size: .82rem; color: #b9c2dd; margin-top: 2px; }
.footer-links { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: .85rem; color: #cfd6ea; transition: .2s; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { text-align: center; font-size: .76rem; color: #8b95b5; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }

/* ====== レスポンシブ ====== */
@media (max-width: 980px) {
  .cards5, .fcards { grid-template-columns: repeat(2, 1fr); }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .flow { gap: 12px; }
  .flow .arrow { transform: rotate(90deg); width: 100%; justify-content: center; }
  .flow .step { min-width: 45%; }
}
@media (max-width: 760px) {
  .mainnav-inner { justify-content: space-between; }
  .mainnav .navlinks { display: none; width: 100%; flex-direction: column; }
  .mainnav .navlinks.open { display: flex; }
  .mainnav a { padding: 14px; text-align: center; border-top: 1px solid var(--line); }
  .mainnav a.current::after { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { background: #fff; }
  .cards3 { grid-template-columns: 1fr; }
  .cards5, .fcards, .cards4 { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .access { grid-template-columns: 1fr 1fr; }
  .form-2 { grid-template-columns: 1fr; }
  .footer-main { flex-direction: column; text-align: center; }
  .footer-contact { text-align: center; }
  .footer-contact .tel { justify-content: center; }
  .photo-badge { width: 104px; height: 104px; font-size: .72rem; right: 6px; bottom: 6px; }
  .brand-logo .en { font-size: 1.4rem; }
  .topbar-cta { font-size: .78rem; padding: 10px 14px; }
}
@media (max-width: 400px) {
  .cards5, .fcards { grid-template-columns: 1fr; }
}


/* ====== 校舎カードの昼夜クロスフェード ====== */
.photo.slideshow .slide { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.photo.slideshow .slide-top { animation: dayNight 10s ease-in-out infinite; }
@keyframes dayNight { 0%,8%{opacity:0} 42%,58%{opacity:1} 92%,100%{opacity:0} }

/* ====== ヘッダー：ロゴ横の理念タグライン（控えめ） ====== */
.brand-wrap { display: flex; align-items: center; gap: 16px; }
.brand-tagline { font-size: .7rem; line-height: 1.55; color: rgba(255,255,255,.92); font-weight: 500; max-width: 320px; border-left: 1px solid rgba(255,255,255,.45); padding-left: 14px; }
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 12px; }
  .brand-wrap { flex: 1 1 100%; flex-direction: column; align-items: flex-start; gap: 4px; }
  .brand-tagline { border-left: none; padding-left: 0; font-size: .64rem; line-height: 1.5; max-width: 100%; }
}

/* ====== 英語特化セクションの4枚カード（横幅いっぱい・大きめ） ====== */
.eng-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.eng-cards .fcard { padding: 34px 24px; }
.eng-cards .fcard .ico svg { width: 58px; height: 58px; }
.eng-cards .fcard h3 { font-size: 1.24rem; margin-bottom: 12px; }
.eng-cards .fcard p { font-size: 1rem; line-height: 1.85; }
@media (max-width: 980px) { .eng-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .eng-cards { grid-template-columns: 1fr; } }
