/* ECC Tokushima preview pages — orange base, green accent. Mobile first; wider layouts from 768px / 1080px. */
:root {
  --orange: #f07c1e;
  --orange-deep: #d9620a;
  --orange-soft: #fff1e3;
  --orange-pale: #fff8f1;
  --green: #2f9a5a;
  --green-deep: #1f7a43;
  --green-soft: #e7f5ec;
  --ink: #2b2420;
  --ink-soft: #6a5d54;
  --line: #f1dfcf;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(170, 90, 20, .12);
  --wrap: 1120px;
  --mark: #ffd9b0;
  --blob-a: #ffd0a1;
  --blob-b: #c7ead4;
  --cta-end: #f6a04d;
  --dark: #3a3330;
}
/* ECC Best One: navy base, gold accent */
.theme-navy {
  --orange: #1e3a5f;
  --orange-deep: #142a47;
  --orange-soft: #e8eef6;
  --orange-pale: #f5f7fb;
  --green: #9a7120;
  --green-deep: #7f5c17;
  --green-soft: #f6efe0;
  --ink: #1b2433;
  --ink-soft: #5a6577;
  --line: #dbe3ee;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 42, 71, .12);
  --mark: #cddbee;
  --blob-a: #c9d8ec;
  --blob-b: #ecdfc2;
  --cta-end: #2f5a8a;
  --dark: #142a47;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--orange-pale);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.4; margin: 0; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* notice + header */
.preview-note { margin: 0; padding: 6px 16px; background: var(--dark); color: #fff; font-size: 12px; text-align: center; line-height: 1.5; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.25; }
.brand strong { font-size: 20px; color: var(--orange-deep); letter-spacing: .04em; }
.brand strong span { color: var(--green); }
.brand small { font-size: 10.5px; color: var(--ink-soft); }
.nav { display: none; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--orange-soft); color: var(--orange-deep); }
.header-cta { text-decoration: none; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 0 0 auto; text-decoration: none; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-deep); }
.tabs a[aria-current="page"] { background: var(--orange); color: #fff; }

/* hero */
.hero { position: relative; background: linear-gradient(180deg, var(--orange-soft), var(--orange-pale)); overflow: hidden; }
.hero .wrap { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 40px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--green-deep); }
.hero h1 { font-size: clamp(28px, 7.4vw, 46px); margin-top: 10px; letter-spacing: .02em; }
.nb { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--orange-deep); background: linear-gradient(transparent 62%, var(--mark) 62%); }
.hero .lead { margin-top: 16px; color: var(--ink-soft); font-size: 15.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(240, 124, 30, .3); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(47, 154, 90, .28); }
.btn-ghost { background: #fff; border-color: var(--orange); color: var(--orange-deep); }
.hero-photos { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-photos img:first-child { grid-row: span 2; aspect-ratio: 3 / 4; }
.hero-photos img:not(:first-child) { aspect-ratio: 4 / 3; }
.hero-single img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none; }
.blob-a { width: 220px; height: 220px; background: var(--blob-a); right: -80px; top: -60px; }
.blob-b { width: 160px; height: 160px; background: var(--blob-b); left: -70px; bottom: -50px; }

/* sections */
.section { padding: 56px 0; }
.section-white { background: #fff; }
.section-green { background: var(--green-soft); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(23px, 5.6vw, 36px); margin-top: 6px; }
.section-head h2 span { color: var(--orange-deep); }
.section-head p { margin-top: 12px; color: var(--ink-soft); }
.center { text-align: center; }

/* non-cognitive skills */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.skill { background: #fff; border-radius: var(--radius); padding: 18px 16px; border: 2px solid var(--line); }
.skill b { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 18px; }
.skill:nth-child(even) b { background: var(--green); }
.skill h3 { font-size: 17px; margin-top: 10px; }
.skill p { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.7; }

.split { display: grid; gap: 24px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split h3 { font-size: 21px; }
.split p + p { margin-top: 12px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* age steps */
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.step img { width: 112px; height: 112px; object-fit: cover; border-radius: 14px; }
.step small { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--orange); border-radius: 999px; padding: 2px 10px; }
.step:nth-child(even) small { background: var(--green); }
.step h3 { font-size: 16.5px; margin-top: 6px; }
.step p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; margin-top: 4px; }

/* brand cards */
.brands { display: grid; gap: 18px; }
.brand-card { display: block; text-decoration: none; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border-top: 6px solid var(--orange); transition: transform .2s; }
.brand-card.is-green { border-top-color: var(--green); }
.brand-card:hover { transform: translateY(-4px); }
.brand-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.brand-card .body { padding: 20px 20px 22px; }
.brand-card .tag { font-size: 12px; font-weight: 700; color: var(--orange-deep); letter-spacing: .1em; }
.brand-card.is-green .tag { color: var(--green-deep); }
.brand-card h3 { font-size: 24px; margin-top: 4px; }
.brand-card p { color: var(--ink-soft); margin-top: 8px; font-size: 14.5px; }
.brand-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-deep); }
.chip.g { background: var(--green-soft); color: var(--green-deep); }
.brand-card .more { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--orange-deep); }
.brand-card.is-green .more { color: var(--green-deep); }

/* classrooms */
.rooms { display: grid; gap: 14px; }
.room { background: #fff; border-radius: var(--radius); padding: 18px; border: 2px solid var(--line); }
.room h3 { font-size: 19px; }
.room h3 small { font-size: 13px; color: var(--ink-soft); margin-left: 6px; font-weight: 500; }
.room .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.room p { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.7; }
.room .tel { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--green-deep); text-decoration: none; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

/* pillars (Best One) */
.pillars { display: grid; gap: 18px; }
.pillar { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.pillar img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pillar .body { padding: 20px; }
.pillar .num { font-size: 13px; font-weight: 700; color: var(--green-deep); letter-spacing: .12em; }
.pillar h3 { font-size: 21px; margin-top: 4px; }
.pillar .catch { color: var(--orange-deep); font-weight: 700; margin-top: 8px; }
.pillar p { margin-top: 8px; color: var(--ink-soft); font-size: 14.5px; }

.cards { display: grid; gap: 12px; counter-reset: card; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 20px; }
.card::before { counter-increment: card; content: counter(card, decimal-leading-zero); display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--orange-deep); }
.card h3 { font-size: 17px; }
.card p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; line-height: 1.75; }

/* CTA + footer */
.cta { background: linear-gradient(135deg, var(--orange), var(--cta-end)); color: #fff; border-radius: 28px; padding: 32px 22px; text-align: center; }
.cta h2 { font-size: clamp(22px, 5.4vw, 32px); }
.cta p { margin-top: 10px; opacity: .95; }
.cta .hero-actions { justify-content: center; }
.cta .btn-ghost { border-color: #fff; }
.site-footer { background: var(--dark); color: #f3e9e1; padding: 36px 0 96px; font-size: 13px; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer a { color: #fff; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer small { color: #bfb1a6; }
.fixed-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
.fixed-bar .btn { padding: 11px 10px; font-size: 14px; }

/* news accordion (under the hero) */
.news { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0; }
.news-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.news-head h2 { font-size: 18px; }
.news-head small { font-size: 11px; color: var(--ink-soft); }
.news-list { border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }
.news-item summary { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 4px 12px; padding: 13px 2px; cursor: pointer; list-style: none; font-size: 14px; }
.news-item summary::-webkit-details-marker { display: none; }
.news-item summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--ink-soft); transition: transform .2s; }
.news-item[open] summary::after { transform: rotate(45deg); }
.news-item time { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.news-tag { justify-self: start; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-deep); }
.news-title { font-weight: 700; line-height: 1.6; }
.news-item p { padding: 0 2px 16px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.85; }
.news-list.is-collapsed .news-item:nth-child(n + 3) { display: none; }
.news-more { display: block; margin: 14px auto 0; padding: 8px 22px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.news-more:hover { border-color: var(--ink-soft); }
.news-more[hidden] { display: none; }
@media (max-width: 767px) {
  .news-item summary { grid-template-columns: auto 1fr auto; }
  .news-title { grid-column: 1 / 3; }
  .news-item summary::after { grid-column: 3; grid-row: 1 / 3; }
}
/* inquiry form */
.inquiry { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; padding: 24px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.inquiry label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.inquiry label em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--orange); border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.inquiry input, .inquiry select, .inquiry textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); background: var(--orange-pale); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; scroll-margin: 84px 0 24px; }
.inquiry textarea { resize: vertical; line-height: 1.7; }
/* While typing on a phone the keyboard leaves little room: let the header scroll away and
   hide the bottom bar so neither covers the field (inquiry.js sets .is-typing). */
body.is-typing .fixed-bar { display: none; }
body.is-typing .site-header { position: static; }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 3px var(--orange-soft); }
.inquiry-row { display: grid; gap: 16px; }
.inquiry-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry .inquiry-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.inquiry-consent input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--orange); }
.inquiry-submit { justify-self: center; min-width: 240px; border: 0; cursor: pointer; font-family: inherit; }
.inquiry-submit:disabled { opacity: .6; cursor: default; }
.inquiry-status { text-align: center; font-size: 13.5px; min-height: 1em; }
.inquiry-status[data-state="error"] { color: #b42318; }
.inquiry-done { text-align: center; padding: 24px 8px; }
.inquiry-done h3 { font-size: 19px; }
.inquiry-done p { margin-top: 8px; color: var(--ink-soft); }

@media (min-width: 768px) {
  .inquiry { padding: 36px 40px; }
  .inquiry-row { grid-template-columns: 1fr 1fr; }
  .news { padding: 36px 0; }
  .news-item summary { padding: 15px 4px; }
}

@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .nav { display: flex; gap: 4px; }
  .tabs { display: none; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 56px; padding-bottom: 72px; gap: 40px; }
  .section { padding: 88px 0; }
  .skills { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split.reverse > :first-child { order: 2; }
  .brands { grid-template-columns: 1fr 1fr; gap: 24px; }
  .rooms { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cta { padding: 56px 40px; }
  .fixed-bar { display: none; }
  .site-footer { padding-bottom: 40px; }
}
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { grid-template-columns: 1fr; padding: 0 0 18px; overflow: hidden; }
  .step img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .step > div { padding: 0 18px; }
  .rooms { grid-template-columns: repeat(4, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
