@charset "UTF-8";

/* ========================================
   リセット & ベース
======================================== */
/* フォントやbodyの基本スタイルはcommon.cssで定義済み */

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   トップページ固有のヘッダー拡張
======================================== */
/* ヘッダー・ナビゲーションの基本スタイルはcommon.cssで定義済み */
/* トップページで追加が必要なスタイルがあればここに記述 */

/* ========================================
   メインビジュアル（スライダー）
======================================== */
.main-visual {
    position: relative;
    overflow: hidden;
    padding-top: clamp(15px, 4vw, 60px);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    position: relative;
    visibility: visible;
}

.slide-image {
    width: 100%;
    height: auto;
    display: block;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1030px;
    width: 100%;
    padding: 0 50px 0;
    box-sizing: border-box;
    text-align: left;
    color: #333;
    z-index: 2;
}

.slide-title {
    font-size: clamp(18px, 4vw, 42px);
    font-weight: 400;
    line-height: 1.6;
}

.slide-statement {
    display: block;
    max-width: clamp(150px, 25vw, 310px);
    margin-top: clamp(5px, 1vw, 15px);
}

.slider-btn {
    --btn-size: clamp(25px, 4vw, 40px);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: var(--btn-size);
    height: var(--btn-size);
    background: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0;
    color: transparent;
}

.slider-btn.prev::before {
    content: "";
    width: var(--btn-size);
    height: var(--btn-size);
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1168 1469' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M774.917,392.573l-382.344,341.901l382.344,341.927' style='fill:none;fill-rule:nonzero;stroke:%23a4a4a4;stroke-width:78.13px;'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.slider-btn.next::before {
    content: "";
    width: var(--btn-size);
    height: var(--btn-size);
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1168 1469' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M392.573,1076.4l382.344,-341.901l-382.344,-341.927' style='fill:none;fill-rule:nonzero;stroke:%23a4a4a4;stroke-width:78.13px;'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

/* ========================================
   メインコンテンツエリア
======================================== */
.content-area {
    position: relative;
    padding: 40px 0;
    background-color: #E1F5F5;
    background-image:
        url('../assets/background-wave2.svg'),
        url('../assets/background-wave.svg');
    background-size:
        100% auto,
        max(100%, 1920px) auto;
    background-position:
        top center,
        bottom -150px center;
    background-repeat:
        no-repeat,
        no-repeat;
}

.content-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/background.webp');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

.content-area > * {
    position: relative;
    z-index: 1;
}

.main-content {
    padding-top: 60px;
}

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

/* カードグリッド */
.cards-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.card-header {
    background: #3592D3;
    padding: 15px 20px;
    text-align: left;
}

.card-title {
    font-size: clamp(14px, 1.8vw, 20px);
    font-weight: bold;
    color: white;
    margin: 0;
}

.card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* 下部セクション */
.bottom-section {
    display: flex;
    gap: 30px;
    margin-top: 80px;
}

/* 左側メニュー */
.side-menu {
    flex: 0 0 31.7%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-card {
    background: white;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
}

.menu-card:hover {
    transform: translateY(-3px);
}

.menu-card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    display: block;
}

.menu-card-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.6);
    padding: 10px 35px;
    border-radius: 24px;
    text-align: center;
}

.menu-card-title {
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin: 0;
    white-space: nowrap;
}

/* インフォメーションパネル */
.info-panel {
    flex: 1;
    background: white;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

.info-header {
    background: #3592D3;
    color: white;
    padding: 12px 40px;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 0.1em;
}

.info-tabs {
    display: flex;
    gap: clamp(10px, 1.5vw, 20px);
    margin: 0;
    background: #D9EEE9;
    padding: 30px clamp(10px, 3vw, 80px) 0 clamp(10px, 3vw, 80px);
}

.tab-btn {
    padding: 13px clamp(10px, 1.5vw, 20px);
    background: #C1C1C1;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 700;
    transition: all 0.3s;
    border-radius: 0;
    flex: 1;
    white-space: nowrap;
}

.tab-btn.active {
    background: #3592D3;
    color: white;
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid #3592D3;
}

.info-list {
    list-style: none;
    padding: 20px clamp(10px, 3vw, 60px);
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.info-item {
    padding: 20px 0;
    border-bottom: 1px dotted #e0e0e0;
    display: flex;
    gap: 30px;
    position: relative;
    align-items: center;
}

.info-date-section {
    display: flex;
    flex-direction: column;
}

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

.info-label {
    color: #FF0000;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 2px;
}

.info-date {
    color: #000;
    font-size: 14px;
    font-weight: 500;
}

.info-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
}

.info-text a {
    color: #000;
}

.info-text a:hover {
    text-decoration: underline;
}

/* ========================================
   ピックアップコンテンツ
======================================== */
.pickup-section {
    padding-bottom: 150px;
    position: relative;
    overflow: hidden;
}

.pickup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.pickup-container {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.pickup-header {
    background: #9DD3C5;
    color: white;
    padding: 10px 80px;
    border-radius: 0 30px 30px 0;
    display: inline-block;
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 80px;
    margin-left: 0;
}

.pickup-slider-wrapper {
    position: relative;
}

.pickup-slider {
    overflow: hidden;
}

.pickup-track {
    display: flex;
    gap: 40px;
    transition: transform 0.3s ease;
    align-items: center;
}

.pickup-card {
    min-width: 280px;
    background: white;
    background-image: url('../assets/background-pickup.webp');
    background-size: cover;
    background-position: center;
    padding: 10px;
    border-radius: 12px;
    overflow: hidden;
}

.pickup-card-image {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pickup-card-body {
    padding: 10px;
}

.pickup-card-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.pickup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.pickup-btn {
    width: 35px;
    height: 35px;
    background: #ABABAB;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 0;
    color: transparent;
}

.pickup-btn.prev::before {
    content: "";
    width: 35px;
    height: 35px;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1168 1469' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M774.917,392.573l-382.344,341.901l382.344,341.927' style='fill:none;fill-rule:nonzero;stroke:%23ffffff;stroke-width:78.13px;'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pickup-btn.next::before {
    content: "";
    width: 35px;
    height: 35px;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1168 1469' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M392.573,1076.4l382.344,-341.901l-382.344,-341.927' style='fill:none;fill-rule:nonzero;stroke:%23ffffff;stroke-width:78.13px;'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ========================================
   パートナー/外部リンク
======================================== */
.partners-section {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.partner-logo:hover {
    opacity: 0.8;
}

/* ========================================
   トップページ固有のフッター拡張
======================================== */
/* フッターの基本スタイルはcommon.cssで定義済み */
/* トップページで追加が必要なスタイルがあればここに記述 */

/* ========================================
   ポップアップ
======================================== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.popup-container {
    position: relative;
    width: min(800px, 100vw);
    aspect-ratio: 1920 / 1650;
    background-image: url('../assets/background-popup.webp');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 80px;
    overflow: hidden;
    animation: popupSlideIn 0.4s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    z-index: 10;
}

.popup-close:hover {
    color: #333;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-content {
    padding: 60px 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.popup-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    color: #333;
    text-align: left;
    flex: 1;
    margin-bottom: 40px;
}

.popup-text p {
    margin-bottom: 20px;
}

.popup-text p:last-child {
    margin-bottom: 0;
}

.popup-catchcopy {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    text-align: left;
}

.popup-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 768px) {
    /* カード関連 */
    .card {
        border-radius: 24px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .cards-section {
        grid-template-columns: 1fr;
    }

    .slide-content {
        top: 0;
        left: 55%;
        transform: translateX(-50%);
        padding: 0 30px;
    }

    /* スライド関連 */
    .slide-title {
        font-size: clamp(18px, 4vw, 25px);
    }

    /* 下部セクション */
    .bottom-section {
        flex-direction: column;
        gap: 50px;
        margin-top: 50px;
    }
    
    .side-menu {
        flex: none;
        width: 100%;
        order: 2;
    }
    
    .info-panel {
        flex: none;
        order: 1;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    }

    .menu-card {
        min-width: 200px;
    }
    
    /* インフォメーション関連 */
    .info-list {
        padding: 20px;
    }
    
    .info-tabs {
        gap: 5px;
        padding: 20px 15px 0;
    }
    
    .tab-btn {
        padding: 10px 8px;
        font-size: 12px;
    }

    /* パートナーセクション */
    .partners-container {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    /* ピックアップコンテンツ */
    .pickup-section {
        padding: 60px 0;
    }
    
    .pickup-header {
        font-size: 18px;
        padding: 8px 40px;
        margin-bottom: 40px;
    }
    
    .pickup-slider-wrapper {
        padding: 0 10px;
    }
    
    .pickup-slider {
        margin: 0 30px;
        overflow: hidden;
    }
    
    .pickup-track {
        gap: 0;
        justify-content: flex-start;
        width: 100%;
    }
    
    .pickup-card {
        min-width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        flex-grow: 0;
        padding: 12px;
        border-radius: 15px;
    }
    .pickup-card-image {
        height: auto;
        object-fit: cover;
        border-radius: 15px;
    }
    .pickup-card-title {
        font-size: 18px;
    }
    .pickup-nav {
        left: 0;
        right: 0;
        padding: 0 5px;
    }
    
    .pickup-btn {
        width: 30px;
        height: 30px;
    }
    
    .pickup-btn.prev::before,
    .pickup-btn.next::before {
        width: 30px;
        height: 30px;
    }
    .partner-logo {
        height: clamp(30px, 4vw, 50px);
    }

    /* ポップアップ関連 */
    .popup-container {
        width: 100vw;
        max-width: none;
        aspect-ratio: auto;
        background-size: cover;
        border-radius: 30px;
        box-shadow: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        margin: 0;
        transform: none;
    }

    .popup-content {
        padding: 40px 40px;
        overflow-y: auto;
    }

    .popup-catchcopy {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .popup-logo {
        max-width: 200px;
    }

    .popup-text {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .popup-text p {
        margin-bottom: 15px;
    }
    
    /* スマホサイズでの余白調整 */
    .main-visual {
        padding-bottom: 20px;
    }
    
    .content-area {
        padding: 0;
        background-position:
            top center,
            bottom calc(10% - 30%) center;
    }
    .popup-close {
        top: 15px;
        right: 15px;
    }
}