@charset "UTF-8";

.main_container {
    position: relative;
}
.main_container::before {
    display: block;
    position: absolute;
    left: 50%;
    z-index: -1;
    transform: translateX(-50%);
    width: 1000%;
    height: 1000000px;
    background-repeat: repeat;
    background-position: center top;
    content: "";
}

/* タイトル下の点線を追加 */
.common_page-title {
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 50px;
}

/* .common_page-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 6px;
    background-image: radial-gradient(circle, #25425c 35%, transparent 35%);
    background-size: 10px 6px;
    background-repeat: repeat-x;
    background-position: 0 center;
} */

.title_container {
    text-align: center;
}
.event_text {
    display: flex;
    padding: 0 20px;
    font-size: clamp(0.875rem, 0.707rem + 0.35vw, 0.938rem);
    line-height: clamp(1.563rem, 0.72rem + 1.75vw, 1.875rem);
    flex-direction: column;
}
.event_text::before {
    display: block;
    max-width: 1400px;
    width: 95%;
    height: 3px;
    margin: 0 auto;
    margin-bottom: 10px;
    background-image: url(../images/event_line.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1400px 3px;
    content: "";
}
.event_sub-title {
    display: block;
    margin-bottom: 30px;
    font-size: 50px;
    text-align: center;
}
.event_visual-contents {
    max-width: 870px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 170px;
    padding: 70px 0 55px;
    background-color: #25425c;
}
.event_visual-slide {
    max-width: 625px;
    width: 95%;
    margin: 0 auto;
}
/* 開催中コンペのアイテム */
.event_visual-item {
    display: flex;
    flex-direction: column;
    padding: 30px 50px 20px; /* bottom: 40px → 20px */
    background-color: white;
    position: relative;
}
/* 開催中コンペの画像 */
.event_visual-img {
    width: 100%;
    height: 300px; /* 固定高さ */
    margin: 0 auto;
    margin-bottom: 20px;
    object-fit: cover; /* 画像を切り抜いて領域を埋める */
    object-position: center; /* 中央を基準に切り抜く */
}
.event_visual-title {
    margin-bottom: 10px;
    font-size: 25px;
}
.event_visual-schedule {
    display: block;
    margin-bottom: 15px;
    font-size: 20px;
}
.event_visual-text {
    display: flex;
    padding-top: 10px;
    border-top: 1px solid #aaaaaa;
    font-size: 16px;
    line-height: 30px;
    flex-direction: column;
    row-gap: 2rem;
}

/* 開催中コンペ用ナビゲーション */
.event_visual-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr !important; /* !importantを追加 */
    grid-template-rows: 1fr;
    position: relative;
	z-index: 1; /* 追加：固定バナーより低く設定 */
    max-width: 400px;
    width: 100%;
    height: 60px;
    margin: 40px auto 0;
    align-items: center;
    gap: 80px;
}

/* 子要素のグリッド配置を強制 */
.event_visual-nav > .swiper-button-prev {
    grid-column: 1 / 2 !important;
    justify-self: end !important;
}

.event_visual-nav > .swiper-pagination-visual {
    grid-column: 2 / 3 !important;
    justify-self: center !important;
}

.event_visual-nav > .swiper-button-next {
    grid-column: 3 / 4 !important;
    justify-self: start !important;
}

/* 開催中コンペ用ページネーション */
.swiper-pagination-visual .swiper-pagination-bullet {
    display: none !important;
}

/* 開催中コンペ用ページネーション */
.event_visual-nav .swiper-pagination-visual .swiper-pagination-bullet-active,
.swiper-pagination-visual .swiper-pagination-bullet.swiper-pagination-bullet-active {
    display: flex !important;
    opacity: 1 !important;
    background-color: #ffffff !important;
    color: #25425c !important;
    padding: 12px 24px !important;
    border: 2px solid #25425c !important;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    letter-spacing: 0.2em;
    text-indent: 0.2em; /* letter-spacingと同じ値 */
}

/* 開催中コンペ用の矢印色を白に */
.event_visual-nav .swiper-button-prev::after,
.event_visual-nav .swiper-button-next::after {
    color: #ffffff !important;
}

/* 開催実績の矢印はデフォルトのまま */
.event_sub-nav .swiper-button-prev::after,
.event_sub-nav .swiper-button-next::after {
    color: currentColor;
}

/* Swiperのデフォルトスタイルを上書き：スライドが少ない場合も表示 */
.event_sub-contents .swiper-pagination-bullet:only-child,
.event_sub-contents .swiper-pagination-lock {
    display: flex !important;
}

/* 開催中コンペのページネーションも強制表示 */
.event_visual-contents .swiper-pagination-bullet:only-child,
.event_visual-contents .swiper-pagination-lock {
    display: flex !important;
}

/* より具体的なセレクタで確実に表示 */
.event_visual-contents .swiper-pagination-visual .swiper-pagination-bullet {
    display: flex !important;
}

/* 開催中コンペの矢印の色を白に */
.event_visual-contents .swiper-button-prev::after,
.event_visual-contents .swiper-button-next::after {
    color: #ffffff;
}


/* 開催実績セクション */
.event_sub-contents {
    max-width: 1635px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 40px;
    background-color: #e8ebee;
}

.event_sub-slide {
    max-width: 1340px;
    width: 95%;
    margin: 0 auto;
    overflow: hidden;
}

/* 開催実績のアイテム */
.event_sub-item {
    padding: 30px 30px 20px; /* bottom: 30px → 20px */
    background-color: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: auto;
}

/* 開催実績の画像 */
.event_sub-img {
    width: 100%;
    height: 250px; /* 固定高さ */
    margin-bottom: 15px;
    object-fit: cover; /* 画像を切り抜いて領域を埋める */
    object-position: center; /* 中央を基準に切り抜く */
}

/* 開催実績のタイトル */
.event_sub-item h3 {
    font-weight: bold;
    font-size: 25px;
    margin-bottom: 10px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.event_sub-schedule {
    display: block;
    margin-bottom: 15px;
    font-size: 15px;
    min-height: 1.5em;
}

.event_sub-text {
    padding-top: 15px;
    border-top: 1px solid #aaaaaa;
    font-size: 20px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

/* 開催実績のカード高さ統一 */
.event_sub-slide .swiper-wrapper {
    align-items: stretch;
}

.event_sub-item .event_more-link {
    margin-top: auto;
}

/* ナビゲーション領域 */
.event_sub-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr;
    position: relative;
	z-index: 1;
    max-width: 400px;
    width: 100%;
    height: 60px;
    margin: 40px auto 0;
    align-items: center;
    gap: 8px;
}

/* ページネーション */
.swiper-pagination {
    position: relative !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    grid-column: 2 / 3;
    grid-row: 1;
}

.swiper-pagination-bullet {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    background: transparent !important;
}

/* 開催実績用ページネーション */
.swiper-pagination-bullet.swiper-pagination-bullet-active {
    display: flex !important;
    opacity: 1 !important;
    background-color: #25425c !important;
    color: #ffffff;
    padding: 12px 24px !important;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    letter-spacing: 0.2em;
    text-indent: 0.2em; /* letter-spacingと同じ値 */
}

/* Swiperのデフォルトスタイルを上書き：スライドが少ない場合も表示 */
.event_sub-contents .swiper-pagination-bullet:only-child,
.event_sub-contents .swiper-pagination-lock {
    display: flex !important;
}

/* ナビゲーションボタン */
.swiper-button-prev,
.swiper-button-next {
    position: relative !important;
    display: flex;
    width: auto;
    height: auto;
    margin: 0 !important;
    padding: 0;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    background-color: transparent;
    border-radius: 0;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #25425c;
    box-sizing: border-box;
    overflow: visible;
    grid-row: 1;
}

.swiper-button-prev {
    grid-column: 1 / 2;
    justify-self: end;
}

.swiper-button-next {
    grid-column: 3 / 4;
    justify-self: start;
}

/* SVG矢印のスタイル */
.swiper-button-prev .swiper-navigation-icon,
.swiper-button-next .swiper-navigation-icon {
    width: 28px;
    height: 40px;
    display: block;
    overflow: visible;
}

/* 開催中コンペ用の矢印を白色に */
.event_visual-nav .swiper-button-prev .swiper-navigation-icon path,
.event_visual-nav .swiper-button-next .swiper-navigation-icon path {
    stroke: #ffffff !important;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 開催実績の矢印はデフォルト色（#25425c） */
.event_sub-nav .swiper-button-prev .swiper-navigation-icon path,
.event_sub-nav .swiper-button-next .swiper-navigation-icon path {
    stroke: #25425c;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    content: none;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 0.7;
}

/* 矢印が無効の時 */
.swiper-button-prev.hidden,
.swiper-button-next.hidden {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}


/* クリッカブルなアイテム */
.event_visual-item[data-modal-id],
.event_sub-item[data-modal-id] {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event_visual-item[data-modal-id]:hover,
.event_sub-item[data-modal-id]:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 「詳細を見る」リンク */
.event_more-link {
    display: inline-block;
    margin-top: 10px;
    color: #25425c;
    font-weight: bold;
    font-size: 14px;
    text-align: right;
    transition: color 0.3s;
}

/* ホバー時の色を#800020に変更 */
.event_visual-item:hover .event_more-link,
.event_sub-item:hover .event_more-link {
    color: #800020;
}

@media screen and (min-width: 768px) {
    .common_page-title {
        margin-bottom: 35px;
    }
    .main_container {
        padding-top: calc(80px + 50px);
        padding-bottom: 100px;
    }
    .main_container::before {
        top: 80px;
        background-image: url(../images/access_bg-pc.png);
        background-size: 1920px 1610px;
        opacity: 0.4;
    }
    .event_text {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .event_sub-nav {
        grid-template-columns: 1fr auto 1fr;
        max-width: 450px;
        height: 60px;
        gap: 80px;
    }
    
    .swiper-button-prev .swiper-navigation-icon,
    .swiper-button-next .swiper-navigation-icon {
        width: 32px;
        height: 46px;
    }
    
    .swiper-button-prev .swiper-navigation-icon path,
    .swiper-button-next .swiper-navigation-icon path {
        stroke-width: 2.5;
    }
    
    .swiper-pagination-bullet.swiper-pagination-bullet-active {
        padding: 14px 32px !important;
        font-size: 22px;
    }

	.event_visual-nav {
        grid-template-columns: 1fr auto 1fr;
        max-width: 450px;
        height: 60px;
        gap: 80px;
    }
    
    .swiper-pagination-visual .swiper-pagination-bullet-active {
        padding: 14px 32px !important;
        font-size: 22px;
    }
}

@media screen and (max-width: 767px) {
    .common_page-title {
        margin-bottom: 15px;
    }
    .main_container {
        padding-top: calc(60px + 15px);
        padding-bottom: 110px;
    }
    .main_container::before {
        top: 60px;
        background-image: url(../images/access_bg-mb.png);
        background-size: 375px 1388px;
        opacity: 0.5;
    }
    .event_text {
        margin-bottom: 65px;
        text-align: justify;
    }
    
    .event_sub-nav {
        grid-template-columns: 1fr auto 1fr;
        max-width: 340px;
        height: 50px;
        gap: 80px;
    }
    
    .swiper-button-prev .swiper-navigation-icon,
    .swiper-button-next .swiper-navigation-icon {
        width: 26px;
        height: 34px;
    }
    
    .swiper-button-prev .swiper-navigation-icon path,
    .swiper-button-next .swiper-navigation-icon path {
        stroke-width: 2.5;
    }
    
    .swiper-pagination-bullet.swiper-pagination-bullet-active {
        padding: 10px 20px !important;
        font-size: 18px;
    }

	.event_visual-nav {
        grid-template-columns: 1fr auto 1fr;
        max-width: 340px;
        height: 50px;
        gap: 80px;
    }
    
    /* .swiper-button-prev-visual .swiper-navigation-icon,
    .swiper-button-next-visual .swiper-navigation-icon {
        width: 26px;
        height: 34px;
    } */
    
    .swiper-pagination-visual .swiper-pagination-bullet-active {
        padding: 10px 20px !important;
        font-size: 18px;
    }

	/* 開催中コンペの説明文 */
    .event_visual-text {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* 開催実績の説明文 */
    .event_sub-text {
        font-size: 16px;
        line-height: 1.5;
    }
    
	.event_visual-img {
        height: 200px;
    }
    
    .event_sub-img {
        height: 180px;
    }
}

/* モーダル */
.event_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100vw;
    height: 100vh;
}

.event_modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event_modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    z-index: 1;
}

.event_modal-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    background-color: #ffffff;
    border-radius: 8px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.event_modal-close {
    position: sticky;
    top: 10px;
    float: right;
    margin: 10px 10px 0 0;
    width: 40px;
    height: 40px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.event_modal-close:hover {
    background-color: #25425c;
    color: #ffffff;
    transform: rotate(90deg);
}

.event_modal-body {
    padding: 20px 40px 40px;
    clear: both;
}

.event_modal-img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
}

.event_modal-title {
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.event_modal-schedule {
    display: block;
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

.event_modal-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.event_modal-text p {
    margin-bottom: 15px;
}

/* 開催中コンペ用の矢印色を白に */
.event_visual-nav .swiper-button-prev::after,
.event_visual-nav .swiper-button-next::after {
    color: #ffffff;
}

/* クリッカブルなアイテム */
.event_visual-item[data-modal-id],
.event_sub-item[data-modal-id] {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event_visual-item[data-modal-id]:hover,
.event_sub-item[data-modal-id]:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 「詳細を見る」リンク */
.event_more-link {
    display: inline-block;
    margin-top: 10px;
    color: #25425c;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s;
}

/* 0件時の表示スタイル */
.event_empty-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 80px 40px;
    text-align: center;
}

.event_empty-content {
    max-width: 600px;
    width: 100%;
}

.event_empty-title {
    margin-bottom: 30px;
    color: #666;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.5;
}

.event_empty-text {
    color: #888;
    font-size: 22px;
    line-height: 1.8;
}

/* 開催中コンペの0件表示（白背景） */
.event_visual-contents .event_empty-message {
    background-color: #ffffff;
    min-height: 400px;
}

.event_visual-contents .event_empty-title {
    color: #25425c;
}

.event_visual-contents .event_empty-text {
    color: #25425c;
}

/* 開催実績の0件表示（グレー背景） */
.event_sub-contents .event_empty-message {
    background-color: #e8ebee;
    min-height: 350px;
}


@media screen and (max-width: 767px) {
    .event_modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .event_modal-body {
        padding: 20px 20px 30px;
    }
    
    .event_modal-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    .event_modal-title {
        font-size: 20px;
    }
    
    .event_modal-schedule {
        font-size: 14px;
    }
    
    .event_modal-text {
        font-size: 14px;
    }

	.event_empty-message {
        min-height: 280px;
        padding: 60px 30px;
    }
    
    .event_empty-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .event_empty-text {
        font-size: 18px;
    }
    
    .event_visual-contents .event_empty-message {
        min-height: 320px;
    }
    
    .event_sub-contents .event_empty-message {
        min-height: 280px;
    }
}