/* =========================================================
   ファインモータースクール  -  common.css
   全ページ共通パーツ（トークン / 基本 / サイドバー / ヘッダー / ドロワー /
   クイックリンク / コンテンツバナー / お問い合わせ / フッター / 下層共通 ほか）
   ※ このファイルのクラス名は変更しないでください（全ページで共用）
   ========================================================= */

/* ----▼---▼▼--▼▼▼-▼▼▼▼- デザイントークン -▼▼▼▼-▼▼▼--▼▼---▼---- */
:root {
	--orange: #e56c36;
	--orange-2: #eda02f;
	--pink: #d22f7f;
	--ink: #362f2f;
	--ink-2: #2b2b2b;
	--ink-3: #1a1a1a;
	--muted: #8a8a8a;
	--line: #eaeaea;
	--bg: #ffffff;
	--bg-soft: #faf7f4;
	--white: #ffffff;
	--radius: 14px;
	--radius-lg: 20px;
	--shadow: 0 6px 20px rgba(0,0,0,.08);
	--shadow-sm: 0 2px 10px rgba(175,175,175,.25);
	--sidebar-w: 280px;
	--container: 1396px;
	--header-h: 72px;
	--quicklinks-h: 66px;
	--font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	--font-zen: "Zen Kaku Gothic New", var(--font-jp);
	--font-en: "Oswald", "Bahnschrift", sans-serif;
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- 基本 -▼▼▼▼-▼▼▼--▼▼---▼---- */
html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
	font-size: 62.5%; /* 1rem = 10px */
	height: 100%;
	/* 装飾のはみ出しによる横スクロールを根絶（bodyのhiddenだけではiOS等でhtmlが横に動くため） */
	overflow-x: clip;
}
body {
	font-family: var(--font-jp);
	color: var(--ink);
	background: var(--bg);
	line-height: 1.8;
	font-size: 16px;
	/* hiddenはbodyをスクロールコンテナ化しヘッダーのposition:stickyを無効化するためclipに変更
	   （横はみ出し防止の効果は同じ。htmlのoverflow-x:clipと同方針） */
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
img {
	display: block;
}
a {
	color: inherit;
	transition: .2s;
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- 共通レイアウト（最小限）-▼▼▼▼-▼▼▼--▼▼---▼---- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 20px;
}
.section {
	padding-block: 80px;
}
.center {
	text-align: center;
	margin-top: 28px;
}
.grid {
	display: grid;
	gap: 16px;
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- 共通パーツ -▼▼▼▼-▼▼▼--▼▼---▼---- */
/* 英題ラベル（下線バー付き）。各セクションで text-align 等を上書き可 */
.section-label {
	font-family: var(--font-en);
	font-weight: bold;
	letter-spacing: .15em;
	/* Figma準拠：ラベルは原文どおりの大文字小文字（About Us / Voice / contents 等）で表記する */
	text-transform: none;
	color: var(--ink);
	font-size: 1.4rem;
	text-align: center;
	position: relative;
	padding-bottom: 12px;
	margin-bottom: 40px;
}
.section-label::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 40px;
	height: 4px;
	background: var(--ink);
	transform: translateX(-50%);
}
.section-label--light {
	color: #fff;
	margin-bottom: 0;
	padding-bottom: 10px;
}
.section-label--light::after {
	background: #fff;
}

/* 縦書きセクション見出し（送迎 / About / 校舎で共通）
   構成: .sec-head ＞ .section-label（英題）＋ .vcopy（縦書きコピー）*/
.sec-head {
	text-align: center;
	margin-bottom: 100px;
}
.sec-head .section-label {
	text-transform: none;
}
.vcopy {
	display: inline-block;
	writing-mode: vertical-rl;
	font-family: var(--font-zen);
	font-weight: 700;
	font-size: 5rem;
	line-height: 1.9;
	letter-spacing: .12em;
	color: var(--ink);
	margin-top: 16px;
	text-align: start;             /* 縦書きの各列を上揃え（親 .sec-head の center を継承させない）*/
	text-decoration: underline;    /* 装飾の界線（各列の右側に出る縦ライン）*/
	text-decoration-thickness: 1px;
	text-underline-offset: -1.4em; /* em基準＝フォントサイズに比例。SPでも位置が崩れない（旧 -7rem 固定の不具合を解消）*/
}

.section-text {
	color: var(--ink);
	font-size: 15px;
	margin-top: 14px;
}
.section-text.center {
	text-align: center;
}
/* セクションCTAピル（Figma準拠：白地＋オレンジ→ピンクのグラデ枠） */
.section-cta {
	width: fit-content;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
	min-width: 256px;
	padding: 12px 24px;
	font-size: 1.6rem;
	font-weight: bold;
	color: var(--orange);
	border: solid 2px transparent;
	background:
		linear-gradient(var(--bg), var(--bg)) padding-box,
		linear-gradient(90deg, #eda02f, #e56c36 45%, #ee4d93) border-box;
	border-radius: 60px;
	box-shadow: 0 4px 12px rgba(0,0,0,.1);
	transition: all ease .4s;
}
.section-cta ion-icon {
	color: var(--orange);
}
.section-cta:hover {
	background:
		linear-gradient(var(--orange), var(--orange)) padding-box,
		linear-gradient(90deg, #eda02f, #e56c36 45%, #ee4d93) border-box;
	color: var(--bg-soft);
}
.section-cta:hover ion-icon {
	color: var(--bg-soft);
}
/* 単体でセンタリングして置く場合 */
.section-cta.center,
.center > .section-cta {
	margin-inline: auto;
}

/* ボタン */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	padding: 14px 28px;
	border-radius: 999px;
	transition: .2s;
	white-space: nowrap;
}
.btn--outline {
	border: 1.5px solid var(--orange);
	color: var(--orange);
	background: #fff;
}
.btn--outline::after {
	content: "›";
	font-size: 16px;
}
.btn--outline:hover {
	background: var(--orange);
	color: #fff;
}
.btn--dark {
	background: var(--ink);
	color: #fff;
	padding: 10px 22px;
}
.btn--dark::after {
	content: "›";
}
.btn--dark:hover {
	background: #000;
}
.btn--sm {
	font-size: 12px;
	padding: 9px 18px;
}
.btn--rakueco {
	background: var(--orange);
	color: #fff;
	padding: 9px 18px;
	font-size: 12px;
	box-shadow: var(--shadow-sm);
}
.btn--rakueco::after {
	content: "";
	background-image: url(../images/icons/ic-arrow.svg);
	width: 4px;
	height: 8px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
.btn--rakueco:hover {
	background: #d05a26;
}
.btn--on-photo {
	background: rgba(255,255,255,.92);
}

.link-arrow {
	color: var(--orange);
	font-weight: 700;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.link-arrow::after {
	content: "›";
}
.link-arrow:hover {
	text-decoration: underline;
}
.badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	padding: 4px 12px;
	border-radius: 6px;
}
.badge--orange {
	background: var(--orange);
}

/* 汎用リビール：初期は非表示、トリガーで表示 */
.js-reveal {
	opacity: 0;
	transform: translateY(16px);
	pointer-events: none;
	transition: opacity .6s ease, transform .6s ease;
}
.js-reveal.is-revealed {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- PCレイアウト切替（base＝PC）-▼▼▼▼-▼▼▼--▼▼---▼---- */
/* 全ページ共通：PCは左サイドナビ。上部ヘッダーは隠す
   ※ クイックリンクは base の .quicklinks が PC非表示・SP追従表示を担当 */
.header {
	display: none;
}
/* メイン・フッターをサイドバー分オフセット */
main,
.footer {
	margin-left: var(--sidebar-w);
}
.home .container {
	max-width: var(--container);
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- 左サイドナビ（PC・全ページ共通）-▼▼▼▼-▼▼▼--▼▼---▼---- */
.sidebar {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: var(--sidebar-w);
	height: 100vh;
	overflow-y: auto;
	background: #f2f2f2;
	padding: 60px 30px 30px;
}
.sidebar__logo {
	display: block;
	margin-bottom: 8px;
}
/* logo.svg は width/height="100%" 属性を持つため比率（220:125）をCSSで固定 */
.sidebar__logo img {
	width: 100%;
	height: auto;
	aspect-ratio: 220 / 125.345;
}
.sidebar__nav {
	padding: 0 10px;
	margin: 8px 0;
}
.sidebar__group {
	margin-bottom: 26px;
}
.sidebar__heading {
	display: block;
	font-family: var(--font-zen);
	font-weight: 500;
	font-size: 14px;
	color: var(--ink);
	margin-bottom: 14px;
}
.sidebar__heading span {
	color: var(--orange);
	margin-right: 4px;
}
a.sidebar__heading:hover {
	color: var(--orange);
}
.sidebar__items {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.sidebar__items a {
	display: flex;
	align-items: center;
	gap: 4px;
	font-family: var(--font-zen);
	font-size: 12px;
	color: var(--ink);
	padding-left: 10px;
}
.sidebar__items img {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
.sidebar__items a:hover {
	color: var(--orange);
}
.sidebar__row {
	display: flex;
	gap: 50px;
	padding-left: 10px;
}
.sidebar__row a {
	display: flex;
	align-items: center;
	gap: 4px;
	font-family: var(--font-zen);
	font-size: 12px;
	color: var(--ink);
}
.sidebar__row img {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
.sidebar__row a:hover {
	color: var(--orange);
}
/* 校舎案内サブの2段目（ご入校の流れ）用の行間 */
.sidebar__row + .sidebar__row {
	margin-top: 10px;
}
.sidebar__group--links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 0;
}
.sidebar__group--links .sidebar__heading {
	margin-bottom: 0;
}
.sidebar__bottom {
	display: flex;
	flex-direction: column;
	gap: 40px;
	margin-top: 20px;
	align-items: flex-start;
}
.sidebar__rakueco-wrap {
	position: relative;
	width: 223px;
	margin-top: 8px;
}
.sidebar__rakueco-note {
	position: absolute;
	top: -16px;
	left: 30px;
	font-family: var(--font-zen);
	font-size: 10px;
	color: var(--ink-2);
	white-space: nowrap;
}
.sidebar__rakueco-btn {
	display: flex;
	align-items: center;
	height: 47px;
	background: var(--orange);
	border: 1.2px solid var(--orange);
	border-radius: 50px;
	padding: 10px 16px;
	color: #fff;
	font-family: var(--font-zen);
	font-size: 14px;
	box-shadow: var(--shadow-sm);
}
.sidebar__rakueco-btn .arr {
	margin-left: auto;
	font-size: 16px;
}
.sidebar__rakueco-btn:hover {
	background: #d05a26;
	color: #fff;
}
.reserve-panel {
	width: 222px;
}
.reserve-panel__head {
	background: var(--orange);
	color: #fff;
	font-family: var(--font-zen);
	font-size: 11px;
	letter-spacing: 2.2px;
	text-align: center;
	padding: 6px;
	border-radius: 4px 4px 0 0;
}
.reserve-panel__r2,
.reserve-panel__r3 {
	display: flex;
}
/* 2段目と3段目の間には余白を空ける（Figma） */
.reserve-panel__r2 {
	margin-bottom: 6px;
}
.reserve-panel__r2 a,
.reserve-panel__r3 a {
	background: #fff;
	border: 1px solid var(--orange);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--orange);
	font-family: var(--font-zen);
	font-weight: 700;
	font-size: 10px;
	letter-spacing: 1px;
}
.reserve-panel__r2 a {
	flex: 1;
	gap: 8px;
	height: 40px;
	margin-right: -1px;
}
.reserve-panel__r2 a:last-child {
	margin-right: 0;
}
.reserve-panel__r3 a {
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 14px 6px;
	margin-right: -1px;
}
.reserve-panel__r3 a:last-child {
	margin-right: 0;
	border-bottom-right-radius: 6px;
}
.reserve-panel__r3 a:first-child {
	border-bottom-left-radius: 6px;
}
.reserve-panel img {
	width: 20px;
	height: 20px;
}
.reserve-panel a:hover {
	background: #fff7f2;
}
.sidebar__copy {
	font-family: var(--font-jp);
	font-weight: 700;
	font-size: 10px;
	color: var(--ink-2);
	text-align: center;
	width: 222px;
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- ヘッダー / ドロワー（タブレット以下で使用）-▼▼▼▼-▼▼▼--▼▼---▼---- */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,.96);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s;
}
.header.is-scrolled {
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header__inner {
	height: var(--header-h);
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 16px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.logo {
	display: flex;
	align-items: center;
}
/* ロゴは幅指定＋height:autoで縦横比（720:149）を維持 */
.logo img {
	width: 40vw;
	max-width: 52vw;
	height: auto;
}
.header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}
/* SPヘッダーの楽エコボタン（HPサイドバーと同じ作り：テキスト＋人物画像） */
.header__rakueco {
	position: relative;
	display: flex;
	align-items: center;
	height: 34px;
	background: var(--orange);
	border-radius: 50px;
	padding: 8px 44px 8px 16px;
	color: #fff;
	font-family: var(--font-zen);
	font-weight: 700;
	font-size: 1.2rem;
	line-height: 1;
	white-space: nowrap;
	box-shadow: var(--shadow-sm);
}
.header__rakueco img {
	position: absolute;
	right: 2px;
	bottom: -10px;
	width: 40px;
}
.hamburger {
	width: 40px;
	height: 40px;
	border: none;
	background: #fff;
	border-radius: 8px;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.hamburger span {
	width: 24px;
	height: 2px;
	background: var(--ink-3);
	transition: .25s;
}
.hamburger.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
	opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* 閉じている間は画面内（right:0）に置いたまま不可視化。
   画面外への translateX は横スクロールを生むため使わない */
.drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 200;
	width: min(82vw, 340px);
	height: 100dvh;
	background: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .3s ease, transform .3s ease, visibility .3s;
	padding: 20px 24px 40px;
	overflow-y: auto;
	box-shadow: -8px 0 24px rgba(0,0,0,.12);
}
.drawer.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
/* ドロワーの中身はHPサイドバーと同じ部品（sidebar__〜 / reserve-panel）を流用（Figma frame365） */
.drawer__close {
	display: block;
	margin-left: auto;
	border: none;
	background: none;
	font-size: 30px;
	line-height: 1;
	color: var(--ink-3);
	margin-bottom: 8px;
}
.drawer .sidebar__nav {
	padding: 0;
	margin: 0 0 16px;
}
.drawer .sidebar__rakueco-wrap {
	margin: 24px auto 40px;
}
.drawer .reserve-panel {
	margin: 0 auto;
}
.drawer__logo {
	width: 200px;
	height: auto;
	margin: 40px auto 0;
}
.drawer__copy {
	font-weight: 700;
	font-size: 10px;
	color: var(--ink-2);
	text-align: center;
	margin-top: 24px;
}
.drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 150;
	background: rgba(0,0,0,.45);
	opacity: 0;
	transition: opacity .3s;
}
.drawer-overlay.is-open {
	opacity: 1;
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- クイックリンク（SP追従バー。PCでは非表示・全ページ共通）-▼▼▼▼-▼▼▼--▼▼---▼---- */
.quicklinks {
	display: none;
	grid-template-columns: repeat(4, 1fr);
	max-width: var(--container);
	margin-inline: auto;
}
.quicklinks__item {
	position: relative;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	text-align: center;
	padding: 12px 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	border: none;
}
.quicklinks__item ion-icon {
	font-size: 22px;
}
.ql--orange  { background: var(--orange); }
.ql--orange2 { background: var(--orange-2); }
.ql--pink    { background: var(--pink); }
.ql--white   { background: #fff; color: var(--orange); }
.quicklinks__item:hover {
	filter: brightness(1.06);
}
/* web申し込みの「割引特典あり」バッジ（Figma Frame703：ダークの吹き出し円＋左下しっぽ） */
.quicklinks__badge {
	position: absolute;
	top: -18px;
	right: 4px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #3e4a52;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.3;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-sm);
}
.quicklinks__badge::after {
	content: "";
	position: absolute;
	left: 2px;
	bottom: 2px;
	width: 10px;
	height: 10px;
	background: #3e4a52;
	clip-path: polygon(0 100%, 0 0, 100% 55%);
}
/* ご案内予約タップで上に出る校舎選択 */
.quicklinks__pop {
	position: absolute;
	left: 8px;
	bottom: calc(100% + 8px);
	display: flex;
	gap: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.quicklinks__pop.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.quicklinks__pop a {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1.5px solid var(--orange);
	border-radius: 8px;
	color: var(--orange);
	font-weight: 700;
	font-size: 13px;
	padding: 10px 16px;
	box-shadow: var(--shadow-sm);
}
.quicklinks__pop ion-icon {
	font-size: 18px;
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- コンテンツバナー -▼▼▼▼-▼▼▼--▼▼---▼---- */
.contents {
	/* 画面幅が狭まってバナーが端に達したら左右20pxの余白を確保
	   （max-widthを20px×2ぶん広げてあるため、広い画面の見た目は従来と同一） */
	padding: 40px 20px;
	margin: 0 auto;
	max-width: 1407px;
	/* セクション境界線（旧: TOPのnews下線。全ページで上下に出るようcontents側で管理） */
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.contents .section-label {
	text-align: start;
	width: fit-content;
}
.contents .section-label::after {
	left: 0;
	transform: none;
}
.contents__banner {
	position: relative;
	background-size: cover;
	background-position: center;
	padding: 80px 80px 120px;
	color: #fff;
	border-radius: 40px;
}
/* Figma準拠：写真の下側をブランドオレンジへフェード */
.contents__banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(229,108,54,0) 0%, rgba(229,108,54,.82) 40%, #e56c36 72%);
	border-radius: inherit;
}
.contents__banner img {
	position: absolute;
	top: -100px;
	right: 60px;
	width: 600px;
}
.contents__banner-inner {
	position: relative;
	z-index: 1;
	max-width: 620px;
}
.contents__banner h2 {
	color: #fff;
	font-size: 3.6rem;
	line-height: 1.6;
	margin-bottom: 20px;
	font-weight: bold;
}
.contents__banner-inner .text {
	text-align: start;
	margin-bottom: 10px;
	font-weight: bold;
}
.contents .container {
	padding-inline: 60px;
}
/* コンテンツカード：スライダーにせず折り返しグリッド（PC4列/SP2列） */
.contents-cards {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: -80px;
}
.contents-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	gap: 10px;
	border: 2px solid var(--orange);
	border-radius: var(--radius);
	padding: 22px 10px;
	font-weight: 700;
	font-size: 1.6rem;
	color: var(--orange);
	background-color: var(--bg);
	aspect-ratio: 3/2;
}
.contents-card ion-icon {
	font-size: 30px;
}
.contents-card:hover {
	background: #fff7f2;
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- お問い合わせ -▼▼▼▼-▼▼▼--▼▼---▼---- */
.contact {
	padding-block: 0;
	background: #fff;
}
.contact .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 56px 20px;
	border-bottom: 1px solid var(--line);
}
.contact .title {
	display: flex;
	flex-direction: column;
	/* タイトル+CTAで1グループ、ご案内予約で1グループ（間隔は各要素側で指定） */
	gap: 0;
}
.contact .section-label {
	text-align: start;
	width: fit-content;
	margin-bottom: 20px;
}
.contact .section-label::after {
	left: 0;
	transform: none;
}
.contact h2 {
	font-size: 2.4rem;
	font-weight: bold;
	line-height: 1;
}
/* #413: お問い合わせフォームへのボタン（見出し直下・黒ピル） */
.contact__cta {
	margin-top: 20px;
}
.contact .title .contact__reserves {
	margin-top: 48px;
}
.contact__cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--ink);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 13px 36px;
	border-radius: 50px;
}
.contact__cta a ion-icon {
	font-size: 14px;
}
.contact__reserves {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
}
.contact__sub {
	color: var(--orange);
	font-weight: 700;
	font-size: 13px;
}
.contact__reserve {
	display: flex;
	align-items: center;
	gap: 24px;
}
.contact__reserve a {
	display: flex;
	align-items: center;
	line-height: 1;
	gap: 19px;
}
.contact__reserve a ion-icon[name="chevron-forward-circle"] {
	font-size: 1em;
	width: 1em;
	height: 1em;
}
.contact__icons {
	width: 800px;
	grid-template-columns: repeat(3, 1fr);
	padding: 30px 0;
	gap: 0;
}
.contact-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	aspect-ratio: 1/1;
	text-align: center;
	font-weight: 700;
	font-size: 1.6rem;
	border-right: 1px solid #ddd;
}
/* 大アイコン（デザイン準拠の3色：マゼンタ/オレンジ/黄） */
.contact-icon > ion-icon:first-child {
	font-size: 56px;
}
.contact-icon--pink > ion-icon:first-child {
	color: var(--pink);
}
.contact-icon--orange > ion-icon:first-child {
	color: var(--orange);
}
.contact-icon--yellow > ion-icon:first-child {
	color: var(--orange-2);
}
.contact-icon:last-child {
	border: none;
}
.contact-icon:hover {
	background: #fff7f2;
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- フッター -▼▼▼▼-▼▼▼--▼▼---▼---- */
/* HTMLはSP（Group173）の順＝リンク列→在校生MENU・楽エコ→ロゴ・SNS。
   PCは order で「左=ロゴ／右=リンク5列／下段右=在校生MENU・楽エコ」に組み替え */
.footer {
	background: #fff;
	
}
.footer .container {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	padding-top: 63px;
	padding-bottom: 76px;
}
.footer__brand {
	order: -1;
	width: 280px;
	flex-shrink: 0;
}
.footer__cols {
	flex: 1;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 28px 18px;
}
.footer__bottom {
	width: 100%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 24px;
}
.footer__col h3 {
	font-size: 14px;
	font-weight: bold;
	margin: 18px 0 8px;
}
.footer__col h3:first-child {
	margin-top: 0;
}
.footer__col ul li a {
	font-size: 12px;
	color: var(--muted);
	display: inline-block;
	padding: 3px 0;
	font-weight: 500;
}
.footer__col ul li a:hover {
	color: var(--orange);
}
.footer__sub {
	color: var(--orange);
	font-weight: 700;
	font-size: 13px;
}
.footer__students {
	display: flex;
	gap: 24px;
}
/* Figma準拠：在校生リンクは文字＝黒、矢印＝黒丸に白シェブロン */
.footer__students .link-arrow {
	color: var(--ink);
	gap: 8px;
}
.footer__students .link-arrow::after {
	content: "›";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--ink-3);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	padding-bottom: 3px;
}
.footer__rakueco {
	width: 180px;
	padding: 14px 24px;
	font-size: 10px;
	justify-content: space-between;
}
.footer__social {
	display: flex;
	gap: 16px;
	margin-bottom: 30px;
}
.footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--orange);
	font-size: 24px;
	line-height: 1;
}
.footer__social a:hover {
	color: #d05a26;
}
.footer__logo {
	width: 100%;
	max-width: 280px;
	height: auto;
}
.footer__copy {
	font-size: 11px;
	color: var(--muted);
	text-align: center;
	margin-top: 40px;
	padding-top: 16px;
	padding-bottom: 16px;
	border-top: 1px solid var(--line);
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- トップへ戻る / フローティングバナー -▼▼▼▼-▼▼▼--▼▼---▼---- */
.to-top {
	position: fixed;
	left: calc(var(--sidebar-w) + 24px);
	right: auto;
	bottom: 24px;
	z-index: 90;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--ink);
	color: #fff;
	font-size: 18px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s;
}
.to-top.is-visible {
	opacity: .9;
	pointer-events: auto;
	z-index: 2;
}
.float-promo {
	position: fixed;
	right: 24px;
	left: auto;
	bottom: 24px;
	z-index: 70;
	width: 180px;
	max-width: 42vw;
	border-radius: 10px;
	overflow: hidden;
}
/* 閉じるボタン（script.jsが生成。画像内の×表記は廃止） */
.float-promo__close {
	position: absolute;
	top: 0;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	background: #fff;
	color: #444;
	border: 1px solid #ccc;
	border-radius: 50%;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- カードスライダー（PC・タブレット＝グリッド / SP＝スライダー）-▼▼▼▼-▼▼▼--▼▼---▼---- */
.cards-swiper {
	width: 100%;
}
.cards-swiper .swiper-wrapper {
	display: grid;
	gap: 24px;
}
.cards-swiper--2 .swiper-wrapper {
	grid-template-columns: repeat(2, 1fr);
}
.cards-swiper--4 .swiper-wrapper {
	grid-template-columns: repeat(4, 1fr);
}
.cards-pagination {
	display: none;
}

/* =========================================================
   ラップトップ等の低い画面（PCレイアウト時・高さ≤860px）共通
   サイドバーを圧縮して全項目が収まるように。通常の高さでは変更なし
   ========================================================= */
@media (min-width: 1024px) and (max-height: 860px) {
	/* 9. サイドバーの余白 */
	.sidebar {
		padding: 16px 20px 12px;
	}
	/* 10. ロゴの大きさ */
	.sidebar__logo {
		margin-bottom: 4px;
	}
	.sidebar__nav {
		margin: 4px 0 0;
	}
	.sidebar__group {
		margin-bottom: 10px;
	}
	.sidebar__heading {
		margin-bottom: 6px;
		line-height: 1.4;
	}
	.sidebar__items {
		gap: 6px;
	}
	.sidebar__items a,
	.sidebar__row a {
		line-height: 1.4;
	}
	/* 11. 送迎案内・校舎案内のサブ項目は横並びのまま・gapのみ詰める */
	.sidebar__row {
		gap: 24px;
	}
	.sidebar__row + .sidebar__row {
		margin-top: 6px;
	}
	.sidebar__group--links {
		gap: 6px;
		margin-bottom: 0;
	}
	/* 下部（楽エコCTA・ご案内予約パネル）も圧縮 */
	.sidebar__bottom {
		gap: 14px;
	}
	.sidebar__rakueco-wrap {
		margin-top: 4px;
	}
	.sidebar__rakueco-btn {
		height: 36px;
	}
	.reserve-panel__head {
		padding: 4px;
	}
	.reserve-panel__r2 {
		margin-bottom: 4px;
	}
	.reserve-panel__r2 a {
		height: 30px;
	}
	.reserve-panel__r3 a {
		padding: 7px 6px;
	}
	.sidebar__copy {
		font-size: 9px;
		margin-top: 4px;
	}
}

/* =========================================================
   タブレット・SP共通（≤1023px）
   左サイドナビ→上部ヘッダー＋下部追従クイックリンクへ
   ========================================================= */

/* =========================================================
   タブレット（≤1023px）共通
   ========================================================= */
@media (max-width: 1023px) {
	/* レイアウト切替（全ページ共通：サイドバー→上部ヘッダー） */
	.sidebar {
		display: none;
	}
	.header {
		display: block;
	}
	.hamburger {
		display: inline-flex;
	}
	main,
	.footer {
		margin-left: 0;
	}

	/* クイックリンクを画面下に追従固定（全ページ共通） */
	.quicklinks {
		display: grid;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 80;
		max-width: none;
		margin: 0;
		box-shadow: 0 -2px 12px rgba(0,0,0,.14);
	}

	/* 追従系：トップへ戻るは追従バーの上 / フローティングバナーも同様 */
	.to-top {
		left: 16px;
		bottom: calc(var(--quicklinks-h) + 14px);
	}
	.float-promo {
		right: 12px;
		left: auto;
		bottom: calc(var(--quicklinks-h) + 14px);
		width: 140px;
	}

	/* 追従バー分の余白 */
	.footer {
		padding-bottom: calc(24px + var(--quicklinks-h));
	}

	/* コンテンツバナー：左右に余白。SPはFigma準拠でセンター組み＋人物を上部中央に大きく重ねる */
	.contents {
		padding-inline: 20px;
		margin-top: 150px;
	}
	.contents__banner {
		padding: 230px 24px 96px;
		border-radius: 24px;
	}
	.contents__banner img {
		top: -90px;
		right: auto;
		left: 50%;
		transform: translateX(-50%);
		width: min(400px, 88vw);
	}
	.contents__banner-inner {
		text-align: center;
	}
	.contents .contents__banner-inner .section-label {
		margin-inline: auto;
		text-align: center;
	}
	.contents .contents__banner-inner .section-label::after {
		left: 50%;
		transform: translateX(-50%);
	}
	.contents__banner-inner .text {
		text-align: center;
		font-size: 1.4rem;
	}

	.contact .container {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}
	/* Figma準拠：SP/タブレットはラベルと見出しをセンター */
	.contact .title {
	}
	.contact .title dl {
		text-align: center;
	}
	.contact .section-label {
		margin-inline: auto;
	}
	.contact .section-label::after {
		left: 50%;
		transform: translateX(-50%);
	}
	/* #413: SPはボタンもセンター（Figma準拠） */
	.contact__cta {
		text-align: center;
	}
	.contact__icons {
		width: 100%;
	}

	/* 本文サイズ */
	.section-text {
		font-size: 14px;
	}
}

/* =========================================================
   SP（≤767px）共通
   ========================================================= */
@media (max-width: 767px) {
	body {
		font-size: 15px;
	}
	.section {
		padding-block: 56px;
	}
	.sec-head {
		margin-bottom: 48px;
	}
	.vcopy {
		font-size: 3.4rem;
	}

	/* コンテンツバナー：SPは左右20px・カード2カラム・見出し縮小 */
	.contents {
		margin-top: 33px;
	}
	.contents .container {
		padding-inline: 20px;
	}
	.contents-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.contents__banner h2 {
		font-size: 2.5rem;
		font-weight: bold;
	}

	/* グリッド→スライダー（汎用。初期化はJS側で ≤767 のみ実行） */
	.cards-swiper .swiper-wrapper {
		display: flex;
		gap: 0;
		/* スライダー時の端余白は Swiper の slidesOffsetBefore/After(20px) が担当。
		   containerのpaddingはSwiperの端計算に入らず見切れの原因になるため無効化 */
		padding-inline: 0;
	}
	.cards-swiper--2 .swiper-wrapper,
	.cards-swiper--4 .swiper-wrapper {
		grid-template-columns: none;
	}

	/* SP：ページネーション（ドット）をカード下に表示 */
	.cards-pagination {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin-top: 16px;
	}
	.cards-pagination .swiper-pagination-bullet {
		width: 9px;
		height: 9px;
		background: #d8c9bf;
		opacity: 1;
		transition: .2s;
	}
	.cards-pagination .swiper-pagination-bullet-active {
		background: var(--orange);
		width: 22px;
		border-radius: 5px;
	}

	/* お問い合わせアイコン：3列横並びを維持したまま縮小して画面内に収める
	（min-width:0 で 1fr を効かせ、アイコン・gap・テキストを縮小）*/
	.contact {
		padding-top: 0;
		padding-bottom: 0;
	}
	.contact .container {
		padding: 46px 20px;
		border-bottom: 0;
	}
	.contact__reserves {
		flex-direction: column;
		align-items: flex-start;
		gap: 13px;
	}
	.contact__icons {
		gap: 6px;
		border-top: 1px solid var(--line);
		border-bottom: 1px solid var(--line);
	}
	.contact-icon {
		min-width: 0;
		gap: 6px;
		font-size: 1.1rem;
		padding: 4px;
	}
	.contact-icon__svg svg {
		width: 36px;
		height: 36px;
	}
	.contact-icon ion-icon {
		font-size: 16px;
	}

	/* フッターを縦積み2カラム */
	/* フッターSP（Group173）：リンク列→在校生MENU・楽エコ→SNS・ロゴ の縦積み */
	.footer .container {
		flex-direction: column;
		gap: 32px;
		padding-bottom: 0;
	}
	.footer__students {
		margin-bottom: 20px;
	}
	.footer__brand {
		order: 1;
		width: auto;
	}
	.footer__cols {
		grid-template-columns: 1fr 1fr;
	}
	.footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		margin-bottom: 25px;
	}
	.footer__copy {
		margin-top: 60px;
	}
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- 下層共通パーツ -▼▼▼▼-▼▼▼--▼▼---▼---- */
/* ページヒーロー：写真＋下端の波形＋カテゴリラベル */
.page-hero {
	/* 波の調整はここ：--wave-w=波1つの長さ / --wave-h=波の高さ（緩やかさは w:h の比で決まる） */
	--wave-w: 600px;
	--wave-h: 90px;
	position: relative;
	padding-block: 24px 0;
	/* 左右余白：.container の padding-inline と同じ20px（コンテナより余白が大きくならない） */
	padding-inline: 20px;
}
/* 写真下端は「固定長の波」でくり抜く（maskの繰り返しで実現）。
   波はビューポート幅に比例せず、--wave-w（波1つの長さ）/ --wave-h（波の高さ）で調整可能。
   ※旧 clip-path（#pageHeroClip）は不使用（HTML内のdefsは残っていても無害） */
.page-hero__img {
	position: relative;
	height: 380px;
	border-radius: 28px 28px 0 0;
	background-size: cover;
	background-position: center;
	/* 下辺だけ波形にカット：波タイルは「上から波の谷まで塗り」＝画像の下端が波・その下は透過（白） */
	-webkit-mask-image: linear-gradient(#000, #000), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L240 0 L240 8 Q180 16 120 8 T0 8 Z'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat, repeat-x;
	-webkit-mask-position: 0 0, left bottom;
	-webkit-mask-size: 100% calc(100% - var(--wave-h) + 1px), var(--wave-w) var(--wave-h);
	mask-image: linear-gradient(#000, #000), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L240 0 L240 8 Q180 16 120 8 T0 8 Z'/%3E%3C/svg%3E");
	mask-repeat: no-repeat, repeat-x;
	mask-position: 0 0, left bottom;
	mask-size: 100% calc(100% - var(--wave-h) + 1px), var(--wave-w) var(--wave-h);
}
/* ラベルは波（--wave-h）にかからない高さに置く */
.page-hero__label {
	position: absolute;
	left: 88px;
	bottom: calc(var(--wave-h, 24px) + 26px);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
.page-hero__cat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #fff;
	padding: 4px 8px;
	font-family: var(--font-en);
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	color: var(--ink);
}
.page-hero__cat span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--orange);
}
.page-hero__label h1 {
	display: inline-block;
	background: #fff;
	padding: 8px 12px;
	font-family: var(--font-zen);
	font-weight: 700;
	font-size: 3.2rem;
	line-height: 1;
	color: var(--ink);
}
/* page-hero レスポンシブ（共通）：Figma下層フレーム準拠（SP=上13px・左右10px・画像高さ161px）。
   波長はSPで狭める（--wave-w切替。波1つの長さは固定＝画面幅に比例しない） */
@media (max-width: 1023px) {
	.page-hero {
		padding: 12px 10px 0;
	}
	.page-hero__img {
		height: 260px;
	}
	.page-hero__label {
		left: 25px;
		bottom: calc(var(--wave-h, 24px));
	}
}
@media (max-width: 767px) {
	.page-hero {
		--wave-w: 350px;
		--wave-h: 45px;
	}
	.page-hero__img {
		height: 161px;
		border-radius: 16px 16px 0 0;
	}
	.page-hero__cat {
		font-size: 10px;
		padding: 3px 6px;
	}
	.page-hero__cat span {
		width: 6px;
		height: 6px;
	}
	.page-hero__label h1 {
		font-size: 2.1rem;
		padding: 4px 5px;
	}
}

/* ページ内ラベル（ABOUT / contents）と見出し・本文 */
.page-label {
	font-family: var(--font-jp);
	font-weight: 700;
	font-size: 1.4rem;
	letter-spacing: .05em;
	color: var(--pink);
	line-height: 1.2;
}
.page-label--orange {
	color: var(--orange);
}

/* 小見出し（縦棒＋テキスト＋罫線） */
.block-label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 64px 0 32px;
}
.block-label::before {
	content: '';
	width: 4px;
	height: 20px;
	background: var(--orange);
}
.block-label span {
	font-weight: 700;
	font-size: 1.6rem;
	color: var(--ink);
	white-space: nowrap;
}
.block-label::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--line);
}

/* =========================================================
   下層ページ共通部品（bus / faq / school ほかで使い回し）
   ========================================================= */

/* 白ピル（影付き・オレンジ文字）と オレンジピル */
.btn--white {
	background: #fff;
	color: var(--ink);
	box-shadow: var(--shadow-sm);
	font-size: 1.5rem;
	position: relative;
}
.btn--white b {
	color: var(--orange);
	font-size: 1.1em;
}
.btn--white::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 24px;
	transform: translateY(-50%);
	width: 8px;
	height: 12px;
	background-color: var(--orange);
	-webkit-mask: url(../images/icons/ic-arrow.svg) center / contain no-repeat;
	mask: url(../images/icons/ic-arrow.svg) center / contain no-repeat;
}
.btn--white:hover {
	background: #fff7f2;
}
.btn--orange {
	background: var(--orange);
	color: #fff;
	font-size: 1.5rem;
	position: relative;
}
.btn--orange::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 24px;
	transform: translateY(-50%);
	width: 8px;
	height: 12px;
	background-image: url(../images/icons/ic-arrow.svg);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
.btn--orange:hover {
	background: #d05a26;
}
.btn--wide {
	width: 100%;
	max-width: 400px;
	padding-block: 16px;
}
@media (max-width: 767px) {
	.btn--white::after {
		right: 20px;
		width: 4px;
		height: 9px;
	}
	.btn--orange::after {
		right: 20px;
		width: 4px;
		height: 9px;
	}
}


/* アイコン付き見出し（オレンジ太字） */
.icon-head {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-zen);
	font-weight: 700;
	font-size: 2.2rem;
	color: var(--orange);
	margin-bottom: 24px;
}
.icon-head ion-icon {
	font-size: 30px;
	flex-shrink: 0;
}

/* タブ */
.tabs {
	display: flex;
	gap: 4px;
}
.tabs button {
	border: 1px solid var(--line);
	border-bottom: none;
	background: #fff;
	color: var(--ink);
	font-weight: 700;
	font-size: 1.4rem;
	padding: 12px 24px;
	border-radius: 10px 10px 0 0;
	cursor: pointer;
}
.tabs button.is-active {
	background: var(--orange-2);
	border-color: var(--orange-2);
	color: #fff;
}

/* FAQアコーディオン（details/summary） */
.faq-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.faq-list__item {
	border-radius: 40px;
	overflow: hidden;
}
.faq-list__item summary {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	list-style: none;
	cursor: pointer;
	background: #fff;
	box-shadow: var(--shadow-sm);
	border-radius: 40px;
	padding: 18px 56px 18px 24px;
	font-size: 1.4rem;
	line-height: 1.6;
}
.faq-list__item summary::-webkit-details-marker {
	display: none;
}
.faq-list__item summary .q {
	font-family: var(--font-en);
	font-weight: 700;
	flex-shrink: 0;
}
/* 開閉アイコン（＋ / ×） */
.faq-list__item summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 2.4rem;
	font-weight: 400;
	color: var(--ink-3);
	line-height: 1;
	transition: .2s;
}
.faq-list__item[open] summary::after {
	content: "×";
}
.faq-list__a {
	display: flex;
	gap: 12px;
	background: var(--bg-soft);
	border-radius: 0 0 24px 24px;
	padding: 18px 24px;
	font-size: 1.4rem;
	line-height: 1.9;
}
.faq-list__a .a {
	font-family: var(--font-en);
	font-weight: 700;
	flex-shrink: 0;
}

/* 注記テキスト */
.note-text {
	font-size: 1.3rem;
	line-height: 1.9;
	color: var(--ink);
	margin-top: 24px;
}

/* アクセシビリティ：動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* ----▼---▼▼--▼▼▼-▼▼▼▼- モーダル（dialog・全ページ共通UI）-▼▼▼▼-▼▼▼--▼▼---▼---- */
.modal {
	width: min(400px, calc(100vw - 40px));
	max-height: 84vh;
	margin: auto;
	padding: 0;
	border: none;
	border-radius: 16px;
	overflow: hidden;
}
.modal::backdrop {
	background: rgba(0, 0, 0, .55);
}
.modal__inner {
	max-height: 84vh;
	overflow-y: auto;
	padding: 28px 20px 32px;
}
.modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	font-size: 26px;
	line-height: 1;
	color: var(--text);
	background: #fff;
	border-radius: 50%;
	cursor: pointer;
}
.modal__title {
	font-family: var(--font-head);
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 16px;
}
@media (max-width: 767px) {
	.modal {
		width: calc(100vw - 32px);
	}
}

