/* =========================================================
   兵庫県立宝塚東高等学校 ホームページ 共通CSS
   （全ページ共通。recruit ページ向けスタイルを含む）
   ========================================================= */

/* ---------- ベース ---------- */
:root {
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Yu Gothic", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #f7f8fa;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    color: #0a4d8c;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: #e07b39;
}

/* 本文リストのマーカー表示領域（* リセットで消えた左パディングを復元） */
main ol,
main ul {
    padding-left: 1.8em;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 70px 0;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #003366;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.section-subtitle {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #e07b39;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ページ内ナビゲーション（about/等のサイド/ページ内リンク） */
nav[aria-label="ページ内リンク"] {
    background: #f7f8fa;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 30px;
}

nav[aria-label="ページ内リンク"] ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

nav[aria-label="ページ内リンク"] li {
    margin: 0;
}

nav[aria-label="ページ内リンク"] a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #003366;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

nav[aria-label="ページ内リンク"] a:hover {
    background: #003366;
    color: #fff;
}

/* カテゴリ区分の区切り線 */
nav[aria-label="ページ内リンク"] li.section-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: #ccd6e4;
    margin: 8px 0;
}

nav[aria-label="ページ内リンク"] li.section-divider:last-child {
    display: none;
}

/* カテゴリラベル */
nav[aria-label="ページ内リンク"] .nav-category {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
}

/* ---------- スキップリンク ---------- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #003366;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ---------- ヘッダー ---------- */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-title a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #003366;
    text-decoration: none;
}

.site-title img {
    width: 42px;
    height: auto;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

.header-nav a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.header-nav a:hover {
    background-color: #eef4fb;
    color: #003366;
}

/* ---------- ドロップダウンサブメニュー（デスクトップ） ---------- */
.header-nav .has-submenu {
    position: relative;
}

.header-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav .submenu li a {
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
}

.header-nav .submenu li:last-child a {
    border-bottom: none;
}

/* ホバー / フォーカスでサブメニューを展開（デスクトップ） */
.header-nav .has-submenu:hover > .submenu,
.header-nav .has-submenu:focus-within > .submenu {
    display: block;
}

/* ハンバーガーメニュー（モバイル） */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #003366;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ---------- ヒーロー（学校の雰囲気） ---------- */
.hero {
    background: linear-gradient(135deg, #003366 0%, #0a5a9e 60%, #1a7ac4 100%);
    color: #fff;
    padding: 90px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.hero-title {
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-points {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-point {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
/* ヒーロー フォトギャラリー */
.hero-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 12px;
    max-width: 1000px;
    margin: 44px auto 0;
}

.hero-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    background: #0a4d8c;
}

.hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-gallery-item:hover img {
    transform: scale(1.06);
}

.hero-gallery-item--featured {
    grid-column: span 3;
    grid-row: span 3;
}

.hero-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-gallery-item--instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.hero-gallery-item--instagram img {
    object-fit: contain;
    padding: 26px;
}

.hero-gallery-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 20px;
    letter-spacing: 0.03em;
    pointer-events: none;
}

.btn {
    display: inline-block;
    padding: 14px 34px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #e07b39;
    color: #fff;
    box-shadow: 0 4px 12px rgba(224, 123, 57, 0.35);
}

.btn-primary:hover {
    background: #d06a28;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ---------- 学校の雰囲気 ---------- */
.atmosphere {
    background: #fff;
}

.atmosphere-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 17px;
}

.atmosphere-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.atmosphere-card {
    background: #f7f8fa;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    border: 1px solid #e8ecf1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.atmosphere-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.atmosphere-icon {
    font-size: 40px;
    margin-bottom: 14px;
}

.atmosphere-card h3 {
    font-size: 18px;
    color: #003366;
    margin-bottom: 10px;
}

.atmosphere-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* SNS・ブログ連携バナー */
.sns-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 45px;
}

.sns-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.sns-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #0a4d8c;
}

.sns-banner img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sns-banner .sns-label {
    font-size: 13px;
    color: #888;
}

.sns-banner .sns-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* ---------- オープンハイスクール ---------- */
.oh-section {
    background: linear-gradient(135deg, #eef4fb 0%, #fdf3ec 100%);
}

.oh-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.oh-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 26px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    border-top: 5px solid #003366;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.oh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.oh-card .oh-round {
    font-size: 14px;
    font-weight: bold;
    color: #e07b39;
    margin-bottom: 8px;
}

.oh-card h3 {
    font-size: 20px;
    color: #003366;
    margin-bottom: 12px;
}

.oh-card .oh-date {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 6px;
}

.oh-card .oh-content {
    font-size: 14px;
    color: #555;
    margin-top: 6px;
}

.oh-note {
    max-width: 800px;
    margin: 40px auto 0;
    background: #fff;
    border-radius: 10px;
    padding: 24px 28px;
    font-size: 14px;
    color: #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.oh-note ul {
    margin-top: 10px;
    padding-left: 20px;
}

.oh-note li {
    margin-bottom: 6px;
}

/* オープンハイスクール開催状態バッジ（終了 / 申込受付中） */
.oh-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
}

/* 申込受付中バッジ（アクセントカラー） */
.oh-badge--active {
    background: #e07b39;
}

/* 終了バッジ（グレー） */
.oh-badge--closed {
    background: #9aa3af;
}

/* 申込受付中のカード：アクセント色の上線＋強調枠 */
.oh-card--active {
    border-top-color: #e07b39;
    box-shadow: 0 0 0 2px #e07b39, 0 4px 14px rgba(0, 0, 0, 0.07);
}

/* 終了したカード：上線を淡くしカード全体を薄く表示 */
.oh-card--closed {
    border-top-color: #c2c8d0;
    opacity: 0.72;
}

/* ---------- 行事 ---------- */
.event-section {
    background: #fff;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.event-block {
    background: #f7f8fa;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e8ecf1;
}

.event-block h3 {
    font-size: 19px;
    color: #003366;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8ecf1;
}

.year-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.year-links a {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: bold;
    background: #fff;
    border: 1px solid #ccd6e4;
    border-radius: 20px;
    text-decoration: none;
    color: #0a4d8c;
    transition: background-color 0.3s, color 0.3s;
}

.year-links a:hover {
    background: #0a4d8c;
    color: #fff;
}

.event-pdf {
    margin-top: 10px;
}

.event-pdf a {
    display: inline-block;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 22px;
    background: #003366;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.event-pdf a:hover {
    background: #0a4d8c;
    color: #fff;
}

.event-note {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

/* ---------- 部活動 ---------- */
.club-section {
    background: #f7f8fa;
}

.club-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.club-tab {
    display: inline-block;
    padding: 10px 28px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    background: #fff;
    border: 2px solid #ccd6e4;
    color: #0a4d8c;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.club-tab.active {
    background: #003366;
    border-color: #003366;
    color: #fff;
}

.club-group {
    display: none;
}

.club-group.active {
    display: block;
}

.club-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.club-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.club-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.club-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.club-item .club-name {
    display: block;
    padding: 12px 8px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.club-item .club-name:hover {
    color: #0a4d8c;
}

.club-link {
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
}

/* ---------- 進路指導 ---------- */
.career-section {
    background: #fff;
}

.career-intro {
    max-width: 800px;
    margin: 0 auto 36px;
    text-align: center;
}

.career-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    gap: 24px;
}

.career-card {
    background: #f7f8fa;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    border: 1px solid #e8ecf1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.career-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.career-card h3 {
    font-size: 17px;
    color: #003366;
    margin-bottom: 14px;
}

.career-card a {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #ccd6e4;
    border-radius: 20px;
    text-decoration: none;
    color: #0a4d8c;
    transition: background-color 0.3s, color 0.3s;
}

.career-card a:hover {
    background: #0a4d8c;
    color: #fff;
}

/* ---------- 総合健康類型 ---------- */
.health-section {
    background: linear-gradient(135deg, #e8f5ee 0%, #f0f9f5 100%);
}

.health-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.health-text h3 {
    font-size: 22px;
    color: #1a6b4a;
    margin-bottom: 14px;
}

.health-text p {
    font-size: 15px;
    margin-bottom: 16px;
}

.health-text ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.health-text li {
    font-size: 14px;
    margin-bottom: 6px;
}

.health-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.health-links a {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #8fc9ad;
    border-radius: 20px;
    text-decoration: none;
    color: #1a6b4a;
    transition: background-color 0.3s, color 0.3s;
}

.health-links a:hover {
    background: #1a6b4a;
    color: #fff;
}

.health-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.health-badge {
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 14px;
}

.health-badge .badge-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.health-badge h4 {
    font-size: 16px;
    color: #1a6b4a;
    margin-bottom: 2px;
}

.health-badge p {
    font-size: 13px;
    color: #555;
}

/* ---------- FAQ ---------- */
.faq-section {
    background: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    background: #f7f8fa;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #003366;
    background: #fff;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background: #eef4fb;
}

.faq-q-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #003366;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.faq-toggle {
    margin-left: auto;
    font-size: 20px;
    color: #0a4d8c;
    transition: transform 0.3s;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 4px 20px 18px 60px;
    font-size: 15px;
    color: #444;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-a-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e07b39;
    color: #fff;
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
}
/* =========================================================
   学校の理念セクション（about/index.html）
   ========================================================= */

.policy-section {
    margin-top: 40px;
}

.school-motto {
    text-align: center;
    margin: 40px 0;
}

.school-motto h3 {
    font-size: 20px;
    color: #003366;
    margin-bottom: 10px;
}

.school-motto .motto-text {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: #e07b39;
    margin: 10px 0;
}

.school-motto .motto-sub {
    font-size: 15px;
    color: #555;
}

.school-motto img {
    max-width: 120px;
    height: auto;
}

/* 教育目標のリスト */
.policy-section ul {
    padding-left: 24px;
    margin-top: 10px;
}

.policy-section li {
    margin-bottom: 8px;
}

/* ---------- セクション間区切り ---------- */

/* コンテンツ内セクション間の区切り */
.container > section:not(.recruit-banner) + section {
    border-top: 2px solid #e8ecf1;
    margin-top: 40px;
    padding-top: 30px;
}

/* モバイル用セクション間隔 */
@media screen and (max-width: 767px) {
    .container > section + section {
        margin-top: 24px;
        padding-top: 20px;
    }
}

/* セクション見出し */
.container > section h2 {
    font-size: 24px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 16px;
    padding-bottom: 8px;
    position: relative;
}

/* セクション見出し装飾 */
.container > section:not(.hero):not(.recruit-banner) h2:not(.section-title)::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #e07b39;
}

/* 学校の理念セクションの特別スタイリング */
#philosophy {
    background: #fff;
    padding: 40px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

/* 校章セクション */
#koushou img[style*="float"] {
    margin: 0 14px 20px 0;
    float: left;
    max-width: 120px;
    height: auto;
}

#koushou p {
    margin-left: 0;
    margin-top: 0;
}

/* モバイル用校章セクション */
@media screen and (max-width: 767px) {
    #koushou img[style*="float"] {
        float: none;
        margin: 0 auto 16px;
        display: block;
        max-width: 100px;
    }
}

/* 校訓セクション(.school-motto は「学校の理念」ブロックで定義済み) */

/* ---------- 折り畳み（details/summary） ---------- */

.acc {
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: #fff;
    margin-top: 14px;
    overflow: hidden;
}

.acc summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #003366;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

/* Chrome/Safari のデフォルト矢印を非表示 */
.acc summary::-webkit-details-marker {
    display: none;
}

/* Firefox のデフォルトマーカーも非表示 */
.acc summary::marker,
.acc[open] summary::marker {
    content: '';
}

.acc summary:hover {
    background: #eef4fb;
}

.acc summary::after {
    content: '+';
    margin-left: auto;
    font-size: 20px;
    color: #0a4d8c;
    flex-shrink: 0;
}

.acc[open] summary::after {
    content: '−';
}

.acc-body {
    padding: 4px 20px 18px 20px;
    font-size: 15px;
    color: #444;
    border-top: 1px solid #eef2f7;
}

/* ---------- recruit/へのバナー ---------- */

.recruit-banner {
    background: linear-gradient(135deg,#003366,#0a5a9e);
    color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

/* recruit-banner 内のテキストは必ず白で表示 */
/* （.container > section h2 の指定より詳細度を上げて !important を回避） */
.recruit-banner,
.recruit-banner p,
.recruit-banner span {
    color: #fff;
}

.container .recruit-banner h2 {
    color: #fff;
}

.recruit-banner h2 {
    margin-bottom: 1rem;
}

.recruit-banner p {
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.recruit-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.recruit-points a {
    color: inherit;
    text-decoration: none;
}

.recruit-points span {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

.recruit-button {
    display: inline-block;
    background: #e07b39;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
}

.recruit-button:hover {
    background: #d06a28;
    color: #fff;
}

/* ---------- ブログ（RSS） ---------- */
.blog-section {
    background: #f7f8fa;
}

#rss .rss-grid {
    display: grid;
    grid-template-columns: 1fr; /* モバイル（〜767px）：1列 */
    gap: 20px;
    width: 100%;
}

/* タブレット（768px〜1199px）：2列 */
@media screen and (min-width: 768px) {
    #rss .rss-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* デスクトップ（1200px以上）：3列 */
@media screen and (min-width: 1200px) {
    #rss .rss-grid {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }
}

#rss .rss-item {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

#rss .rss-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#rss .rss-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #eef0f3;
}

#rss .rss-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#rss .rss-content {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#rss .rss-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

#rss .rss-title {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
}

#rss .rss-title a {
    color: #0a4d8c;
    text-decoration: none;
}

#rss .rss-title a:hover {
    color: #e07b39;
    text-decoration: underline;
}

.blog-more {
    text-align: center;
    margin-top: 34px;
}

.blog-more a {
    display: inline-block;
    font-size: 15px;
    font-weight: bold;
    padding: 12px 30px;
    background: #fff;
    border: 2px solid #0a4d8c;
    border-radius: 30px;
    color: #0a4d8c;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.blog-more a:hover {
    background: #0a4d8c;
    color: #fff;
}

/* ---------- アクセス・問い合わせ ---------- */
.access-section {
    background: #fff;
}

.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.access-info h3 {
    font-size: 18px;
    color: #003366;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8ecf1;
}

.access-info table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.access-info th,
.access-info td {
    padding: 12px 10px;
    border-bottom: 1px solid #e8ecf1;
    text-align: left;
    vertical-align: top;
}

.access-info th {
    width: 34%;
    color: #555;
    font-weight: normal;
    white-space: nowrap;
}

.access-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    background: #f0f2f5;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8ecf1;
}

.access-map a {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: #0a4d8c;
    padding: 30px;
    text-decoration: none;
}

/* ---------- フッター ---------- */
.footer {
    background: #003366;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer p,
.footer li {
    font-size: 14px;
    line-height: 1.7;
}

.footer ul {
    list-style: none;
}

.footer a {
    color: #cfe0f5;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-qr {
    display: flex;
    gap: 16px;
    margin-top: 14px;
}

.footer-qr a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.footer-qr img {
    border-radius: 4px;
    background: #fff;
    padding: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   レスポンシブ対応
   ========================================================= */

/* タブレット（768px〜1023px） */
@media screen and (max-width: 1023px) {
    .section {
        padding: 55px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .hero {
        padding: 70px 0 80px;
    }

    .hero-title {
        font-size: 34px;
    }
    .hero-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }

    .hero-gallery-item--featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .atmosphere-cards,
    .oh-cards,
    .career-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .club-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sns-banners {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* スマートフォン（〜767px） */
@media screen and (max-width: 767px) {
    :root {
        --header-height: 60px;
    }

    html {
        scroll-padding-top: var(--header-height);
    }

    body {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 45px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }

    /* ヘッダー */
    .header-inner {
        height: var(--header-height);
    }

    .site-title a {
        font-size: 16px;
    }

    .site-title img {
        width: 36px;
    }

    .menu-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .header-nav.open {
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .header-nav ul {
        flex-direction: column;
        padding: 10px 16px 20px;
    }

    .header-nav a {
        padding: 12px 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* モバイル：ドロップダウンは廃止し、サブメニューをフラットに常時表示 */
    .header-nav .submenu {
        display: block;
        position: static;
        min-width: 0;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.05);
        margin: 0;
    }

    .header-nav .submenu li a {
        padding-left: 2em;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .header-nav .submenu li a::before {
        content: '・ ';
    }

    /* ヒーロー */
    .hero {
        padding: 55px 0 65px;
    }

    .hero-title {
        font-size: 27px;
        letter-spacing: 0.04em;
    }

    .hero-sub {
        font-size: 15px;
    }

    .hero-points {
        gap: 10px;
    }

    .hero-point {
        font-size: 13px;
        padding: 7px 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* ヒーロー フォトギャラリー（モバイル） */
    .hero-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 110px;
        gap: 8px;
        margin-top: 34px;
    }

    .hero-gallery-item--featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .hero-gallery-item--instagram img {
        padding: 18px;
    }

    .hero-gallery-label {
        left: 8px;
        bottom: 8px;
        padding: 3px 10px;
        font-size: 11px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    /* カード系 */
    .atmosphere-cards,
    .oh-cards,
    .career-cards {
        grid-template-columns: 1fr;
    }

    .club-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .club-item img {
        height: 100px;
    }

    .club-item .club-name {
        font-size: 13px;
        padding: 10px 6px;
    }

    .club-tabs {
        gap: 8px;
    }

    .club-tab {
        padding: 8px 20px;
        font-size: 14px;
    }

    .event-grid,
    .health-layout,
    .access-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .event-block {
        padding: 22px;
    }

    .faq-question {
        font-size: 15px;
        padding: 14px 14px;
    }

    .faq-answer {
        padding: 4px 16px 16px 46px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }
}

/* フォーカス可視性 */
a:focus,
button:focus {
    outline: 3px solid #e07b39;
    outline-offset: 2px;
}

/* アニメーション軽減 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- 汎用余白・強調クラス ---------- */
.p-margin {          /* 段落・リストの共通余白 */
    margin: 20px 0;
}
.mt40 {              /* 区切り前の余白 */
    margin-top: 40px;
}
.list-lined {        /* 行間を広めに取るリスト */
    margin: 20px 0;
    line-height: 1.5em;
}
.alarm-time {        /* 時刻・数字の強調 */
    color: #0a4d8c;
    font-weight: bold;
}
.alarm-area {        /* 地域名の強調 */
    color: #c0392b;
}
.revision {          /* 改訂日（右寄せ・青太字） */
    text-align: right;
    color: #0a4d8c;
    font-weight: bold;
}
.note-muted {        /* 補足注記（小さめ・グレー） */
    margin: 20px 0;
    font-size: 14px;
    color: #555;
}

/* ---------- アクセスページ: Googleマップ埋め込み ---------- */
.access-flex {       /* アクセス手順（左）と地図（右）の2カラム */
    display: flex;
    gap: 24px;
    align-items: stretch; /* 地図の高さをテキスト列に合わせる */
    margin: 20px 0;
}
.access-info {       /* 左側のアクセス手順テキスト */
    flex: 1 1 35%;
}
.gmap-wrap {         /* 地図コンテナ（テキストの高さに追従） */
    flex: 1 1 65%;
    position: relative;
    width: 100%;
    min-height: 420px;
    border: 1px solid #ccc;
}
.gmap-wrap iframe {  /* 地図をコンテナいっぱいに表示 */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
@media (max-width: 768px) {
    .access-flex {   /* 狭い画面では縦に積む（テキスト→地図） */
        flex-direction: column;
    }
    .access-info {
        margin: 0 0 10px !important;
    }
    .gmap-wrap {     /* 縦積み時は高さを固定 */
        min-height: 320px;
        height: 320px;
    }
}

/* ---------- アクセスページ: 経路の構造化表示 ---------- */
.access-routes {     /* アクセス手順のルート一覧 */
    list-style: none;
    margin: 0;
    padding: 0;
}
.access-routes li {  /* 1ルート分のカード */
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px solid #d5dde6;
    border-left: 5px solid #0a4d8c;
    border-radius: 4px;
    background: #f7f9fb;
}
.route-station {     /* 出発駅名 */
    display: block;
    font-weight: bold;
    color: #0a4d8c;
    margin: 0 0 8px;
    padding: 8px 12px;
    background: #e8eef6;
    border-left: 6px solid #0a4d8c;
    border-radius: 4px;
    font-size: 1.05em;
}
.route-group {       /* 駅ごとのグループ */
    margin: 0 0 18px;
}
.badge {             /* 交通手段ラベル（徒歩・バス・タクシー） */
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    padding: 1px 8px;
    margin-right: 4px;
    border-radius: 10px;
    vertical-align: 1px;
}
.badge-walk  { background: #2e8b57; } /* 徒歩＝緑 */
.badge-bus   { background: #e67e22; } /* バス＝オレンジ */
.route-flow {        /* 経路の流れ */
    display: block;
    margin-top: 6px;
}
.route-step {        /* 経路の1ステップ（改行表示、↓は2行目以降） */
    display: block;
    padding-left: 1.2em;
    text-indent: -1.2em;
}
.route-step + .route-step::before { /* 2ステップ目以降に→を付ける */
    content: "→ ";
    color: #0a4d8c;
    font-weight: bold;
}
.route-time {        /* 時間・距離 */
    font-weight: bold;
    white-space: nowrap;
}

/* ---------- アクセスページ: 周辺地図の折りたたみ ---------- */
.map-details {       /* details要素: クリックで開閉（初期は閉） */
    margin: 30px 0;
}
.map-details summary { /* 開閉ボタン部分 */
    display: inline-block;
    cursor: pointer;
    padding: 10px 24px;
    background: #0a4d8c;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    user-select: none;
    list-style: none;  /* 既定の三角マーカーを消す */
}
.map-details summary::-webkit-details-marker {
    display: none;
}
.map-details summary:hover {
    opacity: 0.85;
}
.map-details summary::before { /* 開閉状態を示す矢印 */
    content: "▶ ";
    font-size: 0.8em;
}
.map-details[open] summary::before {
    content: "▼ ";
}
.map-details[open] summary { /* 開いているときは閉じる操作と分かるよう白抜きに */
    background: #fff;
    color: #0a4d8c;
    border: 2px solid #0a4d8c;
}



