img {
    width: 100%;
}

.f-16 {
    font-size: 16px;
    line-height: 2rem;
}

.f-23 {
    font-size: 23px;
    line-height: 3rem;
}

.f-28 {
    font-size: 28px;
    line-height: 3.5rem;
}

.f-52 {
    font-size: 52px;
}

.wrapper {
    max-width: 1130px;
    margin: 0 auto;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mb-130 {
    margin-bottom: 130px;
}

.sec-pd {
    padding: 120px 0;
}

.t-center {
    text-align: center;
}

.sec-top img {
    object-fit: contain;
}

h2 img {
    max-width: 710px;
    display: block;
    margin: auto;
    margin-bottom: 50px;
}

.lead {
    font-size: 28px;
    color: #172263;
    font-weight: bold;
    margin-bottom: 20px;
}

.voice-box {
    margin-top: 40px;
    padding-bottom: 40px;
    border-bottom: solid 1px #244B80;
}

.voice-box:nth-child(1) {
    margin-top: 80px;
}

.voice-box:nth-child(5) {
    margin-bottom: 80px;
    border-bottom: unset;
}

.wrapper-voice {
    max-width: 900px;
    margin: auto;
}

h3 img {
    height: 118px;
    width: auto;
    margin: auto;
    display: block;
}

img.btn {
    max-width: 537px;
    margin: auto;
    display: block;
    margin-top: 40px;
}


/* sec-about */

.sec-about {
    background-image: url(../img/back-01.png);
    background-repeat: no-repeat;
    background-size: cover;
}


/* sec01 */

.sec01 img.item {
    max-width: 740px;
    margin: auto;
    margin-bottom: 40px;
    display: block;
    padding-right: 30px;
}

.cart-area {
    position: relative;
}

.cart-box {
    position: absolute;
    top: 10%;
    right: 0;
    left: 0;
}

.sec01 .cart-area .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sec01 .img-box {
    max-width: 53%;
}

.sec01 .text-box {
    max-width: 47%;
}


/* sec02 */

.sec02 .cart-box .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sec02 .img-box {
    max-width: 48%;
}

.sec02 .text-box {
    max-width: 52%;
}

.sec02 .cart-box {
    position: absolute;
    top: 13%;
    right: 0;
    left: 0;
}


/* sec03 */

.sec03 .cart-box .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sec03 .img-box {
    max-width: 48%;
}

.sec03 .text-box {
    max-width: 52%;
}

.sec03 .cart-box {
    position: absolute;
    top: 13%;
    right: 0;
    left: 0;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    /* スライドがはみ出るのを隠す */
    position: relative;
    padding: 50px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    /* スライドのアニメーション */
}

.slide {
    flex: 0 0 calc(100% / 3);
    /* 3つのスライドを同時に表示 */
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
}

.voice-bubble {
    padding: 20px;
    position: relative;
    min-height: 250px;
}

.voice-bubble h3 {
    color: #333;
    margin-top: 0;
    border-bottom: 2px solid #5a7dbe;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.voice-bubble p {
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #334d7d;
    color: white;
    border: none;
    padding: 20px 35px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    font-size: 48px;
    /* opacity: 0.8;
    transition: opacity 0.2s; */
    border-radius: 100px;
}

.nav-button:hover {
    opacity: 1;
}

#prevBtn {
    left: 10px;
}

#nextBtn {
    right: 10px;
}

.dots-container {
    text-align: center;
    padding-top: 20px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #5a7dbe;
}

p {
    font-weight: bold;
}

.header {
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 100;
    right: 0;
}

.logo {
    margin: 0;
    font-size: 24px;
}


/* --- ハンバーガーメニューボタンのスタイル --- */

.hamburger-menu-button {
    /* デスクトップでも常に表示 */
    display: block;
    /* ***** 🛠️ 修正ポイント 1: 丸い形とサイズ調整 ***** */
    background-color: #002A80;
    /* 白い枠線 */
    border-radius: 50%;
    /* 丸い形にする */
    cursor: pointer;
    width: 80px;
    /* サイズを調整 */
    height: 80px;
    /* サイズを調整 */
    padding: 18px;
    /* パディングでバーを中央に配置 */
    position: relative;
    z-index: 101;
    transition: background-color 0.2s;
}

.hamburger-menu-button:hover {
    background-color: #002A80;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: transform 0.3s, opacity 0.3s;
}


/* 開いた時のアニメーション (Xマークへの変化) */

.hamburger-menu-button.is-open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu-button.is-open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu-button.is-open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- メニュー本体のスタイル (PC/スマホ共通でオーバーレイ表示) --- */

.main-nav {
    /* ヘッダーの下ではなく、画面全体にオーバーレイ表示 */
    position: fixed;
    top: 0;
    right: 0;
    /* 右端から出現させる場合 */
    width: 50%;
    /* メニューの幅 */
    height: 100%;
    /* 画面全体を覆う */
    background-color: #002a80e8;
    /* 半透明の黒い背景 */
    /* 初期状態では画面外に隠す */
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
    z-index: 99;
}

.main-nav.is-open {
    transform: translateX(0);
    /* 開いたときに画面内にスライドイン */
}

.nav-list {
    list-style: none;
    /* 縦並びにする */
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 80px 0 0 0;
    /* ヘッダー分スペースを空ける */
    text-align: center;
}

.nav-list li a {
    color: white;
    text-decoration: none;
    padding: 35px 70px;
    display: block;
    font-size: 25px;
    font-weight: bold;
}

.nav-list li:last-child a {
    border-bottom: none;
}

.nav-list li a:hover {
    background-color: #555;
}


/* ヘッダーとメインコンテンツが被らないように */

.main-nav-spacer {
    height: 60px;
    /* ヘッダーの高さに合わせて調整 */
}

html {
    /* ページ全体のスクロール動作を滑らかにする */
    scroll-behavior: smooth;
}

img.carticon {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

img.cartbtn {
    width: 450px;
}

.sec01 h4 {
    color: #244B80;
    font-weight: bold;
}

.sec01 p {
    color: #244B80;
}

.sec02 h4 {
    color: #42803B;
    font-weight: bold;
}

.sec02 p {
    color: #42803B;
    letter-spacing: -0.8px;
}

.sec03 h4 {
    color: #543B80;
    font-weight: bold;
}

.sec03 p {
    color: #543B80;
    letter-spacing: -0.1px;
}

footer {
    background-color: #77AED5;
    text-align: center;
    padding: 100px 40px 40px;
}

footer h1 img {
    width: 249px;
}

footer ul {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

footer ul li a {
    font-size: 18px;
    color: #fff;
    font-weight: bold;
    padding: 0 20px;
}

footer small {
    font-size: 14px;
    margin-top: 80px;
    display: block;
    color: #fff;
}

.blue-font {
    color: #172263;
}

.sp {
    display: none;
}


/* ... (既存のCSS) ... */


/* -------------------- 💡 ID="fadein" 用スタイル -------------------- */


/* 初期状態: 画面下部に少し移動させ、透明にする */

#fadein {
    opacity: 0;
    transform: translateY(30px);
    /* 下から30px分移動した状態 */
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
    /* アニメーション時間を設定 */
}


/* アニメーション実行状態: 画面内に入ったらこのクラスを付与する */

#fadein.is-visible {
    opacity: 1;
    /* 透明度を元に戻す */
    transform: translateY(0);
    /* 元の位置に戻す */
}

.brsp {
    display: none;
}


/* ----------------------------------------------------------------- */

@media screen and (max-width: 768px) {
    h3 img {
        height: 52px;
    }
    img.pc {
        display: none;
    }
    img.sp {
        display: inline;
    }
    .f-23 {
        font-size: 18px;
        line-height: 2.4rem;
    }
    .f-52 {
        font-size: 28px;
    }
    .f-28 {
        font-size: 16px;
        line-height: 1.8rem;
    }
    .sec01 img.item {
        max-width: 100%;
        margin: auto;
        margin-bottom: 0;
        display: block;
        padding-right: unset;
    }
    .cart-box {
        top: -50px;
    }
    img.btn {
        max-width: 80%;
        margin-top: 25px;
    }
    .brsp {
        display: inline;
    }
    .sec01 .cart-box .d-flex {
        flex-direction: column;
    }
    .sec01 .img-box {
        max-width: 80%;
    }
    .sec01 .text-box {
        max-width: 100%;
        text-align: center;
    }
    .sec01 .cart-box {
        top: -10%;
    }
    .sec02 .cart-box .d-flex {
        flex-direction: column;
    }
    .sec02 .img-box {
        max-width: 80%;
    }
    .sec02 .text-box {
        max-width: 100%;
        text-align: center;
    }
    .sec02 .cart-box {
        top: -10%;
    }
    .cart-box h4 {
        margin-bottom: 20px;
        margin-top: 20px;
    }
    .sec03 .cart-box .d-flex {
        flex-direction: column;
    }
    .sec03 .img-box {
        max-width: 80%;
    }
    .sec03 .text-box {
        max-width: 100%;
        text-align: center;
    }
    .sec03 .cart-box {
        top: -10%;
    }
    footer h1 img {
        width: 149px;
    }
    footer ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 50px;
    }
    footer ul li a {
        font-size: 16px;
    }
    footer ul li {
        margin-bottom: 20px;
    }
    .sec-about {
        background-image: url(../img/sp-back.jpg);
        background-repeat: no-repeat;
        background-size: cover;
    }
    .point-box img.sp {
        max-width: 90%;
        margin: auto;
        display: block;
    }
    .sec-pd {
        padding: 80px 0;
    }
    .philo-area {
        max-width: 90%;
        margin: auto;
        margin-bottom: 80px;
    }
    .hamburger-menu-button {
        width: 60px;
        height: 60px;
    }
    .main-nav {
        width: 100%;
    }
    .nav-list li a {
        color: white;
        text-decoration: none;
        padding: 22px 20px;
        display: block;
        font-size: 16px;
        font-weight: bold;
    }
    img.cartbtn {
        width: 100%;
    }
    .header {
        padding: 10px;
    }
    footer small {
        margin-top: 40px;
    }
    footer {
        padding: 60px 40px 30px;
    }
    .nav-button {
        font-size: 19px;
        padding: 9px 15px;
    }
    .slide {
        flex: 0 0 calc(100% / 1);
    }
    .lead {
        font-size: 21px;
        color: #172263;
        font-weight: bold;
        margin-bottom: 20px;
        text-align: center;
    }
    .voice-box {
        margin-top: 40px;
        padding-bottom: 40px;
        border-bottom: solid 1px #244B80;
    }
    .voice-box:nth-child(1) {
        margin-top: 40px;
    }
    .voice-box:nth-child(5) {
        margin-bottom: 50px;
        border-bottom: unset;
    }
    .wrapper-voice {
        max-width: 90%;
        margin: auto;
    }
    .voice-box .f-16 {
        font-size: 15px;
    }
}