/* ヘッダー固定 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;

    z-index: 10;
}

/* メインflexラッパーを画面いっぱいに伸ばす（ヘッダーの高さを引く） */
#mainFlexAreaWrapper {
    margin: 0;
    padding: 0;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: beige;
    position: relative;
}


/* 右エリア */
#mainFlexArea {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 横中央 */
    justify-content: flex-start;
    /* 縦は上寄せ */
    padding-top: 10px;
    /* 上に余白を追加 */
    background-color: #fff;
    overflow-y: auto;
}

/* 左エリア */
#mainLeft {
    width: 30%;
    max-width: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    /* 左側もスクロール可能に */
    margin: 0;
}


.iframe {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    padding-top: 10px;
    /* 上の余白しかない */
}



/* 各エリアを縦並びにして、中央寄せ */
.contentWrapper {
    max-width: 900px;
    width: 100%;
    margin: 20px auto;
    /* 元の40pxから20pxに縮小 */
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* 視認性のためのシャドウ */
    padding: 15px 25px;
    /* パディングもやや縮小 */
}

/* 左エリア */
#mainLeft {
    width: 30%;
    /* 左側の幅を30%に設定 */
    max-width: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ヘッダーエリアの固定 */
#header {
    width: 100%;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}


/* プランエリア */
#planArea {
    display: flex;
    flex-direction: column;
    /* 縦並びに変更 */
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.contentWrapper {
    max-width: 900px;
    width: 100%;
    margin: 20px auto;
    /* 元の40pxから20pxに縮小 */
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* 視認性のためのシャドウ */
    padding: 15px 20px;
    /* パディングもやや縮小 */
}

.heading01 {
    padding: 0.25em 0.5em;
    /*上下 左右の余白*/
    color: #494949;
    /*文字色*/
    background: transparent;
    /*背景透明に*/
    border-left: solid 5px #e67d97;
    /*左線*/
}

.heading02 {
    padding: 0.25em 0.5em;
    /*上下 左右の余白*/
    color: #494949;
    /*文字色*/
    background: transparent;
    /*背景透明に*/
    border-left: solid 5px #e6e47d;
    /*左線*/
}

.heading03 {
    padding: 0.25em 0.5em;
    /*上下 左右の余白*/
    color: #494949;
    /*文字色*/
    background: transparent;
    /*背景透明に*/
    border-left: solid 5px #7db4e6;
    /*左線*/
}

/* プランボタン（.btn-flat） */
a.btn-flat {
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 1.5rem 6rem;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 0;
    background: #353535;
    transition: all 0.3s ease;
    padding: 1rem 4rem;
    /* パディングを縮小 */
    margin-right: 20px;
}

a.btn-flat span {
    position: relative;
    z-index: 1;
}

a.btn-flat:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    content: '';
    transition: all .5s ease-in-out;
    transform: translateX(-80%) translateY(-25px);
    border-radius: 50%;
    background: #00A99D;
}

a.btn-flat:hover:before {
    width: 400px;
    height: 400px;
    transform: translateX(-1%) translateY(-175px)
}

/* ボタンエリアの設定 */
.serviceBanners {
    display: flex;
    flex-direction: column;
    /* 縦並びに設定 */
    gap: 20px;
    justify-content: center;
    max-width: 100%;
    box-sizing: border-box;
}

/* ワンストップサービスエリア */
.oneStopService {
    position: sticky;
    top: 60px;
    margin-top: 40px;
    /* iframeとの距離を広げる */
    align-self: flex-start;
    padding: 20px 30px;
    /* 内側余白を増やす */
    border-radius: 5px;
    max-width: 900px;
    /* 最大幅を制限 */
    width: 100%;
    /* 幅は親幅に合わせる */
    margin: 0 auto 20px;
    /* 左右マージン自動で中央寄せ、下に余白 */
    z-index: 10;
}

.oneStopService {
    position: sticky;
    top: 60px;
    margin-top: 20px;
    /* ←ヘッダー分の余白 */
    box-sizing: border-box;
}

/* サービスセクションのタイトル */
.one-stop {
    position: sticky;
    top: 60px;
    /* ヘッダーの高さに合わせて調整 */
    z-index: 20;
    padding: 10px 0;
}

.one-stop h2 {
    padding: 5px;
    background-image:
        linear-gradient(45deg, transparent 15px, #353535 16px calc(100% - 16px), transparent calc(100% - 15px)),
        repeating-linear-gradient(#00A99D, 2px, #353535 2px 4px);
    color: white;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin: 5px;
}

/* サービスセクションのテキスト */
.serviceText {
    font-size: 18px;
    text-align: center;
}

.serviceText h2 {
    font-size: 24px;
    color: #00A99D;
    margin-bottom: 10px;
}

.serviceText p {
    font-size: 16px;
    color: #353535;
}

.serviceImage {
    width: 35%;
}

.serviceImage img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* チェックポイントエリア */
#checkPointArea {
    display: flex;
    flex-direction: flex;
    /* 横並びにする */
    gap: 20px;
    justify-content: center;
    margin: 10px 0;
    max-width: 900px;
    width: 100%;
}

/* チェックポイントセクション */
.checkPoint {
    width: 30%;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #00A99D;
}

.checkPoint p {
    font-size: 14px;
    color: #333;
}

/* 問合せボタンエリア */
#inquiryBtnArea {
    display: flex;
    flex-direction: flex;
    /* 横並びにする */
    gap: 20px;
    justify-content: center;
    margin: 0px 0;
    max-width: 900px;
    width: 100%;
}

/* チェックポイントセクション */
.inquiryBtn {
    width: 30%;
    background: #fff;
    padding: 38px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/*ボタン*/
.cta_btn05 {
    font-weight: bold;
    /* 文字の太さ */
    line-height: 1.5;
    position: relative;
    display: inline-block;
    padding: 1em 1em 1em calc(5em - 12px);
    transition: 0.3s;
    text-decoration: none;
    color: #fff;
    /* 文字色 */
    border-radius: 0.5rem;
    background: #45B173;
    /* 背景色 */
    box-shadow: 0 5px 0 #19934e;
    margin-left: 10px;
    margin-top: 40px;
}

.cta_btn05 p {
    margin: 0;
}

.cta_btn05 .cta_btn05_copy {
    position: absolute;
    bottom: 0.5em;
    left: -10px;
    display: inline-block;
    width: 5em;
    height: 5em;
    line-height: 5em;
    text-align: center;
    color: #45B173;
    font-size: 80%;
    font-weight: bold;
    background: #fff;
    border: 3px solid #45B173;
    border-radius: 50%;
    box-sizing: border-box;
    transform: rotate(-10deg);
}

.cta_btn05 .cta_btn05_copy::before {
    position: absolute;
    content: "";
    bottom: -5px;
    right: -10px;
    border: 9px solid transparent;
    border-left: 15px solid #FFF;
    z-index: 0;
    transform: rotate(45deg);
}

/* マウスオーバーした際のデザイン */
.cta_btn05:hover {
    transform: translate(0, 3px);
    background: #a4fff9;
    /* 背景色 */
    box-shadow: 0 2px 0 #00A99D;
}

/* .cta_btn05 にホバーしたとき、 .cta_btn05_copy も変更 */
.cta_btn05:hover .cta_btn05_copy {
    background: #ffffff;
    /* 背景色 */
    border: 3px solid #a4fff9;
    color: #00A99D;
}

/* スマホ・タブレット対応 */
@media screen and (max-width: 768px) {
    body,
    #mainFlexAreaWrapper {
        overflow-x: hidden;
    }

    /* メインflexエリアを縦並びに */
    #mainFlexAreaWrapper {
        flex-direction: column;
        height: auto;
        /* 高さ固定を解除 */
    }

    /* 左エリアを幅100%に */
    #mainLeft {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        order: 2;
        /* 下に移動 */
    }

    /* 右エリアも幅100% */
    #mainFlexArea {
        width: 100%;
        padding: 10px;
        order: 1;
        /* 上に移動 */
    }

    /* iframeの幅を画面いっぱいに */
    .iframe {
        max-width: 100%;
    }

    /* コンテンツボックスのマージン縮小 */
    .contentWrapper {
        margin: 10px auto;
        padding: 10px;
    }

    /* 見出しの文字サイズ縮小 */
    .heading01,
    .heading02,
    .heading03 {
        font-size: 1rem;
    }

    /* チェックポイントやボタンのレイアウトを縦並びに */
    #checkPointArea,
    #inquiryBtnArea {
        flex-direction: column;
        align-items: center;
    }

    .checkPoint,
    .inquiryBtn {
        width: 90%;
    }

    /* oneStopServiceの幅を100%に */
    .oneStopService {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* 画像を画面幅にフィット */
    .serviceImage {
        width: 100%;
    }

    /* ボタンのパディング縮小 */
    a.btn-flat {
        padding: 0.8rem 2rem;
        font-size: 16px;
    }
}