/* ============================================================
   リセット & 基本設定
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --header-height: 80px;
    --main-width: 430px;
    --primary-color: #007DCA;
    --bg-color: #d7edfa;
}

html {
    /* スムーズスクロール */
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    /* 横スクロール防止 */
    overflow-x: hidden;
    min-width: 320px;
}

/* ============================================================
   ヘッダー (共通)
   ============================================================ */
.pc-header {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
    padding: 5px 0;
}



.pc-header__inner {
    width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pc-header__inner > img {
    width: 100px;
    height: auto;
    display: block;
}

.header-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.header-icons-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.header-line-icon img {
    width: 36px;
    height: 36px;
    display: block;
}

.header-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9999px;
    text-decoration: none;
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.header-btn:hover {
    opacity: 0.8;
}

.header-tel-btn {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.header-tel-btn .fa-phone {
    transform: rotate(15deg);
}

.header-form-btn {
    background-color: #E38F37;
    color: #fff;
}

/* SP：ロゴ・LINEアイコン・フォームボタンの3つをアイコンサイズで横並び */
@media (max-width: 1023px) {
    .pc-header {
        height: 68px;
        padding: 0;
    }

    .pc-header__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .pc-header__inner > img {
        width: 80px;
    }

    .header-cta {
        align-items: flex-end;
        gap: 2px;
    }

    .header-icons {
        gap: 6px;
    }

    .cta-hours {
        display: block;
    }

    .btn-text {
        display: none;
    }

    .header-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        font-size: 16px;
    }

    .header-line-icon img {
        width: 36px;
        height: 36px;
    }

    .cta-hours {
        font-size: 10px;
        margin-top: 2px;
        align-self: center;
        font-family: "Zen Maru Gothic", sans-serif;
    }
}

/* ============================================================
   サイドコンテンツ (SP では非表示)
   ============================================================ */
.side-content {
    display: none;
}

/* ============================================================
   メインコンテンツ (SP ベース)
   ============================================================ */
.main-content {
    width: 100%;
    /* 320px 未満の端末でも崩れないよう min-width は body 側で吸収 */
    max-width: var(--main-width);
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 18px 10px rgba(0, 0, 0, 0.3);
    /* グリッドアイテムとして使う際に内包要素の溢れを防ぐ */
    min-width: 0;
    overflow-x: hidden;
}

/* メイン画像ラッパー */
.cta-image-wrapper {
    position: relative;
    display: block;
    line-height: 0;
}

/* 仮画像 */
.kari {
    width: 100%;
    height: auto;
    display: block;
}

/* 画像内セクションアンカー */
.section-anchor {
    position: absolute;
    pointer-events: none;
}

#worries {
    top: 15.55%;
    left: 7.56%;
    width: 83.02%;
    height: 0.84%;
}

#anshin{
    top: 25.56%;
left: 97.07%;
width: 1.07%;
height: 0.03%;
}

#subsidy {
    top: 40.45%;
    left: 7.09%;
    width: 85.12%;
    height: 0.84%;
}

#deadline {
    top: 83.09%;
    left: 1.74%;
    width: 95.59%;
    height: 1.45%;
}

/* 画像内CTAオーバーレイ */
.cta-overlay {
    position: absolute;
    display: block;
}

.cta1 {
    top: 7.80%;
    left: 7.59%;
    width: 84.81%;
    height: 0.56%;
}

.cta2 {
    top: 39.45%;
    left: 7.59%;
    width: 84.81%;
    height: 0.56%;
}

.cta3 {
    top: 54.92%;
    left: 7.59%;
    width: 84.81%;
    height: 0.56%;
}

.cta4 {
    top: 82.29%;
    left: 7.59%;
    width: 84.81%;
    height: 0.56%;
}

.cta5 {
    top: 99.20%;
    left: 7.59%;
    width: 84.81%;
    height: 0.56%;
}

#worries, #subsidy, #deadline {
    scroll-margin-top: 90px;
}

@media (min-width: 1024px) {
    #worries, #subsidy, #deadline {
        scroll-margin-top: 80px;
    }
}

/* ============================================================
   FAQ・フォームエリア共通
   ============================================================ */
.sections-below {
    width: 100%;
    max-width: var(--main-width);
    margin: 0 auto;
    background-color: #fff;
}

.section-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ============================================================
   よくある質問
   ============================================================ */
.faq-section {
    padding-bottom: 20px;
}

.faq-container {
    padding: 0 16px;
}

.faq-list details {
    background-color: #e6e6e6;
    margin-bottom: 10px;
    padding: 15px 15px 15px 2.5rem;
    border-radius: 9999px;
    color: #191970;
}

.faq-list summary {
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list p {
    padding-left: 1.5rem;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Q アイコン */
.faq-list summary::before {
    content: "Q";
    display: inline-block;
    margin-right: 0.5rem;
    font-weight: 900;
    font-size: 23px;
    vertical-align: middle;
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* 開閉アイコン */
.faq-list summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0.5rem;
    top: 0;
    bottom: 0;
    margin: auto;
    height: fit-content;
    color: #666;
}

.faq-list details[open] summary::after { content: "\f077"; }
.faq-list details[open] { border-radius: 30px; }

/* ============================================================
   お問い合わせフォーム
   ============================================================ */
.contact-section {
    padding-bottom: 40px;
}

.form-container {
    padding: 0 16px;
}

.contact-form {
    border: 2px solid var(--primary-color);
    padding: 24px 20px;
    border-radius: 10px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.required {
    background-color: #e05;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

.checkbox-group label,
.radio-group label {
    display: block;
    font-weight: normal;
    margin-bottom: 5px;
}

.input-row input,
.input-row select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-submit { text-align: center; }

.btn-submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    font-family: "Zen Maru Gothic", sans-serif;
    transition: opacity 0.2s;
}

.btn-submit:hover {
    opacity: 0.8;
}

/* ============================================================
   お問い合わせ方法モーダル
   ============================================================ */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-modal[hidden] {
    display: none;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
}

.contact-modal__panel {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 36px 24px 28px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    font-family: "Zen Maru Gothic", sans-serif;
}

.contact-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background-color: transparent;
    color: #666;
    cursor: pointer;
    font-size: 24px;
}

.contact-modal__panel h2 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.contact-modal__panel p {
    margin-bottom: 22px;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.7;
}

.contact-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-modal__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 9999px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}

.contact-modal__button:hover {
    opacity: 0.85;
}

.contact-modal__button img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.contact-modal__line {
    background-color: #06c755;
}

.contact-modal__form {
    background-color: #E38F37;
}

body.is-modal-open {
    overflow: hidden;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
    background-color: #fff;
    text-align: center;
    padding: 16px 0;
}

.site-footer__inner {
    width: 90%;
    max-width: var(--main-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    width: 100px;
    height: auto;
    display: block;
}

/* ============================================================
   PC レイアウト (1024px 以上)
   ============================================================ */
@media (min-width: 1024px) {

    /* --- PCヘッダー --- */
    .pc-header {
        height: var(--header-height);
    }

    .pc-header__inner {
        width: 95%;
        margin: 0 auto;
    }

    .pc-header__inner > img {
        width: 110px;
        height: auto;
        display: block;
    }

    /* PC では電話ボタン非表示 */
    .header-tel-btn {
        display: none;
    }

    .header-btn {
        font-size: 16px;
        padding: 10px 20px;
    }

    /* --- 3カラムグリッド --- */
    .lp-container {
        display: grid;
        grid-template-columns: 1fr var(--main-width) 1fr;
        /* 各セルがメインコンテンツの高さに合わせて伸びる */
        align-items: start;
        width: 100%;
    }

    /* --- 共通サイドスタイル --- */
    .side-content {
        display: block;
        /* ヘッダー直下に吸着、ビューポート高さに収める */
        position: sticky;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        /* コンテンツが溢れた場合にサイド内をスクロール */
        overflow-y: auto;
        overflow-x: hidden;
        /* グリッドアイテムの溢れ防止 */
        min-width: 0;
        z-index: 1;
    }

    /* --- 左サイド --- */
    .left-side {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
        padding-bottom:0;
    }

    .side-image {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* 親 (.left-side) いっぱいに広げる */
        flex: 1;
    }

    .side-image img {
        width: 100%;
        max-width: 350px;
        height: auto;
        display: block;
    }

    .side-woman-container {
        position: relative;
        width: fit-content;
        margin: 0 auto;
        /* 女性画像右側にテキストが入るため余白を確保 */
        padding-right: 40px;
    }

    .side-woman-text {
        position: absolute;
        display: block;
        right: 10px;
        top: 0;
        text-align: center;
        z-index: 1;
        font-family: "Zen Maru Gothic", sans-serif;
        font-weight: 400;
        font-size: 18px;
        line-height: 1.6;
        /* テキストが長い場合に折り返す */
        white-space: nowrap;
    }

    /* テキスト背後の円形ハロー */
    .side-woman-text::after {
        content: "";
        position: absolute;
        width: 80px;
        height: 80px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 9999px;
        display: block;
        z-index: -1;
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 40px 20px rgba(255, 255, 255, 0.9);
    }

    /* --- 右サイド (目次・CTA) --- */
    .right-side {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 500px;
        justify-self: center;
    }

    .toc {
        width: 100%;
        padding: 0 20px;
    }

    .toc ul {
        list-style: none;
        padding-left: 20px;
        margin-bottom: 20px;
    }

    .toc li {
        padding-bottom: 10px;
    }

    .toc a {
        font-family: "Zen Maru Gothic", sans-serif;
        font-weight: 400;
        text-decoration: none;
        color: var(--primary-color);
        font-size: 18px;
        transition: opacity 0.2s;
    }

    .toc ul a {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .toc ul a::before {
        content: "\f054";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 10px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: #fff;
        color: var(--primary-color);
    }

    .toc a:hover {
        opacity: 0.7;
    }

    /* CTA ボタン */
    .right-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 90%;
        margin: 10px auto 0;
        padding: 18px 10px;
        font-family: "Zen Maru Gothic", sans-serif;
        font-size: 22px;
        text-align: center;
        background-color: var(--primary-color);
        color: #fff !important;
        border-radius: 9999px;
        text-decoration: none;
        transition: opacity 0.2s, transform 0.1s;
        /* 文字が溢れないよう */
        white-space: nowrap;
    }

    .cta-hours {
        text-align: center;
        font-size: 12px;
        color: #333333;
        margin-top: 4px;
        font-family: "Zen Maru Gothic", sans-serif;
    }

    .right-cta-hours {
        text-align: center;
        font-size: 12px;
        color: #333333;
        margin-top: 6px;
        font-family: "Zen Maru Gothic", sans-serif;
    }

    /* PC ではヘッダーの営業時間を非表示 */
    .cta-hours {
        display: none;
    }

    .right-cta:hover {
        opacity: 0.85;
        transform: translateY(-1px);
    }

    .right-cta .fa-phone {
        opacity: 0.8;
        font-size: 20px;
        transform: rotate(15deg);
        flex-shrink: 0;
    }

    /* --- グリッド配置を明示的に固定 --- */
    .left-side {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .main-content {
        grid-column: 2;
        grid-row: 1;
    }

    .right-side {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    /* --- FAQ・フォームエリア (PC) --- */
    .sections-below {
        grid-column: 2;
        grid-row: 2;
        max-width: 100%;
        width: 100%;
    }

    /* --- メインコンテンツ (PC) --- */
    .main-content {
        /* グリッド内では max-width を解除して固定幅のグリッド列に任せる */
        max-width: 100%;
        width: 100%;
        /* 縦方向は stretch しない (サイドが sticky になるため) */
        align-self: start;
    }

    /* --- フッター (PC) --- */
    .site-footer__inner {
        max-width: 100%;
    }
}

/* ============================================================
   狭い PC (1024px 〜 1279px) での調整
   ============================================================ */
@media (min-width: 1024px) and (max-width: 1279px) {
    :root {
        --main-width: 390px;
    }

    .side-woman-text {
        font-size: 13px;
    }

    .toc a {
        font-size: 13px;
    }

    .right-cta {
        font-size: 15px;
        padding: 14px 8px;
        width: 95%;
    }

    .right-cta .fa-phone {
        font-size: 16px;
    }
}

/* ============================================================
   中間幅 (430px 〜 1023px) での調整
   ============================================================ */
@media (min-width: 430px) and (max-width: 1023px) {
    .main-content {
        box-shadow: none;
    }
}
