@charset "utf-8";
/*2026.9.8*/
/*------------------------------------------------
* カスタムスタイル (テーマカラー #ED2D37)
* ヘッダー以外のデザインリニューアル（HTML骨格・文言は維持）
-------------------------------------------------*/

/************共通************/
/* ロゴ（白背景は SVG #ED2D37、FV透明ヘッダー上のみ白） */
.header .header-logo img {
    height: 28px;
    width: auto;
    filter: none;
}
img.footer-logo {
    display: block;
    height: 28px;
    width: auto;
    margin-bottom: 0;
    filter: none;
}
/* トップ FV・未スクロール（992px以上・横向き）：白ロゴ */
@media (min-width: 992px) and (orientation: landscape) {
    body.homepage .header.header-transparent:not(.scrolled) .header-logo img {
        filter: brightness(0) invert(1);
    }
}
/* 白背景ヘッダー：赤ロゴを明示（スクロール後・下層ページ・992px未満トップ） */
.header.scrolled .header-logo img,
.header:not(.header-transparent) .header-logo img {
    filter: none;
}
@media (max-width: 1199.98px) {
    .header .header-logo img {
        height: 24px;
    }
}

/* 本文〜フッターの地色（ヘッダーは対象外） */
.main-content .bg-light {
    background-color: #f4f1ec !important;
}
.main-content .text-muted {
    color: #6b7178 !important;
}

/* 下層ページタイトル（透かし＋日本語。トップ見出しと揃える） */
.s-page-title-area {
    background-color: #f7eef0;
    color: #1b1e24;
    text-align: left;
    padding-top: 3rem;
    padding-bottom: 2.5rem;
}
.s-page-title-area .s-section-heading {
    margin-bottom: 0;
}
.s-page-title-area h1.s-section-title-ja {
    font-size: 2.5rem;
}

/* フッター（紙色） */
.footer-top-area.back-red {
    background-color: #ebe6df;
    color: #3d4248;
}
.footer-top-area.back-red a,
.footer-top-area.back-red .footer-link,
.footer-top-area.back-red .text-white {
    color: #3d4248;
}
.footer-top-area .footer-link {
    display: inline-block;
    padding: 0.2rem 0;
    letter-spacing: 0.04em;
}
.footer-top-area .footer-link:hover {
    color: #ED2D37;
}
.footer-top-area .footer-social-icon {
    width: 2.35rem;
    height: 2.35rem;
    color: #3d4248;
    border: 1px solid rgba(61, 66, 72, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-top-area .footer-social-icon:hover {
    color: #fff;
    background-color: #ED2D37;
    border-color: #ED2D37;
}
.footer-bottom-area {
    background-color: #e4dfd8;
}
.footer-bottom-area .s-footer-legal {
    gap: 0.35rem;
}
.footer-bottom-area .s-footer-legal,
.footer-bottom-area p,
.footer-bottom-area .tx-white-8 {
    color: #5a6168 !important;
    font-size: 0.75rem !important;
}
.footer-bottom-area a,
.footer-bottom-area a.link-light {
    color: #5a6168 !important;
}
.footer-bottom-area a:hover {
    color: #ED2D37 !important;
}
.footer-bottom-area .s-footer-note {
    font-size: 0.6875rem !important;
    color: #8a9096 !important;
    line-height: 1.6;
}

/* 見出しあしらい（左揃え + 英字透かし） */
.s-section-heading {
    position: relative;
    text-align: left;
    margin-bottom: 3rem;
    padding-top: 1.5rem;
}
.s-section-heading::before {
    content: attr(data-en);
    position: absolute;
    top: 0;
    left: -0.04em;
    font-size: clamp(3.25rem, 9vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    color: rgba(237, 45, 55, 0.08);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}
.s-section-soft-red .s-section-heading::before,
.s-cta-band .s-section-heading::before {
    color: rgba(237, 45, 55, 0.05);
}
@media (max-width: 767.98px) {
    .s-section-heading::before {
        color: rgba(237, 45, 55, 0.12);
    }
    .s-section-soft-red .s-section-heading::before,
    .s-cta-band .s-section-heading::before {
        color: rgba(237, 45, 55, 0.08);
    }
}
.s-section-heading h2,
.s-section-heading h1 {
    position: relative;
    margin-bottom: 0.5rem;
}
.s-section-heading h2::after,
.s-section-heading h1::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background-color: #ED2D37;
    margin-top: 1.1rem;
}
.row .s-section-heading {
    margin-bottom: 1.5rem;
}
.s-section-lead {
    position: relative;
    margin: 0.85rem 0 0;
    color: #6b7178;
    font-size: 1rem;
}

.s-section-title-ja {
    display: block;
    position: relative;
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: #1b1e24;
}

@media (max-width: 575.98px) {
    .s-section-title-ja {
        font-size: 1.55rem;
    }
    .s-page-title-area h1.s-section-title-ja {
        font-size: 1.75rem;
    }
}

/* 下層の h2 以降は H1（透かし＋下線）と別デザイン */
body:not(.homepage) section .s-section-heading::before {
    content: none;
}
body:not(.homepage) section .s-section-heading {
    padding-top: 0;
}
body:not(.homepage) section .s-section-heading h2::after {
    content: none;
}
body:not(.homepage) section .s-section-heading h2.s-section-title-ja {
    font-size: 2rem;
    letter-spacing: 0.02em;
    margin-bottom: 0;
    padding-left: 0.85rem;
    border-left: 4px solid #ED2D37;
}
body:not(.homepage) .main-content h3.tx-1-5 {
    font-size: 1.25rem !important;
    line-height: 1.65;
}
@media (max-width: 575.98px) {
    body:not(.homepage) section .s-section-heading h2.s-section-title-ja {
        font-size: 1.55rem;
    }
    body:not(.homepage) .main-content h3.tx-1-5 {
        font-size: 1.15rem !important;
    }
}

/* セクション背景のバリエーション */
.s-section-soft-red {
    background-color: #f7eef0;
}

/* 角丸はボタンのみ（それ以外は直角） */
.rounded-1,
.rounded-2,
.rounded-3,
.rounded-4,
.rounded-5,
.rounded-circle,
.rounded-pill,
.card,
.accordion-item,
.accordion-button,
.badge,
.form-control,
.form-select,
.s-contact-form-container,
.required-badge,
.captcha-code {
    border-radius: 0 !important;
}

/* ボタン（rounded-pill 解除の上書き） */
.btn.rounded-pill,
a.btn.rounded-pill {
    border-radius: 50rem !important;
}

.scrolltotop.button-circle,
#back-to-top.button-circle {
    border-radius: 50% !important;
}

/* 講師写真のみ丸枠（全体の角丸解除の例外） */
img.rounded-circle {
    border-radius: 50% !important;
    border: 3px solid #f4f1ec;
}

/* サイト内ボタン（トップへ戻る・parts の btn-round は除外） */
.header .btn-custom,
.main-content .btn-custom,
.main-content .btn.btn-red,
.main-content .btn.btn-outline-red,
.s-sp-floating-cta a {
    border-radius: 0 !important;
    letter-spacing: 0.06em;
    font-weight: 600;
    min-height: 3rem;
}

/* カード面（講師・声・道順など）— 左アクセント */
.main-content .card,
.s-reservation-step-card,
.main-content .bg-white.p-4.h-100,
.main-content .bg-white.p-3.h-100 {
    background-color: #ffffff;
    box-shadow: 0 10px 32px rgba(27, 30, 36, 0.05);
    border-left: 4px solid #ED2D37;
}
.main-content .card .bi.tx-3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #f7eef0;
}

/* NEWSバー */
.main-content .section.bg-white .bg-light.d-flex {
    background-color: #ffffff !important;
}

/* 学習コラム：basic.css の blog-card を流用。テーマ色のみ上書き */
.blogbox-back {
    background-color: #ED2D37;
}
.blog-card:hover {
    border-color: #ED2D37;
}
/* school の basic.css 未収録（bike50cc index2.php 相当） */
.s-blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}
.s-blog-card-footer .blog-card-date {
    display: inline;
    text-align: right;
    flex-shrink: 0;
}

/* 予約フロー STEP カード */
.s-reservation-step-card .tx-08 {
    letter-spacing: 0.16em;
}

/* 合格実績（ダーク面上の数字看板） */
.s-results-stat {
    text-align: center;
    padding: 0.25rem 0 0.5rem;
}
.s-results-number {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: #ED2D37;
}
.s-results-number .tx-1-5 {
    font-size: 0.4em !important;
    margin-left: 0.1em;
}
.s-results-school-list li {
    position: relative;
    padding: 0.7rem 0 0.7rem 1.25rem;
    color: #5F6772;
    font-size: 0.95rem;
    line-height: 1.7;
    border-bottom: 1px solid #ece7e2;
}
.s-results-school-list li:last-child {
    border-bottom: 0;
}
.s-results-school-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.25em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ED2D37;
}

/************トップページ************/
.hero-section {
    position: relative;
    height: 72vh;
    min-height: 72vh;
    background-color: #f4f1ec;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    margin-top: -70px;
}
.s-hero-section-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.s-hero-section-picture {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.s-hero-section-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.s-hero-image--sp {
    display: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding-top: 70px;
    padding-bottom: 2rem;
}
.s-hero-title-box {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem 1.75rem 1.6rem;
}
.s-hero-title {
    margin: 0;
    color: #1b1e24;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: 0.04em;
}
.s-hero-title-line {
    display: block;
}
.s-hero-title-mark {
    background: linear-gradient(transparent 58%, #fad2d6 58%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.s-hero-title-mark-accent {
    color: #ED2D37;
    background: none;
}
.s-hero-lead {
    margin-top: 1.1rem;
}
.s-hero-lead-label {
    margin: 0 0 0.5rem;
    color: #353A40;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
}
.s-hero-cta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1.5rem;
}
.s-hero-cta-row .btn-custom {
    align-self: flex-start;
}
.s-hero-cta-row .btn-custom.btn-outline-red:hover,
.s-hero-cta-row .btn-custom.btn-outline-red:focus {
    color: #fff;
    background-color: #ED2D37 !important;
    border-color: #ED2D37;
}

@media (min-width: 992px) and (orientation: landscape) {
    /* FV：白枠レイアウト＝PC用画像（992px以上・横向き） */
    .s-hero-image--pc {
        display: block;
    }
    .s-hero-image--sp {
        display: none;
    }
    body.homepage .hero-section {
        display: flex;
        flex-direction: row;
        height: 72vh;
        min-height: 72vh;
        margin-top: -70px;
        overflow: hidden;
    }
    body.homepage .s-hero-section-media {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        padding-top: 0;
        background-color: transparent;
    }
    body.homepage .s-hero-section-picture {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        height: auto;
        overflow: visible;
    }
    body.homepage .s-hero-section-image {
        object-position: center;
    }
    body.homepage .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        padding-top: 70px;
        padding-bottom: 2rem;
        background-color: transparent;
    }
    body.homepage .s-hero-title-box {
        display: inline-block;
        width: auto;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 1.5rem 1.75rem 1.6rem;
    }
    body.homepage .s-hero-title {
        position: static;
        top: auto;
        left: auto;
        font-size: 3.75rem;
        line-height: 1.45;
        text-shadow: none;
    }
    body.homepage .s-hero-lead {
        text-align: left;
    }
    body.homepage .s-hero-lead-label {
        text-align: left;
        white-space: normal;
        font-size: 1rem;
    }
    body.homepage .s-hero-cta-row {
        position: static;
        align-items: flex-start;
        padding-top: 1.5rem;
    }
    body.homepage .s-hero-cta-row .btn-custom {
        width: auto;
        align-self: flex-start;
    }
    body.homepage .s-hero-section-media::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 8.75rem;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 100%);
        pointer-events: none;
        z-index: 1;
    }
    .s-hero-title-line {
        white-space: nowrap;
    }
}

@media (max-width: 991.98px), (orientation: portrait) {
    /* FV：分離レイアウト＝SP用画像（991px以下、または縦向き） */
    .s-hero-image--pc {
        display: none !important;
    }
    .s-hero-image--sp {
        display: block !important;
    }
    body.homepage .main-content {
        overflow-x: hidden;
        max-width: 100%;
        margin-top: 0 !important;
    }
    body.homepage .header.header-transparent {
        position: fixed !important;
        top: 0 !important;
        background-color: #ffffff !important;
        box-shadow: none;
    }
    body.homepage .header.header-transparent .header-logo a {
        color: #121518 !important;
    }
    body.homepage .header.header-transparent .header-toggle span,
    body.homepage .header.header-transparent .header-toggle span:before,
    body.homepage .header.header-transparent .header-toggle span:after {
        background: #121518 !important;
    }
    body.homepage .header.header-transparent .header-toggle.active span {
        background: transparent !important;
    }
    body.homepage .hero-section.overflow-hidden {
        overflow: visible !important;
    }
    body.homepage .hero-section {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        overflow: visible !important;
        background-color: #f4f1ec;
    }
    body.homepage .s-hero-section-media {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100%;
        padding-top: 70px;
        background-color: #ffffff;
    }
    body.homepage .s-hero-section-picture {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100%;
        overflow: hidden;
        height: min(70vh, calc(100vw * 4 / 3));
    }
    body.homepage .s-hero-section-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
    body.homepage .hero-content {
        position: static;
        z-index: 2;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto;
        padding-top: 1.75rem;
        padding-bottom: 2rem;
        background-color: #f4f1ec;
    }
    body.homepage .hero-content.container {
        padding-left: var(--bs-gutter-x, 0.75rem);
        padding-right: var(--bs-gutter-x, 0.75rem);
    }
    body.homepage .s-hero-copy {
        position: static;
        z-index: 2;
        max-width: none;
        width: 100%;
    }
    body.homepage .s-hero-title-box {
        display: block;
        width: 100%;
        background: transparent;
        padding: 0;
    }
    body.homepage .s-hero-title-box .s-hero-lead {
        position: relative;
        z-index: 1;
    }
    body.homepage .s-hero-title {
        position: absolute;
        top: calc(70px + 5vw);
        left: 5%;
        right: auto;
        width: auto;
        max-width: 90%;
        z-index: 3;
        font-size: 2.15rem;
        line-height: 1.5;
        text-align: left;
        text-shadow:
            0 0 8px rgba(255, 255, 255, 0.95),
            0 0 16px rgba(255, 255, 255, 0.85),
            0 0 28px rgba(255, 255, 255, 0.7);
    }
    body.homepage .s-hero-title-line {
        white-space: nowrap;
    }
    body.homepage .s-hero-lead {
        margin-top: 0.85rem;
        text-align: center;
    }
    body.homepage .s-hero-lead-label {
        text-align: center;
        white-space: nowrap;
        font-size: clamp(0.8125rem, 4.25vw, 1.2rem);
        letter-spacing: 0.02em;
    }
    body.homepage .s-hero-cta-row {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1.25rem;
        align-items: stretch;
    }
    body.homepage .s-hero-cta-row .btn-custom {
        width: 100%;
        min-height: 3rem;
        align-self: stretch;
    }
    body.homepage .s-hero-cta-row .btn-red {
        min-height: 3.25rem;
    }
    body.homepage .s-hero-cta-row .btn-outline-red {
        min-height: 2.75rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px), (min-width: 992px) and (orientation: portrait) {
    body.homepage .s-hero-section-picture {
        height: min(80vh, calc(100vw * 4 / 3));
    }
    body.homepage .s-hero-title {
        top: calc(70px + 8vw);
        font-size: 3.75rem;
        line-height: 1.45;
    }
}

/* FAQアコーディオン（テーマカラー #ED2D37 系） */
.accordion-button:not(.collapsed) {
    color: #ED2D37;
    background-color: #f7eef0;
}
#faqAccordionPage .accordion-item {
    border: 1px solid #ece7e2 !important;
    border-left: 3px solid #ED2D37 !important;
    box-shadow: 0 8px 24px rgba(27, 30, 36, 0.04);
}
#faqAccordionPage .accordion-button {
    background-color: #ffffff;
}
#faqAccordionPage .accordion-body {
    background-color: #f4f1ec;
}

/* トップページ：中身単位のスクロール表示（CSS only / FV・フッター除外） */
@keyframes homepage-scroll-reveal {
    from {
        opacity: 0;
        transform: translate3d(0, 3.5rem, 0);
    }
    35% {
        opacity: 0.2;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@supports (animation-timeline: view()) {
    body.homepage .s-homepage-reveal {
        animation: homepage-scroll-reveal cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-timeline: view();
        animation-range: entry 0% cover 50%;
    }

    /* 同一行内で段階的に表示 */
    body.homepage .row > div:nth-child(1) > .s-homepage-reveal,
    body.homepage .row > div:nth-child(1).s-homepage-reveal {
        animation-range: entry 0% cover 50%;
    }
    body.homepage .row > div:nth-child(2) > .s-homepage-reveal,
    body.homepage .row > div:nth-child(2).s-homepage-reveal {
        animation-range: entry 10% cover 60%;
    }
    body.homepage .row > div:nth-child(3) > .s-homepage-reveal,
    body.homepage .row > div:nth-child(3).s-homepage-reveal {
        animation-range: entry 20% cover 70%;
    }
    body.homepage .row > div:nth-child(4) > .s-homepage-reveal,
    body.homepage .row > div:nth-child(4).s-homepage-reveal {
        animation-range: entry 30% cover 80%;
    }
    body.homepage .row > div:nth-child(5) > .s-homepage-reveal,
    body.homepage .row > div:nth-child(5).s-homepage-reveal {
        animation-range: entry 15% cover 65%;
    }
    body.homepage .row > div:nth-child(6) > .s-homepage-reveal,
    body.homepage .row > div:nth-child(6).s-homepage-reveal {
        animation-range: entry 25% cover 75%;
    }

    /* reservation（index.html 10番目の section） */
    body.homepage .main-content > section:nth-child(10) .container > h2,
    body.homepage .main-content > section:nth-child(10) .container > p,
    body.homepage .main-content > section:nth-child(10) .row > div:nth-child(1),
    body.homepage .main-content > section:nth-child(10) .row > div:nth-child(2) {
        animation: homepage-scroll-reveal cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-timeline: view();
    }
    body.homepage .main-content > section:nth-child(10) .container > h2 {
        animation-range: entry 0% cover 50%;
    }
    body.homepage .main-content > section:nth-child(10) .container > p {
        animation-range: entry 8% cover 58%;
    }
    body.homepage .main-content > section:nth-child(10) .row > div:nth-child(1) {
        animation-range: entry 16% cover 66%;
    }
    body.homepage .main-content > section:nth-child(10) .row > div:nth-child(2) {
        animation-range: entry 24% cover 74%;
    }
}

/* スマホ：scroll-driven animation は完了前に見えなくなるため通常表示 */
@media (max-width: 767.98px) {
    body.homepage .s-homepage-reveal,
    body.homepage .main-content > section:nth-child(10) .container > h2,
    body.homepage .main-content > section:nth-child(10) .container > p,
    body.homepage .main-content > section:nth-child(10) .row > div {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.homepage .s-homepage-reveal,
    body.homepage .main-content > section:nth-child(10) .container > h2,
    body.homepage .main-content > section:nth-child(10) .container > p,
    body.homepage .main-content > section:nth-child(10) .row > div {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* コンセプト（トップ：左画像フル / 右テキスト） */
.s-concept-split.section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    background-color: #ffffff;
}
.s-concept-split-media {
    position: relative;
    min-height: 28rem;
}
.s-concept-split-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.s-concept-split-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4.5rem 10% 4.5rem 8%;
}
@media (max-width: 767.98px) {
    .s-concept-split.section {
        display: flex;
        flex-direction: column;
    }
    .s-concept-split-media {
        min-height: clamp(16rem, 48vw, 24rem);
    }
    .s-concept-split-panel {
        padding: 1.75rem 1.25rem 2.5rem;
    }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .s-concept-split .s-section-heading::before {
        font-size: 3.5rem;
    }
}

/* コンセプトセクションの画像デコレーション */
.s-concept-image-wrapper {
    position: relative;
    padding: 20px;
}
.s-concept-image-wrapper::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    height: 80%;
    background-color: #f4f1ec;
    z-index: 0;
}
.s-concept-img {
    position: relative;
    z-index: 1;
    border-radius: 0;
}

/* トップ FAQカード */
.main-content .bg-light.rounded-4.h-100 {
    background-color: #ffffff !important;
    box-shadow: 0 10px 32px rgba(27, 30, 36, 0.05);
    border-left: 3px solid #ED2D37;
}

/* 共通CTA（cta-2） */
.s-cta-band {
    text-align: center;
}
.s-cta-band .s-section-heading {
    margin-bottom: 2.25rem;
    text-align: center;
}
.s-cta-band .s-section-heading::before {
    left: 50%;
    transform: translateX(-50%);
}
.s-cta-band .s-section-heading h2::after {
    margin-left: auto;
    margin-right: auto;
}
.s-cta-band .row {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}
body:not(.homepage) .s-cta-band .s-section-heading h2.s-section-title-ja {
    border-left: none;
    padding-left: 0;
}

/* コースページ カテゴリ画像 */
.s-menu-category-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.s-menu-category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.s-menu-category-heading {
    border-color: #ED2D37 !important;
    border-bottom-width: 2px !important;
    letter-spacing: 0.04em;
}

.s-menu-category .list-group-item {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
}
.s-menu-category .list-group-item .fw-bold.tx-1-1 {
    color: #ED2D37;
}

@media (max-width: 991.98px) {
    .s-menu-category-img-wrap {
        aspect-ratio: 1 / 1;
    }
}

/* アクセスページ 道順サムネイル */
.s-route-thumb {
    height: 200px;
    object-fit: cover;
    background-color: #f8f9fa;
}

/************フォームページ（contact.php 等）************/
.s-contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2rem;
    border: 1px solid #ece7e2;
    box-shadow: 0 12px 40px rgba(27, 30, 36, 0.06);
}
.error-container {
    max-width: 800px;
    margin: 0 auto 2rem;
}
#form-error {
    scroll-margin-top: 70px;
}
.error-container .alert-heading,
.error-container .alert > p {
    text-align: center;
}
.s-contact-form-container .form-label {
    font-weight: 600;
    color: #343a40;
}
@media (min-width: 768px) {
    .s-contact-form-container .form-label {
        text-align: right;
        padding-right: 1.5rem;
    }
}
@media (max-width: 767.98px) {
    .s-contact-form-container {
        padding: 1rem;
    }
}
.s-thanks-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

/************Legal（legal.html）************/
.s-section--compact-top {
    padding-top: 0;
    padding-bottom: 2rem;
}
.s-legal-lead {
    margin-top: 1.5rem;
}
.s-info-table {
    width: 100%;
    border-collapse: collapse;
}
.s-info-table th,
.s-info-table td {
    padding: 0.85rem 0;
    border-bottom: 1px solid #ece7e2;
    text-align: left;
    vertical-align: top;
}
.s-info-table th {
    width: 6.5rem;
    font-weight: 600;
    color: #495057;
}
.s-legal-table th {
    width: 11rem;
    padding-right: 1.25rem;
}
@media (max-width: 767.98px) {
    #tokusho .s-legal-table,
    #tokusho .s-legal-table tbody,
    #tokusho .s-legal-table tr,
    #tokusho .s-legal-table th,
    #tokusho .s-legal-table td {
        display: block;
        width: 100%;
    }
    #tokusho .s-legal-table th {
        border-bottom: none;
        padding-bottom: 0.25rem;
    }
    #tokusho .s-legal-table td {
        padding-top: 0.25rem;
    }
}
.s-legal-nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.s-legal-nav__list a {
    color: #343a40;
    text-decoration: none;
    border-bottom: 1px solid #ece7e2;
    font-size: 0.9375rem;
}
.s-legal-nav__list a::before {
    content: '→ ';
}
.s-legal-nav__list a:hover {
    color: #ED2D37;
    border-bottom-color: #ED2D37;
}
.s-legal-intro {
    margin: 0 0 2rem;
    font-size: 0.9375rem;
    line-height: 1.9;
    color: #6c757d;
}
.s-legal-body {
    font-size: 0.9375rem;
    line-height: 1.9;
    color: #6c757d;
}
.s-legal-body h3 {
    margin: 2.5rem 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #343a40;
}
.s-legal-body h3:first-of-type {
    margin-top: 0;
}
.s-legal-body p {
    margin: 0 0 1rem;
}
.s-legal-body ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}
.s-legal-body li + li {
    margin-top: 0.35rem;
}
.s-legal-body a {
    color: #343a40;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.s-legal-body a:hover {
    color: #ED2D37;
    opacity: 1;
}
.s-legal-body__date {
    margin-top: 2.5rem !important;
    padding-top: 1.5rem;
    border-top: 1px solid #ece7e2;
    font-size: 0.8125rem;
    color: #adb5bd;
}

/************スマホ用フローティングCTA************/
@media (max-width: 767px) {
    .s-sp-floating-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        z-index: 9999;
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
        height: 56px; 
    }

    .s-sp-floating-cta a {
        flex: 1;
        display: flex;
        flex-direction: row; 
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: bold;
        font-size: 0.95rem; 
        transition: background-color 0.3s;
    }

    .s-sp-floating-cta a i {
        font-size: 1.2rem;
    }

    /* 電話ボタン（薄い赤背景にテーマカラー文字） */
    .s-btn-cta-tel {
        background-color: #f7eef0;
        color: #ED2D37 !important;
    }

    /* 体験授業ボタン（テーマカラー背景に白文字） */
    .s-btn-cta-web {
        background-color: #ED2D37;
        color: #ffffff !important;
        border-left: 1px solid #eee;
    }

    .s-sp-floating-cta a:active { opacity: 0.8; }

    /* 隙間調整用 */
    body { padding-bottom: 0 !important; }
    .s-footer-area { padding-bottom: 0 !important; }
    .s-footer-area > div:last-child { padding-bottom: 75px !important; }
    #back-to-top {
        bottom: 75px !important;
        z-index: 10000;
    }
}

@media (min-width: 768px) {
    .s-sp-floating-cta { display: none !important; }
}
