/* ============================================
   HAIR CAMPUS TEMPLATE
   学生街の安くて早いカット専門店 — 紙の白×リーフグリーン×黒、値札の赤を少しだけ
   ヒーローは写真なしの文字だけの大組み
============================================ */

:root {
  /* Color */
  --white: #ffffff;
  --paper: #f4f5f2; /* 薄いグレーの面 */
  --green: #1f9d55; /* リーフグリーン（メイン） */
  --green-deep: #167a41;
  --green-tint: #e3f3e9;
  --green-mid: #9fd5b4;
  --black: #111111;
  --ink-soft: #555555;
  --red: #d7263d; /* 値札の赤（学割・混雑だけ） */
  --line: #111111;

  /* Font */
  --font-body: "M PLUS 1", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;

  /* Layout */
  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 48px);
  --header-h: 68px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

h1,
h2,
h3 {
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 500;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
}

.skip-link:focus {
  top: 8px;
}

.pc-none {
  display: none;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  border-bottom: 2px solid var(--black);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__ja {
  font-size: 12px;
  font-weight: 700;
}

.logo__en {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__list {
  display: flex;
}

.nav__link {
  display: block;
  padding: 10px 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--green);
}

.nav__tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

/* ---------- 共通 ---------- */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) var(--pad);
}

.section__head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section__en {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section__en--light {
  color: var(--green-mid);
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 26px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid currentColor;
  transition: background 0.2s, color 0.2s;
}

.btn--white {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.btn--white:hover {
  background: var(--green-tint);
}

.btn--line-white {
  color: var(--white);
}

.btn--line-white:hover {
  background: var(--white);
  color: var(--black);
}

/* ---------- Hero：文字だけ ---------- */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--pad) clamp(48px, 6vw, 80px);
}

.hero__where {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  padding: 4px 12px;
  border: 2px solid var(--black);
}

.hero__title {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "label label"
    "price price"
    "time time";
  margin-top: clamp(20px, 3vw, 32px);
  font-weight: 800;
  line-height: 1;
  word-break: normal;
}

.hero__label {
  grid-area: label;
  justify-self: start;
  padding: 6px 18px 10px;
  background: var(--black);
  color: var(--white);
  font-size: clamp(28px, 5vw, 56px);
}

.hero__price {
  grid-area: price;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.hero__num {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(96px, 23vw, 300px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-feature-settings: "tnum";
}

.hero__yen {
  font-size: clamp(36px, 7vw, 96px);
  margin-left: 0.1em;
}

.hero__time {
  grid-area: time;
  margin-top: clamp(10px, 2vw, 28px);
  display: flex;
  align-items: baseline;
  gap: 0.08em;
  font-size: clamp(36px, 7vw, 96px);
  color: var(--green);
  white-space: nowrap;
}

.hero__slash {
  color: var(--black);
  margin-right: 0.1em;
}

.hero__num--time {
  font-size: clamp(64px, 13vw, 168px);
}

.hero__info {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 2px solid var(--black);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px 40px;
  align-items: center;
}

.hero__tag {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 12px;
  padding: 10px 18px;
  border: 2px solid var(--red);
  color: var(--red);
}

.hero__tag-label {
  grid-row: span 2;
  padding: 2px 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
}

.hero__tag-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
}

.hero__tag-price small {
  font-family: var(--font-body);
  font-size: 16px;
}

.hero__tag-note {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

.hero__hours div {
  display: flex;
  gap: 14px;
}

.hero__hours dt {
  width: 4em;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero__hours dd {
  font-weight: 700;
}

.hero__hours dd:not(:last-child) {
  font-family: var(--font-mono);
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 24px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s;
}

.hero__btn:hover {
  background: var(--green-deep);
}

.hero__btn svg {
  flex-shrink: 0;
}

/* ヒーローの文字は短く順に出る（JSがある時だけ） */
html.js .hero__label,
html.js .hero__price,
html.js .hero__time,
html.js .hero__info {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js.is-ready .hero__label,
html.js.is-ready .hero__price,
html.js.is-ready .hero__time,
html.js.is-ready .hero__info {
  opacity: 1;
  transform: none;
}

html.js.is-ready .hero__price {
  transition-delay: 0.1s;
}

html.js.is-ready .hero__time {
  transition-delay: 0.2s;
}

html.js.is-ready .hero__info {
  transition-delay: 0.3s;
}

/* ---------- お知らせ ---------- */
.news {
  background: var(--black);
  color: var(--white);
  padding: 14px var(--pad);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.news__title {
  flex-shrink: 0;
  font-size: 14px;
  padding: 2px 10px;
  background: var(--green);
}

.news__list {
  display: grid;
  gap: 4px;
  font-size: 15px;
}

.news__list time {
  font-family: var(--font-mono);
  color: var(--green-mid);
  margin-right: 12px;
}

/* ---------- 混み具合 ---------- */
.crowd__note {
  max-width: 760px;
}

.crowd__note strong {
  color: var(--red);
}

.crowd__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
}

.crowd__legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crowd__chip {
  display: inline-block;
  width: 28px;
  height: 18px;
}

[data-level="0"] {
  background: var(--green-tint);
}

[data-level="1"] {
  background: var(--green-mid);
}

[data-level="2"] {
  background: var(--red);
}

.crowd__scroll {
  overflow-x: auto;
  border: 2px solid var(--black);
  -webkit-overflow-scrolling: touch;
}

.crowd__table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
}

.crowd__table th,
.crowd__table td {
  border: 1px solid #d8d8d8;
  text-align: center;
  padding: 0;
  height: 48px;
}

.crowd__table thead th {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--paper);
}

.crowd__table thead th:first-child {
  width: 64px;
}

.crowd__table tbody th {
  font-weight: 800;
  background: var(--paper);
}

.crowd__table td {
  font-size: 13px;
  font-weight: 700;
}

.crowd__table td[data-level="2"] {
  color: var(--white);
}

/* 今日の曜日の行を太枠で示す（日付から計算するだけで、空き状況ではない） */
.crowd__table tr.is-today th {
  background: var(--black);
  color: var(--white);
}

.crowd__table tr.is-today th small {
  display: block;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
}

.crowd__hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- メニュー：券売機 ---------- */
.menu {
  max-width: none;
  background: var(--paper);
}

.menu__grid {
  max-width: calc(var(--wrap) - 2 * var(--pad));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.menu .section__title {
  font-size: clamp(28px, 3.2vw, 40px);
}

.menu__small {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.ticket {
  background: #2a2d2b;
  padding: 18px;
  border-radius: 6px;
  color: var(--white);
}

.ticket__top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #bfc4c0;
  padding: 0 4px 12px;
}

.ticket__buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ticket__btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 84px;
  padding: 10px 10px 8px;
  background: var(--white);
  color: var(--black);
  text-align: left;
  border-radius: 4px;
  border-bottom: 4px solid #b9bdb9;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}

.ticket__btn:hover {
  background: var(--green-tint);
}

.ticket__btn:active {
  transform: translateY(2px);
}

.ticket__btn.is-active {
  background: var(--green);
  color: var(--white);
  border-bottom-color: var(--green-deep);
}

.ticket__name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.ticket__price {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
}

.ticket__price::after {
  content: "円";
  font-family: var(--font-body);
  font-size: 12px;
  margin-left: 2px;
}

.ticket__btn--student .ticket__price {
  color: var(--red);
}

.ticket__btn--student.is-active .ticket__price {
  color: var(--white);
}

.ticket__display {
  margin-top: 14px;
  padding: 14px 16px;
  background: #0d1a12;
  border: 2px solid #3d4a41;
  color: #c9f2d6;
  min-height: 112px;
  font-size: 15px;
}

.ticket__display-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 4px;
}

.ticket__display-time {
  font-family: var(--font-mono);
  color: var(--green-mid);
  white-space: nowrap;
}

/* ---------- 学生のための3つ ---------- */
.student {
  padding: clamp(64px, 9vw, 112px) var(--pad);
}

.student__inner {
  max-width: calc(var(--wrap) - 2 * var(--pad));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.student__inner > .section__head {
  grid-column: 1 / 6;
}

.student__card {
  border: 2px solid var(--black);
}

.student__h {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  margin-bottom: 12px;
}

.student__card--discount {
  grid-column: 6 / 13;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  align-items: center;
}

.student__card--discount p:last-child {
  grid-column: 1 / -1;
}

.student__big {
  grid-row: span 1;
  color: var(--red);
  font-weight: 800;
  font-size: 24px;
  white-space: nowrap;
}

.student__big span {
  font-family: var(--font-mono);
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.student__card--test {
  grid-column: 1 / 7;
}

.student__card--job {
  grid-column: 7 / 13;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.student__card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.student__card--test img {
  border-bottom: 2px solid var(--black);
}

.student__card--job img {
  border-bottom: 2px solid var(--black);
}

.student__body {
  padding: 24px 28px 28px;
}

.student__dates li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed #bbb;
}

.student__dates span {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--green-deep);
}

.student__memo {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--green-tint);
  font-size: 15px;
}

/* ---------- スタイル（写真グリッド） ---------- */
.styles__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.styles__head .section__en {
  width: 100%;
}

.styles__head .section__title {
  margin-bottom: 0;
}

.styles__insta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--green-deep);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 270px;
  gap: 12px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PC：4列×2段。左右の2枚は縦長、真ん中は上に横長1枚・下に2枚 */
.gallery__item--a {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.gallery__item--b {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}

.gallery__item--c {
  grid-column: 4 / 5;
  grid-row: 1 / 3;
}

.gallery__item--d {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.gallery__item--e {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.gallery__item--b img {
  object-position: center 30%;
}

.gallery__item--e img {
  object-position: center 20%;
}

.gallery__item figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 6px 10px;
  background: var(--white);
  font-size: 13px;
  line-height: 1.5;
}

.gallery__item figcaption b {
  display: block;
  font-size: 12px;
  color: var(--green-deep);
}

.gallery__item figcaption span {
  font-family: var(--font-mono);
  font-weight: 700;
  margin-left: 6px;
}

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(24px, 5vw, 64px);
}

.faq__list {
  border-top: 2px solid var(--black);
}

.faq__item {
  border-bottom: 1px solid #cfcfcf;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 14px 0;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
}

.faq__q::before {
  content: "Q";
  flex-shrink: 0;
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 20px;
}

.faq__q:hover {
  color: var(--green-deep);
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-left: auto;
  transition: transform 0.3s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__q[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

/* アコーディオン：grid-template-rows 0fr → 1fr */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq__a.is-open {
  grid-template-rows: 1fr;
}

.faq__a-inner {
  overflow: hidden;
  min-height: 0;
}

.faq__a-inner p {
  padding: 0 0 18px 32px;
}

/* ---------- 求人（黒の面） ---------- */
.recruit {
  display: grid;
  grid-template-columns: 5fr 7fr;
  background: var(--black);
  color: var(--white);
}

.recruit__photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.recruit__body {
  padding: clamp(40px, 6vw, 80px) var(--pad);
}

.recruit__jobs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
}

.recruit__job {
  padding: 18px 20px;
  border: 1px solid #555;
}

.recruit__job h3 {
  font-size: 17px;
  font-weight: 800;
}

.recruit__pay {
  margin: 4px 0 10px;
  color: var(--green-mid);
  font-weight: 700;
}

.recruit__pay span {
  font-family: var(--font-mono);
  font-size: 28px;
}

.recruit__job li {
  position: relative;
  padding-left: 1em;
  font-size: 15px;
}

.recruit__job li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  background: var(--green);
}

.recruit__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- 店舗 ---------- */
.access__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.info {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--black);
}

.info th,
.info td {
  padding: 12px 6px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #cfcfcf;
}

.info th {
  width: 6em;
  font-weight: 800;
  white-space: nowrap;
}

.info__tel {
  font-family: var(--font-mono);
  font-weight: 700;
}

.bike {
  margin-top: 24px;
}

.bike svg {
  width: 100%;
  height: auto;
  font-family: var(--font-body);
}

.access__map iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 2px solid var(--black) !important;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green);
  color: var(--white);
  padding: 40px var(--pad) 32px;
}

.footer__price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.footer__price span {
  color: var(--black);
}

.footer__addr {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

.footer__copy {
  margin-top: 8px;
  font-size: 12px;
}

/* ---------- スクロール出現（JSがある時だけ隠す） ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 1080px) {
  .nav-toggle {
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    background: var(--black);
  }

  .nav-toggle span {
    position: absolute;
    left: 13px;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s var(--ease), opacity 0.2s;
  }

  .nav-toggle span:nth-child(1) {
    top: 16px;
  }

  .nav-toggle span:nth-child(2) {
    top: 23px;
  }

  .nav-toggle span:nth-child(3) {
    top: 30px;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* メニュー：ヘッダーの下に全面。フェード＋20px */
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    z-index: 190;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 16px var(--pad) 40px;
    background: var(--white);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }

  .nav__list {
    flex-direction: column;
  }

  .nav__link {
    padding: 14px 0;
    font-size: 20px;
    font-weight: 800;
    border-bottom: 1px solid #ddd;
  }

  .nav__tel {
    justify-content: center;
    min-height: 56px;
    font-size: 18px;
  }

  .hero__info {
    grid-template-columns: auto 1fr;
  }

  .hero__btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .menu__grid,
  .faq__grid,
  .access__grid {
    grid-template-columns: 1fr;
  }

  .student__inner > .section__head,
  .student__card--discount,
  .student__card--test,
  .student__card--job {
    grid-column: 1 / -1;
  }

  .recruit {
    grid-template-columns: 1fr;
  }

  .recruit__photo img {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery__item--a {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .gallery__item--b {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .gallery__item--c {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .gallery__item--d {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }

  .gallery__item--e {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

  .access__map iframe {
    height: 360px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .pc-none {
    display: inline;
  }

  .crowd__hint.pc-none {
    display: block;
  }

  .logo__mark {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .logo__en {
    font-size: 18px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-toggle span {
    left: 11px;
  }

  .nav-toggle span:nth-child(1) {
    top: 14px;
  }

  .nav-toggle span:nth-child(2) {
    top: 21px;
  }

  .nav-toggle span:nth-child(3) {
    top: 28px;
  }

  .hero__where {
    font-size: 13px;
  }

  .hero__info {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero__tag {
    justify-self: start;
  }

  .hero__btn {
    justify-self: stretch;
    justify-content: space-between;
    line-height: 1.5;
  }

  .news {
    flex-direction: column;
    gap: 8px;
  }

  .news__list li {
    font-size: 14px;
  }

  .ticket {
    padding: 12px;
  }

  .ticket__buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .ticket__btn {
    min-height: 72px;
  }

  .student__card--discount {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .student__body {
    padding: 20px;
  }

  .student__dates li {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* スマホ：写真の下にキャプションを置く（写真に文字がかぶらないように） */
  .gallery {
    grid-auto-rows: auto;
    gap: 16px 10px;
  }

  .gallery__item {
    grid-column: auto !important;
    grid-row: auto !important;
    background: none;
  }

  .gallery__item--a {
    grid-column: 1 / -1 !important;
  }

  .gallery__item img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .gallery__item--a img {
    aspect-ratio: 4 / 3;
    object-position: center 30%;
  }

  .gallery__item figcaption {
    position: static;
    padding: 6px 0 0;
  }

  .gallery__item figcaption {
    font-size: 12px;
  }

  .faq__q {
    font-size: 16px;
  }

  .faq__a-inner p {
    padding-left: 0;
  }

  .recruit__jobs {
    grid-template-columns: 1fr;
  }

  .recruit__btns .btn {
    width: 100%;
  }

  .info th,
  .info td {
    display: block;
    width: 100%;
    border: 0;
    padding: 2px 0;
  }

  .info th {
    padding-top: 12px;
    color: var(--green-deep);
  }

  .info tr {
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px solid #cfcfcf;
  }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }

  html.js [data-reveal],
  html.js .hero__label,
  html.js .hero__price,
  html.js .hero__time,
  html.js .hero__info {
    opacity: 1;
    transform: none;
  }
}

/* 読みやすさ：注記も14px以上にそろえる */
.hero__where,
.crowd__hint { font-size: 14px; }
