html {
    scroll-behavior: smooth;
}

img.m-w {
    width: 100%;
    height: auto;
}

.main_lp {
    max-width: 800px;
    /* 最大幅800px */
    width: 100%;
    /* デバイス幅に応じて拡大 */
    margin: 0 auto;
    /* 中央揃え */
    background-color: white;
}

.top_lp {
    margin-top: 4em;
    /* ヘッダー分のスペースを確保 */
}

.cta_container {
    text-align: center;
    margin: 30px 0;
}

.cta_container span {
    color: #ffe512;
}

.cta_main {
    margin: 20px auto;
    padding: 15px;
    max-width: 450px;
    background: linear-gradient(to right, #ff7e5f, #feb47b, #ff6db6);
    border-radius: 50px;
    position: relative;
    /* ラベルの配置調整に必要 */
    box-shadow: inset 0px -3px 4px rgba(255, 255, 255, 0.5);
    /* 内側のハイライト */
}

.cta_label {
    font-size: 18px;
    color: white;
    background-color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    width: 90%;
}

.cta_button {
    display: inline-block;
    text-decoration: none;
    font-size: 22px;
    /* 文字の大きさを調整 */
    font-weight: bold;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

.cta_button:hover {
    transform: scale(1.05);
    /* 拡大するホバー効果 */
}

.cta_line {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line_icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.line_button {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(to right, #00c300, #00e676);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
    /* 縁の立体感を強調 */
    transition: transform 0.3s ease;
}

.line_button:hover {
    transform: scale(1.05);
}

.cta_po {
    margin: -5em 0 0 0;
}

.baf_lp {
    padding: 16em 0 0 0;
    background-color: #ebf3ff;
    margin: -16em 0 0 0;
}

.baf_lp2 {
    background-color: #ebf3ff;
    padding: 2em 0;
}

.cta_pp {
    margin: 3em auto;
    text-align: center;
    width: 95%;
    border-top: solid 1px #b5c9e6;
    border-bottom: solid 1px #b5c9e6;
    line-height: 1.8em;
    padding: 1em;
}

.cta_pp span {
    color: #ff7eae;
}

.bap-lp {
    background-color: #ffeded;
    margin: 0 auto;
    padding: 2em 0;
}

.tit_lp {
    line-height: 2.5em;
    text-align: center;
    font-family: serif;
    margin: 1em auto;
}

.tit_lp h2 {
    font-size: 15px;
    color: #6e6e6e;
}

.top_lp p {
    font-size: 18px;
    color: #4d4d4d;
}

.naya_lp {
    margin: 1em auto;
    background-color: #eb8c8c;
    color: white;
    text-align: start;
    padding: 18px 0 18px 19px;
    border-radius: 20px;
    width: 95%;
    position: relative;
}

.naya_lp p {
    margin-left: 10px;
    font-size: 16px;
}

.naya_lp p span {
    color: #ffeb5b;
    font-weight: bold;
}

.naya_lp h2 {
    color: white;
    position: absolute;
    top: 19px;
    left: 10px;
}

.naya_f_lp {
    display: flex;
    margin: 2em auto;
    justify-content: center;
    align-items: center;
}

.naya_f_lp_in {
    background-color: white;
    padding: 1em;
    text-align: start;
    font-size: 17px;
    color: #333;
    width: 78%;
    border-radius: 15px;
    margin: 1%;
    line-height: 1.6em;
}

.naya_f_lp_in span {
    color: #eb8c8c;
}

.naya_f_lp_in span2 {
    color: #8cb4eb;
}

.img_lp {
    margin: 1em auto;
}

.swiper-container {
    width: 100%;
    max-width: 600px;
    line-height: 1.8em;
    margin: auto;
    background-color: #ffecec;
    border-radius: 10px;
    padding: 20px 4px;
    position: relative;
    overflow: hidden;
    text-align: right;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.slide-content {
    width: 100%;
}

.slide-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.slide-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.slide-description {
    font-size: 14px;
    text-align: justify;
    color: #555;
    padding: 1em;
}

/* ナビゲーションボタンのスタイル */

.swiper-button-next,
.swiper-button-prev {
    color: #000;
    /* ボタンの色 */
    background: rgba(255, 255, 255, 0.8);
    /* ボタンの背景を白くする */
    border-radius: 50%;
    /* 丸いボタン */
    width: 40px;
    /* ボタンの幅 */
    height: 40px;
    /* ボタンの高さ */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* ボタンをスライド中央に配置 */

.swiper-button-next {
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
}

.swiper-button-prev {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
}

/* ボタンのホバー効果 */

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    /* ホバー時の背景色を濃くする */
    transform: translateY(-50%) scale(1.1);
    /* ボタンを少し拡大 */
}

.ansin_lp {
    width: 100%;
    display: flex;
    margin: 2em auto;
    justify-content: center;
    align-items: center;
}

.ansin_lp div p {
    margin: 1em auto;
    width: 90%;
    height: auto;
    font-size: 14px;
}

.ansin_lp div h2 {
    color: #5d93cd;
    font-size: 18px;
    font-weight: bold;
    margin: 0 auto;
    width: 90%;
}

.text_lp {
    text-align: justify;
    line-height: 1.8em;
    font-size: 14px;
    margin: 1em auto;
    color: #333;
    width: 95%;
}

/*
  menu
*/

.hed_lp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 0;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 800px;
    width: 100%;
    background: white;
    z-index: 1000;
}

.hed_rogo {
    width: 40%;
}

.hed_line {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hed_line img {
    width: 48px;
    height: auto;
}

.hed_line p {
    background-color: #06c755;
    color: white;
    padding: 8px 10px;
    font-weight: bold;
    border-radius: 30px;
    font-size: 10px;
    margin: 0 3%;
}

.menu_toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    margin-right: 10px;
}

.menu_toggle span {
    display: block;
    height: 4px;
    background-color: #707070;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu_toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu_toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu_toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

.menu_items {
    display: none;
    /* 初期状態で非表示 */
    position: fixed;
    /* 固定表示 */
    top: 60px;
    /* ヘッダーの下に配置 */
    right: 20px;
    /* 画面右端に配置 */
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 9px;
    z-index: 1000;
    /* 他の要素より前面に表示 */
    width: 300px;
    /* メニュー幅を固定 */
}

.menu_items ul {
    list-style: none;
    margin: 0;
    padding: 10px 20px;
}

.menu_items li {
    margin: 10px 0;
}

.menu_items a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.menu_items.active {
    display: block;
    /* アクティブ状態で表示 */
}

@media (max-width: 768px) {
    .hed_lp {
        max-width: 100%;
        padding: 1em;
    }
    .hed_line p {
        font-size: 8px;
        padding: 6px 8px;
    }
    .menu_items {
        width: 90%;
        left: 8%;
        top: 13%;
        right: auto;
    }
}

.fade-in {
    opacity: 0;
    /* 初期状態は透明 */
    transform: translateY(20px);
    /* 初期状態で少し下にずらす */
    transition: opacity 0.6s ease, transform 0.6s ease;
    /* アニメーション効果 */
}

.fade-in.active {
    opacity: 1;
    /* 表示状態に */
    transform: translateY(0);
    /* 元の位置に移動 */
}

.ffaesggada {
    font-family: serif;
    text-align: end;
    color: #6e6e6e;
    font-size: 13px;
    margin-right: 1em;
}

/* フォーム内の入力欄 */

.popupForm input[type="text"],
.popupForm input[type="email"],
.popupForm select,
.popupForm textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.popupForm input[type="text"]:focus,
.popupForm input[type="email"]:focus,
.popupForm select:focus,
.popupForm textarea:focus {
    border-color: #2ea59b;
    box-shadow: 0 0 3px rgba(46, 165, 155, 0.3);
}

/* 送信ボタンを目立たせる */

.sendButton {
    background-color: #ff5a5f;
    /* 目立つ色に変更 */
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sendButton:hover {
    background-color: #ff3a3f;
    /* ホバー時の色 */
}

/* ポップアップの基本レイアウト */

.popupForm {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    width: 320px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    border-radius: 6px;
    box-sizing: border-box;
}

.popupForm h2 {
    margin-top: 0;
    font-size: 18px;
}

/* ポップアップフォーム内の input, textarea を共通デザイン */

.popupForm input[type="text"],
.popupForm input[type="email"],
.popupForm input[type="password"],
.popupForm textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    /* フォーカス時の枠線をカスタマイズしたい場合 */
}

.popupForm input[type="text"]:focus,
.popupForm input[type="email"]:focus,
.popupForm input[type="password"]:focus,
.popupForm textarea:focus {
    border-color: #2ea59b;
    /* フォーカス時の枠線色 */
    box-shadow: 0 0 3px rgba(46, 165, 155, 0.3);
}

/* 送信ボタンなど */

.popupForm button[type="submit"] {
    background-color: #2ea59b;
    color: #fff;
    padding: 13px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

.popupForm button[type="submit"]:hover {
    background-color: #28988f;
}

.popupForm h2 {
    text-align: center;
    font-size: 24px;
    margin: 1em auto;
    font-weight: bold;
    color: #2ea59b;
}

.popupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}

.popupForm {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    min-height: 50%;
    /* 最小の高さを画面の50%に設定 */
    max-height: 85%;
    /* 最大の高さを画面の90%に設定 */
    overflow-y: auto;
    /* 内容が多い場合は縦スクロール */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    border-radius: 6px;
    box-sizing: border-box;
}

/* 右上の × ボタン */

.popupForm .closePopup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.popupForm .closePopup:hover {
    color: #666;
}

label {
    margin: 0.5em auto;
}

/* ラベルの基本デザイン */

.form-label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    display: inline-flex;
    align-items: center;
}

/* 必須ラベル */

.required-label {
    background-color: #ff4d4d;
    /* 赤 */
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
    display: inline-block;
}

/* 任意ラベル */

.optional-label {
    background-color: #2ea59b;
    /* グリーン系 */
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
    display: inline-block;
}

/* フォームの入力欄 */

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

/* フォーカス時のスタイル */

input:focus,
select:focus,
textarea:focus {
    border-color: #2ea59b;
    box-shadow: 0 0 5px rgba(46, 165, 155, 0.5);
}

/* オーバーレイ: 画面全体を暗く */

.thankYouOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}

/* メッセージボックス */

.thankYouMessage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    background: #fff;
    padding: 30px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
}

/* メッセージテキスト */

.thankYouMessage p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* 閉じるボタン */

.thankYouMessage .closeThankYou {
    background-color: #ff5a5f;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.thankYouMessage .closeThankYou:hover {
    background-color: #ff3a3f;
}

.servi_ch {
    display: flex;
    flex-wrap: wrap;
    margin: 1em auto;
}

.servi_ch div {
    width: 31%;
    height: auto;
    margin: 1%;
}

.servi_ch img {
    width: 100%;
    height: auto;
}

.worry-box {
    padding: 24px 18px;
    border-radius: 10px;
    margin: 30px auto;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.worry-label {
    background-color: #e68787;
    color: #fffef2;
    padding: 10px 16px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    font-size: 14.5px;
    display: inline-block;
}

.solution-block {
    margin-top: 10px;
}

.solution-title {
    display: inline-block;
    background-color: #ffeaea;
    color: #cc4e5c;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.solution-card {
    background-color: #fafafa;
    border: 1px solid #f2dede;
    border-left: 4px solid #e68787;
    padding: 12px 14px;
    border-radius: 8px;
    margin-top: 10px;
}
