/*
Theme Name: Kagawa Gym（香川県体操協会）
Description: 香川県体操協会 公式サイト用オリジナルテーマ。トップバナー、お知らせ、大会情報、競技紹介、関係者限定の資料ページ（共通パスワード）を備えています。
Version: 1.6.0
Requires at least: 6.0
Requires PHP: 7.4
Author: 香川県体操協会
Text Domain: kagawa-gym
License: GPLv2 or later
*/

:root {
	--navy: #1E3A6E;
	--navy-dark: #0F2347;
	--navy-soft: #E8EEF7;
	--accent: #F08C2B;
	--accent-text: #B5560A;
	--accent-soft: #FFF4E8;
	--bg-soft: #F4F6FA;
	--line: #E3E7EE;
	--text: #1F2733;
	--muted: #5A6575;
	--font: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
	--font-head: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.7; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 8px 16px; width: auto; height: auto; clip: auto; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: block; text-decoration: none; border-left: 5px solid var(--accent); padding-left: 14px; }
.brand__name { font-family: var(--font-head); font-weight: 900; font-size: 20px; color: var(--navy); line-height: 1.2; }
.brand__en { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.gnav { display: flex; align-items: center; gap: 4px 24px; }
.gnav__list { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.gnav__list a { display: block; padding: 8px 0; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 700; }
.gnav__list a:hover, .gnav__list .current-menu-item > a { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }
.gnav__actions { display: flex; gap: 10px; align-items: center; }
.btn-members, .btn-contact { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 9px 18px; white-space: nowrap; }
.btn-members { color: var(--navy); border: 1.5px solid var(--navy); }
.btn-members:hover { background: var(--navy-soft); }
.btn-contact { color: var(--navy); background: var(--accent); border: 1.5px solid var(--accent); }
.btn-contact:hover { color: var(--navy-dark); filter: brightness(1.05); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 8px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 1000px) {
	.nav-toggle { display: inline-flex; }
	.gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 24px 24px; box-shadow: 0 8px 16px rgba(20,40,80,.08); }
	.gnav.is-open { display: flex; }
	.gnav__list { flex-direction: column; gap: 0; }
	.gnav__list a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
	.gnav__actions { flex-direction: column; align-items: stretch; margin-top: 16px; }
	.btn-members, .btn-contact { justify-content: center; padding: 13px 18px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 12px 32px; font-size: 15px; border: 1.5px solid var(--navy); min-height: 44px; cursor: pointer; font-family: inherit; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); color: #fff; }
.btn--outline { background: #fff; color: var(--navy); }
.btn--outline:hover { background: var(--navy-soft); }
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- Hero banner ---------- */
.hero { background: var(--bg-soft); padding: 24px 0 18px; }
.hero__frame { position: relative; height: 300px; border-radius: 16px; overflow: hidden; background: var(--navy); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: block; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__empty { height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 28px; text-align: center; padding: 24px; }
.hero__dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.hero__dots button { width: 10px; height: 10px; padding: 0; border: none; border-radius: 5px; background: #B7C3D6; cursor: pointer; transition: width .3s; }
.hero__dots button[aria-current="true"] { width: 28px; background: var(--navy); }
@media (max-width: 700px) { .hero__frame { height: 190px; } .hero { padding-top: 16px; } }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

/* ---------- Alert bar ---------- */
.alert-bar { background: var(--accent-soft); border-bottom: 1px solid #F6D9B8; }
.alert-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 14px; padding-bottom: 14px; font-size: 14px; }
.alert-bar__label { background: var(--navy); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 12px; border-radius: 4px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); }
.section-label { font-size: 13px; letter-spacing: .2em; color: var(--accent-text); font-weight: 700; }
.section-title { margin: 4px 0 32px; font-family: var(--font-head); font-weight: 900; font-size: 34px; color: var(--navy); line-height: 1.4; }
.section-foot { text-align: center; margin-top: 32px; }
.section-foot--right { text-align: right; margin-top: 24px; }
@media (max-width: 700px) { .section { padding: 56px 0; } .section-title { font-size: 26px; margin-bottom: 24px; } }

/* ---------- News ---------- */
.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.news-head .section-title { margin-bottom: 0; }
.news-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.news-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 18px; border-radius: 999px; border: 1.5px solid var(--navy); color: var(--navy); background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.news-tabs a:hover { background: var(--navy-soft); }
.news-tabs a.is-current { background: var(--navy); color: #fff; }
.news-list { border-top: 2px solid var(--navy); list-style: none; margin: 0; padding: 0; }
.news-item a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 20px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.news-item a:hover { background: var(--bg-soft); }
.news-item__date { font-size: 14px; color: var(--muted); min-width: 96px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--navy-soft); padding: 3px 12px; border-radius: 999px; min-width: 72px; text-align: center; }
.news-item__title { flex: 1 1 300px; font-size: 16px; font-weight: 500; }
.empty { color: var(--muted); padding: 32px 8px; }

/* ---------- Events ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.event-card { background: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 3px rgba(20,40,80,.08); }
.event-card__date { display: flex; align-items: baseline; gap: 6px; color: var(--navy); }
.event-card__day { font-family: var(--font-head); font-weight: 900; font-size: 40px; line-height: 1; }
.event-card__month { font-size: 14px; font-weight: 700; }
.event-card__tag { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--navy); background: #FCE3CA; padding: 3px 12px; border-radius: 999px; }
.event-card__name { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.5; }
.event-card__venue { font-size: 14px; color: #4A5565; }
.event-card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.event-card__actions a { flex: 1; text-align: center; text-decoration: none; font-size: 14px; font-weight: 700; padding: 11px 8px; border-radius: 8px; border: 1.5px solid var(--navy); }
.event-card__actions .is-primary { background: var(--navy); color: #fff; }
.event-card__actions .is-primary:hover { background: var(--navy-dark); color: #fff; }
.event-card__actions .is-outline { color: var(--navy); background: #fff; }
.event-card--past { opacity: .8; }

/* ---------- Disciplines ---------- */
.disc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.disc-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--text); background: #fff; }
.disc-card__img { height: 260px; background: var(--navy-soft); }
.disc-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.disc-card__body { padding: 24px; }
.disc-card__en { font-size: 12px; letter-spacing: .15em; color: var(--accent-text); font-weight: 700; }
.disc-card__name { margin: 4px 0 8px; font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--navy); }
.disc-card__text { margin: 0; font-size: 14px; color: #4A5565; }
@media (max-width: 700px) { .disc-grid { grid-template-columns: 1fr; } .disc-card__img { height: 200px; } }

/* ---------- Quick links ---------- */
.links-title { margin: 0 0 28px; font-family: var(--font-head); font-weight: 900; font-size: 28px; color: #fff; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.link-card { text-decoration: none; background: #fff; color: var(--navy); border-radius: 12px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-card:hover { background: var(--navy-soft); }
.link-card__title { display: block; font-weight: 700; font-size: 17px; }
.link-card__sub { display: block; font-size: 13px; color: var(--muted); }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about__img { flex: 1 1 380px; min-width: 0; height: 320px; border-radius: 20px; overflow: hidden; background: var(--navy-soft); }
.about__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__body { flex: 1 1 420px; min-width: 0; }
.about__text { margin: 0 0 28px; font-size: 16px; color: #3A4555; white-space: pre-line; }
.about__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.about__btns .btn { padding: 12px 28px; }

/* ---------- Page hero / content ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 48px 0; }
.page-hero__label { font-size: 13px; letter-spacing: .2em; color: var(--accent); font-weight: 700; }
.page-hero__title { margin: 6px 0 0; font-family: var(--font-head); font-weight: 900; font-size: 34px; line-height: 1.4; }
.page-hero__lead { margin: 8px 0 0; color: #D6DEEB; }
.breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0; }
.breadcrumb a { color: var(--muted); }
.content-area { padding: 48px 0 88px; }
.entry { max-width: 860px; margin: 0 auto; }
.entry-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.entry-title { margin: 0 0 32px; font-family: var(--font-head); font-weight: 900; font-size: 30px; color: var(--navy); line-height: 1.5; }
.entry-content { font-size: 16px; }
.entry-content h2 { font-family: var(--font-head); font-size: 24px; color: var(--navy); border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin: 48px 0 20px; }
.entry-content h3 { font-size: 19px; color: var(--navy); border-left: 5px solid var(--accent); padding-left: 12px; margin: 36px 0 16px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.entry-content .wp-block-table { margin: 0; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--bg-soft); }
.entry-content .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg-soft); border-radius: 10px; }
.entry-content .wp-block-file__button { background: var(--navy); color: #fff; border-radius: 8px; padding: 8px 18px; text-decoration: none; font-weight: 700; }
.entry-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.pagination { margin-top: 40px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1.5px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 700; padding: 0 10px; }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.subhead { font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--navy); margin: 0 0 20px; }
.subhead--spaced { margin-top: 64px; }

/* ---------- Members: login ---------- */
.pw-wrap { background: var(--bg-soft); padding: 72px 24px 96px; }
.pw-card { max-width: 440px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: 0 2px 12px rgba(20,40,80,.08); padding: 48px 40px; }
.pw-card__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.pw-card__title { margin: 0; text-align: center; font-family: var(--font-head); font-weight: 900; font-size: 26px; color: var(--navy); }
.pw-card__lead { margin: 8px 0 28px; text-align: center; font-size: 14px; color: #4A5565; }
.pw-card__error { background: #FDECEC; color: #9B1C1C; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.pw-card form { display: flex; flex-direction: column; gap: 8px; }
.pw-card label { font-size: 14px; font-weight: 700; }
.pw-card input[type="password"] { font: inherit; font-size: 16px; padding: 14px 16px; border: 1.5px solid #B7C3D6; border-radius: 10px; width: 100%; }
.pw-card input[type="password"]:focus { outline: 3px solid rgba(30,58,110,.25); border-color: var(--navy); }
.pw-card button { margin-top: 16px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; font-size: 16px; padding: 14px; border: none; border-radius: 999px; cursor: pointer; }
.pw-card button:hover { background: var(--navy-dark); }
.pw-card__help { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 500px) { .pw-card { padding: 36px 24px; } }

/* ---------- Members: documents ---------- */
.members-hero { background: var(--navy); color: #fff; padding: 44px 0; }
.members-hero__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; background: var(--accent); color: var(--navy); padding: 4px 14px; border-radius: 999px; }
.members-hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.members-hero__logout { color: #fff; border: 1.5px solid #fff; border-radius: 999px; padding: 9px 20px; font-weight: 700; font-size: 14px; text-decoration: none; }
.members-hero__logout:hover { background: rgba(255,255,255,.12); color: #fff; }
.members-body { background: var(--bg-soft); padding: 48px 0 88px; }
.members-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.members-side { flex: 1 1 240px; background: #fff; border-radius: 16px; padding: 24px; }
.members-side h2 { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.doc-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.doc-cats a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 15px; }
.doc-cats a:hover { background: var(--bg-soft); }
.doc-cats a.is-current { background: var(--navy); color: #fff; }
.doc-cats small { font-size: 12px; opacity: .8; }
.members-side__note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.members-main { flex: 999 1 560px; min-width: 0; }
.members-main__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.members-main__head h2 { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: 26px; color: var(--navy); }
.year-filter { display: flex; align-items: center; gap: 8px; }
.year-filter label { font-size: 14px; font-weight: 700; }
.year-filter select { font: inherit; font-size: 14px; padding: 9px 14px; border: 1.5px solid #B7C3D6; border-radius: 8px; background: #fff; min-height: 44px; }
.doc-list { background: #fff; border-radius: 16px; overflow: hidden; list-style: none; margin: 0; padding: 0; }
.doc-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.doc-item:last-child { border-bottom: none; }
.doc-badge { flex: none; width: 52px; text-align: center; font-size: 12px; font-weight: 700; color: #fff; padding: 6px 0; border-radius: 6px; background: var(--navy); }
.doc-badge--pdf { background: #B5560A; }
.doc-badge--xls { background: #2F6B45; }
.doc-badge--doc { background: var(--navy); }
.doc-badge--other { background: #5A6575; }
.doc-item__body { flex: 1 1 280px; min-width: 0; }
.doc-item__title { font-size: 16px; font-weight: 700; }
.doc-item__meta { font-size: 13px; color: var(--muted); }
.doc-item__note { font-size: 14px; color: #4A5565; margin-top: 4px; }
.doc-dl { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--navy); border: 1.5px solid var(--navy); padding: 9px 18px; border-radius: 8px; text-decoration: none; min-height: 44px; }
.doc-dl:hover { background: var(--navy-soft); }
.doc-empty { padding: 48px 24px; text-align: center; color: var(--muted); background: #fff; border-radius: 16px; }
.notice-box { max-width: 640px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 32px; border-left: 0; box-shadow: 0 1px 3px rgba(20,40,80,.08); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #C3CEE0; padding: 56px 0 32px; }
.site-footer a { color: #C3CEE0; }
.site-footer a:hover { color: #fff; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer__org { flex: 1 1 320px; }
.site-footer__name { font-family: var(--font-head); font-weight: 900; font-size: 22px; color: #fff; }
.site-footer__addr { font-size: 14px; margin-top: 12px; line-height: 1.9; font-style: normal; }
.site-footer__links { flex: 1 1 260px; font-size: 14px; }
.site-footer__links h2 { color: #fff; font-weight: 700; font-size: 14px; margin: 0 0 12px; }
.site-footer__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__cta { flex: 0 1 220px; }
.site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2A4070; font-size: 12px; color: #8FA0BC; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }

/* =========================================================
 * v1.1 追加分
 * ======================================================= */

/* ---------- ドロップダウンメニュー ---------- */
.gnav__list > li { position: relative; }
.gnav__list .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.gnav__list .sub-menu { display: none; position: absolute; top: 100%; left: -18px; min-width: 230px; list-style: none; margin: 0; padding: 8px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 24px rgba(20,40,80,.12); z-index: 200; }
.gnav__list li:hover > .sub-menu, .gnav__list li:focus-within > .sub-menu { display: block; }
.gnav__list .sub-menu a { padding: 10px 18px; font-weight: 500; white-space: nowrap; }
.gnav__list .sub-menu a:hover { background: var(--bg-soft); text-decoration: none; }
@media (min-width: 1001px) and (max-width: 1240px) {
	.gnav__list { gap: 4px 16px; }
	.gnav__list a { font-size: 13px; }
	.btn-members, .btn-contact { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 1000px) {
	.gnav__list .menu-item-has-children > a::after { display: none; }
	.gnav__list .sub-menu { display: block; position: static; border: none; box-shadow: none; border-radius: 0; padding: 0 0 0 16px; min-width: 0; }
	.gnav__list .sub-menu a { padding: 12px 0; font-size: 15px; white-space: normal; }
}

/* ---------- 大会速報 ---------- */
.live-bar { background: #9B1C1C; color: #fff; }
.live-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; font-size: 14px; }
.live-bar__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; background: #fff; color: #9B1C1C; padding: 3px 12px; border-radius: 999px; }
.live-bar a { color: #fff; font-weight: 700; }
.live-bar a:hover { color: #FFE4E4; }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #E02424; box-shadow: 0 0 0 0 rgba(224,36,36,.6); animation: kgym-pulse 1.6s infinite; vertical-align: middle; }
@keyframes kgym-pulse { 0% { box-shadow: 0 0 0 0 rgba(224,36,36,.6); } 70% { box-shadow: 0 0 0 10px rgba(224,36,36,0); } 100% { box-shadow: 0 0 0 0 rgba(224,36,36,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.event-card__name a { color: inherit; text-decoration: none; }
.event-card__name a:hover { text-decoration: underline; }
.event-card__actions .is-live { background: #9B1C1C; border-color: #9B1C1C; }
.results-block { background: var(--bg-soft); border-radius: 16px; padding: 28px; margin-bottom: 40px; }
.results-block__title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--navy); }
.results-block__sub { margin: 20px 0 10px; font-size: 15px; color: var(--muted); }
.live-links { display: flex; flex-wrap: wrap; gap: 10px; }
.result-files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.result-files a { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--text); font-weight: 700; min-height: 44px; }
.result-files a:hover { border-color: var(--navy); }

/* ---------- 絞り込みバー ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; background: #fff; border-radius: 16px; padding: 20px 24px; margin-bottom: 32px; box-shadow: 0 1px 3px rgba(20,40,80,.06); }
.filter-bar__item { display: flex; flex-direction: column; gap: 4px; min-width: 160px; flex: 1 1 160px; }
.filter-bar__item label { font-size: 13px; font-weight: 700; color: var(--muted); }
.filter-bar select { font: inherit; font-size: 15px; padding: 10px 14px; border: 1.5px solid #B7C3D6; border-radius: 8px; background: #fff; min-height: 44px; }
.filter-bar__check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; min-height: 44px; }
.filter-bar__check input { width: 18px; height: 18px; }
.filter-bar__count { margin: 0 0 0 auto; font-size: 14px; color: var(--muted); align-self: center; }
.filter-bar__count span { font-size: 22px; font-weight: 700; color: var(--navy); margin-right: 2px; }
.filter-bar__reset { align-self: center; font-size: 14px; }
.results-intro { margin-bottom: 32px; }

/* ---------- 大会結果一覧 ---------- */
.year-head { border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-top: 40px; }
.result-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 16px; overflow: hidden; }
.result-row { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.result-row:last-child { border-bottom: none; }
.result-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.result-row__date { font-size: 14px; color: var(--muted); min-width: 64px; }
.result-row__name { font-weight: 700; font-size: 17px; text-decoration: none; color: var(--text); flex: 1 1 280px; }
.result-row__name:hover { color: var(--navy); text-decoration: underline; }
.result-row__files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none; }
.chip:hover { background: var(--navy); color: #fff; }
.chip--live { background: #FDECEC; color: #9B1C1C; }
.chip--live:hover { background: #9B1C1C; color: #fff; }

/* ---------- はじめての方へ ---------- */
.start-band { background: var(--accent-soft); border-top: 1px solid #F6D9B8; border-bottom: 1px solid #F6D9B8; }
.start-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 48px; padding-bottom: 48px; }
.start-band__title { margin: 4px 0 8px; font-family: var(--font-head); font-weight: 900; font-size: 30px; color: var(--navy); }
.start-band__text { margin: 0; color: #3A4555; max-width: 640px; }
.start-band__btn { padding: 14px 36px; font-size: 16px; }
.club-map { height: 420px; border-radius: 16px; overflow: hidden; margin-bottom: 28px; border: 1px solid var(--line); z-index: 0; }
@media (max-width: 700px) { .club-map { height: 300px; } }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .club-grid { grid-template-columns: 1fr; } }
.club-card { background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(20,40,80,.08); scroll-margin-top: 100px; }
.club-card:target { outline: 3px solid var(--accent); }
.club-card__img { height: 180px; background: var(--navy-soft); }
.club-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.club-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.club-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.badge--area { background: var(--navy); color: #fff; }
.badge--trial { background: #E3F4E8; color: #1F5B34; }
.club-card__name { margin: 0; font-size: 19px; color: var(--navy); }
.club-card__desc { margin: 0; font-size: 14px; color: #4A5565; }
.club-card__info { margin: 0; font-size: 14px; display: grid; gap: 4px; }
.club-card__info div { display: flex; gap: 10px; }
.club-card__info dt { flex: none; width: 56px; color: var(--muted); font-weight: 700; }
.club-card__info dd { margin: 0; }
.club-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.club-card__actions .btn { padding: 10px 20px; font-size: 14px; }
.start-cta { text-align: center; margin-top: 48px; }
.start-cta p { color: #3A4555; }

/* ---------- 協賛企業 ---------- */
.sponsor-strip { background: #fff; border-top: 1px solid var(--line); padding: 48px 0; }
.sponsor-strip__title { margin: 0 0 24px; text-align: center; font-size: 15px; letter-spacing: .1em; color: var(--muted); }
.sponsor-strip__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 36px; }
.sponsor-strip__more { text-align: center; margin: 24px 0 0; font-size: 14px; }
.sponsor-logo { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--text); }
.sponsor-logo img { max-height: 72px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.sponsor-logo--small img { max-height: 48px; max-width: 160px; }
.sponsor-logo__name { font-weight: 700; font-size: 15px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; }
a.sponsor-logo:hover { opacity: .8; }
.sponsor-rank { text-align: center; margin-top: 48px; }
.sponsor-rank:first-child { margin-top: 0; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sponsor-grid--large { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sponsor-grid--large .sponsor-logo img { max-height: 100px; max-width: 240px; }
.sponsor-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sponsor-card__name { font-weight: 700; font-size: 14px; }
.sponsor-card__note { font-size: 13px; color: var(--muted); }
.sponsor-card .sponsor-logo__name { border: none; padding: 0; font-size: 17px; color: var(--navy); }
.sponsor-recruit { margin-top: 64px; }
.sponsor-cta { margin: 64px auto 0; max-width: 860px; background: var(--navy); color: #fff; border-radius: 20px; padding: 40px 32px; text-align: center; }
.sponsor-cta__title { margin: 0 0 8px; font-family: var(--font-head); font-weight: 900; font-size: 26px; }
.sponsor-cta p { color: #D6DEEB; margin: 0 0 24px; }
.sponsor-cta__btn { padding: 14px 36px; font-size: 16px; }

/* =========================================================
 * v1.2 トップページ リニューアル
 * ======================================================= */

/* ---------- 表示アニメーション ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- ヒーロー（全幅） ---------- */
.kv { position: relative; background: var(--navy-dark); }
.kv .kv__frame { border-radius: 0; height: clamp(320px, 52vw, 600px); }
.kv--s .kv__frame { height: clamp(240px, 36vw, 400px); }
.kv--l .kv__frame { height: clamp(380px, 72vh, 760px); }
.kv__slide { overflow: hidden; color: #fff; text-decoration: none; }
.kv__slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); }
.kv__slide.is-active img { animation: kgym-kb 9s ease-out forwards; }
@keyframes kgym-kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.kv__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,20,45,.62) 0%, rgba(10,20,45,0) 45%); pointer-events: none; }
.kv__caption { position: absolute; left: 0; right: 0; bottom: 96px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.kv__label { font-size: 12px; letter-spacing: .3em; font-weight: 700; color: var(--accent); }
.kv__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 4vw, 48px); line-height: 1.3; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.kv__dots { position: absolute; left: 0; right: 0; bottom: 76px; z-index: 3; margin: 0; }
.kv__dots button { background: rgba(255,255,255,.55); }
.kv__dots button[aria-current="true"] { background: #fff; }
@media (prefers-reduced-motion: reduce) { .kv__slide.is-active img { animation: none; transform: none; } }

/* 写真がまだ無いとき */
.kv__empty { position: relative; height: 100%; overflow: hidden; background: var(--navy); display: flex; align-items: flex-end; padding-bottom: 104px; }
.kv__empty::before { content: ""; position: absolute; right: -8%; top: -20%; width: 46%; height: 140%; background: var(--accent); transform: skewX(-18deg); opacity: .95; }
.kv__empty::after { content: ""; position: absolute; right: 30%; top: -20%; width: 6%; height: 140%; background: #fff; transform: skewX(-18deg); opacity: .12; }
.kv__empty .container { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.kv__bigword { font-family: var(--font-head); font-weight: 900; font-size: clamp(56px, 12vw, 168px); line-height: .9; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.55); }
.kv__empty .kv__title { font-size: clamp(22px, 3vw, 36px); }

/* ---------- クイックアクセス ---------- */
.quick { position: relative; z-index: 5; margin-top: -56px; }
.quick__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.quick__tile { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 22px 20px; text-decoration: none; color: var(--navy); box-shadow: 0 10px 30px rgba(15,35,71,.14); transition: transform .25s ease, box-shadow .25s ease; min-height: 92px; }
.quick__tile:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15,35,71,.2); color: var(--navy); }
.quick__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.quick__tile:hover .quick__icon { background: var(--accent); color: var(--navy); }
.quick__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.quick__en { font-size: 11px; letter-spacing: .16em; font-weight: 700; color: var(--accent-text); }
.quick__ja { font-size: 17px; font-weight: 700; line-height: 1.4; }
.quick__arrow { color: #9AA6B8; transition: transform .25s ease; }
.quick__tile:hover .quick__arrow { transform: translateX(4px); color: var(--navy); }
@media (max-width: 900px) { .quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .quick { margin-top: -40px; } .quick__tile { padding: 16px 14px; gap: 10px; min-height: 76px; } .quick__icon { width: 42px; height: 42px; border-radius: 12px; } .quick__ja { font-size: 15px; } .quick__arrow { display: none; } }
@media (max-width: 700px) { .kv__caption { bottom: 72px; } .kv__dots { bottom: 52px; } .kv__empty { padding-bottom: 72px; } }

/* ---------- 次の大会 ---------- */
.next { margin-top: 56px; padding: 0 24px; }
.next .next__inner { max-width: 1152px; }
.next__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; background: var(--navy-dark); color: #fff; border-radius: 24px; padding: 36px 48px; position: relative; overflow: hidden; }
.next__inner::before { content: ""; position: absolute; left: -40px; top: 0; bottom: 0; width: 280px; background: var(--navy); transform: skewX(-14deg); }
.next__count { position: relative; display: flex; flex-direction: column; min-width: 180px; }
.next__en { font-size: 11px; letter-spacing: .24em; font-weight: 700; color: var(--accent); }
.next__days { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-head); }
.next__days b { font-size: 88px; line-height: 1; font-weight: 900; color: #fff; }
.next__days small { font-size: 18px; font-weight: 700; color: #C3CEE0; }
.next__days--today { font-size: 40px; font-weight: 900; color: var(--accent); margin-top: 8px; }
.next__body { position: relative; min-width: 0; }
.next__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: #C3CEE0; }
.next__meta span { display: inline-flex; align-items: center; gap: 6px; }
.next__name { margin: 8px 0 10px; font-family: var(--font-head); font-weight: 900; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; }
.next__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.next__tag { font-size: 12px; font-weight: 700; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 2px 12px; }
.next__btn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--navy-dark); font-weight: 700; text-decoration: none; border-radius: 999px; padding: 16px 28px; white-space: nowrap; transition: transform .2s ease; }
.next__btn:hover { color: var(--navy-dark); transform: translateX(3px); }
@media (max-width: 900px) {
	.next__inner { grid-template-columns: 1fr; padding: 28px 24px; gap: 16px; }
	.next__inner::before { width: 100%; height: 120px; left: 0; transform: none; top: 0; bottom: auto; }
	.next__days b { font-size: 64px; }
	.next__btn { justify-content: center; }
}

/* ---------- お知らせ＋大会（2カラム） ---------- */
.home-split__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.home-split .news-head { align-items: flex-end; margin-bottom: 20px; }
.home-split .news-head .more { padding-bottom: 6px; }
.home-split .news-item a { padding: 18px 4px; }
@media (max-width: 960px) { .home-split__grid { grid-template-columns: 1fr; gap: 56px; } }
.sched { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.sched__item { display: flex; align-items: center; gap: 18px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.sched__item:hover { background: var(--bg-soft); }
.sched__date { flex: none; width: 64px; height: 64px; border-radius: 14px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.sched__m { font-size: 12px; font-weight: 700; color: var(--accent); }
.sched__d { font-family: var(--font-head); font-weight: 900; font-size: 26px; }
.sched__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sched__name { font-weight: 700; font-size: 16px; line-height: 1.5; }
.sched__tag { font-size: 12px; color: var(--muted); }
.home-events__btn { margin-top: 24px; width: 100%; }

/* ---------- 競技紹介（大きな写真カード） ---------- */
.disc-section { background: var(--bg-soft); }
.disc2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .disc2 { grid-template-columns: 1fr; } }
.disc2__card { position: relative; display: block; height: 440px; border-radius: 24px; overflow: hidden; color: #fff; text-decoration: none; background: var(--navy); isolation: isolate; }
.disc2__card--noimg { background: repeating-linear-gradient(-55deg, #1E3A6E 0 22px, #22427A 22px 44px); }
.disc2__card:nth-child(2).disc2__card--noimg { background: repeating-linear-gradient(-55deg, #0F2347 0 22px, #15305C 22px 44px); }
.disc2__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); z-index: -2; }
.disc2__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,20,45,.85) 0%, rgba(10,20,45,.1) 60%); z-index: -1; }
.disc2__card:hover .disc2__img { transform: scale(1.06); }
.disc2__num { position: absolute; top: 20px; right: 28px; font-family: var(--font-head); font-weight: 900; font-size: 96px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.6); }
.disc2__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.disc2__en { font-size: 12px; letter-spacing: .2em; font-weight: 700; color: var(--accent); }
.disc2__name { font-family: var(--font-head); font-weight: 900; font-size: 36px; line-height: 1.2; }
.disc2__text { font-size: 14px; color: #E2E8F2; max-width: 460px; }
@media (max-width: 760px) { .disc2__card { height: 340px; } .disc2__name { font-size: 28px; } .disc2__num { font-size: 72px; } }

/* ---------- 数字で見る ---------- */
.stats { background: var(--navy); color: #fff; padding: 64px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stats__item { border-left: 3px solid var(--accent); padding-left: 20px; display: flex; flex-direction: column; }
.stats__label { font-size: 14px; color: #C3CEE0; font-weight: 700; }
.stats__num { font-family: var(--font-head); font-weight: 900; font-size: 56px; line-height: 1.1; }
.stats__num small { font-size: 18px; margin-left: 4px; color: #C3CEE0; }

/* ---------- はじめての方へ ---------- */
.start2 { background: var(--accent); position: relative; overflow: hidden; }
.start2::before { content: ""; position: absolute; right: -6%; top: -30%; width: 38%; height: 160%; background: #F5A24F; transform: skewX(-18deg); }
.start2__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 72px; padding-bottom: 72px; }
.start2 .section-label { color: var(--navy); }
.start2__title { margin: 6px 0 10px; font-family: var(--font-head); font-weight: 900; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.2; color: var(--navy-dark); }
.start2__text p { margin: 0; color: var(--navy-dark); font-weight: 500; max-width: 560px; }
.start2__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.start2__btn { background: var(--navy-dark); color: #fff; border-color: var(--navy-dark); padding: 18px 36px; font-size: 17px; }
.start2__btn:hover { background: var(--navy); color: #fff; }
.start2__link { color: var(--navy-dark); font-weight: 700; }

/* ---------- 協会について ---------- */
.about__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--navy); color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.5); font-family: var(--font-head); font-weight: 900; font-size: clamp(36px, 5vw, 60px); line-height: 1; text-align: center; }
.link-card--line { border: 1px solid var(--line); }
@media (max-width: 600px) {
	.kv__bigword { font-size: clamp(36px, 11.5vw, 72px); -webkit-text-stroke-width: 1.5px; }
	.kv__label { font-size: 10px; letter-spacing: .18em; }
	.quick__en { display: none; }
	.quick__icon { width: 38px; height: 38px; }
	.quick__ja { font-size: 14px; }
	.quick__tile { min-height: 64px; }
	.next { margin-top: 40px; }
}

/* v1.3 種別（体操・新体操）をシンプルに */
.disc2__card { height: 320px; }
.disc2__body { padding: 28px 32px; gap: 2px; }
.disc2__name { font-size: 44px; letter-spacing: .04em; }
.disc2__go { position: absolute; right: 28px; bottom: 32px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--navy-dark); display: flex; align-items: center; justify-content: center; transition: transform .25s ease; }
.disc2__card:hover .disc2__go { transform: translateX(4px); }
@media (max-width: 760px) { .disc2__card { height: 220px; } .disc2__name { font-size: 34px; } }

/* =========================================================
 * v1.4 成績表（大会結果の表）
 * ======================================================= */
.single-kgym_event .entry { max-width: 1120px; }
.kgym-results-note { font-size: 14px; color: var(--muted); background: var(--bg-soft); border-radius: 10px; padding: 12px 16px; }
.kgym-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.kgym-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--navy); color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.kgym-jump a:hover { background: var(--navy); color: #fff; }
.entry-content h2[id] { scroll-margin-top: 100px; }
.entry-content .kgym-results { margin: 0 0 16px; border-radius: 12px; border: 1px solid var(--line); }
.entry-content .kgym-results table { margin: 0; min-width: 760px; font-size: 14px; border-collapse: separate; border-spacing: 0; }
.entry-content .kgym-results th, .entry-content .kgym-results td { border: none; border-bottom: 1px solid var(--line); padding: 10px 12px; white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; }
.entry-content .kgym-results thead th { background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; position: sticky; top: 0; }
.entry-content .kgym-results tbody tr:nth-child(even) td { background: #F8FAFC; }
.entry-content .kgym-results tbody tr:hover td { background: var(--accent-soft); }
.entry-content .kgym-results td:nth-child(2) { text-align: left; font-weight: 700; }
.entry-content .kgym-results td:nth-child(3) { text-align: left; color: #4A5565; font-size: 13px; }
/* 順位・氏名を横スクロール時も固定 */
.entry-content .kgym-results th:nth-child(1), .entry-content .kgym-results td:nth-child(1) { position: sticky; left: 0; z-index: 1; width: 56px; min-width: 56px; }
.entry-content .kgym-results th:nth-child(2), .entry-content .kgym-results td:nth-child(2) { position: sticky; left: 56px; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.entry-content .kgym-results tbody td:nth-child(1), .entry-content .kgym-results tbody td:nth-child(2) { background: #fff; }
.entry-content .kgym-results tbody tr:nth-child(even) td:nth-child(1), .entry-content .kgym-results tbody tr:nth-child(even) td:nth-child(2) { background: #F8FAFC; }
.entry-content .kgym-results thead th:nth-child(1), .entry-content .kgym-results thead th:nth-child(2) { z-index: 2; }
.entry-content .kgym-results sub { font-size: 11px; color: var(--muted); margin-left: 3px; vertical-align: 0; font-weight: 500; }
.entry-content .kgym-results td strong { color: var(--accent-text); }
.entry-content .kgym-results td:nth-child(1) strong { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--navy-dark); }
.entry-content .kgym-results tbody tr:first-child td:nth-child(1) strong { background: #E0A800; }
@media (max-width: 700px) { .entry-content .kgym-results table { font-size: 13px; } .entry-content .kgym-results th, .entry-content .kgym-results td { padding: 8px 10px; } }

/* =========================================================
 * v1.5 大会・行事一覧（年度タブ × 種別 × 大会規模）
 * ======================================================= */
.fy-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 20px; scrollbar-width: thin; }
.fy-tabs__tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--navy); font-weight: 700; font-size: 16px; text-decoration: none; transition: border-color .2s, background .2s; }
.fy-tabs__tab:hover { border-color: var(--navy); }
.fy-tabs__tab.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.fy-tabs__now { font-size: 11px; font-weight: 700; background: var(--accent); color: var(--navy-dark); border-radius: 999px; padding: 2px 8px; }
.ev-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 28px; }
.ev-summary__title { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: 28px; color: var(--navy); }
.ev-summary__count { color: var(--muted); font-weight: 700; }
.ev-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ev-jump a { font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--accent); padding: 4px 2px; }
.ev-disc { background: #fff; border-radius: 20px; padding: 32px 36px 20px; margin-bottom: 28px; box-shadow: 0 1px 3px rgba(20,40,80,.06); scroll-margin-top: 100px; }
.ev-disc__head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; border-bottom: 3px solid var(--navy); margin-bottom: 8px; }
.ev-disc__en { font-size: 12px; letter-spacing: .2em; font-weight: 700; color: var(--accent-text); }
.ev-disc__name { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: 30px; color: var(--navy); }
.ev-scale { padding: 18px 0 8px; }
.ev-scale + .ev-scale { border-top: 1px dashed var(--line); }
.ev-scale__name { margin: 0 0 8px; font-size: 14px; }
.ev-scale__tag { display: inline-block; padding: 4px 14px; border-radius: 6px; font-weight: 700; background: var(--navy-soft); color: var(--navy); }
.ev-scale__tag--shikoku { background: #E3F4E8; color: #1F5B34; }
.ev-scale__tag--national { background: #FCE3CA; color: #8A3F06; }
.ev-scale__tag--international { background: #F3E3F7; color: #6A1F7A; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.ev-row:last-child { border-bottom: none; }
.ev-row__date { display: flex; align-items: baseline; gap: 2px; color: var(--navy); }
.ev-row__date b { font-family: var(--font-head); font-weight: 900; font-size: 22px; }
.ev-row__date small { font-size: 12px; color: var(--muted); }
.ev-row__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-row__name { font-size: 17px; font-weight: 700; color: var(--text); text-decoration: none; line-height: 1.5; }
.ev-row__name:hover { color: var(--navy); text-decoration: underline; }
.ev-row__venue { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.ev-row--done .ev-row__name { color: #4A5565; }
.ev-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.ev-status--live { background: #FDECEC; color: #9B1C1C; }
.ev-status--result { background: var(--navy); color: #fff; }
.ev-status--upcoming { background: #fff; color: var(--accent-text); border: 1.5px solid var(--accent); }
.ev-status--done { background: var(--bg-soft); color: var(--muted); }
@media (max-width: 700px) {
	.ev-disc { padding: 22px 18px 12px; border-radius: 16px; }
	.ev-disc__name { font-size: 24px; }
	.ev-row { grid-template-columns: 64px minmax(0, 1fr); }
	.ev-row__date { flex-direction: column; gap: 0; }
	.ev-row__date b { font-size: 18px; }
	.ev-status { grid-column: 2; justify-self: start; }
	.ev-jump { margin-left: 0; }
}

/* v1.6 大会結果ボード */
.ev-row__files { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.ev-row__files .chip { min-height: 30px; padding: 4px 12px; font-size: 12px; }
.results-intro-wrap { padding-top: 32px; }
