/* ============================================================
   trial.css — 体験フローセクション
   ============================================================ */

/* ---- フローリスト ---- */
.trial_flow_list {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 40px;
}

/* ---- 各フローアイテム ---- */
.trial_flow_item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 0;
    padding: 40px 40px 20px 0px;
}

.trial_flow_item:last-child {
    margin-bottom: 0;
}

/* ---- 番号カラム（番号 + 縦ライン） ---- */
.trial_flow_num-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 54px;
    flex-shrink: 0;
    align-self: stretch;
}

.trial_flow_number {
    font-size: 4rem;
    font-weight: 900;
    color: #d4130d;
    line-height: 1;
    margin-bottom: 10px;
    font-family: "Arial", "Helvetica Neue", sans-serif;
    letter-spacing: -0.02em;
    width: 100%;
    text-align: center;
}

.trial_flow_line {
    flex: 1;
    width: 2px;
    background: #d4130d;
    min-height: 16px;
}

/* ---- 画像 ---- */
.trial_flow_img {
    width: 340px;
    flex-shrink: 0;
}

.trial_flow_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- テキストコンテンツ ---- */
.trial_flow_content {
    flex: 1;
    padding-top: 4px;
}

.trial_flow_ttl {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
    padding: 0;
    border: none;
    background: none;
}

.trial_flow_txt {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0;
}

/* ---- 手ぶらセット注記（04 体験レッスン） ---- */
.trial_flow_note {
    font-size: 1.5rem;
    color: #d4130d;
    line-height: 1.7;
    margin-top: 12px;
}

.trial_flow_note strong {
    font-weight: 700;
}

.trial_flow_note span {
    display: block;
    font-size: 1.4rem;
    font-weight: normal;
}

/* ---- 店舗一覧（01 ご予約のご連絡） ---- */
.trial_store_list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.trial_store_row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 0;
}

.trial_store_dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #d4130d;
    flex-shrink: 0;
}

.trial_store_name {
    width: 90px;
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1a1a;
    flex-shrink: 0;
}

.trial_tel_btn {
    display: inline-block;
    min-width: 185px;
    border: 1.5px solid #d4130d;
    border-radius: 50px;
    padding: 9px 22px;
    font-size: 1.5rem;
    color: #d4130d;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition:
        border-color 0.2s,
        color 0.2s;
}

.trial_tel_btn:hover {
    border-color: #b50f0b;
    color: #b50f0b;
    text-decoration: none;
}

.trial_reserve_btn {
    display: inline-block;
    min-width: 185px;
    background: #d4130d;
    color: #fff;
    border: 1.5px solid transparent;
    border-radius: 50px;
    padding: 9px 22px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background 0.2s;
}

.trial_reserve_btn:hover {
    background: #b50f0b;
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   SP レスポンシブ (max-width: 600px)
   ============================================================ */
@media screen and (max-width: 600px) {
    .trial_flow_sec {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .trial_flow_list {
        padding: 24px 20px 24px 4px;
    }
    .trial_flow_item {
        padding: 5% 5% 5% 5px;
    }

    /*
     * SP: グリッドで番号列を画像＋テキスト両方の横に通す
     *   列1 (44px) : 番号 + 縦ライン (grid-row: 1/3 でスパン)
     *   列2 (1fr)  : 行1=画像、行2=テキスト
     */
    .trial_flow_item {
        display: grid;
        grid-template-columns: 44px 1fr;
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 0;
        margin-bottom: 40px;
        align-items: start;
    }

    /* SP: 番号カラムを画像行＋テキスト行にわたってスパン */
    .trial_flow_num-col {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 44px;
        align-self: stretch;
    }

    .trial_flow_number {
        font-size: 3rem;
        margin-bottom: 8px;
    }

    /* SP: 画像を列2・行1に配置 */
    .trial_flow_img {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        max-height: 190px;
        overflow: hidden;
        margin-bottom: 14px;
    }

    .trial_flow_img img {
        height: 190px;
        object-position: center top;
    }

    /* SP: テキストを列2・行2に配置 */
    .trial_flow_content {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        padding-left: 0;
        padding-top: 0;
    }

    .trial_flow_ttl {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .trial_flow_txt {
        font-size: 1.4rem;
        line-height: 1.7;
    }

    .trial_flow_note {
        font-size: 1.4rem;
    }

    /* SP: 店舗ボタン行を縦並びに */
    .trial_store_list {
        margin-top: 14px;
    }

    .trial_store_row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px 0;
    }

    .trial_store_dot {
        display: none;
    }

    .trial_store_name {
        width: auto;
        font-size: 1.7rem;
        text-align: center;
    }

    .trial_tel_btn {
        font-size: 1.4rem;
        padding: 10px 22px;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .trial_reserve_btn {
        font-size: 1.4rem;
        padding: 11px 22px;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ============================================================
   PC中間サイズ: フロー内店舗ボタンのはみ出し防止
   601px〜1200px のみ適用（SP / 料金表店舗リストには影響しない）
   ============================================================ */
@media screen and (min-width: 601px) and (max-width: 1200px) {
    /* ボタン幅・文字サイズを画面幅に合わせて縮小 */
    .trial_flow_content .trial_store_row {
        gap: 10px;
    }
    .trial_flow_content .trial_store_name {
        width: 72px;
        font-size: 1.4rem;
    }
    .trial_flow_content .trial_tel_btn,
    .trial_flow_content .trial_reserve_btn {
        min-width: 0;
        font-size: 1.25rem;
        padding: 7px 14px;
    }
}

@media screen and (min-width: 601px) and (max-width: 900px) {
    /* さらに狭い幅ではフロー画像も縮小して余白を確保 */
    .trial_flow_img {
        width: 200px;
    }
    .trial_flow_content .trial_store_name {
        width: 65px;
        font-size: 1.3rem;
    }
    .trial_flow_content .trial_tel_btn,
    .trial_flow_content .trial_reserve_btn {
        font-size: 1.15rem;
        padding: 6px 10px;
    }
}

/* ============================================================
   料金表内 コース変更＆店舗予約ブロック
   ============================================================ */
.ps-reserve-block {
    padding: 48px 0 40px;
}

.ps-reserve-block .ps-course-change {
    margin-bottom: 32px;
}

.ps-reserve-block__list {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.ps-reserve-block__list .trial_store_name {
    min-width: 80px;
    width: 80px;
}

@media screen and (max-width: 600px) {
    .ps-reserve-block {
        padding: 36px 0 28px;
    }

    .ps-reserve-block .ps-course-change {
        margin-bottom: 20px;
    }

    .ps-reserve-block__list {
        max-width: 100%;
    }
}

/* ---- 公式LINEボタン ---- */
.trial_line_btn {
    background: #06c755;
    border-color: #06c755;
    color: #fff;
    font-weight: 700;
    transition:
        background-color 0.2s,
        border-color 0.2s,
        color 0.2s;
}

.trial_line_btn:hover {
    background: #05a847;
    border-color: #05a847;
    color: #fff;
    text-decoration: none;
}