/* Enhanced Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2e8b57;
    --secondary-green: #228b22;
    --accent-blue: #4a90e2;
    --accent-orange: #ff8c42;
    --neutral-100: #ffffff;
    --neutral-200: #f8f9fa;
    --neutral-300: #e9ecef;
    --neutral-400: #dee2e6;
    --neutral-500: #adb5bd;
    --neutral-600: #6c757d;
    --neutral-700: #495057;
    --neutral-800: #343a40;
    --neutral-900: #212529;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    --gradient-accent: linear-gradient(135deg, var(--accent-blue), var(--primary-green));
    --gradient-warm: linear-gradient(135deg, var(--accent-orange), #ffae7a);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--neutral-800);
    overflow-x: hidden;
    background: var(--neutral-100);
}

.pc_none {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Enhanced Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.logo-img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: var(--neutral-700);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 0;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover {
    color: var(--primary-green);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    width: 100%;
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover::before {
    left: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(46, 139, 87, 0.1);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--neutral-700);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-list {
    list-style: none;
    padding: 25px;
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--neutral-700);
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-green);
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    height: 105vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.4) 0%, rgba(34, 139, 34, 0.3) 50%, rgba(74, 144, 226, 0.2) 100%);
    z-index: -2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 2px, transparent 2px), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 2px), radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px;
    animation: particleFloat 30s linear infinite;
    z-index: -1;
}

@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgb(169 175 156);;
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    font-weight: 500;
    font-size: 14px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-badge i {
    color: #ffd700;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 65px;
}

.hero-title-main {
    font-size: clamp(2rem, 4.5vw, 3.3rem);
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    line-height: 1.2;
}

.hero-title-sub {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
    opacity: 0.95;
    white-space: nowrap;
    line-height: 1.4;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 1s ease-out 0.8s both;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.342);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    padding: 5px 60px;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 215, 0, 0.3);
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.5);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    /* transform: translateX(-50%); */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #969696;
    font-weight: 500;
    font-size: 14px;
    animation: fadeInUpCenter 1s ease-out 1s both; /* ← 新しい専用アニメーション名に変更 */
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: white;
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid white;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ▼▼▼【新規追加】スクロール表示専用のアニメーション ▼▼▼ */
@keyframes fadeInUpCenter {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
/* ▲▲▲ ここまでを追加 ▲▲▲ */

/* Enhanced Quick Search Section */
.quick-search {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.6) 100%);
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.quick-search::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2346E87A' fill-opacity='0.02'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.search-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.search-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    position: relative;
}

.search-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.court-status {
    background: linear-gradient(135deg, rgba(232, 245, 232, 0.9) 0%, rgba(240, 248, 240, 0.8) 100%);
    border: 2px solid rgba(46, 139, 87, 0.2);
    border-radius: 20px;
    padding: 10px 25px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--primary-green);
    font-weight: 600;
}

.status-header i {
    font-size: 1.3rem;
}

.status-time {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: auto;
    box-shadow: var(--shadow-sm);
}

.status-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.status-indicators {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.status-option {
    padding: 3px 20px;
    border: 2px solid rgba(233, 236, 239, 0.8);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-600);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.status-option.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-green);
    box-shadow: var(--shadow-md), 0 0 20px rgba(46, 139, 87, 0.3);
    transform: translateY(-2px);
}

.status-option:hover:not(.active) {
    background: rgba(46, 139, 87, 0.1);
    border-color: var(--primary-green);
    transform: translateY(-1px);
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

.tab-button {
    background: rgba(248, 249, 250, 0.8);
    border: 2px solid rgba(233, 236, 239, 0.6);
    padding: 18px 35px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tab-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-button i {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.tab-button span {
    position: relative;
    z-index: 1;
}

.tab-button.active {
    color: white;
    border-color: var(--primary-green);
    box-shadow: var(--shadow-md), 0 0 25px rgba(46, 139, 87, 0.4);
    transform: translateY(-3px);
}

.tab-button.active::before {
    opacity: 1;
}

.tab-button:hover:not(.active) {
    background: rgba(46, 139, 87, 0.1);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.search-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 25px;
    align-items: end;
}

.input-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.input-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--neutral-700);
    font-size: 0.95rem;
}

.date-input,
.time-select {
    padding: 18px 20px;
    border: 2px solid rgba(233, 236, 239, 0.8);
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
}

.date-input:focus,
.time-select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1), var(--shadow-md);
    transform: translateY(-2px);
}

.search-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.search-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(46, 139, 87, 0.4);
}

.search-button:active {
    transform: translateY(-1px);
}

/* Enhanced Section Titles */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Enhanced News Section */
.news {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2346E87A' fill-opacity='0.02'%3E%3Cpolygon points='50 0 60 40 100 50 60 60 50 100 40 60 0 50 40 40'/%3E%3C/g%3E%3C/svg%3E");
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px 40px;
    box-shadow: var(--shadow-lg);
}

.news-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(233, 236, 239, 0.8);
    transition: all 0.3s ease;
}
.news-item:hover {
    transform: translateX(5px);
}

.news-item:last-child {
    border-bottom: none;
}

.news-category {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    min-width: 100px;
    text-align: center;
    color: white;
}

.news-category.important-news {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.news-category.campaign-news {
    background: linear-gradient(135deg, #f0b615, #ffbc3f);
}

.news-category.school-news {
    background: linear-gradient(135deg, #45b7d1, #96c93d);
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 5px;
}

.news-date {
    font-size: 0.9rem;
    color: var(--neutral-600);
}

/* Enhanced Feature Cards */
.features {
    padding: 100px 0;
    background: var(--neutral-200);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 50px 30px;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--neutral-100);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-warm);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 15px;
}

.feature-description {
    color: var(--neutral-600);
    line-height: 1.7;
    font-size: 1rem;
}

/* School Section */
.school {
    padding: 100px 0;
    background: var(--neutral-100);
}

.school-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.school-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 25px;
}

.school-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutral-600);
    margin-bottom: 35px;
}

.school-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.school-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--neutral-700);
}

.school-feature i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.school-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Guide Section */
.guide {
    padding: 80px 0;
    background: var(--neutral-200);
}

.guide-banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.guide-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: block;
}

.guide-banner:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}
.guide-banner:hover .guide-img {
    transform: scale(1.05);
}

.guide-banner-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.guide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
}

.guide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: white;
}

.guide-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.guide-description {
    font-size: 1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-800) 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.footer-nav-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

.footer-nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    display: inline-block;
}

.footer-nav-link:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ======== ▼ 新規追加セクションのCSS ▼ ======== */

/* Community Section */
.community {
    padding: 100px 0;
    background: var(--neutral-100);
}
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--neutral-200);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.testimonial-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.testimonial-content {
    padding: 25px;
}
.testimonial-text {
    font-size: 1rem;
    color: var(--neutral-700);
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}
.testimonial-text::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 2.5rem;
    color: var(--primary-green);
    position: absolute;
    left: -5px;
    top: -10px;
}
.testimonial-author {
    font-weight: 600;
    color: var(--neutral-800);
    font-style: normal;
}

/* Event Report Section */
.events {
    padding: 100px 0;
    background: var(--neutral-200);
}
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}
.event-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}
.event-card-image {
    position: relative;
}
.event-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.event-card-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(46, 139, 87, 0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}
.event-card-content {
    padding: 25px;
}
.event-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.event-card-description {
    font-size: 1rem;
    color: var(--neutral-600);
}

/* Coaches Section */
.coaches {
    padding: 100px 0;
    background-color: var(--neutral-100);
}
.coaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center;
}
.coach-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}
.coach-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-xl);
}
.coach-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--primary-green);
}
.coach-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.coach-title {
    font-size: 1rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 15px;
}
.coach-message {
    font-size: 0.95rem;
    color: var(--neutral-600);
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--neutral-200);
}
.pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 50px;
    padding: 8px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
}
.pricing-tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-600);
    cursor: pointer;
    transition: all 0.3s ease;
}
.pricing-tab-button.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}
.pricing-table {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.pricing-table.active {
    display: grid;
}
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}
.pricing-card.rental {
    background: linear-gradient(135deg, #fffaf0, #fff8e1);
}
.pricing-category {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--neutral-300);
}
.price-item-detail {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 15px 0;
    border-bottom: 1px solid var(--neutral-200);
}
.price-item-detail:last-child {
    border-bottom: none;
}
.time-range {
    font-size: 1rem;
    color: var(--neutral-700);
    font-weight: 500;
}
.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-800);
}
.price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--neutral-600);
}
.pricing-note {
    text-align: center;
    margin-top: 40px;
    color: var(--neutral-600);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--neutral-100);
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-item {
    border: 1px solid var(--neutral-300);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item[open] {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-md);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--neutral-100);
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-green);
}
.faq-item[open] .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 20px 20px;
    color: var(--neutral-700);
    line-height: 1.8;
    background: var(--neutral-100);
}


/* ======== ▲ 新規追加セクションのCSS ▲ ======== */


/* --- Enhanced Mobile Responsiveness --- */
@media (max-width: 992px) {
    .pc_none { display: inline-block; }
    .container { padding: 0 25px; }
    .nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero-title { margin-top: 0; gap: 0;}
    .search-inputs { grid-template-columns: 1fr; gap: 20px; }
    .search-button { padding: 18px; justify-content: center; }
    .school-content { grid-template-columns: 1fr; gap: 50px; }
    .school-image { order: -1; }
    .footer-content { grid-template-columns: 1fr; gap: 60px; }
    .footer-nav-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .container { padding: 0 20px; }
    .logo-img { height: 48px; }
    .header-content { padding: 8px 0; }
    .mobile-menu { top: 65px; }
    .section-title { font-size: 2rem; margin-bottom: 50px; }
    .quick-search, .news, .features, .school, .guide, .community, .events, .coaches, .pricing, .faq { padding: 80px 0; }
    .hero { height: auto; min-height: 90vh; padding: 140px 0 100px; text-align: left; }
    .hero-content { max-width: 100%; }
    .hero-title-main, .hero-title-sub { white-space: normal; line-height: 1.4; }
    .hero-title-main { font-size: 2.5rem; }
    .hero-title-sub { font-size: 1rem; margin-top: 15px; }
    .hero-stats { flex-direction: column; gap: 20px; margin-top: 30px; align-items: flex-start; }
    .stat-item { padding: 10px 20px; border-radius: 12px; width: 100%; max-width: 320px; display: flex; justify-content: space-between; align-items: center; }
    .stat-number { font-size: 1.8rem; }
    .search-card { padding: 40px 25px; }
    .search-tabs { flex-direction: column; gap: 12px; }
    .tab-button { justify-content: center; width: 100%; }
    .status-content { flex-direction: column; align-items: flex-start; gap: 12px; }
    .news-list { padding: 15px; background: none; box-shadow: none; }
    .news-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; background: rgba(255, 255, 255, 0.9); border-radius: 15px; box-shadow: var(--shadow-md); border-bottom: none; margin-bottom: 15px; }
    .news-item:last-child { margin-bottom: 0; }
    .features-grid, .community-grid, .coaches-grid, .event-grid, .pricing-table { grid-template-columns: 1fr; }
    .guide-banners { grid-template-columns: 1fr; gap: 20px; }
    .footer { padding: 60px 0 20px; }
    .footer-content { text-align: center; }
    .footer-info { display: flex; flex-direction: column; align-items: center; }
    .footer-nav-list { grid-template-columns: repeat(2, 1fr); gap: 15px 10px; }
    .footer-social { justify-content: center; margin-top: 10px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 15px; }
    .hero { padding: 100px 0 80px; }
    .hero-title-main { font-size: 1.9rem; }
    .search-card { padding: 30px 20px; }
    .court-status { padding: 20px 15px; }
    .status-header { flex-wrap: wrap; gap: 8px; }
    .status-time { margin-left: 0; margin-top: 5px; }
    .school-subtitle { font-size: 1.8rem; }
    .footer-nav-list { grid-template-columns: 1fr; text-align: center; }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--neutral-200); }
::-webkit-scrollbar-thumb { background: var(--gradient-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-green); }


/* ======== ▼▼▼【根本解決】誘導型チャットのCSS（最終版）▼▼▼ ======== */

/* チャットウィジェット全体 */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1001;
}

/* フローティングボタン */
.chat-toggle-button {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: pulse-animation 2s infinite;
}
.chat-toggle-button:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}
@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(46, 139, 87, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(46, 139, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 139, 87, 0); }
}
.chat-tooltip {
    position: absolute;
    bottom: 15px;
    right: 75px;
    background-color: var(--neutral-800);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}
.chat-toggle-button:hover .chat-tooltip {
    opacity: 1;
    visibility: visible;
}

/* チャットウィンドウ本体 ★構造定義の核心★ */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 370px;
    height: clamp(480px, 80vh, 600px);
    background: var(--neutral-100);
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    display: flex; /* Flexboxコンテナとして定義 */
    flex-direction: column; /* 子要素を縦に並べる */
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* ヘッダー */
.chat-header {
    flex-shrink: 0; /* 高さが縮まない（固定） */
    background: var(--gradient-primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-title { font-size: 1.1rem; font-weight: 600; }
.chat-close-btn { background: none; border: none; color: white; font-size: 20px; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; }
.chat-close-btn:hover { opacity: 1; }

/* メッセージ表示エリア ★構造定義の核心★ */
.chat-messages {
    flex: 1 1 auto; /* 残りのスペースを埋める（可変） */
    min-height: 0;  /* 可変領域が縮むための必須プロパティ */
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}
.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    animation: bubble-pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.chat-bubble.bot { background: var(--neutral-200); color: var(--neutral-800); align-self: flex-start; border-top-left-radius: 4px; }
.chat-bubble.user { background: var(--primary-green); color: white; align-self: flex-end; border-top-right-radius: 4px; }

/* フッターエリア (選択肢 or フォームの親) ★構造定義の核心★ */
.chat-footer {
    flex-shrink: 0; /* 高さが縮まない（固定） */
    border-top: 1px solid var(--neutral-300);
    background-color: var(--neutral-100);
    display: flex;
    flex-direction: column;
}

/* 選択肢ボタンエリア */
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}
.chat-option-button { width: 100%; padding: 12px 15px; background: white; border: 1px solid var(--primary-green); color: var(--primary-green); border-radius: 8px; text-align: left; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
.chat-option-button:hover { background: var(--primary-green); color: white; transform: translateX(3px); }

/* お問い合わせフォームエリア ★構造定義の核心★ */
.chat-form-container {
    display: none; /* JSで表示を切り替える */
    padding: 15px;
    overflow-y: auto; /* ★ここがスクロールする本体★ */
}

/* ★★★フォーム表示時のレイアウト変更★★★ */
.chat-window.form-mode-active .chat-messages {
    flex-grow: 0;   /* ★メッセージエリアは伸びない */
    flex-basis: auto; /* 高さはコンテンツ次第 */
    max-height: 130px; /* ただし最大でもこの高さまで */
}
.chat-window.form-mode-active .chat-footer {
    flex: 1; /* ★フッターが残りのスペースを全て埋める */
    min-height: 0; /* 縮むために必須 */
}

.chat-form-guide { font-size: 0.9rem; color: var(--neutral-600); margin-bottom: 15px; }
.chat-form-group { margin-bottom: 12px; }
.chat-form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.chat-required-mark { color: #ff6b6b; margin-left: 4px; }
.chat-form-group input,
.chat-form-group textarea { width: 100%; padding: 10px; border: 1px solid var(--neutral-400); border-radius: 8px; font-size: 1rem; font-family: inherit; transition: all 0.2s ease; }
.chat-form-group input:focus,
.chat-form-group textarea:focus { outline: none; border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.2); }
.chat-form-submit { width: 100%; padding: 12px; background: var(--gradient-primary); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 5px; transition: all 0.3s ease; }
.chat-form-submit:hover { opacity: 0.9; box-shadow: var(--shadow-md); }

/* スマホ用のレスポンシブ調整 */
@media (max-width: 480px) {
    .chat-widget { bottom: 0; right: 0; width: 100%; }
    .chat-toggle-button { position: fixed; bottom: 15px; right: 15px; }
    .chat-window { width: 100%; height: 100%; max-height: 100%; border-radius: 0; bottom: 0; right: 0; }
    .chat-tooltip { display: none; }
}

/* ======== ▲▲▲【根本解決】誘導型チャットのCSS（最終版）▲▲▲ ======== */