@charset "utf-8";
/* ============================
main
==============================*/
.tourism-wrapper{
    margin-top: 10px;
    position: relative;
    border-bottom: 2px solid #21562B;
}

.tourism-wrapper::before{
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #21562B;
    position: absolute;
    left: 0;
    right: 0;
    top: 9px;
    transform: translateY(-50%);
}

.section--tourism::after{
    content: "";
    display: block;
    width: 40px;
    height: 30px;
    background-image: url(../img/bus_illast.webp);
    background-size: cover;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 50;
    bottom: -5px;
    right: 20px;
}

.tourism_topic{
    text-align: center;
}

.service_intro{
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 20px;
}

.nav-links{
    margin-top: 30px;
    text-align: center;
    font-size: 1.2rem;
}

.links-item{
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 500;
    padding-bottom: 3px;
}

.links-item::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.links-item:hover::after{
    transform: scaleX(1);
}

.content_box{
    margin-bottom: 30px;
}

@media screen and (min-width: 769px){
    .section {
        padding: 80px 70px;
    }

    .tourism-wrapper{
        margin-bottom: 100px;
    }

    .tourism-wrapper::before{
        top: 20px;
    }

    .tourism-wrapper::after{
        width: 150px;
        height: 113px;
        bottom: -130px;
    }
    
    .section--tourism::after{
        width: 133px;
        height: 100px;
        bottom: -10px;
        right: 50px;
    }

    .service_intro{
        font-size: 1.8rem;
        font-weight: 500;
        text-align: center;
        margin-top: 50px;
    }

    .nav-links{
        margin: 50px auto;
        font-size: 2rem;
    }
    
    .links-item{
        font-size: 2rem;
        margin: 0 20px;
    }

    .content_box{
        margin-bottom: 60px;
    }
}
/* pc 769px */

.service_box{
    display: block;
    padding: 20px;
    border-radius: 20px;
    border: 3px solid #FA7921;
    background: #FFF;
    margin-top: 30px;
}

.service_title{
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--primary-orange);
}

.service_icon{
    width: 50px;
    height: auto;
}

.title_txt{
    font-size: 1.6rem;
    font-weight: 700;
}

.service_txt2{
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 15px;
}

.service_txtdetail{
    font-size: 1.2rem;
    font-weight: 500;
    margin: 10px 0;
}

.tourism_dl{
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 5px;
    transition: color 0.2s ease;
}

.tourism_dl:hover{
    color: var(--primary-orange);
}

.download{
    margin-top: 20px;
}

@media screen and (min-width: 769px){
    .service_box {
        padding: 50px 100px;
        margin-top: 50px;
        justify-content: space-between;
    }

    .service_icon{
        width: 80px;
    }

    .title_txt{
        font-size: 2.6rem;
    }

    .service_title{
        gap: 15px;
        border-bottom: 5px solid var(--primary-orange);
    }

    .service_txt2{
        font-size: 2.2rem;
        margin-top: 35px;
        font-weight: 700;
    }

    .service_txtdetail{
        font-size: 1.8rem;
        margin: 20px 0;
    }

    .tourism_dl{
        font-size: 1.8rem;
    }

    .download{
        margin-top: 30px;
    }
}
/* pc 769px */

/* slider */
.slider_title{
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 30px;
}

.slider_sbtitle{
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
}

.slider_sbtitle2{
    font-size: 0.8rem;
    text-align: center;
}

.card_title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 10px;
}

.slide-content{
    margin: 10px auto;
    width: fit-content;
    text-align: left;
}

.slide-txt {
    font-size: 1.2rem;
    font-weight: 500;
}

.course_detail {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
    border-radius: 40px;
    border: 1.5px solid #fff;
    background: #FA7921;
    box-shadow: 3px 5px 2px 0px rgba(0, 0, 0, 0.40);
    position: relative;
    top: 0;
}

.course_detail:hover {
    top: 4px;
    background: #d85f0b;
    box-shadow: 0 0 rgba(0, 0, 0, 0.40);
}

/* === Swiper全体のレイアウト調整 === */
.swiper-area {
    margin: 10px 15px 15px;
}

/* === スライドのデザイン === */
.swiper-slide {
    text-align: center;
    background-color: #FFF2E9;
    border: 3px solid #FA7921;
    border-radius: 20px;
    padding: 15px;
    overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  display: block; /* ←これを入れると余白が消える */
}

.img-cover img{
    object-fit: cover;
    height: 150px;
    width: 100%;
    border-radius: 10px;
}

/* === ページネーション（ドット） === */
.swiper-pagination {
    position: static;
    text-align: center;
    margin-bottom: 10px;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc; /* 非アクティブ */
    opacity: 1;
    margin: 0 3px !important;
    transition: all 0.3s ease;
    border-radius: 50%; /* 丸ドット */
}

.swiper-pagination-bullet-active {
    background: #FA7921;
    transform: scale(1.3); /* アクティブ時に少し大きく */
}

/* デフォルト矢印を消す */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none !important;
}

.swiper-button-prev,
.swiper-button-next {
    color: transparent !important;   /* デフォルト矢印の色を透明に */
    font-size: 0 !important;         /* デフォルトアイコンサイズを0に */
}

.swiper-button-prev,
.swiper-button-next {
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
}

.swiper-button-prev {
    background-image: url('../img/arrow-left.webp');
}

.swiper-button-next {
    background-image: url('../img/arrow-right.webp');
}

/* 矢印のベース位置（全体） */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    transform: translateY(-50%); /* 中央基準でずらす */
}

/* 左矢印 */
.swiper-button-prev {
    left: 5px !important;   /* 内側に寄せる */
}

/* 右矢印 */
.swiper-button-next {
    right: 5px !important;
}

@media screen and (min-width: 769px){
    .slider_title{
        font-size: 2.4rem;
        margin-top: 50px;
    }

    .slider_sbtitle{
        font-size: 1.8rem;
        margin-top: 10px;
    }

    .slider_sbtitle2{
        font-size: 1.4rem;
    }

    .card_title{
        font-size: 2rem;
        margin-top: 20px;
    }

    .slide-txt{
        font-size: 1.6rem;
    }

    .course_detail{
        font-size: 1.8rem;
        padding: 15px 0;
    }

    .swiper-area {
        margin: 20px 0 30px;
    }

    .img-cover img{
        height: 200px;
    }

    /* === ページネーション（ドット） === */
    .swiper-pagination {
        position: static;
        text-align: center;
        margin-bottom: 10px;
    }

    .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        margin: 0 5px !important;
    }

    .swiper-pagination-bullet-active {
        transform: scale(1.4); /* アクティブ時に少し大きく */
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 50px;
        height: 50px;
        top: 53% !important;
    }

    /* 左矢印 */
    .swiper-button-prev {
    left: 40px !important;   /* 内側に寄せる */
    }

    /* 右矢印 */
    .swiper-button-next {
    right: 40px !important;
    }
}
/* pc 769px */

/* btn */
.tourismbus_c_btn, .tourismbus_m_btn{
    display: flex;
    flex-direction: column;   /* 縦に並べる */
    align-items: center;      /* 横方向は中央 */
    justify-content: center;  /* 縦方向中央 */
    padding: 20px 50px;
    color: #FFF;
    font-size: 1.6rem;
    font-weight: 500;
    border-radius: 20px;
    background: var(--primary-orange);
    border: 2px solid #FFF;
    box-shadow: 3px 5px 2px 0px rgba(0, 0, 0, 0.40);
    position: relative;
    top: 0;
    text-align: center;
    margin-top: 20px;
    height: 73px;
}

.tourismbus_c_btn:hover, .tourismbus_m_btn:hover{
    top: 4px;
    box-shadow: 0 0 rgba(0, 0, 0, 0.40);
}

.m_time{
    font-size: 1.2rem;
}

.tourism_txtitem{
    display: flex;
    margin-top: 12px;
    justify-content: space-evenly;
}

.tourismbus_example{
    display: flex;
    gap: 5px;
    align-items: center;
}

.tourismbus_eimg{
    width: 15px;
    height: 15px;
}

.tourismbus_etxt{
    font-size: 1.2rem;
    font-weight: 500;
}

@media screen and (min-width: 769px){
    .tourism_btn{
        display: flex;
        justify-content: space-evenly;
    }

    .tourismbus_c_btn, .tourismbus_m_btn{
        font-size: 2.4rem;
        font-weight: 700;
        border: 2px solid #FFF;
        height: 120px;
        margin-top: 30px;
    }

    .m_time{
        font-size: 1.6rem;
    }

    .tourism_txtitem{
        justify-content: space-between;
        margin-top: 20px;
    }

    .tourismbus_eimg{
        width: 20px;
        height: 20px;
    }

    .tourismbus_etxt{
        font-size: 1.6rem;
    }
}
/* pc 769px */
/*=========================================
#modal
=========================================*/
/* ボタン */
.open-btn {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
}

.open-btn:hover {
    color: var(--primary-orange);
}

.modal.closing {
    display: flex;
    opacity: 0;
    pointer-events: none;
}

.modal.closing .modal-content {
    opacity: 0;
    transform: scale(0.8);
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* モーダル背景 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(79, 79, 79, 0.5);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* モーダル表示状態 */
.modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* モーダルの中身*/
.modal-content {
    background: #fff;
    padding: 25px 15px;
    border-radius: 10px;
    width: 90vw;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.modal-title{
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1;
}

/* アニメーション*/
.modal.active .modal-content {
    animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.modalexample{
    border-radius: 20px;
    border: 3px solid #FA7921;
    background: #FFF2E9;
    padding: 10px;
    text-align: left;
}

.modalexample-title, .modalexample-sub{
    font-size: 1.2rem;
    font-weight: 500;
}

.modalexample-sub{
    margin-top: 10px;
}

.modalexample-txt{
    font-size: 1rem;
    font-weight: 500;
}

@media screen and (min-width: 769px){
    .open-btn {
        font-size: 1.6rem;
    }

    .close-btn {
        font-size: 4rem;
        top: 2px;
    }

    .modal-content{
        padding: 40px 30px;
    }

    .modal-title{
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .modal-content {
        width: auto;     /* 内容に合わせる */
        max-width: 90%;  /* 画面からはみ出さないように保険 */
    }

    .modalexample{
        padding: 20px;
    }

    .modalexample-title, .modalexample-sub{
        font-size: 1.6rem;
    }

    .modalexample-txt{
        font-size: 1.6rem;
    }

}
/* pc 769px */
