:root {
    --max: 1180px;
    --bg: #ffffff;
    --accent: #7a1f2b;
    --accent-dark: #5c1620;

    /* Hero slider 調整用 */
    --hero-slide-time: 4s;
    --hero-marquee-time: 20s;
}

/* =========================================================
   ベース
========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "BIZ UDPGothic", "BIZ UDゴシック", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
    background: var(--bg);
    color: #222;
    line-height: 1.7;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================================================
   共通レイアウト
========================================================= */

.main-area {
    max-width: var(--max);
    margin: 120px auto 60px;
    padding: 0 12px;
    min-height: 300px;
}

/* ページタイトル共通リセット */
.page-header,
.article-header,
.entry-header,
.page-title {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* WordArt */
.wordart {
    color: #fff;
    -webkit-text-stroke: 1.5px #a85a63;
    text-shadow:
        -1px -1px 0 #a85a63,
        1px -1px 0 #a85a63,
        -1px 1px 0 #a85a63,
        1px 1px 0 #a85a63;
    font-weight: 900;
    letter-spacing: .05em;
    margin: 40px 0 20px;
    display: inline-block;
}

/* 見出し共通 */
.section-title {
    position: relative;
    padding-bottom: .6em;
    margin-bottom: 1.2em;
}

.section-title::after,
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
}

.section-title::before {
    width: 100%;
    height: 1px;
    background: var(--border, #d7dde5);
}

.section-title::after {
    width: 130px;
    height: 3px;
    background: var(--accent, #7a1f2b);
    bottom: -3px;
    border-radius: 2px;
}

/* =========================================================
   ヘッダー（共通）
========================================================= */

.header {
    background: var(--accent);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    max-width: var(--max);
    margin: auto;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.logo {
    height: 40px;
    width: auto;
}

.school {
    font-weight: 900;
    font-size: 20px;
    white-space: nowrap;
}

/* =========================================================
   PCナビゲーション（共通）
========================================================= */

.nav {
    margin-left: auto;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

@media (max-width: 1100px) {
    .nav-menu {
        flex-wrap: wrap;
    }
}

.nav-item {
    position: relative;
}

.menu-link {
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 12px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.menu-link:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, .9);
}

/* submenu（PC） */
.submenu {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #8f2f3b;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    display: none;
    z-index: 999;
}

.submenu a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
}

.submenu a:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.nav-item:hover>.submenu {
    display: block;
}

/* =========================================================
   ハンバーガー（共通）
========================================================= */

.hamburger {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
}

.hamburger:hover {
    background: rgba(255, 255, 255, .10);
}

.hamburger .lines {
    width: 22px;
    height: 14px;
    position: relative;
}

.hamburger .lines span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

.hamburger .lines span:nth-child(1) {
    top: 0;
}

.hamburger .lines span:nth-child(2) {
    top: 6px;
}

.hamburger .lines span:nth-child(3) {
    top: 12px;
}

.hamburger .label {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
        align-items: center;
    }
}

/* =========================================================
   ドロワー（SP 共通）
========================================================= */

.drawer {
    display: none;
    background: var(--accent);
}

.drawer.open {
    display: block;
}

.drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-menu>li {
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.drawer-sub {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, .08);
}

.drawer-sub.open {
    display: block;
}

.drawer-sub a {
    display: block;
    padding: 12px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}

.drawer-sub a:hover {
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
}

/* =========================================================
   トップへ戻る（共通）
========================================================= */

#toTop {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(122, 31, 43, .7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
}

#toTop.show {
    opacity: 1;
    pointer-events: auto;
}

#toTop:hover {
    background: rgba(92, 22, 32, .9);
}

/* =========================================================
   Hero（共通部品）
   1〜4枚目の見え方はバックアップ基準維持
========================================================= */

.hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: var(--headerH, 64px);
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: min(50vh, 460px);
    object-fit: cover;
    object-position: center 55%;
    display: block;
}

.hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .28) 0%,
            rgba(0, 0, 0, .15) 50%,
            rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 2;
}



/* =========================================================
   Hero Slider（追加分）
   ※ 1〜4枚目は触らず、5枚目だけ調整
========================================================= */

.hero-slider {
    position: relative;
}

.hero-track {
    display: flex;
    width: max-content;
    transform: translateX(0);
}

.hero-slide {
    flex: 0 0 100vw;
    width: 100vw;
    min-width: 100vw;
    position: relative;
    overflow: hidden;
}

/* 5枚目専用 */
.hero-slide-marquee {
    height: min(50vh, 460px);
    background: #fff;
    overflow: hidden;
}

.hero-marquee-track {
    display: flex;
    align-items: stretch;
    height: 100%;
    width: max-content;
    transform: translateX(-34vw);
    will-change: transform;
    animation: none;
}

/* 5枚目の各画像枠 */
.hero-marquee-item {
    flex: 0 0 clamp(520px, 68vw, 900px);
    width: clamp(520px, 68vw, 900px);
    min-width: clamp(520px, 68vw, 900px);
    height: 100%;
    overflow: hidden;
}

/* 5枚目の再生 */
.hero-slide-marquee.is-playing .hero-marquee-track {
    animation: heroMarquee 80s linear 1 forwards;
    animation-delay: 0.1s;
}

/* 共通画像 */
.hero-marquee-img {
    display: block;
    width: 100%;
    height: 100%;
}

/* PCでは fill を維持 */
.hero-slide-marquee .hero-marquee-img {
    object-fit: fill;
}

/* 見せ位置 */
.hero-science,
.hero-liberal,
.hero-wellbeing,
.hero-business {
    object-position: center center;
}

@keyframes heroMarquee {
    from {
        transform: translateX(-34vw);
    }

    to {
        transform: translateX(-850vw);
    }
}

/* 小さい画面では歪み防止を優先 */
@media (max-width: 1200px) {
    .hero-marquee-track {
        transform: translateX(-50vw);
        animation: none;
    }

    .hero-marquee-item {
        flex: 0 0 100vw;
        width: 100vw;
        min-width: 100vw;
    }

    .hero-slide-marquee.is-playing .hero-marquee-track {
        animation: heroMarqueeSp 80s linear 1 forwards;
        animation-delay: 0.1s;
    }

    /* ここが重要：小画面では fill をやめる */
    .hero-slide-marquee .hero-marquee-img {
        object-fit: cover;
    }
}

@keyframes heroMarqueeSp {
    from {
        transform: translateX(-50vw);
    }

    to {
        transform: translateX(-1250vw);
    }
}


/* =========================================================
   フッター（共通）
========================================================= */

.site-footer {
    margin-top: 60px;
    background: var(--accent);
    color: #fff;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 12px 18px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    margin-bottom: 18px;
}

.footer-logo {
    width: 42px;
    height: auto;
}

.footer-school {
    margin: 0;
    font-weight: 900;
    letter-spacing: .02em;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 18px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    opacity: .95;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
}

@media (max-width: 1200px) {
    .footer-list {
        flex-wrap: wrap;
        gap: 14px 20px;
    }
}

.footer-list li {
    margin: 0;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 0;
    white-space: nowrap;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-copy {
    opacity: .9;
}

/* =========================================================
   共通部品
========================================================= */

/* テーブル */
.student-table-wrap {
    margin-top: 10px;
}

.student-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--border, #d7dde5);
    border-radius: 16px;
    overflow: hidden;
}

.student-table th,
.student-table td {
    border: 1px solid var(--border, #d7dde5);
    padding: 12px 14px;
    text-align: center;
    font-size: 0.98rem;
}

.student-table thead th {
    font-weight: 700;
    color: var(--accent-dark, #5c1620);
    background: #fff;
}

.student-table tbody th,
.student-table tfoot th {
    text-align: left;
    font-weight: 700;
    color: #222;
    background: #fff;
}

.student-table tfoot td {
    font-weight: 700;
}

.student-note {
    margin: 10px 0 0;
    text-align: right;
    color: #555;
    font-size: 0.92rem;
}

@media (max-width: 640px) {
    .student-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .student-table {
        min-width: 520px;
    }
}

/* 浮くリンク */
a.hover-lift {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #d7dde5;
    background: #fff;
    transition: transform .15s ease, border-color .15s ease;
}

a.hover-lift:hover {
    transform: translateY(-2px);
    border-color: rgba(122, 31, 43, .35);
    text-decoration: none;
}

/* 箇条書き整形 */
.clean-list,
.clean-ol {
    margin: 10px 0 0;
    padding-left: 1.2em;
}

.clean-list li,
.clean-ol li {
    margin: 8px 0;
    line-height: 1.8;
}

/* 年次通信PDFリンク一覧 */
.pdf-grid {
    list-style: none;
    padding: 0;
    margin: 8px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.pdf-grid li {
    margin: 0;
}

/* =========================================================
   home（トップ専用）
========================================================= */

.home .main-area {
    margin-top: 40px;
}

.home .home-section {
    margin: 28px 0;
    border: 1px solid #d9e1e8;
    border-radius: 22px;
    padding: 40px;
    background: #ffffff;
}

.home .home-section.is-alt {
    background: #f7f7f8;
}

.home .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 22px;
}

.home .section-sub {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
}

.home .section-more {
    display: none;
}

.home .card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home .life-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home .card {
    background: #ffffff;
    border: 1px solid #d7dde5;
    border-radius: 16px;
    padding: 20px;
    box-shadow: none;
    transition: transform .15s ease, border-color .15s ease;
}

.home .card:hover {
    transform: translateY(-2px);
    border-color: rgba(122, 31, 43, .35);
}

.home .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    background: rgba(122, 31, 43, .10);
    color: var(--accent);
}

.home .card-title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.home .card-title a {
    color: #222;
    text-decoration: none;
}

.home .card-title a:hover {
    text-decoration: underline;
}

.home .card-text {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.75;
}

.home .news-box {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #d7dde5;
    box-shadow: none;
    overflow: hidden;
}

.home .news-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 16px 18px;
    border-top: 1px solid #e7e7e7;
}

.home .news-item:first-child {
    border-top: 0;
}

.home .news-date {
    font-weight: 800;
    color: #6b7280;
    font-size: 12px;
    white-space: nowrap;
}

.home .news-link {
    color: #222;
    text-decoration: none;
    font-weight: 800;
}


.home .news-link:hover {
    text-decoration: underline;
}

.home .mini-card {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #d7dde5;
    box-shadow: none;
    text-decoration: none;
    color: #222;
    transition: transform .15s ease, border-color .15s ease;
    overflow: hidden;
}

.home .mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(122, 31, 43, .35);
}

.home .mini-title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.home .mini-text {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.75;
}

.home .mini-thumb {
    display: block;
    margin: -20px -20px 14px;
    border-bottom: 1px solid #e7e7e7;
}

.home .mini-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {

    .home .card-grid,
    .home .life-grid {
        grid-template-columns: 1fr;
    }

    .home .section-title {
        font-size: 22px;
    }

    .home .home-section {
        padding: 28px;
    }
}

@media (max-width: 600px) {
    .home .news-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.news-link .news-note {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.92rem;
    color: #555;
}

/* =========================================================
   about（明石南高校について）
========================================================= */

.page-about .page-header {
    margin: 0 0 22px;
}

.page-about .page-title.wordart {
    margin: 40px 0 20px;
}

.page-about .page-title {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 8px;
}

.page-about .about-block {
    margin: 28px 0;
    border: 1px solid #d9e1e8;
    border-radius: 22px;
    padding: 32px;
    background: #fff;
}

.page-about .about-subtitle {
    margin: 18px 0 10px;
    font-size: 16px;
    font-weight: 900;
}

.page-about .about-text p {
    margin: 0 0 12px;
    color: #444;
}

.page-about .about-sign {
    margin-top: 18px;
    text-align: right;
    font-weight: 700;
    color: #555;
}

.page-about .about-figure {
    margin: 14px 0 18px;
}

.page-about .about-img {
    width: 100%;
    max-width: 860px;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 1px solid #e7e7e7;
}

.page-about .about-img.logo-like {
    max-width: 220px;
}

.page-about .about-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.page-about .about-list {
    margin: 0 0 18px;
    padding-left: 1.2em;
}

.page-about .timeline {
    margin: 0;
}

.page-about .tl-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #e7e7e7;
}

.page-about .tl-row:first-child {
    border-top: 0;
}

.page-about .timeline dt {
    font-weight: 900;
    color: #6b7280;
    white-space: nowrap;
}

.page-about .timeline dd {
    margin: 0;
    color: #333;
}

/* アクセス */
.map-link {
    display: block;
    border: 1px solid var(--border, #d7dde5);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.map-link:hover {
    transform: translateY(-2px);
    border-color: rgba(122, 31, 43, .35);
}

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

.figcap {
    margin-top: 10px;
    color: #555;
    font-size: .92rem;
}

.note {
    color: #555;
    font-size: .92rem;
}

.page-about .map-embed {
    width: 100%;
    max-width: 900px;
    height: 450px;
    margin: 16px 0 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

/* 校訓 */
.koun-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 10px;
}

.koun-figure {
    margin: 0;
}

.koun-figure img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border, #d7dde5);
    border-radius: 16px;
}

.koun-text h3 {
    margin: 0 0 6px;
}

.koun-text p {
    margin: 0 0 18px;
    line-height: 1.8;
}

/* 校章 */
.kousyou-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 10px;
}

.kousyou-figure {
    margin: 0;
    text-align: center;
}

.kousyou-figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border, #d7dde5);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.kousyou-text p {
    margin: 0 0 16px;
    line-height: 1.8;
}

/* 校歌 */
.kouka-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.kouka-col {
    line-height: 1.9;
}

/* 在籍生徒数 */
.page-about .student-table th,
.page-about .student-table td {
    padding: 12px 14px;
}

.page-about .student-table thead th {
    text-align: center;
}

.page-about .student-table tbody th,
.page-about .student-table tfoot th {
    text-align: left;
}

.page-about .student-table tbody td,
.page-about .student-table tfoot td {
    text-align: right;
}

.page-about .student-table td:first-child,
.page-about .student-table th:first-child {
    text-align: center;
}

@media (max-width: 960px) {

    .koun-layout,
    .kousyou-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .kouka-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .page-about .about-gallery {
        grid-template-columns: 1fr;
    }

    .page-about .map-embed {
        height: 360px;
    }
}

/* =========================================================
   kouchou（校長あいさつ）
========================================================= */

.principal-message {
    max-width: 900px;
    margin: 40px auto;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 2;
}

.principal-sign {
    margin-top: 60px;
    text-align: right;
}

/* =========================================================
   sinro（進路状況）
========================================================= */

.page-sinro .pdf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 14px;
}

.page-sinro .pdf-card {
    border: 1px solid #d7dde5;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease;
}

.page-sinro .pdf-card:hover {
    transform: translateY(-2px);
    border-color: rgba(122, 31, 43, .35);
}

.page-sinro .pdf-head {
    padding: 14px 16px;
    border-bottom: 1px solid #e7e7e7;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.page-sinro .pdf-view {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f7f7f8;
}

.page-sinro .pdf-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.page-sinro .pdf-foot {
    padding: 12px 16px;
    border-top: 1px solid #e7e7e7;
    display: flex;
    justify-content: flex-end;
}

.page-sinro .pdf-actions a {
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
}

.page-sinro .pdf-actions a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .page-sinro .pdf-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   page-kokusai（国際交流）
========================================================= */

.page-kokusai .about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.page-kokusai .about-gallery .about-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* =========================================================
   page-syougakukin（奨学金）
========================================================= */

.page-syougakukin .syou-table th {
    background: #d9e7f6;
}

.page-syougakukin .syou-no {
    width: 70px;
    text-align: center;
    white-space: nowrap;
}

.page-syougakukin .syou-linklike {
    color: #d35400;
    text-decoration: underline;
    font-weight: 700;
}

/* =========================================================
   page-bukatu（部活動）
========================================================= */

.page-bukatu .club-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.page-bukatu .club-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #d9e1e8;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.page-bukatu .club-card:hover {
    transform: translateY(-2px);
}

.page-bukatu .club-thumb {
    height: 150px;
    overflow: hidden;
    background: #f6f7f9;
    border-bottom: 1px solid #d9e1e8;
}

.page-bukatu .club-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-bukatu .club-name {
    padding: 10px;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 640px) {
    .page-bukatu .club-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-bukatu .club-thumb {
        height: 140px;
    }
}