/* リセット・共通設定 */
* { margin: 0; padding: 0; box-sizing: border-box; }
a{color: inherit; text-decoration: none;}
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #F7F1E5; /* カンプの背景色 */
    color: #333;
    overflow-x: hidden;
    padding-top: 100px;
}
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0;  margin-top: 40px;}
.section-title { text-align: center; margin-bottom: 40px; font-size: 1.5rem;letter-spacing: 0.1em;
     background-color: #C1272D; color: #F7F1E5;  
    padding: 10px 0; border-radius: 20px;}

/* ヘッダー */
.header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; background: #fff; border-radius: 20px; margin: 20px;
    position: fixed; top: 0;left: 0;right: 0; z-index: 2000;
}
.header-logo { color: #C1272D; font-weight: bold; font-size: 1.2rem; }
.header-nav a { margin: 0 15px; text-decoration: none; color: #333; font-size: 0.9rem; }
.header-nav a:hover{color: #C1272D; border-bottom: #C1272D 1px solid; transition: color 300ms ease;}
.contact-circle {
    display: flex; align-items: center; justify-content: center;
    width: 80px; height: 80px; background: #C1272D; color: #fff;
    border-radius: 50%; font-size: 0.7rem; text-decoration: none; text-align: center;
}

/* メインビジュアル */
.wrapper{margin:0 50px ;}
.hero { text-align: center; padding: 40px 0; }
.hero-illustration img { max-width: 850px; width: 90%; border-radius:150px; }
.hero-copy h1 { color: #C1272D; font-size: 1.8rem; margin: 20px 0; }
.hero-copy p { font-size: 0.9rem; opacity: 0.8; }

/* オートプレイスライダー */
.slider-container { width: 100%; overflow: hidden; padding: 40px 0;  }
.slider-track {
    display: flex;
    /* 全体の幅は自動で広がるように width は指定しないか、十分な広さを確保 */
    width: max-content; 
    animation: scroll 30s linear infinite; /* infinite で無限に繰り返す */
}


.slide { width: 300px; padding: 0 5px; }
.slide img { width: 100%; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 半分（1セット目の終わり）まで移動 */
        transform: translateX(-50%);
    }
}

/* エリアグリッド */
/* カード自体の設定 */
/* グリッド全体の設定 */
.area-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCは2列 */
    gap: 40px; /* カンプのようなゆったりした余白 */
    max-width: 900px;
    margin: 0 auto;
}

/* カードの設定 */
.area-card {
    background: #fff;
    border-radius: 20px; /* カンプに近い大きな角丸 */
    padding: 20px 30px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.area-card h3 {
    color: #C1272D;
    font-size: 1.6rem;
}

.area-card h4 {
    color: #333;
    font-size: .5rem;
    margin-bottom: 20px;
}

.area-card h3 span {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* --- ボタンの共通設定 --- */
.btn-more {
    display: block;          /* 1. 箱として扱い、中央寄せを可能にする */
    width: fit-content;      /* 2. 幅を文字の長さに合わせる */
    margin: 20px auto 0;     /* 3. 左右をautoにして中央配置、上には20pxの隙間 */
    
    background: #D4AF37;    /* カンプのオリーブ色 */
    color: #fff;
    padding: 10px 40px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #D4AF37;
    text-align: center;      /* ボタン内の文字を中央に */
    transition: all 0.3s ease; /* ホバー時の動きを滑らかに */
}

.btn-more:hover {
    color: #D4AF37;
    background-color: #fff;
}

/* もっとみるボタンの中央配置 */
.btn-container {
    text-align: center;
    margin-top: 40px;
}

.btn-right{
    text-align: right;
}

/* --- スマホ版での微調整 --- */
@media (max-width: 768px) {
    .btn-more {
        font-size: 0.8rem;    /* 4. 文字サイズを気持ち小さく */
        padding: 8px 30px;   /* 5. ボタン自体も少しコンパクトに */
        margin-top: 15px;
    }
}

/* 画像コンテナ */
.area-img {
    width: 100%;
    height: 200px; /* PCでの画像高さ */
    overflow: hidden;
    border-radius: 10px; /* 画像部分の角丸 */
}

.area-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像が枠を埋め尽くすように設定 */
    display: block;
}

/* --- スマホ版（レスポンシブ） --- */
@media (max-width: 768px) {
    .area-grid {
        grid-template-columns: 1fr; /* 縦1列に */
        gap: 30px; /* スマホでは余白を少し詰める */
        padding: 0 10px;
    }

    .area-card {
        padding: 30px 20px;
    }

    .area-img {
        height: 180px; /* スマホに合わせて少し高さを調整 */
    }
}

/* おすすめツアー */
./* --- PC版の設定 --- */
.tour-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.tour-item {
    background: #fff;
    border-radius: 50px; /* カンプ通りの大きな角丸 */
    padding: 20px 40px;
    display: flex;      /* 横並び */
    align-items: center;
    gap: 30px;
    margin: 20px;
}

.tour-img-wrapper {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

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

.tour-text-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.tour-text-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

/* --- スマホ版の設定 --- */
@media (max-width: 768px) {
    .tour-item {
        flex-direction: column; /* 縦並びに変更 */
        padding: 30px 20px;
        text-align: center;      /* 文字を中央寄せ */
        border-radius: 30px;     /* スマホでは角丸を少し調整 */
    }

    .tour-img-wrapper {
        width: 100%;            /* 横幅いっぱい */
        height: 200px;          /* スマホで見やすい高さに */
    }

    .tour-text-content {
        width: 100%;
    }

    .tour-text-content h4 {
        margin-top: 10px;
    }

    .wrapper{
        margin: 12px;
    }
}




/* 予約の流れ */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.process-box {
    background: #fff; border: 1px solid #ddd; border-radius: 15px;
    padding: 30px 10px; text-align: center;
}

/* --- PC版レイアウト --- */
.about-flex {
    display: flex;
    align-items: center; /* 垂直方向の中央 */
    gap: 40px;           /* 写真とテキストの間隔 */
    max-width: 900px;
    margin: 0 auto;
}

.about-img-box {
    flex: 1;             /* 幅を均等に */
    max-width: 80%;
}

.about-img-box img {
    width: 100%;
    height: auto;
    display: block;
    /* カンプのような角丸が必要な場合は追加 */
    border-radius: 10px;
}

.about-text-box {
    flex: 1.2;           /* テキスト側を少し広く */
    text-align: left;    /* PCでは左寄せ */
}

.about-text-box p {
    line-height: 1.8;
    margin-bottom: 30px; /* ボタンとの間隔 */
}



/* PC版ではボタンを右ブロック内で中央寄せにしない場合（カンプ通り左寄せ） */
/* 中央にしたい場合は margin: 0 auto; に書き換えてください */

/* --- スマホ版の設定 (768px以下) --- */
@media (max-width: 768px) {
    .about-flex {
        flex-direction: column; /* 縦並びに変更 */
        gap: 20px;
    }

    .about-text-box {
        text-align: center;      /* スマホでは文字を中央に */
    }

    .about-text-box p {
        font-size: 0.85rem;      /* 気持ち小さく */
        margin-bottom: 20px;
    }

    /* スマホ版でボタンを中央配置 */
    .about-text-box .btn-more {
        margin: 0 auto;
    }
}

/* フッター */
.footer { background: #D4AF37; color: #fff; padding: 40px 0 100px 0; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; }
.footer-right nav a { color: #fff; text-decoration: none; display: block; margin-bottom: 10px; font-size: 0.8rem; }
.footer-logo{font-size: 2em; font-weight: bold; padding-bottom: 10px;}
/* レスポンシブ */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .area-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .about-flex { flex-direction: column; }
}


/* --- ハンバーガーボタンのスタイル --- */
.hamburger {
    display: none; /* PCでは非表示 */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
}

/* --- レスポンシブ設定 --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* スマホで表示 */
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%; /* 初期状態は画面外 */
        width: 100%;
        height: 100vh;
        background-color: #F7F1E5;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    /* メニューが開いている時 */
    .header-nav.active {
        right: 0;
    }

    .header-nav a {
        margin: 20px 0;
        font-size: 1.2rem;
    }

    /* ボタンのアニメーション（×印にする） */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}


/* lottieのエリア */

/* ローディング画面：transitionを追加してふわっと消えるようにする */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #F7F1E5; /* サイト背景と同じ色 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease; /* これが必要！ */
}

/* メインコンテンツ：最初は透明にしておく */
#content {
    opacity: 0;
    transition: opacity 0.8s ease; /* コンテンツが出る時の速度 */
}

/* JSでこのクラスがついたら不透明にする */
#content.loaded {
    opacity: 1;
}


/* ツアーカードのホバー演出 */
.tour-item {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    cursor: pointer; /* マウスを乗せたときに指のアイコンにする */
}

.tour-item:hover {
    /* 1. 少し浮かせて（-5px）、2. わずかに傾ける（2度） */
    transform: translateY(-5px) rotate(2deg);
    
    /* 3. 影を少し濃くして、浮いている感を強調 */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}


/* フェードインの設定 */
/* 最初は透明で、20px下に配置 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 画面内に入った時に付与するクラス */
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}





/* --- スライダー共通 --- */
.slider-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    display: flex;
    flex-direction: row; /* PCは横並び */
}

.slider-track {
    display: flex;
    width: max-content; /* 中身の幅に合わせる */
    flex-shrink: 0;     /* 幅が縮まないように固定 */
}

.slide {
    width: 300px;
    padding: 0 10px;
    flex-shrink: 0;     /* 1枚の幅を厳守 */
}

/* PC用：1列に見せるために両方左へ。切れ目防止のため -50% まで */
.track-top, .track-bottom {
    animation: scrollLeft 30s linear infinite;
}

/* --- スマホ版（768px以下） --- */
@media (max-width: 768px) {
    .slider-container {
        flex-direction: column; /* 縦並び2段 */
    }

    .slide {
        width: 180px; 
    }
    
    .track-top {
        animation: scrollLeft 20s linear infinite;
    }
    
    .track-bottom {
        /* scrollRightのアニメーションで -50%から0へ戻す */
        animation: scrollRight 20s linear infinite;
        margin-top: 10px;
    }
}

/* --- 【最重要】アニメーション定義 --- */

/* 左へ：0から「全体の半分」まで動かして、一瞬で0に戻す */
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* 右へ：全体の半分(-50%)から、0(右端)へ向かって動かす */
@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}