/* 基本的なリセットとフォント設定 */
html {
    /* 1. ここを追加：スクロールバーの溝を常に確保する */
    scrollbar-gutter: stable;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    /* 日本語対応のゴシック体フォントを想定 */
    color: #1A3A5F;
    line-height: 1.6;
    background: #ffffff;
    /* 淡いグラデーション背景 */
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    /* これがないと絶対配置が正しく動きません */
    min-height: 100vh;
}

main {
    height: auto;
}

.topic-title {
    font-size: 2em;
    color: #3f51b5;
    line-height: 1.2;
    margin-bottom: 20px;
    margin-top: 20px;
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

[id] {
    scroll-margin-top: 64px;
    /* 固定ヘッダーの高さ分＋アルファを指定 */
}


/* ヘッダー */
/* ヘッダー全体のコンテナ */
header {
    display: flex;
    justify-content: space-between;
    /* 両端に配置 */
    align-items: center;
    /* 垂直中央揃え */
    background-color: rgba(255, 255, 255, 0.95);
    /* 白背景（透過） */
    position: fixed;
    width: 100%;
    height: 55px;
    padding: 0 10px;
    /* 左右に少し余白を作る */
    box-sizing: border-box;
    z-index: 1000;
}

/* ロゴエリア */
.logo {
    display: flex;
    align-items: center;
    flex: 1;
    /* 利用可能なスペースを分ける */
    height: 100%;
}

.logo img {
    max-height: 55px;
    width: auto;
    /* アスペクト比を維持 */
    display: block;
}

/* ナビゲーションエリア（ボタン類を横並びにする） */
.header-nav {
    display: flex;
    align-items: center;
    /* ボタン同士の間隔 */
    flex-shrink: 0;
    /* ロゴに押されて潰れないようにする */
}

/* ログインボタン */
.login-btn {
    background: none;
    border: none;
    margin-right: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 9px;
    color: #333;
    width: 50px;
    appearance: none;
    -webkit-appearance: none;
}

/* ログインアイコン（→と ] を組み合わせた形状） */
.login-btn::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M10 17l5-5-5-5v10z'/%3E%3Cpath fill='none' stroke='%23333' stroke-width='2' d='M13 5h4v14h-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 2px;
}

/* ハンバーガーメニューのトリガー */
.menu-trigger {
    background: none;
    border: none;
    width: 55px;
    height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px;
    appearance: none;
    -webkit-appearance: none;
}

/* 三本線のスタイル */
.menu-trigger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #666;
    /* 画像のようなグレー */
    border-radius: 2px;
}

/* メニューが開いている状態のデフォルト非表示 */
.menu-list {
    display: none;
}


/* 全画面メニューの背景コンテナ */
.menu-overlay {
    position: fixed;
    inset: 0;
    background-color: #F8D49D;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 表示状態 */
.menu-overlay.active {
    transform: translateX(0);
    pointer-events: auto;
}

/* 閉じるボタン (×) - 最前面に配置 */
.menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 48px;
    background: none;
    border: none;
    color: #000;
    /* 黒色で確実に表示 */
    cursor: pointer;
    line-height: 1;
    z-index: 20000;
    /* リストより上に配置 */
}

/* メニューリスト */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* 横幅いっぱい */
    max-width: 400px;
    /* 広がりすぎ防止 */
    text-align: center;
    position: relative;
    /* z-indexを有効にするため */
    z-index: 10000;
    /* 背景より確実に手前に */
    display: block !important;
    /* 他のスタイルに消されないように */
    padding: 0 !important;
    margin: 0 !important;
}

.menu-list li {
    /* margin: 15px 0; */
    /* 画像の密度に合わせる */
    display: block !important;
    /* リスト項目を強制表示 */
    margin: 20px 0;
}

.menu-list li a {
    text-decoration: none;
    color: #2D3261;
    /* 画像通りのネイビー系 */
    font-size: 1.3rem;
    /* 少し大きくして読みやすく */
    font-weight: bold;
    /* display: block;
    padding: 10px; */
}

/* CTAボタンエリア */
.menu-cta {
    margin-top: 30px !important;
}

/* 画像 のデザインを再現したボタン */
.cta-button {
    background: linear-gradient(135deg, #ff8a65, #ffab40);
    color: white !important;
    padding: 12px 20px;
    border-radius: 15px;
    text-decoration: none;
    display: flex;
    /* Flexboxに変更 */
    justify-content: center;
    /* 左右中央揃え */
    align-items: center;
    /* 上下中央揃え（これで矢印と文字の高さが合います） */
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
    margin-left: 30px;
    margin-right: 30px;
}

.cta-button::after {
    content: '▶';
    font-size: 1em;
    font-family: Arial, sans-serif;
    flex-shrink: 0;
    margin-left: 15px;
    transform: translateY(2px);
    /* 1px単位で下にずらして調整 */
}

.cta-button small {
    display: block;
    font-weight: normal;
    margin-top: 5px;
}


header nav button {
    background: none;
    border: none;
    color: #777;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
}

header nav button::before {
    /* ログインアイコンの代わり */
    margin-right: 5px;
    font-size: 1.2em;
}

.pc-side-nav {
    display: none;
}

@media (max-width:320px) {
    .logo img {
        max-height: 50px;
    }

    .menu-list li a {
        font-size: 1.0rem;
    }
}



/* ヘッダー　PC版 */

@media (min-width:769px) {
    header {
        height: 64px;
    }

    /* ロゴエリア */
    .logo {
        height: 64px;
    }

    /* ログインボタン */
    .login-btn {
        font-size: 13px;
        width: 64px;
    }

    /* ログインアイコン（→と ] を組み合わせた形状） */
    .login-btn::before {
        width: 42px;
        height: 42px;

    }

    /* ハンバーガーメニューのトリガー */
    .menu-trigger {
        width: 64px;
        height: 64px;

    }

    /* 三本線のスタイル */
    .menu-trigger span {
        height: 5px;
    }

    /* 全画面メニューの背景コンテナ */
    .menu-overlay {
        position: fixed;
        border-radius: 40px 0 0 40px;
        width: calc((100% - 393px) / 2);
        left: auto;
        right: 0;
    }

    /* 表示状態 */
    .menu-overlay.active {
        width: calc((100% - 393px) / 2);
        right: 0;
        left: auto;
    }

    /* 閉じるボタン (×) - 最前面に配置 */
    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 64px;
        background: none;
        border: none;
        color: #4e4e4e;
        /* 黒色で確実に表示 */
        cursor: pointer;
        line-height: 1;
        z-index: 10000;
        /* リストより上に配置 */
    }

    /* メニューリスト */
    .menu-list {
        width: 100%;
        z-index: 10000;
        /* 背景より確実に手前に */
        /* 他のスタイルに消されないように */
    }

    .menu-list li a {
        font-size: 1.3rem;
        /* 少し大きくして読みやすく */
        font-weight: bold;
    }

    /* CTAボタンエリア */
    .menu-cta {
        margin-top: 30px !important;
    }

    .menu-cta a:hover {
        transform: translateY(-2px);
    }

    /* 画像 のデザインを再現したボタン */
    .cta-button {
        padding: 12px 25px;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        line-height: 1.4;
        margin-left: 40px;
        margin-right: 40px;
    }

    .cta-button::after {
        content: '▶';
        font-size: 1em;
        font-family: Arial, sans-serif;
        flex-shrink: 0;
        margin-left: 15px;

    }

    .cta-button :hover {
        transform: translateY(-10px);
    }

    .cta-button small {
        margin-top: 5px;
    }


    header nav button {
        font-size: 0.9em;
    }

    header nav button::before {
        /* ログインアイコンの代わり */
        margin-right: 5px;
        font-size: 1.2em;
    }
}

@media (min-width:1025px) {
    .menu-overlay.active {
        width: calc((100% - 600px) / 2);
        font-size: 2em;
    }
}





/* ヒーローセクション */
.main-content {
    padding-bottom: 100px;
    /* ボタンの高さ分 */
}

#hero {
    display: grid;
    grid-template-areas: "stack";
    max-width: 393px;
    margin: 0 auto 40px;
    place-items: center;
    /* 子要素を上下左右中央に配置 */
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

/* 全ての子要素をGridの同じ場所に重ねる */
#hero>* {
    grid-area: stack;
}

.main-title {
    z-index: 10;
    align-self: center;
    /* Grid内での垂直中央 */
    justify-self: center;
    background: linear-gradient(to right, #E13383, #1FBAD8, #4BCABF);
    -webkit-background-clip: text;
    -webkit-text-stroke: 0.5px #ffffff;
    background-clip: text;
    color: transparent;
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    filter: drop-shadow(1px 1px 1px #ffffff) drop-shadow(-1px -1px 1px #ffffff);
}

#hero p {
    font-size: 1.0em;
    color: #ffffff;
    z-index: 10;
    margin-top: 120px;
    padding: 5px 10px;
    border-radius: 5px;
    transform: translateY(-60px);
    /* h1の下に来るように調整 */
}

/* ヒーローセクションの円形要素 */
#hero .circle {
    position: absolute;
    /* 円形は自由な位置に飛ばしたいため absolute のまま */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 150px;
    /* スマホ向けに少しサイズ調整 */
    height: 150px;
    z-index: 5;
}

/* 元画像にあったピンク、水色、薄い水色の円を模倣 */
#hero .circle:nth-of-type(1) {
    /* 「好き」をカタチに */
    background-color: #E13383;
    top: 10%;
    left: 5%;
    z-index: 10;
    /* 画像(z-index: 1)よりも大きい数値にする */
    position: absolute;
    /* これが抜けていると表示位置が狂います */
}

#hero .circle:nth-of-type(2) {
    /* 遊びのその先へ */
    background-color: #4BCABF;
    bottom: 20%;
    right: 2%;
}

#hero .circle:nth-of-type(3) {
    /* 君のアイデアで */
    background-color: #1FBAD8;
    bottom: 5%;
    left: 2%;
}

.hero-image-box {
    width: 100%;
    z-index: 1;
    margin-top: 55px;
}

.hero-image {
    width: 100%;
    max-width: 393px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 20px;

}

@media (max-width:320px) {
    #hero .circle {
        width: 130px;
        /* スマホ向けに少しサイズ調整 */
        height: 130px;
    }

    #hero p {
        font-size: 0.8em;
    }
}

@media (min-width:426px) {
    .main-content {
        background: url(../img/back_image/pc_back_image7.webp) no-repeat fixed center / 100%;
        background-position-y: 0, 64px;
        background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), url(../img/back_image/pc_back_image7.webp);
    }
}

@media (min-width:1025px) {
    .main-content {
        background: url(../img/back_image/pc_back_image7.webp) no-repeat fixed center / 100%;
        background-position-y: 0, 55px;
        background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), url(../img/back_image/pc_back_image7.webp);
    }

    #hero {
        max-width: 600px;
        min-height: 500px;
        /* 画像の高さに合わせて調整 */
        overflow: hidden;
        position: relative;
        margin-bottom: 40px;
        border-radius: 40px;
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    }

    /* 全ての子要素をGridの同じ場所に重ねる */
    #hero>* {
        grid-area: stack;
    }

    .main-title {
        font-size: 4em;
        margin-bottom: 40px;
    }

    #hero p {
        font-size: 1.4em;
    }

    /* ヒーローセクションの円形要素 */
    #hero .circle {
        width: 200px;
        height: 200px;
    }

    .hero-image {
        width: 100%;
        max-width: 786px;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 20px;
    }

}





/* Aboutセクション */
#about {
    max-width: 393px;
    width: 100%;
    margin: 0 auto 40px;
    display: grid;
    justify-content: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), url(../img/back_image/topic1_background_image.webp);
    background-position: 60% 50%;
    border-radius: 20px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}


#about>* {
    /* 全ての子要素を同じエリアに割り当てる */
    grid-area: stack;
}

.about-contents {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* コンテンツ量に応じて上から順に配置 */
    align-items: center;
    z-index: 1;
    padding: 100px 0 20px 0;
    /* 背景とのバランスをとるための余白 */
}

article p,
article li {
    margin: 0;
    text-align: left;
}

article p span,
article li span {
    color: #f06292;
    font-weight: bold;
    text-align-last: left;
}

.about-icon-title {
    text-align: center;
    margin-bottom: 20px;
}

#about article {
    max-width: 373px;
    margin: 15px auto;
    padding: 15px 15px 27px 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #3f51b5;

}

#about h3 {
    color: #f06292;
    /* 各記事のタイトル色 */
    font-size: 1.5em;
    margin-bottom: 1em;
    margin-top: 0.5em;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2列に分ける */
    /* 要素間の隙間 */
}

/* 3番目の要素（2行目の1つ） */
.container>*:nth-child(3) {
    grid-column: 1 / 3;
    /* 1列目から3列目の手前まで（＝2列分）占有 */
    /* もし「横いっぱい」ではなく「中央に小さく1つ」にしたい場合は以下を追加 */
    justify-self: center;
}

.container-box1,
.container-box2,
.container-box4,
.container-box5 {

    border-radius: 10px;
    padding: 10px 5px;
    font-size: 0.9em;
    color: #4e4e4e;
    font-weight: bold;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #1A3A5F;
}

.container-box1,
.container-box4 {
    margin-right: 5px;
}

.container-box2,
.container-box5 {
    margin-left: 5px;
}

.container-box3 {
    z-index: 5;
    width: fit-content;
    height: auto;
}

.container-image1,
.container-image3,
.container-image4 {
    width: 40%;
    height: auto;
}

.container-image2 {
    width: 35%;
}


.about-icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.about-icon1-box,
.about-icon2-box {
    text-align: center;
}



.about-icon1,
.about-icon2 {
    width: 138px;
    height: 138px;
    border: 1px solid #1A3A5F;
    border-radius: 100%;
}

.about-icon3 {
    width: 39px;
    height: 39px;
}

@media (max-width:320px) {
    #about h3 {
        font-size: 1.4em;
    }

    .about-contents {
        max-width: 320px;
        width: 100%;
    }

    .about-icon1,
    .about-icon2 {
        width: 120px;
        height: 120px;
    }

    .about-icon3 {
        width: 30px;
        height: 30px;
    }

    .container-box1,
    .container-box2,
    .container-box4,
    .container-box5 {
        font-size: 0.8em;
    }
}


@media (min-width:769px) {
    #about {
        background-color: white;

    }
}


@media (min-width:1025px) {
    #about {
        max-width: 600px;
        width: auto;
    }

    article p,
    article li {
        margin: 0;
        text-align: left;
        font-size: 1.2em;
    }

    #about article {
        max-width: 540px;
    }

    #about h3 {
        font-size: 2em;
    }

    .container-box1,
    .container-box2,
    .container-box4,
    .container-box5 {
        font-size: 1.2em;
    }

    .about-icon {
        justify-content: center;
        gap: 40px;
    }

    .about-icon1,
    .about-icon2 {
        width: 180px;
        height: 180px;
        border: 1px solid #1A3A5F;
        border-radius: 100%;
    }

    .about-icon3 {
        width: 39px;
        height: 39px;
    }
}







/* バナー */
.banner {
    max-width: 393px;
    width: 100%;
    margin: 0 auto 40px;
}

.banner-image {
    max-width: 393px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

@media (min-width:769px) {
    .banner {
        max-width: 400px;
    }

    .banner-image {
        max-width: 400px;
    }
}

@media (min-width:1025px) {
    .banner {
        max-width: 600px;
    }

    .banner-image {
        max-width: 600px;
    }
}






/* Reasonsセクション */
#reasons {
    max-width: 393px;
    width: auto;
    margin: 0 auto 40px;
    display: grid;
    justify-content: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), url(../img/back_image/topic2_background_image.webp);
    background-position: 60% 50%;
    border-radius: 20px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

#reasons>* {
    grid-area: stack;
}

.reasons-contents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    /* 重なり順を上にする */
    padding: 100px 0 30px 0;
    /* 背景との余白を確保 */
    border-radius: 20px;
}

#reasons ol {
    max-width: 373px;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* レスポンシブなグリッド */
    gap: 10px;
    margin-top: 15px;
}

.reason-card {
    background-color: white;
    padding: 20px 15px 25px 15px;
    border-radius: 15px;
    border: 1px solid #3f51b5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 435px;
    font-weight: normal;
    font-size: 1.1em;
    color: #4e4e4e;
    box-sizing: border-box;
    /* パディングを含めたサイズ計算 */
}

.reason-card h3 {
    font-size: 1em;
    margin-left: 3px;
    height: 225px;
}

.reason-card h3 span {
    color: #f06292;
    font-weight: bold;
}

#reasons ol li a {
    background: linear-gradient(to right, #ffab40, #ff8a65);
    /* グラデーションボタン */
    box-shadow:
        0 2px 0 #bdb9b9,
        /* 下の影（厚み） */
        0 5px 5px rgba(0, 0, 0, 0.2);
    /* 全体の影 */
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease-in-out;
}

#reasons ol li a::after {
    content: '▶';
    font-size: 15px;
    margin-left: 5px;
    transform: translateY(1px);
    /* 1px単位で下にずらして調整 */

    color: #a19e9e;
    /* 文字の色（少し暗め） */
    background-color: #ff8a65;
    /* 背景色 */

    /* 上に暗い影、下に明るいハイライトを1pxずつ入れる */
    text-shadow:
        -1px -1px 1px rgba(0, 0, 0, 0.2),
        /* 左上の暗い影（凹みを表現） */
        1px 1px 1px rgba(255, 255, 255, 0.8);
    /* 右下の明るい光（縁の反射） */
}

#reasons ol li a:hover {
    transform: translateY(-2px);
}

#reasons ol li img {
    width: 100px;
    height: 100px;
}

@media (max-width:320px) {
    .reasons-contents {
        padding: 130px 0 30px 0;
    }

    .reason-card {
        font-size: 1em;
        height: 450px;
    }

    #reasons ol li img {
        width: 80px;
        height: 80px;
    }

    #reasons ol li a::after {
        display: none;
    }
}

@media (min-width:769px) {
    #reasons {
        background-color: white;
        border-radius: 20px;
    }
}

@media (min-width:1025px) {
    #reasons {
        max-width: 600px;
        width: auto;
    }

    .reasons-contents {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1;
        /* 重なり順を上にする */
        padding: 100px 0 30px 0;
        /* 背景との余白を確保 */
        border-radius: 20px;
    }

    #reasons ol {
        max-width: 540px;
        gap: 20px;
        margin-top: 15px;
    }

    .reason-card {
        padding: 20px 15px 25px 15px;
        border-radius: 15px;
        height: 580px;
        font-size: 1.5em;
        justify-content: center;
    }

    .reason-card h3 {
        font-size: 1em;
        margin-left: 3px;
        height: 300px;
    }

    .reason-card h3 span {
        color: #f06292;
        font-weight: bold;
    }

    #reasons ol li img {
        width: 150px;
        height: 150px;
    }
}













/* Testimonialsセクション */
#testimonials {
    max-width: 393px;
    width: auto;
    margin: 0 auto 40px;
    display: grid;
    /* エリアを重ねる設定 */
    justify-content: center;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), url(../img/back_image/topic3_background_image.webp);
    background-position: 60% 50%;
    overflow: hidden;
}

#testimonials>* {
    grid-area: stack;
}

.testimonials-contents {
    padding: 50px 0 30px;
}

.figures-viewport {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* コンテンツ量に応じて上から配置 */
    align-items: center;
    z-index: 1;
    padding: 0;
    /* 上下に適切な余白を確保 */
}

#testimonials figure {
    background-color: white;
    padding: 15px;
    margin: 30px auto 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 300px;
    position: relative;
    /* 念のため、カードがはみ出さないように設定 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

#testimonials figure img {
    /* 画像はHTMLに直接追加することを想定 */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #ffab40;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#testimonials figcaption {
    font-weight: bold;
    font-size: 1.3em;
    color: #f06292;
    margin-bottom: 1em;
}

#testimonials p {
    text-align: left;
    margin-bottom: 0.8em;
    color: #4e4e4e;
}

.testimonials-icon {
    order: -1;
}

.testimonials-image {
    width: 100%;
    /* 固定値(1530px)を削除し、親の高さに100%合わせる */
    height: 100%;
    object-fit: cover;
    /* 縦に伸びても画像が歪まないようにする */
    opacity: 0.2;
    display: block;
    border-radius: 20px;
}

/* カルーセル全体のレイアウト */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    /* 背景画像より上に */
    gap: 5px;
}

/* 窓の役割：ここからはみ出た figure は見えなくなる */
.figures-viewport {
    width: 300px;
    /* figure1枚分の幅に合わせる */
    overflow: hidden;
}

/* figure を横に並べる */
.figures {
    display: flex;
    transition: transform 0.4s ease-in-out;
    /* 動くスピード */
    width: 100%;
}

/* 各スライドの幅を固定 */
.figures figure {
    flex: 0 0 100%;
    /* 親（viewport）に対して100%の幅 */
    margin-top: 30px;
    box-sizing: border-box;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    border: 1px solid #4e4e4e;
}

/* 矢印ボタンの基本スタイル */
.carousel-prev,
.carousel-next {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    font-size: 2.1em;
    color: #a19e9e;
    /* 文字の色（少し暗め） */
    background-color: none;
    /* 背景色 */

    /* 上に暗い影、下に明るいハイライトを1pxずつ入れる */
    text-shadow:
        -2px -2px 2px rgba(0, 0, 0, 0.2),
        /* 左上の暗い影（凹みを表現） */
        1px 1px 1px rgba(255, 255, 255, 0.8);
    /* 右下の明るい光（縁の反射） */
}

@media (max-width:320px) {
    .carousel-container {
        max-width: 320px;
        width: 100%;
    }
}

@media (min-width:769px) {
    #testimonials {
        background-color: white;
        border-radius: 20px;
    }
}


@media (min-width:1025px) {
    #testimonials {
        max-width: 600px;
    }

    #testimonials figure {
        max-width: 500px;
        height: 1050px;
    }

    #testimonials figure img {
        width: 200px;
        height: 200px;
    }

    #testimonials figcaption {
        font-size: 1.8em;
    }

    #testimonials p {
        font-size: 1.6em;
    }

    /* 窓の役割：ここからはみ出た figure は見えなくなる */
    .figures-viewport {
        width: 500px;
    }

    /* 矢印ボタンの基本スタイル */
    .carousel-prev,
    .carousel-next {
        font-size: 2.5em;
    }
}








/* Q&Aセクション */
#faq {
    max-width: 393px;
    width: auto;
    margin: 0 auto 40px;
    display: grid;
    justify-content: center;
    /* 全体を中央に寄せる */
    border-radius: 20px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), url(../img/back_image/topic4_background_image.webp);
    background-position: 60% 50%;
    overflow: hidden;
}

#faq>* {
    grid-area: stack;
}

.faq-contents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    /* 重なり順を上にする */
    padding: 80px 0 20px;
    /* 上下に余白があると背景とのバランスが良いです */
    border-radius: 20px;
}

#faq details {
    width: 100%;
    /* 親のmax-widthに合わせる */
    max-width: 373px;
    background-color: white;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

#faq summary {
    font-weight: bold;
    padding: 18px 15px;
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4e4e4e;
    /* 質問のテキスト色 */
    list-style: none;
    /* Chrome, Firefox用 */
    gap: 10px;
}

#faq summary::after {
    content: '▼';
    /* 下向き矢印アイコンの代わり */
    font-size: 1.2em;
    transition: transform 0.3s ease;
    color: #a19e9e;
    /* 文字の色（少し暗め） */
    background-color: #ffffff;
    /* 背景色 */

    /* 上に暗い影、下に明るいハイライトを1pxずつ入れる */
    text-shadow:
        -2px -2px 2px rgba(0, 0, 0, 0.2),
        /* 左上の暗い影（凹みを表現） */
        1px 1px 1px rgba(255, 255, 255, 0.8);
    /* 右下の明るい光（縁の反射） */
}

#faq summary::-webkit-details-marker {
    display: none;
    /* Safari用 */
}

#faq details[open] summary::after {
    transform: rotate(180deg);
}

#faq p {
    padding: 15px 15px 20px;
    background-color: #ffffff;
    border-top: 1px solid #eee;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #4e4e4e;
    font-weight: bold;
}

#faq details p span,
#faq details h3 span {
    color: #f06292;
}

/* 背景画像コンテナの調整 */
.faq-backgroundimage {
    width: 100%;
    height: 100%;
    /* 親の高さ（コンテンツの伸び）に合わせる */

}

.faq-image {
    width: 100%;
    height: 100%;
    /* コンテンツの高さに合わせて画像を伸ばす */
    object-fit: cover;
    /* 画像が歪まないようにカバーする */
    opacity: 0.2;
    display: block;
    border-radius: 20px;
    z-index: -1
}

@media (min-width:769px) {
    #faq {
        background-color: white;
        border-radius: 20px;
        margin-bottom: 40px;
    }

    .faq-image {
        border-radius: 20px;
    }
}

@media (min-width:1025px) {
    #faq {
        max-width: 600px;
    }

    .faq-contents {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1;
        /* 重なり順を上にする */
        padding: 80px 0 20px;
        /* 上下に余白があると背景とのバランスが良いです */
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
        border-radius: 20px;
    }

    #faq details {
        max-width: 90%;
    }

    #faq summary {
        font-size: 1.5em;
    }

    #faq p {
        font-size: 1.5em;
    }

    /* 背景画像コンテナの調整 */
    .faq-backgroundimage {
        width: 100%;
        height: 100%;
        /* 親の高さ（コンテンツの伸び）に合わせる */

    }

    .faq-image {
        width: 100%;
        height: 100%;
        /* コンテンツの高さに合わせて画像を伸ばす */
        object-fit: cover;
        /* 画像が歪まないようにカバーする */
        opacity: 0.2;
        display: block;
        border-radius: 20px;
        z-index: -1
    }
}










/* ボタンを包むコンテナを固定 */
.fixed-footer-actions {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 393px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* フッターに到達した時のスタイル */
.fixed-footer-actions.is-stopped {
    position: absolute;
    /* 固定を解除 */
    bottom: 0;
    /* 親要素（または特定の計算位置）で止める */
}

.fixed-footer-actions.at-bottom {
    position: absolute;
    /* footerの直前に配置されるため、bottom: 100% もしくは footerの高さ分調整 */
    bottom: 240px;
    top: auto;
}

.fixed-footer-actions.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 子要素でクリックを有効に戻す */
.fixed-footer-actions>* {
    pointer-events: auto;
}


.ctabuttonbackgraoundnavy-contents {
    z-index: 10;
    /* 前面に配置 */
    display: flex;
    /* ここで横並びにする */
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* 中央に寄せる */
    pointer-events: auto;
    /* クリックを有効化 */
    position: relative;
    gap: 15px;
    padding: 0 10px;
}


@media (min-width:769px) {
    .fixed-footer-actions {
        max-width: 960px;

        color: #333;
        /* 背景が白になるので文字色も調整 */
    }
}

@media (min-width:1025px) {
    .fixed-footer-actions {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        color: #333;
        /* 背景が白になるので文字色も調整 */
    }

    .ctabuttonbackgraoundnavy-contents {
        max-width: 500px;
        margin: 0 auto;
        margin-bottom: 30px;
    }

    .fixed-footer-actions.at-bottom {
        position: absolute;
        /* footerの直前に配置されるため、bottom: 100% もしくは footerの高さ分調整 */
        bottom: 300px;
        top: auto;
    }
}





/* CTAボタン */
#cta {
    background: linear-gradient(135deg, #ffab40, #ff8a65);
    /* 元画像のグラデーション */
    box-shadow:
        0 2px 0 #bdb9b9,
        /* 下の影（厚み） */
        0 5px 5px rgba(0, 0, 0, 0.2);
    /* 全体の影 */
    padding: 10px;
    text-align: center;
    align-items: center;
    border-radius: 15px;
    margin: 0;
    /* 固定バーに入れるので既存のmarginをリセット */
    flex-grow: 1;
    /* 横幅を広げる */
    max-width: 300px;
    /* 画像に近いサイズ感に調整 */
    font-size: 1.5rem;
}

#cta p {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

#cta p strong {
    font-size: 0.9em;
    /* 少し調整 */
    display: block;
    margin-bottom: 2px;
}

#cta p strong::after {
    content: '▶';
    font-size: 0.9em;
    margin-left: 20px;
    display: inline-block;
    transform: translateY(1px);
    /* 1px単位で下にずらして調整 */
    color: #a19e9e;
    /* 文字の色（少し暗め） */
    background-color: #ff8a65;
    /* 背景色 */

    /* 上に暗い影、下に明るいハイライトを1pxずつ入れる */
    text-shadow:
        -2px -2px 2px rgba(0, 0, 0, 0.2),
        /* 左上の暗い影（凹みを表現） */
        1px 1px 1px rgba(255, 255, 255, 0.8);
    /* 右下の明るい光（縁の反射） */
}

#cta p span {
    font-size: 0.6em;
    font-weight: normal;
    /* 補足なので少し細めにするとメリハリが出ます */
    display: block;
}

@media (max-width:320px) {
    #cta {
        font-size: 1.4em;
    }

    #cta p strong::after {
        display: none;
    }
}

@media (min-width:1025px) {
    #cta {
        max-width: 600px;
        font-size: 2em;
    }
}










/* TOPボタン */
.top-button a {
    width: 55px;
    height: 55px;
    background-color: #e0e0e0;
    /* 薄いグレー */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    position: relative;
    box-shadow:
        0 2px 0 #bdb9b9,
        /* 下の影（厚み） */
        0 5px 5px rgba(0, 0, 0, 0.2);
    /* 全体の影 */
}

.top-button .arrow {
    color: #e53935;
    /* 赤い矢印 */
    font-size: 20px;
    line-height: 1;
}

.top-button .text {
    color: #e53935;
    /* 赤いTOP文字 */
    font-size: 12px;
    font-weight: bold;
}

@media (min-width:1025px) {
    .top-button a {
        width: 70px;
        height: 70px;
    }

    .top-button .arrow {
        font-size: 25px;
    }

    .top-button .text {
        font-size: 16px;
    }
}













/* フッター */
footer {
    width: 100%;
    height: 200px;
    background-color: #8a8282;
    color: white;
    padding: 20px 5%;
    text-align: center;
    font-size: 0.8em;
    margin-bottom: 0;
    z-index: 50;
}

footer address {
    margin-bottom: 20px;
}


footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

.footer-image1 {
    width: 7%;
}

.footer-image2 {
    width: 6%;
}

.footer-image3 {
    width: 6%;
}

.footer div {
    font-size: 0.9em;
}

@media (min-width:769px) {
    footer {
        /* 画面の左半分（スマホ版コンテンツと同じ幅）にする */
        margin-left: 0 !important;
        /* 左端に固定 */
        margin-right: 0 !important;
        text-align: center !important;
        /* テキスト自体は、その50%の幅の中央に置くと綺麗です */
        padding: 20px 0px 0px !important;
        background-color: #4e4e4e !important;
        /* 背景色を左側のコンテンツと合わせる */
    }

    .footer-image1 {
        width: 1em;
    }

    .footer-image2 {
        width: 1em;
    }

    .footer-image3 {
        width: 1em;
        left: 10px;
    }
}

@media (min-width:1025px) {
    footer {
        height: 300px;
        /* 画面の左半分（スマホ版コンテンツと同じ幅）にする */
        margin-left: 0 !important;
        /* 左端に固定 */
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        text-align: center !important;
        /* テキスト自体は、その50%の幅の中央に置くと綺麗です */
        padding: 30px 0px 0px !important;
        background-color: #4e4e4e !important;
        /* 背景色を左側のコンテンツと合わせる */
        font-size: 1.5em;
    }

    .footer-image1 {
        width: 2em;
    }

    .footer-image2 {
        width: 2em;
    }

    .footer-image3 {
        width: 2em;
        left: 10px;
    }
}