html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.site-logo span,
.footer-logo span {
    color: #d24433;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
    transition: opacity 0.3s;
}

.hamburger:focus-visible {
    outline: 2px solid #0e5791;
    outline-offset: 4px;
    border-radius: 4px;
}

.hamburger-lines {
    width: 30px;
    height: 20px;
    position: relative;
    margin-bottom: 2px;
}

.hamburger-lines span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hamburger-lines span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-lines span:nth-child(3) {
    bottom: 0;
}

.hamburger.is-active .hamburger-lines span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active .hamburger-lines span:nth-child(2) {
    opacity: 0;
    transform: translate(-10px, -50%);
}

.hamburger.is-active .hamburger-lines span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.hamburger-label {
    display: block;
    font-size: 0.65rem;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.05em;
    line-height: 1;
}

.main-navigation>ul {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
}

.main-navigation li {
    position: relative;
    padding: 10px 0;
}

.main-navigation>ul>li:not(:last-child)::after {
    content: "｜";
    position: absolute;
    left: 100%;
    width: 30px;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 0.8rem;
    pointer-events: none;
}

/* 矢印アイコンの追加 */
.has-dropdown>a::after {
    content: " \25bc";
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s;
}

.has-dropdown:hover>a::after,
.has-dropdown:focus-within>a::after {
    content: " \25b2";
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    min-width: 260px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none !important;
    /* 初期状態は非表示 */
    z-index: 100;
    padding: 10px 0;
    flex-direction: column;
    gap: 0 !important;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.dropdown-menu a::after {
    display: none !important;
    /* ドロップダウン内には矢印を表示しない */
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #000;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    display: flex !important;
    /* ホバーまたはフォーカス時のみ表示 */
}

/* Main Visual */
.main-visual {
    margin-bottom: 40px;
}

.mv-inner {
    width: 100%;
    height: auto;
    background-color: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.mv-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    animation: fadeInMV 1.5s ease-out forwards;
}

.mv-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;
    z-index: 10;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.7), 0 2px 10px rgba(0, 0, 0, 0.9);
}

.mv-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    font-feature-settings: "palt";
    opacity: 0;
    animation: fadeInUpMV 1s ease-out 0.8s forwards;
    line-height: 1.2;
}

.mv-sub {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0;
    animation: fadeInUpMV 1s ease-out 1.2s forwards;
}

@keyframes fadeInUpMV {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInMV {
    from {
        opacity: 0;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .mv-inner {
        height: auto;
    }

    .mv-title {
        font-size: 2.2rem;
        margin-bottom: 5px;
    }

    .mv-sub {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.section-title .en {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0e5791;
    letter-spacing: -0.02em;
    margin-bottom: 5px;
}

.section-title .jp {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #666;
    letter-spacing: 0.2em;
    position: relative;
    padding: 0 15px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .section-title .en {
        font-size: 3rem;
    }

    .section-title .jp {
        font-size: 0.8rem;
    }
}

/* News */
.news-section {
    padding: 40px 0;
}

.news-list {
    max-width: 1000px;
    margin: 40px auto;
}

.news-item {
    border-bottom: 1px solid #e0e0e0;
}

.news-item:first-child {
    border-top: 1px solid #e0e0e0;
}

.news-item a {
    display: flex;
    align-items: center;
    padding: 20px 0;
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s;
}

.news-item a:hover {
    opacity: 0.7;
}

.news-date {
    color: #333;
    font-size: 0.95rem;
    min-width: 140px;
    font-family: inherit;
    font-weight: normal;
}

.news-category {
    display: inline-block;
    padding: 6px 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 40px;
    margin-left: 10px;
    color: #333;
    background-color: #f2f2f2;
    border-left: 4px solid #d24433;
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
}

.news-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
}

/* Category Colors Override - Map to border-left-color */
.news-category.cat-prefectural-sports {
    border-left-color: #0e5791;
}

.news-category.cat-fukuoka-ekiden {
    border-left-color: #d24433;
}

.news-category.cat-disabled-sports {
    border-left-color: #8e44ad;
}

.news-category.cat-nenrin-sports {
    border-left-color: #27ae60;
}

.news-category.cat-sports-recreation {
    border-left-color: #f39c12;
}

.news-category.cat-news-cat {
    border-left-color: #666;
}

@media (max-width: 768px) {
    .news-item a {
        flex-wrap: wrap;
        padding: 12px 0;
        align-items: center;
    }

    .news-date {
        min-width: auto;
        margin-right: 10px;
        margin-bottom: 8px;
        font-size: 0.85rem;
    }

    .news-category {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 8px;
        width: auto;
        min-width: 120px;
        text-align: center;
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .news-title {
        flex: 0 0 100%;
        display: block;
        width: 100%;
        white-space: normal;
        line-height: 1.5;
        font-size: 0.95rem;
        margin-top: 8px;
    }
}

.view-more {
    text-align: right;
    margin-top: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.85rem;
}

/* Event Grid */
.events-section {
    padding: 60px 0;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.event-image {
    background-color: #f8f8f8;
    width: 100%;
    aspect-ratio: 3 / 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 5;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    border: 1.5px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.status-badge.is-entry {
    background-color: rgba(210, 68, 51, 0.9);
    overflow: hidden;
}

.status-badge.is-entry::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    animation: badgeShimmer 3s infinite;
}

@keyframes badgeShimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}


.event-title {
    padding: 20px 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.event-card:hover .event-title {
    color: #0e5791;
}

/* Banners */
.banner-section {
    padding: 0 0 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.banner-item {
    background-color: #0e5791;
    border: 2px solid #0e5791;
    padding: 25px;
    text-align: center;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(14, 87, 145, 0.1);
}

.banner-item a {
    color: #fff;
    display: block;
}

.banner-text {
    display: block;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.banner-en {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.15em;
}

.banner-item:hover {
    background-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(14, 87, 145, 0.2);
}

.banner-item:hover .banner-text {
    color: #0e5791;
}

.banner-item:hover .banner-en {
    color: #0e5791;
}

/* Footer */
.site-footer {
    background-color: #051622;
    /* Deep Midnight Blue */
    color: #fff;
    padding: 60px 0 40px;
    margin-top: 80px;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.site-footer a:hover {
    opacity: 0.7;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    gap: 40px;
}

.footer-col {
    flex: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-image {
    width: 100%;
    height: 150px;
    background-image: url('../images/footer.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.footer-info address {
    font-style: normal;
    font-size: 0.85rem;
    line-height: 2;
}

.footer-nav-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-sub-menu,
.footer-main-menu {
    list-style: none;
    padding: 0;
}

.footer-sub-menu li,
.footer-main-menu li {
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-sub-menu li {
    padding-left: 0;
}

.footer-sub-menu li a::before {
    content: "└ ";
    margin-right: 5px;
    font-family: inherit;
    color: #ccc;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #ccc;
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 0;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        z-index: 90;
        transition: right 0.3s ease;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .main-navigation li::after {
        display: none !important;
    }

    .main-navigation.is-active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .main-navigation ul li a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }

    /* Dropdown on mobile */
    .main-navigation ul li.has-dropdown>ul {
        display: block;
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0 0 15px 20px;
        background: none;
        border-bottom: none;
    }

    .main-navigation ul li.has-dropdown>ul li {
        border-bottom: none;
    }

    .main-navigation ul li.has-dropdown>ul li a {
        padding: 8px 0;
        font-size: 0.95rem;
    }

    .main-navigation ul li.has-dropdown::after {
        display: none;
        /* Hide arrow on mobile as we show all items */
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Page Header */
.page-header {
    background-color: #0e5791;
    padding: 100px 0 80px;
    text-align: center;
    margin-bottom: 0;
    border-bottom: none;
}

.page-header h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.page-header h1 .en {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    white-space: nowrap;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;
}

.page-header h1 .jp {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.2em;
    position: relative;
    padding: 0 20px;
}

/* モバイル対応 */
@media (max-width: 1000px) {
    .page-header h1 .en {
        font-size: clamp(2rem, 7vw, 4.5rem);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
}

@media (max-width: 600px) {
    .page-header h1 .en {
        font-size: clamp(1.6rem, 10vw, 2.5rem);
    }

    .page-header h1 .jp {
        font-size: 0.9rem;
    }
}

/* 大会ページ専用ヘッダー */
.page-header.tournament-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #FFF;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .page-header.tournament-header h1 {
        font-size: 1.5rem;
    }
}

/* Breadcrumb */
.breadcrumb {
    background-color: #fff;
    padding: 15px 0;
    font-size: 0.8rem;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 40px;
}

.breadcrumb a {
    color: #333;
    text-decoration: underline;
}

.breadcrumb span {
    font-weight: bold;
    color: #000;
}

/* Category Nav */
.category-nav {
    max-width: 1000px;
    margin: 0 auto 40px;
    position: relative;
}

.category-nav ul {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    /* 1行表示に固定 */
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
    /* Firefox */
}

.category-nav ul::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-nav li {
    font-size: 0.9rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.category-nav li a {
    display: flex;
    align-items: center;
    /* ドットを上下中央に */
    gap: 8px;
    transition: color 0.3s;
    text-align: left;
    line-height: 1.4;
    white-space: nowrap;
    min-height: 2.8em;
    /* 2行分の高さを確保して垂直位置を揃える */
}

.category-nav li a span {
    display: block;
}

.category-nav li a br {
    display: block;
}

.category-nav li a::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #666;
    /* Default */
    flex-shrink: 0;
    /* margin-topを削除してcenter揃えに任せる */
}

/* Category Nav Dot Colors */
.category-nav li.nav-all a::before {
    background-color: #666;
}

.category-nav li.cat-nav-news-cat a::before {
    background-color: #666;
}

.category-nav li.cat-nav-prefectural-sports a::before {
    background-color: #0e5791;
}

.category-nav li.cat-nav-fukuoka-ekiden a::before {
    background-color: #d24433;
}

.category-nav li.cat-nav-disabled-sports a::before {
    background-color: #8e44ad;
}

.category-nav li.cat-nav-nenrin-sports a::before {
    background-color: #27ae60;
}

.category-nav li.cat-nav-sports-recreation a::before {
    background-color: #e67e22;
}

.category-nav li:not(:last-child)::after {
    content: "";
    display: block;
    width: 1px;
    height: 2.4em;
    /* 2行分の高さに調整 */
    background-color: #ccc;
    margin-left: 15px;
    align-self: center;
    /* 親のliの中で中央配置 */
}

/* Category nav for all screens */
.category-nav {
    /* 基本設定は上部に移動済み */
}

.category-nav::after {
    content: "＞";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #999;
    font-weight: bold;
    pointer-events: none;
    background: linear-gradient(to left, #fff 60%, rgba(255, 255, 255, 0));
    padding-left: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    /* 初期は非表示 */
    transition: opacity 0.3s ease;
}

/* スクロール可能な場合のみ表示 */
.category-nav.is-scrollable::after {
    opacity: 1;
}

@media (max-width: 1040px) {
    .category-nav {
        margin-right: -20px;
        padding-right: 40px;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .category-nav {
        /* モバイル固有の追加設定があればここに記述 */
    }
}

.category-nav li.current a {
    font-weight: bold;
    color: #000;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    padding: 5px 12px;
    border: 1px solid #ddd;
    color: #333;
}

.pagination .page-numbers.current {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* Single Page */
.news-detail {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.entry-header {
    margin-bottom: 40px;
    text-align: center;
}

.entry-meta {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.entry-meta .news-category {
    margin-bottom: 15px;
}

.entry-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.entry-date {
    font-size: 0.9rem;
    color: #666;
    text-align: right;
    display: block;
}

.entry-content {
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 60px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    margin-bottom: 24px;
    height: auto;
    max-width: 100%;
}

.entry-content figure {
    margin-bottom: 30px;
}

.entry-content .wp-block-button,
.entry-content .wp-block-buttons {
    margin-bottom: 24px;
}



.back-to-list {
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 12px 50px;
    background-color: #0e5791;
    color: #fff;
    border: 1px solid #0e5791;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-back:hover {
    background-color: #ffffff;
    color: #0e5791;
}

/* FAQ Accordion (Boxed Layout) */
.faq-list {
    max-width: 900px;
    margin: 40px auto 80px;
}

.faq-item {
    margin-bottom: 30px;
    background-color: #fff;
}


/* Privacy Policy Page */
.privacy-container {
    max-width: 900px;
    margin: 40px auto 80px;
    background-color: #fff;
    padding: 20px 0;
}

.privacy-section {
    margin-bottom: 50px;
}

.privacy-section h2,
.privacy-container h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #0e5791;
    padding-bottom: 12px;
    font-weight: bold;
}

.privacy-section p {
    line-height: 1.8;
}

.privacy-section ul,
.terms-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.privacy-section ul li,
.terms-section ul li {
    position: relative;
    padding-left: 1.5rem;
}

.privacy-section ul li::before,
.terms-section ul li::before {
    content: "・";
    position: absolute;
    left: 0;
}

/* Facilities Page */
.facilities-page {
    padding-bottom: 80px;
}

.area-filter {
    margin: 60px 0 80px;
    background-color: #f3f3f3;
    padding: 30px;
    border-radius: 16px;
}

.area-filter ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.area-filter a {
    display: inline-block;
    padding: 14px 35px;
    background-color: #fff;
    color: #0e5791;
    border: 2px solid #0e5791;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.area-filter a:hover {
    background-color: #0e5791;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 87, 145, 0.3);
}

.area-section {
    margin-top: 100px;
}

.area-section h2 {
    font-size: 1.8rem;
    padding-left: 20px;
    border-left: 6px solid #0e5791;
    margin-bottom: 40px;
    display: block;
    font-weight: 800;
    color: #333;
    letter-spacing: 0.05em;
}

.facility-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.facility-item {
    display: flex;
    gap: 0;
    background-color: #fff;
    border: none;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.facility-photo {
    flex: 0 0 280px;
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #bbb;
    font-size: 0.9rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.facility-photo::before {
    content: "\f03e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 3rem;
    opacity: 0.2;
}

.facility-photo.has-image::before {
    display: none;
}

.facility-photo.has-image {
    background: transparent;
}

.facility-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.facility-info {
    flex: 1;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.facility-name {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #0e5791;
    font-weight: bold;
    line-height: 1.3;
}

.facility-name .en {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: normal;
}

.facility-details {
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row i {
    width: 20px;
    color: #0e5791;
    margin-top: 4px;
    text-align: center;
    font-size: 1.1rem;
}

.detail-content {
    flex: 1;
    line-height: 1.5;
    color: #555;
    font-size: 0.95rem;
}

.map-link {
    display: inline-block;
    margin-left: 15px;
    color: #d32f2f;
    font-weight: bold;
    font-size: 0.85rem;
}

.map-link i {
    color: #d32f2f !important;
    margin-right: 5px;
}

.facility-url a {
    color: #333;
    text-decoration: underline;
    font-weight: 500;
}

.facility-url a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .area-filter {
        padding: 20px 15px;
        margin-bottom: 50px;
    }

    .facility-item {
        flex-direction: column;
        padding: 0;
    }

    .facility-photo {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
        min-height: auto;
    }

    .facility-info {
        padding: 25px;
    }

    .area-filter ul {
        gap: 10px;
    }

    .area-filter li {
        width: calc(50% - 10px);
    }

    .area-filter a {
        display: block;
        padding: 12px 0;
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
    }

    .facility-name {
        font-size: 1.2rem;
        margin-top: 15px;
    }

    .map-link {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Contact Page */
.contact-page {
    background-color: #fff;
    padding: 20px 0 100px;
}

.contact-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 60px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0f0f0;
    border-radius: 16px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.8;
    color: #444;
}

.custom-contact-form {
    width: 100%;
}

.custom-contact-form .form-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
}

.custom-contact-form .form-row-textarea {
    align-items: flex-start;
}

.custom-contact-form .form-label {
    width: 240px;
    flex-shrink: 0;
    padding-right: 20px;
}

.custom-contact-form .form-label label {
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-contact-form .req {
    background-color: #d24433;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: normal;
}

.custom-contact-form .form-input {
    flex-grow: 1;
}

.custom-contact-form input[type="text"],
.custom-contact-form input[type="email"],
.custom-contact-form input[type="tel"],
.custom-contact-form select,
.custom-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-contact-form input:focus,
.custom-contact-form select:focus,
.custom-contact-form textarea:focus {
    outline: none;
    border-color: #0e5791;
    box-shadow: 0 0 0 3px rgba(14, 87, 145, 0.1);
}

.custom-contact-form .form-row-privacy {
    text-align: center;
    margin: 40px 0;
}

.privacy-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.privacy-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.privacy-label a {
    color: #0e5791;
    text-decoration: underline;
}

.form-submit {
    text-align: center;
}

.btn-submit {
    display: inline-block;
    background-color: #0e5791;
    color: #fff;
    padding: 15px 80px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-submit:hover {
    background-color: #0a4675;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.recaptcha-text {
    margin-top: 25px;
    font-size: 0.75rem;
    color: #666;
}

/* Responsive for form */
@media (max-width: 768px) {
    .contact-page {
        padding: 0 0 60px;
    }

    .contact-form-wrapper {
        padding: 30px 15px;
        box-shadow: none;
        border: none;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        width: calc(100% + 30px);
        margin-left: -15px;
        margin-right: -15px;
    }

    .custom-contact-form .form-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 25px;
        width: 100%;
    }

    .custom-contact-form .form-label {
        width: 100%;
        padding-right: 0;
        margin-bottom: 8px;
    }

    .custom-contact-form .form-input {
        width: 100%;
    }

    .custom-contact-form input[type="text"],
    .custom-contact-form input[type="email"],
    .custom-contact-form input[type="tel"],
    .custom-contact-form select,
    .custom-contact-form textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .btn-submit {
        width: 100%;
        padding: 15px 20px;
    }
}

/* お問い合わせ確認画面のボタン調整 */
.custom-contact-form .form-submit p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0;
    width: 100%;
    position: relative;
    /* スピナー絶対配置の基準 */
}

/* スピナーを絶対配置にしてボタンの中央寄せに干渉させない */
.custom-contact-form .form-submit .wpcf7-spinner {
    position: absolute;
    margin: 0;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.custom-contact-form .form-submit input.wpcf7-previous {
    background-color: #757575;
    color: #fff;
}

.custom-contact-form .form-submit input.wpcf7-previous:hover {
    background-color: #777;
}

@media (max-width: 768px) {
    .custom-contact-form .form-submit {
        width: 100% !important;
        max-width: 100% !important;
    }

    .custom-contact-form .form-submit p {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .custom-contact-form .form-submit .wpcf7-spinner {
        right: 20px;
        top: auto;
        bottom: 15px;
        /* 下側の送信ボタンの高さに合わせる */
        transform: none;
    }

    .custom-contact-form .form-submit .btn-submit {
        width: 100%;
        margin: 0;
    }
}

/* Event Page Styles */
.event-content {
    max-width: 1000px;
    margin: 40px auto 80px;
}

@media (max-width: 768px) {
    .event-content {
        margin: 30px auto 50px;
    }
}

.event-detail-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 2px solid #ccc;
}

.event-detail-table th,
.event-detail-table td {
    padding: 25px 30px;
    line-height: 1.8;
    border-bottom: 1px solid #ccc;
}

.event-detail-table tr:last-child th,
.event-detail-table tr:last-child td {
    border-bottom: none;
}

.event-detail-table th {
    background-color: #f8fbfd;
    width: 280px;
    text-align: left;
    font-weight: bold;
    vertical-align: top;
    color: #0e5791;
    border-right: 1px solid #ccc;
}

.event-detail-table td {
    background-color: #fff;
    color: #333;
}

/* List Indent Helper Classes */
.event-list-indent-1 {
    padding-left: 3em;
    text-indent: -3em;
    margin-bottom: 0.5em;
}

.event-list-indent-2 {
    padding-left: 4em;
    text-indent: -1em;
    margin-bottom: 0.5em;
}

.event-list-indent-3 {
    padding-left: 7em;
    text-indent: -3em;
    margin-bottom: 0.5em;
}

.event-list-label {
    color: #0e5791;
    font-weight: bold;
}

.event-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-links li {
    margin-bottom: 10px;
}

.event-links li:last-child {
    margin-bottom: 0;
}

.event-links a {
    color: #0e5791;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.event-links a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.event-gallery-section {
    margin-bottom: 60px;
}

.event-gallery {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.gallery-item {
    flex: 1;
    background-color: #f8f9fa;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-weight: bold;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item::before {
    content: "\f03e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2.5rem;
    opacity: 0.3;
}

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

/* 画像がある場合はプレースホルダーのアイコンを非表示にする */
.gallery-item:has(img)::before {
    display: none;
}

.entry-button-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.btn-entry {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 80px;
    min-height: 90px;
    background-color: #d24433;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 100px;
    box-shadow: 0 8px 25px rgba(210, 68, 51, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    line-height: 1.2;
    position: relative;
    text-align: center;
}

.btn-entry span {
    display: block;
    font-size: 0.8rem;
    font-weight: normal;
    margin-top: 3px;
    opacity: 1;
    letter-spacing: 0;
}

.btn-entry::after {
    content: "\f08e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    transition: transform 0.3s;
}

.btn-entry:hover {
    background-color: #e54d3c;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(210, 68, 51, 0.4);
    color: #fff;
}

.btn-entry:hover::after {
    transform: translateY(-50%) translate(3px, -3px);
}

/* Hide redundant FontAwesome icon from content */
.btn-entry i {
    display: none !important;
}

/* エントリー準備中（グレーアウト） */
.btn-entry.is-preparing {
    background-color: #ccc;
    color: #666;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-entry.is-preparing::after {
    display: none;
}

.btn-entry.is-preparing:hover {
    background-color: #ccc;
    transform: none;
    box-shadow: none;
    color: #777;
}

@media (max-width: 768px) {

    .event-detail-table th,
    .event-detail-table td {
        display: block;
        width: 100%;
    }

    .event-detail-table th {
        border-bottom: 1px solid #ccc;
        border-right: none;
    }

    .event-detail-table tr:last-child th {
        border-bottom: 1px solid #ccc;
    }

    .event-gallery {
        flex-direction: column;
    }

    .gallery-item {
        width: 100%;
    }
}

/* External Link Modal Styles */
.external-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.external-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.external-modal-content {
    position: relative;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    text-align: center;
    max-width: 90%;
    width: 400px;
}

.external-modal-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: bold;
}

.external-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.external-modal-actions button,
.external-modal-actions a {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-family: inherit;
    border: none;
}

.btn-cancel {
    background-color: #eee;
    border: 1px solid #ccc !important;
    color: #333;
}

.btn-cancel:hover {
    background-color: #ddd;
}

.btn-proceed {
    background-color: #333;
    border: 1px solid #333 !important;
    color: #fff;
}

.btn-proceed:hover {
    background-color: #555;
    color: #fff;
}

/* FAQ Page Styles */
.faq-page {
    padding: 0 0 60px 0;
    background-color: #fff;
}

.faq-list {
    max-width: 900px;
    margin: 60px auto 100px;
}

.faq-item {
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    transform: translateY(-3px);
}

.faq-item details {
    background-color: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item details:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.faq-item details[open] {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.faq-item summary {
    display: flex;
    align-items: center;
    padding: 28px 70px 28px 85px;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #333;
    list-style: none;
    outline: none;
    transition: color 0.3s;
}

.faq-item summary:hover {
    color: #0e5791;
}

.faq-item summary::-webkit-details-marker {
    display: none !important;
}

.faq-item summary::marker {
    display: none !important;
    content: "" !important;
}

/* Q Icon */
.faq-item summary::before {
    content: "Q";
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    color: #0e5791;
    line-height: 1;
    z-index: 2;
    text-decoration: none !important;
    opacity: 0.8;
}

/* Arrow Icon (CSS based) */
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 35px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 3px solid #ccc;
    border-bottom: 3px solid #ccc;
    transform: translateY(-70%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item details[open] summary::after {
    transform: translateY(-20%) rotate(-135deg);
    border-color: #0e5791;
}

.faq-answer {
    padding: 0 40px 35px 85px;
    color: #444;
}

.faq-answer-inner {
    position: relative;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
    line-height: 1.8;
}

/* A Icon */
.faq-answer-inner::before {
    content: "A";
    position: absolute;
    left: -60px;
    top: 25px;
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    color: #d24433;
    line-height: 1;
    text-decoration: none !important;
    opacity: 0.8;
}

.faq-answer ul {
    margin-top: 15px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* FAQ Accordion Focus styles for accessibility */
.faq-item summary:focus-visible {
    outline: 3px solid #0e5791;
    outline-offset: -3px;
    background-color: rgba(14, 87, 145, 0.05);
    color: #0e5791;
}

@supports (selector(:has(*))) {
    .faq-item details:has(summary:focus-visible) {
        box-shadow: 0 0 0 4px rgba(14, 87, 145, 0.4), 0 15px 50px rgba(0, 0, 0, 0.12);
        transform: translateY(-3px);
    }

    .faq-item summary:focus-visible {
        outline: none;
        background-color: rgba(14, 87, 145, 0.04);
        color: #0e5791;
    }
}

/* Back to list button */
.btn-back {
    display: inline-block;
    padding: 12px 40px;
    background-color: #0e5791;
    border: 1px solid #0e5791;
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-back:hover {
    background-color: #fff;
    color: #0e5791;
}

@media (max-width: 768px) {
    .faq-item summary {
        font-size: 1rem;
        padding: 20px 45px 20px 55px;
    }

    .faq-item summary::before {
        font-size: 1.8rem;
        left: 15px;
    }

    .faq-answer {
        padding-left: 55px;
        padding-right: 20px;
        padding-bottom: 25px;
    }

    .faq-answer-inner::before {
        left: -45px;
        font-size: 1.8rem;
    }
}

/* Event Page Content */
.event-content h2 {
    color: #0e5791;
    font-size: 1.75rem;
    padding: 12px 20px;
    border-left: 6px solid #0e5791;
    background-color: #f8fafd;
    margin-top: 50px;
    margin-bottom: 25px;
    line-height: 1.4;
    border-bottom: 1px solid #e0e8f0;
}

@media (max-width: 768px) {
    .event-content h2 {
        font-size: 1.4rem;
        padding: 10px 15px;
        margin-top: 40px;
        margin-bottom: 20px;
    }
}

.event-content h3 {
    color: #333;
    font-size: 1.4rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #0e5791;
    margin-top: 100px;
    margin-bottom: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .event-content h3 {
        font-size: 1.25rem;
        margin-top: 30px;
    }
}

/* Table Anchor Links */
.event-detail-table td a {
    color: #0e5791;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.event-detail-table td a[href^="#"]:not([href="#"]):not([target="_blank"])::after {
    content: "\f063";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7em;
    margin-left: 4px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.event-detail-table td a:hover {
    color: #d24433;
    text-decoration-thickness: 2px;
}

.event-detail-table td a[href^="#"]:not([href="#"]):not([target="_blank"]):hover::after {
    transform: translateY(3px);
    opacity: 1;
}