/* スムーススクロール */
html { scroll-behavior: smooth; }
@media screen and (max-width:767px) {
    .pcOnly {
        display: none;
    }
}
@media screen and (min-width:768px) {
    .spOnly {
        display: none;
    }
}
        :root {
            --gdo-blue: #0068B7;
            --text-main: #333;
            --btn-blue: #0071BE;
            --border-light: #ddd;
            --bg-gray: #f5f5f5;
            --accent-red: #D32F2F;
        }

        #str_container {
            font-family: sans-serif, 'Noto Sans JP',  "メイリオ", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "ＭＳ ゴシック" !important;
        }


        /* ヘッダー */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            border-bottom: 1px solid var(--border-light);
        }
        .header-logo {
            font-weight: 900;
            color: var(--gdo-blue);
            font-size: 20px;
            line-height: 1;
        }
        .header-logo span {
            font-size: 8px;
            display: block;
            color: #666;
        }
        .hamburger {
            font-size: 24px;
            color: var(--gdo-blue);
        }

        /* ヒーローエリア */
        .hero {
            text-align: center;
            padding: 20px 15px;
            position: relative;
            overflow: hidden;
        }
        .hero-sub {
            font-size: 16px;
            font-weight: 900;
            margin: 0 0 5px 0;
        }
        .hero-main {
            font-size: 42px;
            font-weight: 900;
            line-height: 1.1;
            margin: 0 0 10px 0;
            letter-spacing: -1px;
            position: relative;
        }
        .text-red { color: #EA4335; }
        .text-orange { color: #F29900; }
        .text-blue { color: var(--btn-blue); font-size: 32px; }
        
        .badge-circle {
            position: absolute;
            top: 20px; right: -25px;
            background: #111; color: #fff;
            border-radius: 50%;
            width: 55px; height: 55px;
            display: flex; flex-direction: column;
            justify-content: center; align-items: center;
            font-size: 16px; font-weight: bold; line-height: 1.1;
            transform: rotate(5deg);
        }
        .badge-circle span { font-size: 10px; }

        .hero-link {
            font-size: 12px; font-weight: bold; color: var(--btn-blue);
            text-decoration: none; display: inline-block; margin-top: 10px;
        }

        /* 検索フィルター枠（グラデーション枠） */
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 15px 36px;
        }

        .filter-wrapper {
            background: linear-gradient(135deg, #0071BE 0%, #34A853 50%, #F29900 100%);
            padding: 8px;
            border-radius: 12px;
            margin-bottom: 7px;
        }
        .filter-inner {
            background: #fff;
            border-radius: 6px;
            padding: 24px 0 0;
        }

        /* エリア選択 */
        .area-row {
            display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px;
        }
        .area-row label { font-weight: 900; font-size: 18px; white-space: nowrap; }
        .area-row select {
            padding: 15px 30px 15px 18px; font-size: 15px; font-weight: bold;
            border: 1px solid var(--border-light); border-radius: 4px;
            appearance: none; background: #fff;
            background-repeat: no-repeat; background-position: right 10px top 50%; background-size: 10px auto;
            min-width: 320px;
        }

        /* タブ切り替え */
        .tab-group {
            display: flex; border: 1px solid var(--border-light); border-radius: 4px;
            overflow: hidden; width: 390px;
        }
        .tab-btn {
            flex: 1; padding: 10px; font-size: 16px; font-weight: normal;
            background: #fff; border: none; color: #666; cursor: pointer;
        }
        .tab-btn.active {
            font-weight: bold;
        }
        .tab-btn.active { background: var(--btn-blue); color: #fff; }

        /* 金額ボタン枠（グレー背景） */
        .price-grid-box {
            background-color: var(--bg-gray); padding: 20px 24px 30px; border-radius: 4px;
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
        }
        @media (min-width: 769px) {
            .price-grid-box { grid-template-columns: repeat(6, 1fr); }
        }
        .price-btn {
            background: #fff; border: 1px solid var(--border-light); border-radius: 4px;
            padding: 10px 5px; text-align: center; text-decoration: none;
            color: var(--text-main); font-weight: bold; font-size: 16px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .price-btn span {
            font-size: 14px;
        }
        .notes-small { font-size: 12px; color: #000; margin-top: 5px; }

        /* 金額別見出し */
        .price-section { margin-top: 13px; }
        
        .graphic-header {
            text-align: center;
            margin-bottom: 16px;
            scroll-margin-top: 20px;
        }
        .gh-top {
            display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin-bottom: 5px;
        }
        .bubble {
            border: 1px solid var(--border-light); border-radius: 22px; padding: 10px 20px 5px;
            font-size: 17px; font-weight: bold; background: #fff; position: relative;
        }
        .bubble::after {
            content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
            border-width: 5px 5px 0 5px; border-style: solid; border-color: var(--border-light) transparent transparent transparent;
        }
        .gh-icon { font-size: 24px; line-height: 1; }
        
        .gh-bottom { font-weight: 900; display: flex; justify-content: center; align-items: baseline; gap: 8px;}
        .gh-total { font-size: 24px; }
        .gh-arrow { color: var(--accent-red); font-size: 20px; }
        .gh-person { font-size: 24px; color: var(--accent-red); }
        .gh-person-highlight {
            font-size: 32px;
            background: linear-gradient(transparent 60%, #D4FF00 60%); 
        }

        .notes-mid { font-size: 12px; color: #000; margin-bottom: 13px; }

        /* コースカードレイアウト（PC 4カラム / SP 横スクロール） */
        .course-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 32px 20px;
            margin-bottom: 8px;
        }

        @media (max-width: 768px) {
          .course-grid {
            display: grid;                       /* flex → grid に変更 */
            grid-template-columns: none;         /* PC用の repeat(4, 1fr) を解除（必須） */
            grid-template-rows: repeat(2, auto); /* 2段にする */
            grid-auto-flow: column;              /* カードを横方向に追加していく */
            grid-auto-columns: 54%;              /* カード幅（旧 flex: 0 0 54% と同じ） */
            /* ↓以下は既存のまま */
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            margin-left: -16px;
            margin-right: -16px;
            padding-left: 16px;
            padding-right: 16px;
            padding-bottom: 0px;
            scroll-padding-left: 16px;
            gap: 17px;
          }
          .course-card {
            scroll-snap-align: start;
            scroll-snap-stop: always; /* 追加: 1列ごとに必ず止まる */
          }
        }

        /* コースカード単体のデザイン */
        .course-card {
            background: #fff;
            display: flex;
            flex-direction: column;
            margin-bottom: 8px;
        }
        
        .card-img-box {
            position: relative;
            width: 100%;
            height: 150px;
            overflow: hidden;
            border-radius: 4px;
        }

        .card-pref-badge {
            position: absolute;
            bottom: 8px;
            left: 8px;
            background: #fff;
            border-radius: 42px;
            padding: 3px 10px;
            font-size: 14px;
            z-index: 2;
            border: 1px solid #D6D6D6;
        }

        .card-body {
            display: flex; flex-direction: column; flex-grow: 1; padding: 10px 0 0;
        }
        .card-title {
            font-size: 16px;
            font-weight: bold;
            margin: 0 0 10px 0;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
            -webkit-line-clamp: 2;
            margin-bottom: 8px !important;
        }
        .card-access {
            font-size: 14px; color: #333; margin-bottom: 13px;
            display: flex; align-items: center; gap: 4px;  margin-top:auto;
        }
        .card-btn {
            display: block;
            text-align: center;
            border: 1px solid var(--btn-blue);
            color: var(--btn-blue);
            background: #fff;
            padding: 8px 0;
            font-size: 16px;
            font-weight: bold;
            text-decoration: none;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
        .card-btn:hover {
            background:#e8f6ff;
            color: var(--btn-blue);
        }
        .hero-main {
            background: url(../images/mv_pc.jpg) no-repeat center top;
            background-size: cover;
            margin-left: calc(50% - 50vw);
            margin-right: calc(50% - 50vw);
            height: 214px;
        }
        .area-row label {
            font-size: 28px;
            transform: scaleX(0.8);
            
        }
        @media screen and (min-width:768px) {
            .area-row label {
            margin: 0 11px 0 -40px;
        }
            
        }
        .filter-wrapper-text {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .filter-wrapper-text a {
            font-size: 16px;
            font-weight: bold;
            color: #3c3c3c;
            position: relative;
            margin-right: 20px;
        }
        .filter-wrapper-text a::after {
            content: "";
            display: inline-block;
            width: 12px;
            height: 12px;
            border-top: 2px solid #0071BE;
            border-right: 2px solid #0071BE;
            transform: rotate(45deg) translateY(-50%);
            position: absolute;
            top: 40%;
            right: -12px;
        }
        .change-criteria a {
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            border: 1px solid #dededf;
            border-radius: 4px;
            text-align: center;
            width: 343px;
            font-size: 16px;
            color: #000;
            font-weight: 600;
            display: block;
            margin: auto;
            padding: 15px 0;
        }
        .features-area {
            display: flex;
            gap: 24px;
            justify-content: center;
        }
        .features-area-content {
            width: 343px;
            border: 2px solid #DEDEDF;
            border-radius: 6px;
        }
        .features-area-content img {
            border-radius: 4px 4px 0 0;
        }
        .features-area-content p {
            font-size: 16px;
            font-weight: 600;
            padding: 10px 19px;
            margin-top: 0;
            color: #000;
        }
        .other-campaigns {
            text-align: center;
            margin: 71px 0 47px;
        }
        .area-select-content {
            display: flex;
            align-items: center;
        }
        .card-img-box img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-radius: 4px;
        }
        .card-access img {
            opacity: 0.6;
        }
        .card-access p {
            margin-top: 0;
        }
        .change-criteria {
            margin-top: 20px;
        }

        @media screen and (max-width:767px) {
            .bubble {
                padding: 4px 12px 4px;
                font-size: 15px;
            }
            .card-img-box {
                height: 108px;
            }
            .area-row {
            display:block;
            }
            .tab-group {
                width: 90%;
                margin: 12px auto 0;
            }
            .area-row{
                display: block;
            }
            .area-row label {
                width: 45%;
            }
            .area-row select {
                min-width: 0;
                width: 100%;
            }
            .features-area {
                display:block;
            }
            .features-area-content {
                width: 100%;
            }
            .features-area-content + .features-area-content {
                margin-top:16px;
            }
            .other-campaigns {
                margin: 63px 0 26px;
            }
            .features-area-content img {
                width: 100%;
            }
            .container {
                padding: 0 16px 22px;
            }
            .hero-main {
                background: none;
                margin: 0;
                width: 100%;
                height: auto;
            }
            .hero {
                padding: 0;
            }
            .area-select-content {
                align-items: center;
                width: 95%;
                justify-content: space-between;
            }
            .area-row label {
                font-size: 24px;
                margin-left: 5px;
            }
            .filter-wrapper-text {
                justify-content: center;
                margin-bottom: 18px;
            }
            #display-container {
                margin-top: 34px;
            }
            .filter-wrapper-text a {
                font-size: 16px;
            }
            .container {
                position: relative;
                margin-top: -45%;
            }
            .filter-wrapper-text a::after {
                top: 50%;
            }
            .gh-icon img {
                width: 80%;
            }
            .price-grid-box {
                padding: 12px;
                gap: 12px;
            }
            .filter-inner {
                padding: 12px 0 0;
            }
            .area-select-content .select-wrap select {
                padding: 11px 43px 11px 16px;
            }
            .price-section {
                margin-top: 26px;
            }
            .notes-small {
                margin-top: 0;
            }
            .card-access {
                align-items: flex-start;
            }
            .card-access img {
                margin-top: 2px;
            }
            .tab-btn {
                padding: 8px 10px;
            }
            .price-btn {
                padding: 8.5px 5px;
            }

    }
    @media screen and (min-width:768px) {
            .container {
                margin: -68px auto 0;
                position: relative;
            }
    }


.select-wrap {
  position: relative;
  display: inline-block;
}

/* デフォルトの▼を消す */
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 9px 40px 9px 10px;
  font-size: 16px;
}

/* 下向き「くの字」 */
.select-wrap::after {
  content: "";
  position: absolute;
  top: 43%;
  right: 15px;
  width: 11px;
  height: 11px;
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

select {
  -webkit-appearance: none;
  appearance: none;
  color: #000 !important;
  -webkit-text-fill-color: #000;
}
