/*
Theme Name: Winter
Description: 冬季スキーリゾート向けバス車内Wi-Fi認証ページ用のオリジナルテーマです。
Version: 1.0
*/

/* デフォルトカラー（access-n用）: 緑系 */
:root {
    --main-color: #007e88;
    --main-color-dark: #006570;
    --main-color-darker: #004d55;
    --main-color-light: #00b8d4;
    --text-on-main: #fff; /* メインカラー上のテキスト色 */
}

/* グローバルなボックスサイジング設定 */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    font-weight: bold;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

main {
    text-align: center;
}

h1 {
    margin-bottom: 10px;
}

p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Header Styles */
.site-header {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #333;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Access Network: 黒色ヘッダー */
.access-network-site .site-header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-left {
    flex-shrink: 0;
}

.site-logo a {
    display: block;
}

.site-logo-img {
    height: 50px;
    width: auto;
    display: block;
}

/* Access Networkのロゴ: 通常表示 */
.access-network-site .site-logo-img {
    filter: none;
}


.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: rgba(0, 126, 136, 0.1);
}

/* Access Network: ナビゲーション文字色を白に */
.access-network-site .nav-menu a {
    color: #fff;
}

.access-network-site .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Language Switcher */
.language-switcher,
.language-switcher-mobile {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 20px;
}

.lang-switch-btn {
    background: transparent;
    border: none;
    color: #b0acac;
    padding: 6px 14px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-switch-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.etiquette-btn { background: var(--main-color);
    border: 1px solid var(--main-color);
    color: var(--text-on-main);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.etiquette-btn:hover {
    background: var(--main-color-dark);
    border-color: var(--main-color-dark);
}

/* Access Network: ボタンを半透明に */
.access-network-site .etiquette-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.access-network-site .etiquette-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    text-align: right;
    border-bottom: 1px solid #e9ecef;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 40px;
    height: 40px;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 20px;
}

.mobile-nav-menu li {
    margin-bottom: 10px;
}

.mobile-nav-menu a,
.etiquette-btn-mobile {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.mobile-nav-menu a:hover {
    background: #f8f9fa;
}

.etiquette-btn-mobile {
    width: 100%;
    text-align: left;
    background: var(--main-color);
    color: var(--text-on-main);
    border: none;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
}

.etiquette-btn-mobile:hover {
    background: var(--main-color-dark);
}

/* Responsive Header */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 15px;
    }

    .nav-menu a {
        font-size: 0.85em;
        padding: 6px 10px;
    }

    .etiquette-btn {
        font-size: 0.85em;
        padding: 8px 15px;
    }
}

@media (max-width: 992px) {
    .header-nav,
    .etiquette-btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-container {
        padding: 15px 15px 0;
        gap: 15px;
    }

    .site-logo-img {
        height: 40px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 5px;
    position: relative;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.lang-switch .lang-switch-btn,
.lang-switch .modal-lang-btn {
    padding: 8px 12px;
    cursor: pointer;
    border: 1px solid #ccc;
    /* background-color: #f2f2f2; */
    margin-right: 5px;
}

.lang-switch .lang-switch-btn.active,
.lang-switch .modal-lang-btn.active {
    background-color: var(--main-color);
    color: #fff;
    font-weight: bold;
}

/* Modal Body */
.modal-body {
    margin-top: 20px;
}

.modal-header h2 {
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--main-color);
    color: var(--main-color);
}

/* Language Switch */
.lang-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* Language Content */
.lang-content-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px 10px;
}

.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* Etiquette Sections */
.etiquette-intro {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.etiquette-intro h3 {
    color: var(--main-color);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.etiquette-intro .subtitle {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 15px;
}

.etiquette-intro p {
    line-height: 1.8;
    margin-bottom: 10px;
}

.etiquette-item {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--main-color);
    border-radius: 4px;
}

.etiquette-item h4 {
    color: var(--main-color);
    font-size: 1.2em;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.etiquette-item p {
    margin: 0;
    line-height: 1.7;
    color: #333;
}

.etiquette-outro {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f8ff;
    border-radius: 8px;
    text-align: center;
}

.etiquette-outro p {
    margin: 0;
    font-size: 1.1em;
    color: var(--main-color);
    font-weight: bold;
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
    .header-container {
        padding: 10px 10px 0;
        gap: 10px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
        max-width: calc(100vw - 20px);
    }

    .lang-switch {
        flex-wrap: wrap;
        gap: 5px;
    }

    .lang-switch-btn {
        flex: 1 1 45%;
        font-size: 0.9em;
        padding: 8px 12px;
    }

    .lang-content-container {
        max-height: 400px;
        padding: 15px 5px;
    }

    .etiquette-intro h3 {
        font-size: 1.2em;
    }

    .etiquette-item {
        padding: 12px;
    }

    .etiquette-item h4 {
        font-size: 1em;
    }
}

/* White background for home page */
body.home {
    background-color: #fff;
    padding: 0;
    margin: 0;
}

body.home .site-header {
    display: none;
}

/* Authentication Page Styles */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-logo {
    padding: 40px 40px 20px;
    text-align: center;
    background: #fff;
}

.auth-content {
    padding: 20px 40px 40px;
    text-align: center;
}

.auth-title {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.auth-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.auth-btn-access {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-dark) 100%);
}

.auth-btn-access:hover {
    background: linear-gradient(135deg, var(--main-color-dark) 0%, var(--main-color-darker) 100%);
}

.auth-btn-clubmed {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-dark) 100%);
}

.auth-btn-clubmed:hover {
    background: linear-gradient(135deg, var(--main-color-dark) 0%, var(--main-color-darker) 100%);
}

.auth-btn-arrow {
    font-size: 1.3em;
    font-weight: bold;
}

.auth-terms {
    padding: 20px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.terms-accordion {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

.terms-accordion summary {
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #495057;
    list-style: none;
    user-select: none;
}

.terms-accordion summary::-webkit-details-marker {
    display: none;
}

.terms-accordion summary::before {
    content: "▶ ";
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.3s;
    color: #6c757d;
}

.terms-accordion[open] summary::before {
    transform: rotate(90deg);
}

.terms-text {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 0.9em;
    color: #6c757d;
    line-height: 1.6;
    text-align: left;
}

.terms-text p {
    margin-bottom: 10px;
}

.terms-text ol {
    padding-left: 20px;
    margin: 10px 0;
}

.terms-text li {
    margin-bottom: 8px;
}

.auth-footer {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    margin: 0;
    font-size: 0.85em;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-page {
        padding: 10px;
    }

    .auth-container {
        border-radius: 15px;
    }

    .auth-logo {
        padding: 30px 20px 15px;
    }

    .auth-content {
        padding: 15px 20px 30px;
    }

    .auth-title {
        font-size: 1.6em;
    }

    .auth-description {
        font-size: 1em;
    }

    .auth-btn {
        padding: 18px 25px;
        font-size: 1.1em;
    }

    .auth-terms {
        padding: 15px 20px;
    }
}

/* Access Network & Club Med Site Styles */
.site-main {
    margin: 0;
    padding: 0;
    background-color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background: url('img/resort.png') center/cover no-repeat;
    background-position: 50% 100%;
    background-color: #4a90a4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-title {
    font-size: 3em;
    font-weight: bold;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title-en {
    /* font-size: 2.5em; */
    font-weight: bold;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

/* Section Styles */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    font-weight: bold;
    color: var(--main-color);
}

.section-description {
    text-align: center;
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 40px;
}

/* Intro Section */
.intro-section {
    background: #fff;
    padding: 60px 20px;
}


.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-title {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: bold;
}

.intro-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Features Section */
.features-section {
    background: #f8f9fa;
    padding: 80px 20px;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: transparent;
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.4em;
    color: var(--main-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.feature-description {
    font-size: 1em;
    line-height: 1.6;
    color: #666;
}

.features-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.features-tagline {
    font-size: 1.3em;
    line-height: 1.6;
    color: #2c3e50;
    font-weight: 500;
}

/* News Section */
.news-section {
    background: #fff;
    padding: 60px 20px;
}

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

.news-item-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.3s;
}

.news-item-link:hover {
    background: #f8f9fa;
}

.news-date {
    font-weight: bold;
    color: var(--main-color);
    white-space: nowrap;
    font-size: 0.95em;
}

.news-text {
    flex: 1;
    color: var(--main-color);
    line-height: 1.6;
    font-size: 1em;
}

.news-arrow {
    color: var(--main-color);
    font-size: 1.5em;
    font-weight: bold;
}

/* Button Styles */
.btn-center {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid #fff;
    color: #333;
    background: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    border-color: var(--main-color);
    color: var(--main-color);
}

/* Municipality Section Wrapper */
#municipality-section-wrapper {
    background-color: var(--main-color);
    padding: 100px 20px 60px;
    position: relative;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
    margin-bottom: -1px;
}

/* Ensure text is visible on both sites */
#municipality-section-wrapper .section-title {
    color: #fff;
}

#municipality-section-wrapper .section-description {
    color: #fff;
    opacity: 0.9;
}

/* CTA Section Wrapper */
.cta {
    background-color: var(--main-color) !important;
}

.cta-section-wrapper {
    background-image: url('img/5150216_m.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    padding: 140px 20px 120px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0% 100%);
}

/* Municipality Section */
.municipality-section {
    background-color: var(--main-color);
    padding: 60px 20px;
    position: relative;
    z-index: 100;
}

/* Municipality Detail Page */
.municipality-detail-page {
    background-color: #fff;
}

.municipality-hero {
    background-color: var(--main-color);
    padding: 100px 20px 80px;
    text-align: center;
    color: var(--text-on-main);
}

.municipality-name {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
}

.ski-resort-name {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.municipality-intro-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.municipality-intro-image {
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.municipality-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

.municipality-intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.municipality-intro-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.manner-message-section {
    padding: 80px 20px;
    background: #fff;
}

.manner-message-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.manner-images-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.manner-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.manner-image-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.manner-image-item:hover {
    transform: scale(1.05);
}

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

.manner-videos-section {
    padding: 80px 20px;
    background: #fff;
}

.manner-videos-grid {
    display: grid;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.manner-video-item .video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.manner-video-item .video-embed iframe,
.manner-video-item .video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.manner-video-item .video-link {
    display: block;
    text-align: center;
}

.manner-video-item .video-link a {
    display: inline-block;
    padding: 16px 32px;
    background: var(--main-color);
    color: var(--text-on-main);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid var(--main-color);
    transition: all 0.3s ease;
}

.manner-video-item .video-link a:hover {
    background: var(--main-color-dark);
    border-color: var(--main-color-dark);
}

.municipality-back-section {
    padding: 60px 20px;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 15px 40px;
    background: var(--main-color);
    color: var(--text-on-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--main-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 126, 136, 0.3);
}

.municipality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.municipality-card {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    color: #fff;
}

.access-network-site .municipality-card {
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 20px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.access-network-site .municipality-card:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.municipality-card:hover {
    transform: translateY(-8px);
    border-color: var(--main-color);
}

.municipality-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.municipality-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.municipality-image.placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
}

.municipality-content {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.municipality-title {
    margin: 0;
    font-size: 1.3em;
    color: #2c3e50;
}

.access-network-site .municipality-title {
    color: #fff;
    text-align: center;
}

.municipality-arrow {
    font-size: 1.5em;
    color: var(--main-color);
    font-weight: bold;
}

.no-content {
    text-align: center;
    color: #fff;
    font-size: 1.2em;
    padding: 40px;
}

/* News Archive Page */
.news-archive-section {
    background: transparent;
    padding: 60px 20px;
}

.news-archive-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-archive-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.news-archive-item:hover {
    transform: translateX(5px);
    background: rgba(0, 126, 136, 0.05);
}

.news-archive-date {
    font-weight: bold;
    color: var(--main-color);
    white-space: nowrap;
    font-size: 1.1em;
    min-width: 100px;
}

.news-archive-content {
    flex: 1;
}

.news-archive-title {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    line-height: 1.4;
}

.news-archive-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.news-archive-title a:hover {
    color: var(--main-color);
}

.news-archive-excerpt {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 1em;
}

.no-news {
    text-align: center;
    color: #999;
    font-size: 1.2em;
    padding: 60px 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding: 20px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #007e88;
    color: #fff;
    transform: translateY(-2px);
}

.pagination .current {
    background: #007e88;
    color: #fff;
    border-color: #007e88;
}

.pagination .dots {
    border: none;
    background: none;
    color: #999;
}

/* Manner Page (Municipality Page) */
.manner-page {
    background: transparent;
}

.manner-hero-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 60px;
}

.manner-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manner-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.manner-main-title {
    font-size: 3em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.manner-ski-resort {
    font-size: 1.8em;
    color: #007e88;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 500;
}

.manner-section {
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.manner-section-title {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #007e88;
    font-weight: bold;
}

.manner-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

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

.manner-content ul,
.manner-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.manner-content li {
    margin-bottom: 10px;
}

/* Gallery Section */
.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Videos Section */
.videos-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Related News Section */
.news-list-items {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
}

.news-list-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(0, 126, 136, 0.05);
    border-left: 4px solid #007e88;
    border-radius: 4px;
    transition: all 0.3s;
}

.news-list-item:hover {
    transform: translateX(5px);
    background: rgba(0, 126, 136, 0.1);
}

.news-item-date {
    font-weight: bold;
    color: var(--main-color);
    white-space: nowrap;
    min-width: 100px;
}

.news-item-link {
    color: #2c3e50;
    text-decoration: none;
    flex: 1;
    transition: color 0.3s;
}

.news-item-link:hover {
    color: #007e88;
}

.no-news-item {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 1.1em;
}

/* Footer */
.site-footer {
    background-color: var(--main-color);
    color: var(--text-on-main);
    padding: 100px 20px 30px;
}

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

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

.footer-logo-img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-company {
    font-size: 0.9em;
    margin: 0;
    opacity: 0.9;
}

.footer-contact {
    text-align: right;
}

.footer-phone {
    font-size: 2em;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.footer-hours {
    font-size: 0.9em;
    margin: 0;
    opacity: 0.9;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95em;
    transition: opacity 0.3s;
}

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

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

.footer-copyright {
    font-size: 0.85em;
    margin: 0;
    opacity: 0.8;
}

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

.social-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive for Site Pages */
@media (max-width: 768px) {
    .hero-section {
        height: 300px;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .hero-title-en {
        font-size: 1.5em;
        padding: 0 20px;
    }

    .section-container {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .news-section {
        padding: 40px 15px;
    }

    .news-item-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 20px;
    }

    .news-date {
        font-size: 0.9em;
    }

    .news-text {
        font-size: 0.95em;
    }

    .news-arrow {
        font-size: 1.2em;
    }

    .news-item {
        flex-direction: column;
        gap: 10px;
    }

    .news-archive-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
    }

    .news-archive-date {
        min-width: auto;
    }

    .news-archive-title {
        font-size: 1.3em;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 0.9em;
    }

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

    /* CTA responsive styles moved to css/cta.css */

    /* Manner Page Mobile */
    .manner-hero-image {
        height: 250px;
        margin-bottom: 30px;
    }

    .manner-container {
        padding: 0 15px 40px;
    }

    .manner-main-title {
        font-size: 2em;
    }

    .manner-ski-resort {
        font-size: 1.3em;
        margin-bottom: 40px;
    }

    .manner-section {
        padding: 25px 20px;
        margin-bottom: 40px;
    }

    .manner-section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .manner-content {
        font-size: 1em;
    }

    .gallery-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .manner-section.manner-videos {
        padding-left: 0;
        padding-right: 0;
    }

    .manner-section.manner-videos .manner-section-title {
        padding-left: 20px;
        padding-right: 20px;
    }

    .videos-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
        margin: 30px auto 0;
        padding: 0;
    }

    .video-embed {
        width: 100% !important;
        max-width: 100%;
        margin: 0;
    }

    .news-list-item {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .news-item-date {
        min-width: auto;
    }

    /* Footer Mobile */
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-phone {
        font-size: 1.5em;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .hero-title-en {
        font-size: 1.2em;
        padding: 0 15px;
        line-height: 1.3;
    }

    .section-title {
        font-size: 1.1em;
        margin-bottom: 20px;
    }

    .news-section {
        padding: 30px 10px;
    }

    .news-item-link {
        padding: 12px 15px;
        gap: 8px;
    }

    .news-date {
        font-size: 0.85em;
    }

    .news-text {
        font-size: 0.9em;
        line-height: 1.5;
    }

    .news-arrow {
        font-size: 1em;
    }

    .btn-outline {
        font-size: 0.9em;
        padding: 10px 30px;
    }
}

/* ========================================
   Banner Slider Section
   ======================================== */
.banner-section {
    padding: 60px 0;
    width: 100%;
    overflow: hidden;
}

.banner-swiper {
    width: 100%;
    height: auto;
    padding-left: 40px;
    padding-right: 40px;
}

.banner-swiper .swiper-slide {
    height: auto;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

/* 非表示バナー */
.banner-hidden {
    display: none !important;
}

/* Swiperナビゲーションボタンのカスタマイズ */
.banner-swiper .swiper-button-next,
.banner-swiper .swiper-button-prev {
    color: var(--main-color);
    background-color: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banner-swiper .swiper-button-next:after,
.banner-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.banner-swiper .swiper-button-next:hover,
.banner-swiper .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* Swiperページネーションのカスタマイズ */
.banner-swiper .swiper-pagination {
    bottom: 10px;
}

.banner-swiper .swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.6;
    width: 10px;
    height: 10px;
}

.banner-swiper .swiper-pagination-bullet-active {
    background-color: var(--main-color);
    opacity: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .banner-section {
        padding: 40px 0;
    }

    .banner-swiper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .banner-swiper .swiper-button-next,
    .banner-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .banner-swiper .swiper-button-next:after,
    .banner-swiper .swiper-button-prev:after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .banner-section {
        padding: 30px 0;
    }

    .banner-swiper {
        padding-left: 15px;
        padding-right: 15px;
    }

    .banner-swiper .swiper-button-next,
    .banner-swiper .swiper-button-prev {
        display: none;
    }
}

/* ========================================
   Language Toggle (Front Page)
   ======================================== */
.lang-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.lang-toggle-btn {
    padding: 8px 20px;
    border: 2px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-toggle-btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.lang-toggle-btn.active {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

.lang-section {
    display: none;
}

.lang-section.active {
    display: block;
}

/* ========================================
   Municipality Gallery
   ======================================== */
.municipality-gallery {
    margin-top: 40px;
}

.municipality-gallery .gallery-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .municipality-gallery .gallery-title {
        font-size: 1.25rem;
    }
}
