/* ===== 学力向上委員会 / リニューアル スタイル ===== */
:root {
  --orange: #f08300;
  --orange-dark: #d56f00;
  --ink: #2b2b2b;
  --ink-soft: #555;
  --bg: #fffaf3;
  --bg-card: #ffffff;
  --line: #ece3d6;
  --accent: #2a6df0;
  --maru: 16px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --maxw: 1040px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section { padding: 64px 0; }
.section--tint { background: #fff5e9; }

.eyebrow {
  display: inline-block;
  color: var(--orange-dark);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .8rem;
  margin: 0 0 6px;
}
.h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  margin: 0 0 28px;
  font-weight: 800;
  letter-spacing: .02em;
}
.h2 small { display: block; font-size: .92rem; color: var(--ink-soft); font-weight: 600; margin-top: 6px; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.nav a:hover { color: var(--orange-dark); }
.header__tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--orange-dark); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 800; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .1s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(240, 131, 0, .35); }
.btn--ghost { background: #fff; color: var(--orange-dark); border-color: var(--orange); }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }

/* ===== Hero ===== */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, #fff6ea 0%, var(--bg) 100%); }
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero__copy h1 {
  font-size: clamp(1.8rem, 5.2vw, 2.9rem); line-height: 1.4; margin: 10px 0 18px; font-weight: 900; letter-spacing: .01em;
}
.hero__copy h1 .mark { color: var(--orange-dark); }
.hero__lead { font-size: 1.05rem; color: var(--ink-soft); margin: 0 0 26px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img { border-radius: 50%; box-shadow: var(--shadow); border: 6px solid #fff; max-width: 320px; margin-inline: auto; }
.hero__badge {
  position: absolute; bottom: 6px; right: 10px; background: var(--orange); color: #fff;
  font-weight: 800; padding: 10px 16px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow);
}
.tagchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tagchips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }

/* ===== Availability ===== */
.avail { background: var(--ink); color: #fff; }
.avail .wrap { padding-block: 30px; }
.avail__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.avail__title { font-weight: 800; font-size: 1.15rem; }
.avail__asof { color: #ffce8e; font-weight: 700; font-size: .95rem; }
.avail__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.avail__cell { background: rgba(255, 255, 255, .08); border-radius: var(--maru); padding: 16px; text-align: center; }
.avail__label { font-size: .9rem; opacity: .85; margin-bottom: 6px; }
.avail__status { font-weight: 800; font-size: 1.1rem; }
.avail__cell.is-full .avail__status { color: #ff9d9d; }
.avail__cell.is-open .avail__status { color: #9dffb0; }

/* ===== Philosophy ===== */
.philosophy { text-align: center; }
.philosophy__lead { font-family: var(--serif); font-size: clamp(1.2rem, 3.6vw, 1.7rem); font-weight: 700; line-height: 2; margin: 0 auto 18px; }
.philosophy__body { font-family: var(--serif); font-size: clamp(1rem, 2.6vw, 1.18rem); line-height: 2.1; color: #3a3a3a; max-width: 720px; margin: 0 auto; }
.philosophy__body p { margin: 0 0 1.4em; }
.philosophy__punch { font-weight: 900; color: var(--orange-dark); font-size: 1.3em; }

/* ===== Feature cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--maru); padding: 28px 24px; box-shadow: var(--shadow); }
.card__no { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 900; align-items: center; justify-content: center; margin-bottom: 14px; }
.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ===== Strength banner ===== */
.strength { text-align: center; }
.strength__big {
  font-size: clamp(1.4rem, 4.6vw, 2.2rem); font-weight: 900; line-height: 1.6;
  background: #fff; border: 3px dashed var(--orange); border-radius: var(--maru); padding: 34px 24px; box-shadow: var(--shadow);
}
.strength__big .mark { color: var(--orange-dark); }
.strength__note { margin-top: 18px; color: var(--ink-soft); font-weight: 700; }

/* ===== Message gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--maru); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.gallery img { aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.04); }

/* ===== News ===== */
.news__list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--maru); box-shadow: var(--shadow); overflow: hidden; }
.news__item { border-bottom: 1px solid var(--line); }
.news__item:last-child { border-bottom: none; }
.news__head { display: flex; gap: 18px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 16px 22px; font: inherit; color: inherit; cursor: default; }
.news__item.has-body .news__head { cursor: pointer; }
.news__item.has-body .news__head:hover { background: #fff7ec; }
.news__date { color: var(--orange-dark); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .92rem; }
.news__title { font-weight: 600; flex: 1; }
.news__chev { color: var(--orange-dark); font-size: .75rem; transition: transform .2s; flex-shrink: 0; }
.news__item.open .news__chev { transform: rotate(180deg); }
.news__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.news__item.open .news__body { grid-template-rows: 1fr; }
.news__body-inner { overflow: hidden; }
.news__item.open .news__body-inner { padding: 0 22px 18px; color: var(--ink-soft); }
.news__empty, .news__loading { padding: 22px; color: var(--ink-soft); text-align: center; }

/* ===== Campaign ===== */
.campaign__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; background: #fff; border-radius: var(--maru); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.campaign__inner img { border-radius: 12px; }
.campaign h3 { font-size: 1.5rem; margin: 0 0 14px; }
.campaign ul { margin: 0 0 10px; padding-left: 1.2em; }
.campaign li { margin-bottom: 6px; font-weight: 700; }
.campaign small { color: var(--ink-soft); }

/* ===== Access ===== */
.access__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.access__inner img { border-radius: var(--maru); box-shadow: var(--shadow); }
.info-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.info-table th, .info-table td { text-align: left; padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 7em; color: var(--ink-soft); font-weight: 700; white-space: nowrap; }

/* ===== CTA ===== */
.cta { background: var(--orange); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0 0 10px; font-weight: 900; }
.cta p { margin: 0 0 26px; font-weight: 600; }
.cta .btn--primary { background: #fff; color: var(--orange-dark); }
.cta .btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.cta__tel { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 900; letter-spacing: .04em; text-decoration: none; display: inline-block; margin-top: 6px; }
.cta__hours { margin-top: 14px; opacity: .95; font-weight: 700; }

/* ===== Footer ===== */
.footer { background: #2b2b2b; color: #cfcfcf; padding: 40px 0 28px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer__brand { font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer__sns { display: flex; gap: 16px; }
.footer__sns a { text-decoration: none; font-weight: 700; color: #ffce8e; }
.footer__copy { width: 100%; text-align: center; margin-top: 18px; font-size: .82rem; opacity: .7; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__media img { max-width: 240px; }
  .hero__cta { justify-content: center; }
  .tagchips { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .campaign__inner, .access__inner { grid-template-columns: 1fr; }
  .avail__grid { grid-template-columns: repeat(2, 1fr); }

  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; transform: translateY(-130%); transition: transform .25s; box-shadow: var(--shadow); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }
  .header__tel span.label { display: none; }
}
