/* =========================================================
   Er Sele United Football Club
   色: クラブグリーン #556b2f(現行サイトの背景色)+ 赤のアクセント
   ========================================================= */
:root {
	--green: #556b2f;
	--green-d: #3c4d1f;
	--green-dd: #263214;
	--green-l: #eef1e6;
	--lime: #c9d86b;
	--red: #e61c3d;
	--red-d: #c3132f;
	--ink: #1f2418;
	--muted: #5d6452;
	--line: #dfe3d6;
	--cream: #f5f6ef;
	--white: #fff;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(38, 50, 20, .08);
	--head-h: 84px;
	--en: "Oswald", "Noto Sans JP", sans-serif;
	--ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--ja);
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: .03em;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--red); }
strong, b { font-weight: 700; }
small { font-size: .82em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.er-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.er-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.er-icon { width: 1.15em; height: 1.15em; flex: none; }
.er-wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.er-wrap--narrow { width: min(860px, 100% - 40px); margin-inline: auto; }
.er-center { text-align: center; }

/* ---------- ボタン ---------- */
.er-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 54px; padding: 12px 30px; border-radius: 999px;
	font-weight: 700; font-size: 15px; letter-spacing: .06em; text-decoration: none;
	transition: transform .2s, background-color .2s, color .2s, box-shadow .2s;
}
.er-btn:hover { transform: translateY(-2px); }
.er-btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(230, 28, 61, .3); }
.er-btn--red:hover { background: var(--red-d); color: #fff; }
.er-btn--green { background: var(--green); color: #fff; }
.er-btn--green:hover { background: var(--green-d); color: #fff; }
.er-btn--white { background: #fff; color: var(--green-d); }
.er-btn--white:hover { color: var(--red); }
.er-btn--line { border: 2px solid var(--green); color: var(--green); background: transparent; }
.er-btn--line:hover { background: var(--green); color: #fff; }
.er-more { text-align: center; margin: 36px 0 0; }

/* ブロックのボタン */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.wp-block-button__link {
	display: inline-flex; align-items: center; gap: .5em;
	min-height: 54px; padding: 12px 30px; border-radius: 999px;
	background: var(--green); color: #fff; font-weight: 700; text-decoration: none;
	transition: transform .2s, background-color .2s;
}
.wp-block-button__link:hover { transform: translateY(-2px); background: var(--green-d); color: #fff; }
.er-btn-red .wp-block-button__link { background: var(--red); box-shadow: 0 8px 20px rgba(230, 28, 61, .28); }
.er-btn-red .wp-block-button__link:hover { background: var(--red-d); }
.is-style-outline .wp-block-button__link { background: #fff; color: var(--green); border: 2px solid var(--green); }
.is-style-outline .wp-block-button__link:hover { background: var(--green); color: #fff; }
.er-btn-pdf .wp-block-button__link::before {
	content: "PDF"; font: 600 11px/1 var(--en); letter-spacing: .08em;
	background: var(--red); color: #fff; padding: 4px 6px; border-radius: 4px;
}

/* ---------- ヘッダー ---------- */
.er-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s, border-color .25s;
}
/* すりガラスは背景の層にだけ掛ける(ヘッダー本体に backdrop-filter を付けると、スマホの全画面メニュー(position:fixed)がヘッダーの高さに閉じ込められるため) */
.er-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.admin-bar .er-header { top: 32px; }
.er-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .07); border-color: var(--line); }
.er-header__inner { display: flex; align-items: center; gap: 24px; height: var(--head-h); width: min(1320px, 100% - 40px); margin-inline: auto; }
.er-header__logo { flex: none; display: block; line-height: 0; }
.er-header__logo img { width: auto; height: 62px; }
.er-gnav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.er-gnav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.er-gnav__list a {
	position: relative; display: flex; flex-direction: column; align-items: center;
	padding: 8px 12px; text-decoration: none; color: var(--ink); line-height: 1.25;
}
.er-gnav__list .en { font: 600 15px/1.2 var(--en); letter-spacing: .08em; }
.er-gnav__list .ja { font-size: 10px; color: var(--muted); letter-spacing: .05em; margin-top: 3px; }
.er-gnav__list a::after {
	content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; border-radius: 3px;
	background: var(--red); transform: translateX(-50%); transition: width .25s;
}
.er-gnav__list a:hover { color: var(--green); }
.er-gnav__list a:hover::after, .er-gnav__list .current-menu-item > a::after { width: 22px; }
.er-gnav__list .current-menu-item > a { color: var(--green); }
.er-gnav__sns { display: none; }
.er-header__cta {
	flex: none; display: inline-flex; align-items: center; gap: 8px;
	height: 48px; padding: 0 22px; border-radius: 999px;
	background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
	box-shadow: 0 6px 16px rgba(230, 28, 61, .28); transition: background-color .2s, transform .2s;
}
.er-header__cta:hover { background: var(--red-d); color: #fff; transform: translateY(-1px); }
.er-burger { display: none; }

/* ---------- メインビジュアル ---------- */
.er-hero { position: relative; background: var(--green-dd); overflow: hidden; }
.er-hero__slides { position: relative; aspect-ratio: 2000 / 1300; max-height: calc(100svh - var(--head-h)); width: 100%; }
.er-hero__slide {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease;
}
.er-hero__slide.is-active { opacity: 1; }
.er-hero__dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 10px; }
.er-hero__dots button {
	width: 34px; height: 5px; padding: 0; border: 0; border-radius: 5px; cursor: pointer;
	background: rgba(255, 255, 255, .45); transition: background-color .3s, width .3s;
}
.er-hero__dots button.is-active { background: #fff; width: 54px; }

/* ---------- 共通: 見出し・セクション ---------- */
.er-main { display: block; }
.er-sec { padding: 96px 0; }
.er-sec--cream { background: var(--cream); }
.er-en {
	margin: 0 0 4px; font: 600 14px/1.2 var(--en); letter-spacing: .2em; color: var(--red);
	display: flex; align-items: center; gap: 10px;
}
.er-en::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.er-ttl { margin: 0 0 32px; font-size: clamp(22px, 3vw, 30px); line-height: 1.5; font-weight: 900; letter-spacing: .05em; color: var(--ink); }
.er-ttl span { display: block; font-size: .55em; font-weight: 500; color: var(--muted); margin-top: 4px; }
.er-ttl--bar { padding-left: 16px; border-left: 6px solid var(--green); font-size: clamp(20px, 2.6vw, 26px); }
.er-sub {
	margin: 48px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--line);
	font-size: 19px; font-weight: 700; position: relative;
}
.er-sub::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: var(--green); }
.er-lead { font-size: 17px; line-height: 2; }
.er-note { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.er-empty { text-align: center; color: var(--muted); }
.er-anchor { display: block; position: relative; top: -10px; }

/* ---------- 下層ページの見出し ---------- */
.er-pagehead {
	position: relative; color: #fff; text-align: center;
	padding: 72px 0 64px;
	background: linear-gradient(rgba(38, 50, 20, .55), rgba(38, 50, 20, .78)), var(--bg) center / cover no-repeat;
}
.er-pagehead__en { margin: 0; font: 700 clamp(40px, 7vw, 76px)/1 var(--en); letter-spacing: .08em; }
.er-pagehead__title { margin: 14px 0 0; font-size: clamp(15px, 2vw, 18px); font-weight: 700; letter-spacing: .12em; }
.er-pagehead__title::before { content: ""; display: block; width: 36px; height: 3px; background: var(--red); margin: 0 auto 14px; border-radius: 3px; }
.er-crumbs { display: flex; gap: 10px; padding: 14px 0; font-size: 12.5px; color: var(--muted); }
.er-crumbs a { color: var(--muted); text-decoration: none; }
.er-crumbs a:hover { color: var(--red); }

/* ---------- 本文 ---------- */
.er-content { padding: 40px 0 110px; }
.er-content--front { padding: 0; }
.er-content > * + * { margin-top: 0; }
.er-content p { margin: 0 0 1.2em; }
.er-content h2, .er-content h3, .er-content h4 { line-height: 1.5; }
.er-block { margin: 0 0 88px; }
.er-block:last-child { margin-bottom: 0; }

/* チェック付きリスト・点のリスト */
.er-check, .er-dot { list-style: none; margin: 0 0 1.4em; padding: 0; }
.er-check li, .er-dot li { position: relative; padding-left: 1.9em; margin: 0 0 .7em; }
.er-check li::before {
	content: ""; position: absolute; left: 0; top: .42em; width: 1.15em; height: 1.15em; border-radius: 50%;
	background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.er-dot li { padding-left: 1.3em; }
.er-dot li::before { content: ""; position: absolute; left: .2em; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* カード */
.er-cards { display: grid; gap: 20px; margin: 0 0 28px; }
.er-cards--2 { grid-template-columns: repeat(2, 1fr); }
.er-cards--3 { grid-template-columns: repeat(3, 1fr); }
.er-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px 30px 14px; box-shadow: var(--shadow);
}
.er-card--wide { margin-top: 20px; }
.er-card__no { margin: 0 0 6px !important; font: 700 34px/1 var(--en); color: var(--green); opacity: .35; }
.er-card__ttl { margin: 0 0 16px; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.er-card__ttl::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--red); transform: rotate(45deg); flex: none; }

/* 強調ボックス */
.er-highlight {
	margin: 28px 0; padding: 30px 34px 16px; border-radius: var(--radius);
	background: var(--green-l); border-left: 6px solid var(--green);
}
.er-highlight__pre { margin: 0 0 4px !important; color: var(--muted); }
.er-highlight__main { font-size: 19px; font-weight: 900; color: var(--green-d); }
.er-infobox { margin: 24px 0; padding: 22px 26px 6px; border-radius: var(--radius); border: 2px dashed var(--line); background: #fff; }

/* スローガン */
.er-slogan {
	margin: 0 0 32px; padding: 44px 24px; border-radius: var(--radius); text-align: center; color: #fff;
	background: radial-gradient(circle at 85% 20%, rgba(201, 216, 107, .25), transparent 45%), linear-gradient(135deg, var(--green) 0%, var(--green-dd) 100%);
}
.er-slogan__label { margin: 0 0 10px !important; font-size: 13px; letter-spacing: .3em; opacity: .85; }
.er-slogan__text { margin: 0 !important; font-size: clamp(24px, 4vw, 40px); font-weight: 900; line-height: 1.5; letter-spacing: .08em; }

/* 理念・規範・指針 */
.er-policy { padding: 34px 0 10px; border-top: 1px solid var(--line); }
.er-policy__ttl { margin: 0 0 18px; font-size: 21px; font-weight: 900; color: var(--green-d); }
.er-policy__ttl span { display: inline-block; margin-left: 14px; padding: 2px 14px; font-size: 13px; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; vertical-align: middle; }

/* 表 */
.wp-block-table { margin: 0 0 18px; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; border: 0; }
.wp-block-table th, .wp-block-table td { border: 0; }
.wp-block-table thead { border: 0; }
.er-spec table { border-top: 2px solid var(--green); }
.er-spec th, .er-spec td { padding: 18px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.er-spec th { width: 28%; background: var(--cream); font-weight: 700; white-space: nowrap; }
.er-fee th { width: 34%; white-space: normal; }
.er-price { font: 700 1.35em/1.2 var(--en); color: var(--red); letter-spacing: .02em; }
.er-grid-table table { border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.er-grid-table th { background: var(--green); color: #fff; font-weight: 700; padding: 14px 18px; text-align: left; font-size: 14px; }
.er-grid-table td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.er-grid-table tr:nth-child(even) td { background: var(--cream); }
.er-grid-table td:first-child { white-space: nowrap; }

/* タブ(ページ内リンク) */
.er-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 56px; }
.er-tabs a {
	display: flex; flex-direction: column; align-items: center; min-width: 220px; padding: 14px 26px;
	border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line);
	color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.5; transition: background-color .2s, color .2s;
}
.er-tabs a small { font-weight: 500; color: var(--muted); }
.er-tabs a:hover { background: var(--green); color: #fff; }
.er-tabs a:hover small { color: rgba(255, 255, 255, .8); }

/* コース */
.er-course { padding: 48px clamp(20px, 4vw, 56px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.er-course__ttl span { display: inline-block; margin: 0 0 0 12px; font-size: 14px; font-weight: 700; color: var(--green); background: var(--green-l); padding: 4px 14px; border-radius: 999px; vertical-align: middle; }

/* カレンダー */
.er-calendar { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.er-calendar iframe { display: block; width: 100%; }

/* ---------- トップ ---------- */
.er-welcome { text-align: center; padding-top: 80px; }
.er-welcome .er-en { justify-content: center; }
.er-welcome .er-en::after { content: ""; width: 26px; height: 2px; background: currentColor; }
.er-welcome__title { margin: 6px 0 20px; font-size: clamp(24px, 3.6vw, 38px); font-weight: 900; line-height: 1.55; letter-spacing: .06em; }
.er-welcome__lead { max-width: 760px; margin: 0 auto 48px !important; color: var(--muted); }
.er-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.er-quick p { margin: 0 !important; }
.er-quick a {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px;
	padding: 22px 24px; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff;
	background: linear-gradient(160deg, var(--green) 0%, var(--green-dd) 100%);
	transition: transform .25s, box-shadow .25s;
}
.er-quick p:last-child a { background: linear-gradient(160deg, #ef3c58 0%, var(--red-d) 100%); }
.er-quick a::before {
	content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
	border: 18px solid rgba(255, 255, 255, .08);
}
.er-quick a::after {
	content: ""; position: absolute; right: 20px; top: 22px; width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 50% no-repeat;
	transition: transform .25s;
}
.er-quick a:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(38, 50, 20, .22); color: #fff; }
.er-quick a:hover::after { transform: translateX(4px); }
.er-quick__en { font: 600 24px/1.2 var(--en); letter-spacing: .08em; }
.er-quick__ja { font-size: 13px; opacity: .85; margin-top: 4px; }

.er-topnews__inner { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.er-topnews__head .er-ttl { margin-bottom: 28px; }
.er-topnews__list .er-more { text-align: left; margin-top: 28px; }

/* お知らせ一覧 */
.er-news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.er-news__item { border-bottom: 1px solid var(--line); }
.er-news__link {
	display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 4px 16px;
	padding: 20px 8px; text-decoration: none; color: var(--ink); transition: background-color .2s, padding .2s;
}
.er-news__link:hover { background: rgba(85, 107, 47, .06); padding-left: 16px; color: var(--ink); }
.er-news__date { font: 500 15px/1 var(--en); color: var(--green); letter-spacing: .06em; }
.er-news__new { font: 600 11px/1 var(--en); color: #fff; background: var(--red); padding: 4px 7px; border-radius: 4px; letter-spacing: .08em; }
.er-news__title { grid-column: 3; line-height: 1.7; }
.er-news__date + .er-news__title { grid-column: 2 / 4; }
.er-news__tag { font: 600 11px/1 var(--en); letter-spacing: .08em; padding: 5px 8px; border-radius: 4px; border: 1px solid currentColor; color: var(--muted); }
.er-news__tag--pdf { color: var(--red); }
.er-news__tag--instagram { color: #c13584; }
.er-news__arrow { color: var(--green); }
.er-news--page .er-news__link { padding-block: 24px; }

/* SNS */
.er-sns { display: grid; gap: 10px; }
.er-sns__btn {
	display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius);
	background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; line-height: 1.4;
	transition: transform .2s, box-shadow .2s;
}
.er-sns__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.er-sns__btn .er-icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: #fff; }
.er-sns__btn--ig .er-icon { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.er-sns__btn--fb .er-icon { background: #1877f2; }
.er-sns__btn span { font-size: 12px; color: var(--muted); }
.er-sns__btn b { display: block; font: 600 16px/1.3 var(--en); letter-spacing: .04em; color: var(--ink); }

/* 進路実績 */
.er-results__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.er-results__photo .wp-block-image { margin: 0; }
.er-results__photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.er-results__lead { font-size: 17px; }
.er-results__lead strong { color: var(--red); font-size: 1.15em; }
.er-chips { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.er-chips li {
	padding: 8px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line);
	font-size: 14px; font-weight: 500; line-height: 1.4;
}
.er-chips small { margin-left: 6px; color: var(--muted); font-weight: 400; }

/* スポンサー */
.er-sponsor { text-align: center; }
.er-sponsor .er-en { justify-content: center; }
.er-sponsor .er-en::after { content: ""; width: 26px; height: 2px; background: currentColor; }
.er-sponsor .wp-block-image { margin: 0; }
.er-sponsor a { display: block; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.er-sponsor a:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.er-sponsor__main { max-width: 420px; margin: 0 auto 22px; }
.er-sponsor__main img { width: 100%; }
.er-sponsor__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 900px; margin-inline: auto; }
.er-sponsor__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- スタッフ ---------- */
.er-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 24px; margin: 48px 0 32px; align-items: start; }
.er-staff__card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.er-staff__photo { aspect-ratio: 3 / 4; background: var(--green-l); overflow: hidden; }
.er-staff__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.er-staff__card:hover .er-staff__photo img { transform: scale(1.04); }
.er-staff__noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--green); opacity: .35; }
.er-staff__noimg .er-icon { width: 72px; height: 72px; }
.er-staff__head { padding: 18px 20px 14px; }
.er-staff__role { margin: 0 0 6px !important; font-size: 12px; font-weight: 700; color: var(--green); line-height: 1.5; }
.er-staff__name { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: .08em; line-height: 1.4; }
.er-staff__kana { margin: 2px 0 0 !important; font-size: 11.5px; color: var(--muted); letter-spacing: .1em; }
.er-staff__more { border-top: 1px solid var(--line); }
.er-staff__more summary {
	display: flex; align-items: center; justify-content: space-between; padding: 13px 20px;
	cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 700; color: var(--green);
}
.er-staff__more summary::-webkit-details-marker { display: none; }
.er-staff__more summary:hover { background: var(--cream); }
.er-staff__more summary .er-icon { transition: transform .25s; }
.er-staff__more[open] summary .er-icon { transform: rotate(45deg); }
.er-staff__more[open] summary span::after { content: "（閉じる）"; font-weight: 400; color: var(--muted); }
.er-staff__body { padding: 4px 20px 18px; font-size: 14px; line-height: 1.85; }
.er-staff__body h4 { margin: 16px 0 6px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--green); display: inline-block; padding: 2px 10px; border-radius: 4px; }
.er-staff__body p { margin: 0 0 .6em; }

/* ---------- 入会・体験 ---------- */
.er-trialbox {
	padding: 48px clamp(22px, 5vw, 60px) 52px; border-radius: 22px;
	background: radial-gradient(circle at 92% 10%, rgba(230, 28, 61, .08), transparent 40%), var(--cream);
	border: 2px solid var(--green);
}

/* ---------- お問い合わせ ---------- */
.er-contact-intro { margin-bottom: 36px; }
.er-formbox { width: min(860px, 100%); margin-inline: auto; padding: clamp(24px, 5vw, 52px); border-radius: 22px; background: var(--cream); }
.er-form__row { display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.er-form__label { font-weight: 700; padding-top: 12px; display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.er-form__label em { font-style: normal; font-size: 11px; color: #fff; background: var(--red); padding: 3px 8px; border-radius: 4px; line-height: 1.4; margin-top: 3px; }
.er-form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.er-form input[type="text"], .er-form input[type="tel"], .er-form input[type="email"], .er-form textarea {
	width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; border: 1px solid #cfd5c3; border-radius: 10px; background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.er-form textarea { min-height: 200px; resize: vertical; }
.er-form input:focus, .er-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(85, 107, 47, .15); }
.er-form__submit { text-align: center; padding-top: 32px; }
.er-form input[type="submit"] {
	min-width: 280px; min-height: 60px; padding: 0 40px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--red); color: #fff; font: 700 16px/1 var(--ja); letter-spacing: .1em;
	box-shadow: 0 8px 20px rgba(230, 28, 61, .3); transition: background-color .2s, transform .2s;
}
.er-form input[type="submit"]:hover { background: var(--red-d); transform: translateY(-2px); }
.wpcf7-not-valid-tip { font-size: 13px; margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 14px 18px; border-radius: 10px; }
.wpcf7-spinner { display: block; margin: 12px auto 0; }

/* ---------- 記事 ---------- */
.er-article__head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.er-article__head time { font: 500 15px/1 var(--en); color: var(--green); letter-spacing: .06em; }
.er-article__head h2 { margin: 10px 0 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; }
.er-article__thumb { margin: 0 0 28px; }
.er-article__thumb img { border-radius: var(--radius); }
.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- フッター ---------- */
.er-footcta {
	position: relative; color: #fff; padding: 72px 0;
	background: linear-gradient(115deg, rgba(38, 50, 20, .92) 0%, rgba(85, 107, 47, .85) 100%), url("../img/page-head.jpg") center / cover;
}
.er-footcta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.er-footcta__en { margin: 0; font: 600 14px/1 var(--en); letter-spacing: .24em; color: var(--lime); }
.er-footcta__title { margin: 10px 0 8px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; letter-spacing: .06em; line-height: 1.4; }
.er-footcta__text { margin: 0; opacity: .88; font-size: 14.5px; }
.er-footcta__btns { display: flex; flex-direction: column; gap: 12px; flex: none; }
.er-footcta__btns .er-btn { min-width: 260px; }

.er-footer { background: var(--green-dd); color: rgba(255, 255, 255, .85); }
.er-footer__inner { display: flex; justify-content: space-between; gap: 40px; padding: 56px 0 44px; }
.er-footer__club img { width: 170px; height: auto; filter: brightness(0) invert(1); opacity: .9; }
.er-footer__club p { margin: 16px 0 18px; font-size: 13px; line-height: 1.8; }
.er-footer__sns { display: flex; gap: 10px; }
.er-footer__sns a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .2s; }
.er-footer__sns a:hover { background: var(--red); color: #fff; }
.er-footer__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 12px 44px; }
.er-footer__list a { display: flex; flex-direction: column; color: #fff; text-decoration: none; line-height: 1.3; }
.er-footer__list .en { font: 600 15px/1.2 var(--en); letter-spacing: .08em; }
.er-footer__list .ja { font-size: 11px; opacity: .6; margin-top: 3px; }
.er-footer__list a:hover .en { color: var(--lime); }
.er-footer__copy { border-top: 1px solid rgba(255, 255, 255, .1); }
.er-footer__copy .er-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; }
.er-footer__copy small { font-size: 11.5px; opacity: .6; letter-spacing: .04em; }
.er-pagetop { font: 600 12px/1 var(--en); letter-spacing: .14em; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.er-pagetop::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg) translate(2px, 2px); }
.er-pagetop:hover { color: var(--lime); }

/* ---------- 表示アニメーション ---------- */
.er-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.er-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.er-reveal { opacity: 1; transform: none; transition: none; }
	.er-hero__slide { transition: none; }
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1180px) {
	.er-gnav__list a { padding: 8px 8px; }
	.er-gnav__list .en { font-size: 14px; }
	.er-header__inner { gap: 16px; }
}
@media (max-width: 1024px) {
	:root { --head-h: 68px; }
	.er-header__logo img { height: 50px; }
	.er-header__cta { margin-left: auto; height: 42px; padding: 0 16px; font-size: 14px; }
	.er-burger {
		display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; padding: 0;
		border: 0; border-radius: 12px; background: var(--green); cursor: pointer;
	}
	.er-burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
	.er-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.er-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.er-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.er-gnav {
		position: fixed; inset: var(--head-h) 0 0 0; z-index: 99; margin: 0;
		flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 40px;
		background: #fff; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s;
	}
	.admin-bar .er-gnav { top: calc(var(--head-h) + 46px); }
	.er-gnav.is-open { opacity: 1; visibility: visible; transform: none; }
	.er-gnav__list { flex-direction: column; gap: 0; }
	.er-gnav__list a { flex-direction: row; align-items: baseline; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
	.er-gnav__list a::after { display: none; }
	.er-gnav__list .en { font-size: 20px; }
	.er-gnav__list .ja { font-size: 12px; }
	.er-gnav__sns { display: flex; gap: 12px; padding-top: 24px; }
	.er-gnav__sns a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green-l); color: var(--green); }
	body.is-menu-open { overflow: hidden; }

	.er-quick { grid-template-columns: repeat(2, 1fr); }
	.er-topnews__inner { grid-template-columns: 1fr; gap: 32px; }
	.er-sns { grid-template-columns: 1fr 1fr; }
	.er-results__inner { grid-template-columns: 1fr; gap: 36px; }
	.er-results__photo { max-width: 520px; }
	.er-cards--3 { grid-template-columns: 1fr; }
	.er-footcta__inner { flex-direction: column; align-items: flex-start; }
	.er-footcta__btns { flex-direction: row; flex-wrap: wrap; }
	.er-footer__inner { flex-direction: column; }
}
@media (max-width: 782px) {
	.admin-bar .er-header { top: 46px; }
	#wpadminbar { position: fixed; }
}
@media (max-width: 720px) {
	body { font-size: 15px; }
	.er-sec { padding: 64px 0; }
	.er-content { padding: 28px 0 80px; }
	.er-block { margin-bottom: 64px; }
	.er-pagehead { padding: 48px 0 42px; }
	.er-header__cta span { display: none; }
	.er-header__cta { width: 42px; padding: 0; justify-content: center; }
	.er-header__cta .er-icon { width: 22px; height: 22px; }
	.er-hero__dots { bottom: 10px; }
	.er-hero__dots button { width: 22px; }
	.er-hero__dots button.is-active { width: 36px; }
	.er-welcome { padding-top: 56px; }
	.er-welcome__title { font-size: 21px; letter-spacing: .02em; }
	.er-welcome__lead { text-align: left; }
	.er-quick { gap: 10px; }
	.er-quick a { min-height: 118px; padding: 16px; }
	.er-quick a::after { right: 12px; top: 14px; width: 28px; height: 28px; }
	.er-quick__en { font-size: 19px; }
	.er-quick__ja { font-size: 11.5px; }
	.er-sns { grid-template-columns: 1fr; }
	.er-news__link { grid-template-columns: auto auto 1fr auto; padding: 16px 4px; }
	.er-news__title { grid-column: 1 / -2 !important; grid-row: 2; }
	.er-news__tag { grid-column: 3; justify-self: start; }
	.er-news__arrow { grid-column: -2; grid-row: 1 / 3; }
	.er-cards--2 { grid-template-columns: 1fr; }
	.er-card { padding: 24px 22px 10px; }
	.er-highlight { padding: 24px 22px 10px; }
	.er-policy__ttl span { display: table; margin: 8px 0 0; }
	.er-spec th, .er-spec td { display: block; width: 100%; padding: 12px 16px; }
	.er-spec th { border-bottom: 0; padding-bottom: 6px; }
	.er-spec td { padding-top: 4px; }
	.er-grid-table thead { display: none; }
	.er-grid-table table, .er-grid-table tbody, .er-grid-table tr, .er-grid-table td { display: block; }
	.er-grid-table table { box-shadow: none; border-radius: 0; }
	.er-grid-table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
	.er-grid-table td { border: 0; padding: 4px 16px; background: #fff !important; }
	.er-grid-table td:first-child { background: var(--green-l) !important; padding: 10px 16px; white-space: normal; }
	.er-grid-table td:nth-child(2) { padding-top: 10px; }
	.er-grid-table td:last-child { padding-bottom: 12px; font-weight: 700; color: var(--green-d); }
	.er-grid-table td:first-child br { display: none; }
	.er-grid-table td:first-child b::after { content: "　"; }
	.er-tabs { gap: 8px; margin-bottom: 40px; }
	.er-tabs a { min-width: 0; flex: 1 1 140px; padding: 12px 10px; font-size: 14px; }
	.er-course { padding: 32px 18px; border-radius: 16px; }
	.er-course__ttl span { display: table; margin: 8px 0 0; }
	.er-sponsor__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.er-staff { grid-template-columns: 1fr; gap: 14px; }
	.er-staff__card { display: grid; grid-template-columns: 112px 1fr; }
	.er-staff__head { align-self: center; padding: 12px 16px; }
	.er-staff__name { font-size: 18px; }
	.er-staff__role { font-size: 11.5px; }
	.er-staff__more { grid-column: 1 / -1; }
	.er-staff__more summary { padding: 12px 16px; font-size: 13px; }
	.er-staff__body { padding: 4px 16px 16px; font-size: 14px; }
	.er-form__row { grid-template-columns: 1fr; padding: 14px 0; }
	.er-form__label { padding-top: 0; }
	.er-form input[type="submit"] { width: 100%; min-width: 0; }
	.er-footcta__btns { flex-direction: column; width: 100%; }
	.er-footcta__btns .er-btn { width: 100%; min-width: 0; }
	.er-footer__list { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
	.er-footer__copy .er-wrap { flex-direction: column-reverse; align-items: center; gap: 12px; }
	.er-calendar iframe { height: 520px; }
}
