body {
    font-family: sans-serif;
    margin: 0;
}

/* ヘッダー共通 */
.header {
    display: flex;

    /* Flexbox モードにする */
    :contentReference[oaicite:0] {
        index=0
    }

    justify-content: center;

    /* 子要素を水平方向の中央に配置 */
    :contentReference[oaicite:1] {
        index=1
    }

    align-items: center;
    /* 垂直方向も中央揃え */
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #ffffff;
    z-index: 1000;
    padding: 0;
}

.header img {
    max-width: 300%;
    max-height: 100%;
    object-position: center center;
    display: block;
}

/* ------------------------------------------- */
/* 1. 各フレームの背景色 */
.frame-01 {
    background-color: #ffffff;
    /* サービス以降は白背景 */
}

.frame-02 {
    background-color: #49B190;
    /* QAセクションは緑背景 */
}

.frame-03 {
    background-color: #ffffff;
    /* CEOセクションは白背景 */
}

.frame-04 {
    background-color: #33BE53;
    /* LINEセクションは白背景 */
}

/* ------------------------------------------- */
/* 2. フレーム内のセクションを左右パディング＆中央寄せ */
.frame-01>section,
.frame-02>section,
.frame-03>section,
.frame-04>section {
    width: 100%;
    max-width: 960px;
    /* PC時の最大幅 */
    margin: 0 auto;
    /* 中央寄せ */
    padding: 0 20px;
    /* 両脇の余白（お好みで調整） */
    box-sizing: border-box;
}

/* ------------------------------------------- */
/* 3. full-width クラスは「画面幅いっぱい」を維持 */
.full-width {
    width: 100%;
    max-width: none;
}

/* ------------------------------------------- */
/* 4. 既存のsp-only/pc-only, アコーディオンなどには影響なし */

/* デフォルトはスマホ */
.sp-only {
    display: block;
}

.pc-only {
    display: none;
}



/* 画像は幅100%でフルワイド */
.full-width img {
    width: 100%;
    height: auto;
}

/* 768px以上（タブレット・PC）はPC表示に切り替え */
@media screen and (min-width: 768px) {
    .sp-only {
        display: none;
    }

    .pc-only {
        display: block;
    }
}


.section-qa {
    background-color: #49B190;
}

.section-qa {
    background: #49B190;
    padding: 40px 20px;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.accordion-item {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #A29F9F;
    border-right: 1px solid #A29F9F;
}

/* ヘッダー部分 */
.accordion-header {
    display: flex;
    align-items: center;
    padding: 16px;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

/* Qアイコン */
.icon-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-right: 12px;
    background-color: #FB922F;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    font-size: 18px;
}

/* 質問文 */
.question-text {
    flex: 1;
    text-align: left;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}
@media screen and (max-width: 768px) {
    .question-text {
        font-size: 18px;
    }
    .accordion-body{
        font-size: 16px;
    }
}

.icon-chevron {
    margin-right: 10px;
    display: inline-block;
    /* transform-origin を効かせる */
    width: 18px;
    /* お好みの幅に */
    height: 16px;
    /* 高さは幅×0.866 ≒ 18×0.866 */
    transform-origin: center center;
    /* 中心を回転軸に */
    transition: transform .3s ease;
}

/* 回転（開閉トグル） */
.accordion-item.open .icon-chevron {
    transform: rotate(180deg);
}

/* 回答部分（閉じている時） */
.accordion-body {
    background: #ffe7b5;
    padding: 0 16px;
    /* 左右のパディングは残す */
    margin: 0 30px 0 30px;
    /* 上0・左右30・下0 */
    max-height: 0;
    overflow: hidden;
    transition:
        max-height .3s ease,
        padding .3s ease,
        margin-bottom .3s ease;
    /* margin-bottom もアニメート */
    line-height: 1.6;
    border-radius: 4px;
    /* 常に角を丸くしておく */
}

/* 回答部分（開いている時） */
.accordion-item.open .accordion-body {
    padding: 16px;
    /* 上下パディングを戻す */
    margin-bottom: 20px;
    /* 下マージンだけ付ける */
    max-height: 500px;
    /* 十分大きめに */
}


.footer-box {
    background-color: #ffffff;
    max-width: 800px;
    /* ボックスの最大幅 */
    margin: 50px auto 10px auto;
    /* 中央寄せ */
    box-sizing: border-box;
}

.footer-nav {
    text-align: center;
    font-size: 12px;
    color: #333333;
    line-height: 1.5;
}

.footer-nav a {
    color: inherit;
    text-decoration: none;
    margin: 0 8px;
}

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

.footer-nav .sep {
    color: #999999;
}

.footer-nav .copy {
    color: #666666;
    margin-left: 8px;
}

@media screen and (max-width: 768px) {
    .section-hero {
        position: relative;
    }

    .hero-buttons {
        position: absolute;
        bottom: 0%;
        left: 50%;
        width: 85%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-buttons.btn-image {
        display: block;
        width: 100%;
        height: auto;
    }

    /* just-buttons 自体はフローの中で左右中央に */
    .just-buttons {
        text-align: center;
        /* 子要素を中央寄せ */
        margin: 0;
        /* 上下の余白。お好みで調整 */
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
        /* 両脇に余白を追加したい場合 */
        box-sizing: border-box;
    }

    /* ボタン画像は画面幅に合わせて */
    .just-buttons .btn-image {
        display: inline-block;
        max-width: 80%;
        /* SP時に小さくしたいならここを調整 */
        height: auto;
    }

    .section-line {
        position: relative;
    }

    .section-line .line-buttons {
        position: absolute;
        bottom: 29%;
        /* ボタンの縦位置 */
        left: 50%;
        /* 横中央 */
        transform: translateX(-50%);
        width: auto;
        /* ボタン幅に合わせて */
        text-align: center;
    }



    .btn-link {
        display: inline-block;
        text-decoration: none;
    }

    .btn-link.pc-only {
        display: none;
    }

}


/* ----------------------------------------- */
/* 1. section-hero のボタン（PC版）横並び */
/* ----------------------------------------- */
@media screen and (min-width: 768px) {
    .section-hero {
        position: relative;
    }

    .hero-buttons {
        position: absolute;
        bottom: 5%;
        /* お好みで上下位置調整 */
        left:36%;
        transform: translateX(-50%);
        display: flex;
        /* 横並びに */
        flex-direction: row;
        align-items: center;
        gap: 2%;
        /* ボタン間の隙間 */
        width: 60%;
    }

    /* SP用リンクは隠し、PC用リンクを表示 */
    .hero-buttons .btn-link.sp-only {
        display: none;
    }

    .hero-buttons .btn-link.pc-only {
        display: inline-block;
    }
}

/* ----------------------------------------- */
/* 2. section-just のボタン（PC版）画像間挿入 */
/* ----------------------------------------- */
@media screen and (min-width: 768px) {
    /* コンテナ幅は 500px で OK */
    .just-buttons {
      display: flex;
      justify-content: center;
      margin: 24px auto;
      max-width: 500px;
      padding: 0 20px;
      width: 100%;
      box-sizing: border-box;
    }
  
    /* SP用は隠す */
    .just-buttons .btn-link.sp-only {
      display: none;
    }
    /* PC用だけ表示 */
    .just-buttons .btn-link.pc-only {
      display: inline-block;
    }
  
    /* ↓ ここを追加 ↓ */
    /* PC版ボタン画像のサイズを制御 */
    .just-buttons .btn-link.pc-only .btn-image {
      display: block;
      width: 100%;       /* コンテナ幅いっぱい */
      max-width: 500px;  /* お好みの最大幅に調整 */
      height: auto;
      margin: 0 auto;    /* 念のため中央寄せ */
    }
  }
  

/* ----------------------------------------- */
/* 3. section-line のボタン（PC版）画像上重ね */
/* ----------------------------------------- */
@media screen and (min-width: 768px) {
    .section-line {
        position: relative;
    }

    .section-line .line-buttons {
        position: absolute;
        bottom: 29%;
        /* お好みで上下位置調整 */
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        width: 36%;
    }

    .section-line .line-buttons .btn-link.sp-only {
        display: none;
    }

    .section-line .line-buttons .btn-link.pc-only {
        display: inline-block;
    }
}