/*=================================
* common
==================================*/

#main-content {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #fff;
    color: #333333;
    /** メニュー被り避け **/
    position: relative;
    z-index: 0;
    /* レイアウトシフト防止のため最小高さを設定 */
    min-height: 100vh;
    contain: layout style;
}

#main-content h2 {
    color: #234787 !important;
    font-family: "Sorts Mill Goudy", serif !important;
    font-weight: 400 !important;
    font-style: italic !important;
    font-size: 50px !important;
    letter-spacing: .25rem !important;
    text-align: center !important;
    margin: 0 !important;
    margin-bottom: 1.5rem !important;
}

#main-content a img {
    width: 100%;
    height: 100%;
    vertical-align: bottom;
    object-fit: cover;
}

#main-content .container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 5rem 1rem;
    overflow: hidden;
    box-sizing: border-box;
}

#main-content .section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

#main-content .small {
    font-size: 15px;
}

#main-content .bg-pink {
    background: #fbeaf2;
}

#main-content .bg-blue {
    background: #e6f1f5;
}

#main-content .bg-yellow {
    background: #faf2e3;
}

#main-content .bg-green {
    background: #e9f3ec;
}

/* MORE BUTTON */
#main-content .more-button {
    text-align: center;
}

#main-content .more-button a.link {
    align-items: center;
    background: linear-gradient(to right, #007abd 0%, #576fe6 25%, #9844b7 51%, #ff357f 100%);
    background-position: 1% 50%;
    background-size: 200% auto;
    border-radius: 5px;
    color: #fff;
    display: inline-block;
    font-family: "Sorts Mill Goudy", serif;
    font-weight: 400;
    font-style: italic;
    line-height: 1.8;
    letter-spacing: .25rem;
    max-width: 350px;
    margin: 0 auto;
    margin-top: 3rem;
    padding: 1rem;
    position: relative;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    transition: all 0.3s ease-out;
    width: 90%;
}

#main-content .more-button a.link:hover {
    background-position: 99% 50%;
}

/* 矢印 */
#main-content .more-button .link::before,
#main-content .more-button .link::after {
    content: "";
    position: absolute;
}

#main-content .more-button .link::before {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 8px;
    border-color: transparent transparent transparent #FFF;
    bottom: 45%;
    right: 15px;
}

#main-content .more-button .link::after {
    background: #FFF;
    width: 18px;
    height: 1px;
    bottom: 50%;
    right: 22px;
    transform: translate(0, -50%);
}

/*=================================
* ヘッダースライダー
==================================*/
#head-slider {
    background: linear-gradient(to right, #e9f2f8 0%, #e5f3fc 25%, #f2eff9 50%, #faedf5 65%, #fef4e9 85%, #fdf6e6 100%);
}

#head-slider .container {
    position: relative;
    padding-top: 7rem;
}

#head-slider .container::before {
    background: url("/img/logo.png")no-repeat top center/100%;
    content: "";
    width: 492px;
    height: 87px;
    position: absolute;
    right: 20px;
    top: 20px;
}

/* Swiper Container */
.swiper {
    width: 100%;
    overflow: visible;
    padding-left: 30px;
    /* レイアウトシフト防止のため最小高さを設定 */
    min-height: 200px;
    contain: layout style;
}

#news .swiper {
    padding-left: 0;
}

/* Back link styles */
.back-link {
    margin-bottom: 1rem;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    color: #234787 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #007abd !important;
}

/* News page用のh2スタイル */
.news-page #main-content h2 {
    color: #ee71a9 !important;
    font-family: "Sorts Mill Goudy", serif !important;
    font-weight: 400 !important;
    font-style: italic !important;
    font-size: 22px !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
}

.swiper-slide {
    height: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(0.9);
    transform-origin: center center;
}

/* アクティブスライドのスタイル */
.swiper-slide-active {
    transform: scale(1.1) !important;
    z-index: 10;
}

/* カードスタイル */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* アクティブスライドのカードは特別なホバー効果 */
.swiper-slide-active .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

/* カテゴリータグ */
.card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #234787;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Swiper Pagination */
.swiper-pagination {
    bottom: -10px !important;
    margin-top: 15px;
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    text-align: center !important;
}

.swiper-pagination-bullet {
    background: #ddd;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #ff4081;
    transform: scale(1.2);
}


/* 2つ目のスライダー（画像フォーカス型）(NEWS) */
.image-slider .swiper-slide {
    width: 280px;
    margin-right: 15px;
}

/* News専用ページネーション */
#news .swiper-pagination {
    display: block !important;
    position: relative !important;
    bottom: 0 !important;
    margin-top: 20px;
    text-align: center;
}

.image-card {
    background: white;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0);
    display: block;
    height: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.image-card::before,
.image-card::after {
    content: "";
    position: absolute;
}

.image-card::before {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10.4px;
    border-color: transparent transparent transparent #EE71A9;
    bottom: 9px;
    right: 9px;
}

.image-card::after {
    background: #ee71a9;
    width: 18px;
    height: 2px;
    bottom: 14px;
    right: 18px;
}

.image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.image-card-photo {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.image-card-photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: 280 / 220;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-card:hover .image-card-photo img {
    transform: scale(1.1);
}

.image-card-info {
    padding: 16px;
}

.image-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: .5rem 0 8px 0;
    color: #333;
    line-height: 1.4;
}

.image-card-date {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* 2つ目のスライダー(NEWS)専用 - スケール効果を無効化 */
.image-slider .swiper-slide {
    transform: scale(1) !important;
    /* 常に等倍 */
    opacity: 1 !important;
}

.image-slider .swiper-slide-active {
    transform: scale(1) !important;
    /* アクティブでも等倍 */
    z-index: 1 !important;
}

/* ページネーション共通スタイル */
.swiper-pagination-bullet-active {
    background: #007abd;
    transform: scale(1.2);
}

/*===================================
* Girl's Rider
===================================*/
#girlsrider {
    background: #eef0f8;
}

#girlsrider .gr-list {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
}

#girlsrider .gr-list li {
    width: 23.5%;
    max-width: 250px;
    margin: 0 1%;
}

#girlsrider .gr-list li:first-child,
#girlsrider .gr-list li:nth-child(4n + 1) {
    margin-left: 0;
}

#girlsrider .gr-list li:nth-child(4n) {
    margin-right: 0;
}

#girlsrider .gr-card {
    color: #234787;
    display: block;
    font-weight: bold;
    font-size: 14px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

#girlsrider .gr-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

#girlsrider .gr-card:hover .gr-card-info {
    padding: 0 .5rem;
}

#girlsrider .gr-list .gr-card-info {
    margin-top: .75rem;
    margin-bottom: 1.5rem;
    padding: 0;
    transition: all 0.3s ease;
}

#girlsrider .gr-list .gr-card-photo img {
    aspect-ratio: 1/ 1;
    object-fit: cover;
}

/*===================================
* Articles
===================================*/
#articles .row {
    display: flex;
    align-items: start;
}

#articles .column-3-2 {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    width: 66%;
    margin-right: 1%;
    padding: 0;
}

#articles .column-3-2 li {
    width: 48%;
    margin: 0 1% 1rem;
}

#articles .column-3-2 li:nth-child(odd) {
    margin-left: 0;
}

#articles .column-3-2 li .column-card {
    align-items: center;
    color: #333333;
    display: flex;
    justify-content: start;
    text-decoration: none;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 110px;
    width: 100%;
}

#articles .column-3-2 li .column-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

#articles .column-3-2 li .column-card-photo {
    margin-right: 1rem;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    overflow: hidden;
}

#articles .column-3-2 li .column-card-photo img {
    width: 110px !important;
    height: 110px !important;
    aspect-ratio: 1/ 1;
    object-fit: cover;
}

#articles .column-3-2 li .column-card-title {
    font-size: 14px;
}

#articles .column-3-1 {
    width: 33%;
}

/* banner */
#articles .column-ad-banner {
    display: block;
    max-width: 320px;
    width: 100%;
    margin-bottom: 1rem;
}

/*===================================
* Feature Trip
===================================*/
#featuretrip {
    background: #f8f8f8;
}

#featuretrip .row {
    display: flex;
}

#featuretrip .swiper-slide {
    width: 25%;
}

#featuretrip .swiper-slide .image-card-info {
    height: 100%;
}


/*===================================
* SNOWANGEL PARTNER
===================================*/
#partner {}

#partner .row {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
}

#partner .row li {
    width: 32%;
    margin: 0 1% 1rem;
}

#partner .row li:nth-child(3n) {
    margin-right: 0;
}

#partner .row li:first-child,
#partner .row li:nth-child(3n + 1) {
    margin-left: 0;
}

#partner .row li .partner-banner img {
    aspect-ratio: 16/ 9;
    object-fit: cover;
}

#partner .row li .partner-banner {
    align-items: center;
    color: #333333;
    display: flex;
    justify-content: start;
    text-decoration: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

#partner .row li .partner-banner:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/*===================================
* レスポンシブ設定
===================================*/
@media (max-width: 991px) {
    #head-slider .container {
        padding-top: 10rem;
    }

    .swiper-pagination {
        bottom: 12px !important;
    }

    /** Girl's Rider ******************/
    #girlsrider .gr-list li {
        width: 48%;
        max-width: inherit;
        margin: 0 2% 1.5rem;
    }

    #girlsrider .gr-list li:nth-child(4n),
    #girlsrider .gr-list li:nth-child(4n + 1) {
        margin: 0 2% 1.5rem;
    }

    #girlsrider .gr-list li:nth-child(even) {
        margin-right: 0;
    }

    #girlsrider .gr-list li:nth-child(odd) {
        margin-left: 0;
    }

    /** Articles ******************/
    #articles .row {
        flex-direction: column;
        justify-content: center;
    }

    #articles .column-3-2 {
        margin: 0 auto 2rem;
        width: 100%;
    }

    #articles .row .column-3-1 {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #articles .column-3-1 > div {
        width: 90%;
    }

    #articles .column-ad-banner {
        width: 100%;
    }

    #articles .column-ad-banner img {
        width: 100%;
        height: auto;
    }

    /** Feature Trip ******************/
    #featuretrip .row {
        display: flex;
        flex-wrap: wrap;
    }

    #featuretrip .swiper-slide {
        width: 50%;
    }
}

@media (max-width: 768px) {
    #main-content .container {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .swiper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .card-image {
        height: 160px;
    }

    .card-content {
        padding: 15px;
    }

    .card-title {
        font-size: 14px;
    }


    .swiper-slide {
        top: 0px;
    }

    .swiper-slide-active {
        transform: scale(1.10) !important;
        top: -15px !important;
    }

    .swiper-slide-active {
        transform: scale(1.05) !important;
    }

    /** HEAD SLIDER *****************/
    #head-slider .container {
        padding-top: 8rem;
    }

    #head-slider .container::before {
        width: 330px;
        height: 60px;
    }

    /** Articles ******************/
    #articles .column-3-2 {
        margin-bottom: 2rem;
    }

    #articles .column-3-2 li {
        width: 100%;
        margin: 0 0 1rem;
    }

    /** Feature Trip ******************/
    #featuretrip .row {
        display: flex;
        flex-wrap: wrap;
    }

    #featuretrip .swiper-slide {
        width: 100%;
        transform: scale(1);
        margin-bottom: 2rem;
    }

    #featuretrip .swiper-slide:last-child {
        margin-bottom: 0;
    }

    /** SNOWANGEL PARTNER ******************/
    #partner .row li {
        width: 48.5%;
        margin: 0 1.5% 1rem;
    }

    #partner .row li:first-child,
    #partner .row li:nth-child(3n),
    #partner .row li:nth-child(3n + 1) {
        margin: 0 1.5% 1rem;
    }

    #partner .row li:nth-child(even) {
        margin-right: 0;
    }

    #partner .row li:nth-child(odd) {
        margin-left: 0;
    }
}

/*===================================
* Checkin Modal
===================================*/
.checkin-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.checkin-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007abd;
}

.checkin-modal-title {
    margin: 0;
    color: #007abd;
    font-size: 20px;
    font-weight: 600;
}

.checkin-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.checkin-modal-close:hover,
.checkin-modal-close:focus {
    color: #007abd;
}

.checkin-modal-body {
    text-align: center;
    color: #333;
    line-height: 1.6;
}

.checkin-modal-body p {
    margin-bottom: 15px;
    font-size: 16px;
}

.checkin-modal-button {
    background: linear-gradient(to right, #007abd 0%, #576fe6 25%, #9844b7 51%, #ff357f 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.checkin-modal-button:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 189, 0.3);
}