/* ECC TOKUSHIMA top page — calm editorial layout (after the Astras top). Orange base, green accent. */
:root {
  --ink: #2a211b;
  --orange: #e2701b;
  --orange-deep: #b9560d;
  --orange-pale: #fbf4ed;
  --green: #2f8a57;
  --green-pale: #eef6f1;
  --navy: #1e3a5f;
  --line: #e7ddd3;
  --muted: #74675d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "Noto Sans JP", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
h1, h2, h3, p, figure { margin: 0; }
.en { font-family: Outfit, sans-serif; }

.preview-note { padding: 6px 16px; background: #2a211b; color: #fff; font-size: 11px; text-align: center; line-height: 1.5; }
.header { position: sticky; top: 0; z-index: 30; height: 72px; padding: 0 6%; display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, .96); border-bottom: 1px solid #efe8e1; }
.brand { line-height: 1.1; }
.brand b { display: block; font: 600 22px Outfit, sans-serif; letter-spacing: .02em; }
.brand b span { color: var(--orange); }
.brand small { display: block; font-size: 9px; letter-spacing: .12em; color: var(--muted); margin-top: 5px; }
.nav { display: none; gap: 30px; font-size: 12.5px; font-weight: 500; align-items: center; }
.nav a:hover { color: var(--orange-deep); }
.nav .nav-cta { border-left: 1px solid var(--line); padding-left: 26px; color: var(--orange-deep); }
.header-link { font-size: 12px; font-weight: 500; border: 1px solid var(--ink); padding: 8px 14px; }

/* hero */
.hero { position: relative; min-height: min(900px, max(640px, calc(100svh - 100px))); color: #fff; overflow: hidden; background: #6b5a4c; }
.hero-slides, .slide, .hero-shade { position: absolute; inset: 0; }
.hero-slides { overflow: hidden; }
/* Photos crossfade in order; the script at the end of index.html adds .on / .pan and picks when to switch. */
.slide { opacity: 0; transition: opacity 2.4s ease-in-out; }
.slide.on { opacity: 1; }
.slide img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; aspect-ratio: 2000 / 1131; }
/* phones: the photo is wider than the screen, so it drifts slowly from left to right and fades out partway */
.slide.pan img { animation: hero-drift 40s linear forwards; }
@keyframes hero-drift { from { transform: translateX(0); } to { transform: translateX(calc(-100% + 100vw)); } }
.hero-shade { background: linear-gradient(90deg, rgba(34, 20, 10, .62), rgba(34, 20, 10, .12) 75%), linear-gradient(0deg, rgba(34, 20, 10, .45), transparent 40%); }
.hero-content { position: relative; z-index: 1; padding: 80px 7% 120px; }
.eyebrow { font: 500 11px Outfit, sans-serif; letter-spacing: .2em; color: var(--orange); }
.hero .eyebrow { color: #ffd2a8; }
.hero h1 { font-size: clamp(36px, 10vw, 76px); font-weight: 500; line-height: 1.55; letter-spacing: .08em; margin: 22px 0; }
.hero-sub { font-size: 14px; line-height: 2.2; letter-spacing: .06em; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; max-width: 640px; margin-top: 30px; }
/* brand buttons: logo, then what it is (英会話 / 個別指導) in large type, the brand name below */
.hero-btn { display: inline-flex; flex: 1 1 260px; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .55); border-radius: 18px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s; }
.hero-btn:hover { background: rgba(255, 255, 255, .28); }
.hero-btn img { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 10px; background: #fff; }
.hero-btn.bo img { border-radius: 50%; background: none; }
.hero-btn b { display: grid; flex: 1; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .06em; opacity: .95; }
.hero-btn em { font-style: normal; font-size: 18px; font-weight: 700; letter-spacing: .08em; }
.hero-btn span { font-size: 18px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 24px; font-size: 13px; }
.arrow-link { display: inline-flex; align-items: center; gap: 18px; }
.circle { width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background .25s, transform .25s; }
.arrow-link:hover .circle { background: rgba(255, 255, 255, .2); transform: translate(2px, -2px); }
.hero-bottom { position: absolute; z-index: 1; left: 7%; right: 7%; bottom: 26px; display: flex; justify-content: space-between; font: 10px Outfit, sans-serif; letter-spacing: .18em; opacity: .9; }
.nb { display: inline-block; }

/* sections */
.section { padding: 76px 7%; }
.label { display: flex; align-items: center; gap: 10px; font: 500 11px Outfit, sans-serif; letter-spacing: .16em; color: var(--orange-deep); margin-bottom: 28px; }
.label i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.label small { font: 400 10px "Noto Sans JP", sans-serif; letter-spacing: .04em; color: var(--muted); margin-left: 8px; }
h2 { font-weight: 500; font-size: clamp(26px, 7vw, 42px); line-height: 1.75; letter-spacing: .06em; }
h2 em { font-style: normal; color: var(--orange-deep); }
.lead { font-size: 16px; font-weight: 500; line-height: 2; }
.body { font-size: 13px; line-height: 2.3; color: #5f5248; }
.body + .body { margin-top: 16px; }
.grid-2 { display: grid; gap: 32px; }

/* concept structure */
.structure { margin-top: 56px; display: grid; gap: 10px; }
.st-top { border: 1px solid var(--line); padding: 22px; text-align: center; background: var(--orange-pale); }
.st-top b { display: block; font: 500 12px Outfit, sans-serif; letter-spacing: .2em; color: var(--orange-deep); }
.st-top span { display: block; font-size: 17px; font-weight: 500; margin-top: 6px; letter-spacing: .06em; }
.st-pillars { display: grid; gap: 10px; }
.st-pillar { position: relative; padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange); }
.st-pillar.bo { border-top-color: var(--navy); }
.st-pillar .en { font-size: 11px; letter-spacing: .18em; color: var(--orange-deep); }
.st-pillar.bo .en { color: var(--navy); }
.st-pillar h3 { font-size: 21px; font-weight: 500; margin-top: 8px; letter-spacing: .04em; }
.st-pillar p { font-size: 12.5px; line-height: 2.1; color: #5f5248; margin-top: 10px; }
.st-pillar .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.st-pillar .tags span { font-size: 10.5px; padding: 6px 10px; background: var(--orange-pale); color: var(--orange-deep); }
.st-pillar.bo .tags span { background: #edf1f6; color: var(--navy); }
.st-base { background: var(--green); color: #fff; padding: 24px 22px; text-align: center; }
.st-base b { display: block; font: 500 12px Outfit, sans-serif; letter-spacing: .2em; opacity: .85; }
.st-base span { display: block; font-size: 19px; font-weight: 500; margin-top: 6px; letter-spacing: .06em; }
.st-base small { display: block; font-size: 11.5px; margin-top: 8px; opacity: .9; }

/* foundation (non-cognitive skills) */
.foundation { background: var(--green-pale); }
.found-head { display: grid; gap: 24px; margin-bottom: 48px; }
.skills { display: grid; gap: 34px; }
.skill { border-top: 1px solid #bfd8c9; padding-top: 22px; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.skill > span { font: 26px Outfit, sans-serif; color: var(--green); grid-row: 1 / 4; }
.skill h3 { font-size: 19px; font-weight: 500; letter-spacing: .04em; }
.skill .en { font-size: 10.5px; letter-spacing: .16em; color: var(--green); margin-top: 4px; }
.skill p { font-size: 12.5px; line-height: 2.2; color: #4f5c54; margin-top: 12px; }
.skill p b { font-weight: 500; color: var(--ink); }

/* photo strip */
.strip { display: grid; gap: 3px; }
.strip figure { position: relative; height: 220px; overflow: hidden; background: #8a7a6c; }
.strip img { height: 100%; filter: brightness(.78); transition: transform .8s; }
.strip figure:hover img { transform: scale(1.04); }
.strip figcaption { position: absolute; left: 7%; bottom: 22px; color: #fff; font: 500 15px Outfit, sans-serif; letter-spacing: .16em; }
.strip figcaption span { display: block; font: 400 12px "Noto Sans JP", sans-serif; letter-spacing: .06em; margin-top: 8px; }

/* schools */
.school { display: grid; gap: 26px; margin-top: 52px; }
.school-img { position: relative; height: 260px; overflow: hidden; }
.school-img img { height: 100%; transition: transform .8s; }
.school-img:hover img { transform: scale(1.03); }
.school-img span { position: absolute; left: 0; bottom: 0; background: #fff; padding: 14px 22px 0 0; font: 11px Outfit, sans-serif; letter-spacing: .18em; }
.school h3 { font-size: 23px; font-weight: 500; line-height: 1.8; letter-spacing: .04em; margin: 12px 0 14px; }
.school .name { font: 600 26px Outfit, sans-serif; letter-spacing: .02em; color: var(--orange-deep); }
.school .name small { font: 400 11px "Noto Sans JP", sans-serif; margin-left: 10px; color: var(--muted); }
.school.bo .name { color: var(--navy); }
.school .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.school .tags span { font-size: 10.5px; padding: 6px 10px; background: var(--orange-pale); color: var(--orange-deep); }
.school.bo .tags span { background: #edf1f6; color: var(--navy); }
.more { display: inline-flex; align-items: center; gap: 18px; margin-top: 24px; font-size: 13px; font-weight: 500; }
.more .circle { border-color: var(--orange); color: var(--orange-deep); }
.school.bo .more .circle { border-color: var(--navy); color: var(--navy); }
.more:hover .circle { background: var(--orange-pale); }

/* vision banner */
.vision { position: relative; height: 460px; color: #fff; overflow: hidden; background: #4d5d6b; }
.vision > img { height: 100%; filter: brightness(.55); object-position: 85% center; }
.vision > div { position: absolute; left: 7%; right: 7%; top: 64px; }
.vision .eyebrow { color: #ffd2a8; }
.vision h2 { margin: 20px 0; }
.vision p { font-size: 13px; line-height: 2.2; letter-spacing: .05em; max-width: 34em; }

/* growth path */
.path { display: grid; gap: 0; margin-top: 44px; border-left: 1px solid var(--line); margin-left: 6px; }
.path li { list-style: none; position: relative; padding: 0 0 30px 26px; }
.path li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); }
.path li:nth-child(even)::before { background: var(--green); }
.path b { font: 500 11px Outfit, sans-serif; letter-spacing: .16em; color: var(--orange-deep); }
.path h3 { font-size: 17px; font-weight: 500; margin-top: 4px; }
.path p { font-size: 12.5px; line-height: 2.1; color: #5f5248; margin-top: 6px; }
.path ul { padding: 0; margin: 0; }

/* classrooms */
.rooms { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.room { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.room h3 { font-size: 18px; font-weight: 500; }
.room h3 small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 10px; }
.room .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.room .tags span { font-size: 10.5px; padding: 4px 9px; background: var(--orange-pale); color: var(--orange-deep); }
.room .tags span.bo { background: #edf1f6; color: var(--navy); }
.room p { font-size: 12px; color: var(--muted); line-height: 1.9; }

/* closing */
.closing { display: grid; gap: 36px; background: var(--orange-pale); align-items: center; }
.closing img { height: 300px; }
.closing .links { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.closing .more { margin-top: 0; }
.footer { padding: 40px 7% 28px; font-size: 11px; color: var(--muted); }
.footer .brand { margin-bottom: 18px; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; color: var(--ink); font-size: 12px; }
.footer small { display: block; border-top: 1px solid var(--line); padding-top: 18px; line-height: 1.9; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (min-width: 760px) {
  .header { height: 88px; padding: 0 4.5%; }
  .nav { display: flex; }
  .header-link { display: none; }
  .hero-content { padding: 110px 9% 120px; }
  .hero-sub { font-size: 15.5px; }  .section { padding: 108px 9%; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 9%; }
  .st-pillars { grid-template-columns: 1fr 1fr; }
  .found-head { grid-template-columns: 1fr 1fr; gap: 9%; align-items: end; }
  .skills { grid-template-columns: repeat(2, 1fr); gap: 44px 48px; }
  .strip { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .strip figure { height: 300px; }
  .school { grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; margin-top: 72px; }
  .school.reverse .school-img { order: 2; }
  .school-img { height: 360px; }
  .vision { height: 500px; }
  .vision > div { left: 9%; right: 9%; top: 90px; }
  .path { grid-template-columns: repeat(4, 1fr); border-left: 0; border-top: 1px solid var(--line); margin-left: 0; gap: 28px; }
  .path li { padding: 26px 0 0; }
  .path li::before { left: 0; top: -6px; }
  .rooms { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
  .closing { grid-template-columns: 1fr 1fr; gap: 7%; }
  .closing img { height: 420px; }
  .footer { padding: 52px 4.5% 28px; }
}
@media (min-width: 1100px) {
  .skills { grid-template-columns: repeat(3, 1fr); }
  .rooms { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
}
/* wide screens: show each photo whole, no panning */
@media (min-width: 1200px) {
  .hero { min-height: auto; aspect-ratio: 2000 / 1131; }
  .hero-content { padding: 76px 9% 92px; }
  .slide img, .slide.pan img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transform: none; animation: none; }
}
@media (min-width: 1600px) {
  .section { padding-left: calc((100vw - 1300px) / 2); padding-right: calc((100vw - 1300px) / 2); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .slide.pan img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
