/* ==================================

    Sub - 下層ページ共通

================================== */

h3 {
    /*font-family: "M PLUS Rounded 1c", sans-serif;*/
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 3.0rem;
    letter-spacing: 0.5em;
    text-align: center;
    padding-left: 0.5em; /* 左端は補正 */
    padding-top: 40px;
    display: inline-block; /* テキスト幅に合わせる */
    position: relative;
    padding-bottom: 5px;  /* 線とテキスト間の余白 */
}

h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;                  /* 左端を50%にして中央寄せ */
    width: 50%;                  /* 線の長さを50%に調整 */
    border-bottom: 8px double #F6AE2D;
    transform: translateX(-50%); /* 線を中央に寄せる */
}


/* ==================================
    btn - HOMEリンクボタン
================================== */

.btn-home-wrapper {
    text-align: center;
    margin: 160px auto;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: space-between; /* テキストと矢印を左右に配置 */
    padding: 12px 20px;
    background-color: #00abe7;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background 0.4s, transform 0.4s;
}

.btn-home .arrow {
    margin-left: 10px;
    font-weight: bold;
    transition: transform 0.4s;
}

.btn-home:hover {
    background-color: #D3B680;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-home:hover .arrow {
    transform: translateX(4px);
}


/* --- コンテナ --- */
.sb-container {
    display: block;           /* aタグをブロック要素化 */
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 24px;
    text-decoration: none;    /* 下線消す */
    color: inherit;           /* 文字色は継承 */
    transition: background 0.4s;
    border-bottom: 1px solid #5E5E5E;
}

/* --- タイトル --- */
.sb-name-text {
    border-left: 10px solid #ff1a56;
    padding-left: 16px;
    font-size: 3.0rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.sb-name-text span {
    font-size: 2.4rem;
    font-weight: 400;
    padding-left: 16px;
}

/* --- 画像 + テキスト + ボタン 横並び --- */
.sb-content-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.sb-gallery {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

@media (max-width: 1024px) {
    
    .sb-container {
        width: 90%;
    }

    .sb-gallery {
        width: 90%;
    }

    .sb-gallery {
        width: 90%;
    }

}

@media (max-width: 768px) {

    .sb-container {
        width: 100%;
        padding: 16px;
    }

    .sb-name-text {
        font-size: 2.0rem;
    }

    .sb-name-text span {
        font-size: 1.6rem;
    }

    .sb-gallery {
        width: 100%;
    }

}

.sb-main-image img {
    width: 100%;
    object-fit: contain;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sb-thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

.sb-thumbnails img {
    width: 200px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: .4s;
}

@media (max-width: 1024px) {

    .sb-thumbnails img {
        width: calc((100% - 24px) / 5);
        height: auto;
    }

}

@media (max-width: 768px) {

    .sb-thumbnails {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .sb-thumbnails img {
        width: 100%;
        height: auto;
        border-radius: 6px;
    }

}

.sb-thumbnails img:hover,
.sb-thumbnails img.active {
    opacity: 1;
}

.sb-features {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap; /* 横に収まらなければ折り返す */
    max-width: 800px;
    margin: 0 auto;
}

.sb-feature {
    flex: 1;
    flex-wrap: wrap;
    max-width: 150px;
    height: 60px;
    display: flex;
    align-items: center;   /* 縦中央 */
    justify-content: center; /* 横中央 */
    color: #FFFFFF;
    font-weight: 400;
    border-radius: 50px;
    text-align: center;
    font-size: 2.0rem;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    
    .sb-features {
        width: 90%;
    }

    .sb-feature {
        font-size: 1.5rem;
    }

}

@media (max-width: 768px) {

    .sb-features {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sb-feature {
        width: 100%;
        max-width: none; /* 幅を揃えるため解除 */
        height: 60px;    /* スマホ用に少し低め */
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.6rem;
        line-height: 1.3;
        text-align: center;
    }
    
}


/* --- 各機能 --- */
.sb-feature.tv {
    background-color: #f97591;
}
.sb-feature.dvd {
    background-color: #ff7fbf;
}
.sb-feature.karaoke {
    background-color: #e2ab86;
}
.sb-feature.radio {
    background-color: #00b894;
}
.sb-feature.pot {
    background-color: #7f7fff;
}
.sb-feature.cooler {
    background-color: #7fbfff;
}

.sb-text-box {
    flex: 1;
    font-size: 2.0rem;
    margin: 64px auto;
}

@media (max-width: 768px) {

    .sb-text-box {
        font-size: 1.6rem;
    }

}

/*--- 車内レイアウト ---*/
.sb-layout-title {
    display: inline-block;
    background-color: #E5003C;
    color: #FFFFFF;
    padding: 8px 16px;
    font-size: 1.8rem;
}

@media (max-width: 768px) {

    .sb-layout-title {
        font-size: 1.6rem;
    }

}

.sb-layout-img-wrapper {
    border: 1px solid #eeeeee;
    margin: 32px auto;
}

.sb-layout-img-wrapper2 {
    width: 60%;
    border: 1px solid #eeeeee;
    margin: 32px auto 32px 0;
}

.sb-download-btn-wrapper {
    text-align: left;
}

.sb-download-btn {
    display: inline-block;
    background-color: #E5003C;
    color: #FFFFFF;
    padding: 16px 24px;
    transition: .4s;
    margin: 0 0 0 auto;
}

.sb-download-btn:hover {
    background-color: #FFFFFF;
    color: #E5003C;
    transition: .4s;
    cursor: pointer;
}

/*--- 次のバスへ ---*/
.sb-btn-bus-container {
    display: flex;
    justify-content: center; /* 中央寄せ */
    gap: 40px; /* ボタン同士の間隔 */
    margin: 20px 0;
}

.sb-btn-box {
    display: inline-flex;
    align-items: center;
    justify-content: space-between; /* テキストと矢印を左右に配置 */
    padding: 12px 20px;
    background-color: #00abe7;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background 0.4s, transform 0.4s;
}

.sb-btn-box .arrow {
    margin-left: 10px;
    font-weight: bold;
    transition: transform 0.4s;
}

.sb-btn-box:hover {
    background-color: #D3B680;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.sb-btn-box:hover .arrow {
    transform: translateX(4px);
}

.sb-btn-arrow {
    font-weight: bold;
    margin: 0 8px;
}

@media (max-width: 768px) {

    .sb-btn-bus-container {
        width: calc(100% - 32px);
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .sb-btn-box {
        text-align: center;
        justify-content: center;
        padding: 16px;
    }

    .sb-btn-arrow {
        margin: 0 4px;
    }

}

.sb-left .sb-btn-arrow:first-child {
    margin-right: 4px;
}

.sb-left .sb-btn-arrow:last-child {
    margin-left: 4px;
}

.sb-right .sb-btn-arrow:first-child {
    margin-right: 4px;
}

.sb-right .sb-btn-arrow:last-child {
    margin-left: 4px;
}