/* =========================================================
   FAQ
   ========================================================= */
.sg-faq {
    padding: 0 0 50px;
}

/* Hero */
.sg-faq .sgfaq-hero {
    padding: 0 0 50px;
}

.sg-faq .sgfaq-hero-figure {
    margin: 0;
    display: flex;
    justify-content: center;
}

.sg-faq .sgfaq-hero-img {
    width: min(720px, 100%);
    height: auto;
    display: block;
}

/* セクション見出し（「お問合せ前に」など） */
.sg-faq .sgfaq-sec {
    margin-top: 40px;
}

.sg-faq .sgfaq-sec-title {
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-weight: 500;
    font-size: clamp(18px, 2.5vw, 25px);
    letter-spacing: .08em;
    margin: 0 0 15px;
}

/* アコーディオン全体 */
.sg-faq .sgfaq-acc {
    display: grid;
    gap: 30px;
}

/* 1項目（枠） */
.sg-faq .sgfaq-item {
    border: 1px solid rgba(0, 0, 0, .35);
    background: #fff;
}

/* summary のデフォルトマーカーを消す */
.sg-faq .sgfaq-item>summary {
    list-style: none;
}

.sg-faq .sgfaq-item>summary::-webkit-details-marker {
    display: none;
}

/* 質問行 */
.sg-faq .sgfaq-q {
    cursor: pointer;
    display: grid;
    grid-template-columns: 45px 1fr 45px;
    align-items: end;
    column-gap: 10px;
    user-select: none;
    padding: 15px 20px;
}

.sg-faq .sgfaq-qmark {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-weight: 600;
    font-size: 35px;
    letter-spacing: .06em;
}

.sg-faq .sgfaq-qtext {
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.7;
    padding-bottom: 5px;
}

/* ＋ / － アイコン（CSSで描画） */
.sg-faq .sgfaq-ico {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-block;
    justify-self: end;
}

.sg-faq .sgfaq-ico::before,
.sg-faq .sgfaq-ico::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: #000;
    transform: translate(-50%, -50%);
}

.sg-faq .sgfaq-ico::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* open のときは「－」にする（縦棒を消す） */
.sg-faq details[open] .sgfaq-ico::after {
    opacity: 0;
}

.sg-faq details[open] .sgfaq-q {
    border-bottom: 1px solid rgba(0, 0, 0, .35);
}

/* 回答 */
.sg-faq .sgfaq-a {
    padding: 20px 30px;
}

.sg-faq .sgfaq-a p {
    line-height: 1.9;
    margin: 0;
}

/* 地図上の色注釈 */
.sg-faq .sgfaq-legend {
    width: 70%;
    max-width: 800px;
    min-width: 320px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    margin: 20px auto 10px;
}

.sg-faq .sgfaq-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.sg-faq .sgfaq-legend-swatch {
    width: 18px;
    height: 18px;
    display: inline-block;
    box-sizing: border-box;
}

/* 色指定 */
.sg-faq .sgfaq-legend-item--yachiyo .sgfaq-legend-swatch {
    background: #c9a46a;
}

.sg-faq .sgfaq-legend-item--kashiwa .sgfaq-legend-swatch {
    background: #d7d728;
}

/* Map（ページの上部マップ） */
.sg-faq .sgfaq-map {
    width: 70%;
    max-width: 800px;
    min-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.sg-faq .sgfaq-map img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(0, 0, 0, .35);
}

/* フッター同等：グリッド */
.sg-faq .sgfaq-grid {
    display: grid;
    grid-template-columns: 1.35fr 1.35fr 1fr;
    grid-template-areas:
        "chiba saitama tokyo"
        "chiba saitama ibaraki";
    gap: 24px;
    margin-top: 18px;
}

/* areas割当 */
.sg-faq .sgfaq-card--chiba {
    grid-area: chiba;
}

.sg-faq .sgfaq-card--saitama {
    grid-area: saitama;
}

.sg-faq .sgfaq-card--tokyo {
    grid-area: tokyo;
}

.sg-faq .sgfaq-card--ibaraki {
    grid-area: ibaraki;
}

/* 見出し帯 */
.sg-faq .sgfaq-bar {
    background: #3d4955;
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-weight: 500;
    font-size: 20px;
    text-align: center;
    letter-spacing: .08em;
    color: #fff;
    margin: 0;
    padding: 5px 0;
}

/* 中身 */
.sg-faq .sgfaq-body {
    position: relative;
    min-height: 120px;
    border: none;
    padding: 15px 0 50px;
}

/* 千葉・埼玉：DL */
.sg-faq .sgfaq-dl {
    margin: 0;
    padding: 0;
}

.sg-faq .sgfaq-row {
    display: grid;
    grid-template-columns: 1.6em 1fr;
    column-gap: 0.6em;
    align-items: start;
    margin: 0 0 10px;
}

.sg-faq .sgfaq-row dt {
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: 0;
    margin: 0;
}

.sg-faq .sgfaq-row dd {
    margin: 0;
}

.sg-faq .sgfaq-row dt::after {
    content: "：";
}

/* 市区町村リスト（フッター：.sgf-pref-list） */
.sg-faq .sgfaq-list {
    margin: 0 0 30px;
    padding-left: 1.2em;
    line-height: 1.8;
}

/* 東京・茨城：先頭の「・」を消す（フッター同等） */
.sg-faq .sgfaq-card--tokyo .sgfaq-list,
.sg-faq .sgfaq-card--ibaraki .sgfaq-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.sg-faq .sgfaq-card--tokyo .sgfaq-list li,
.sg-faq .sgfaq-card--ibaraki .sgfaq-list li {
    padding-left: 0;
}

/* 都県マップ */
.sg-faq .sgfaq-body::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: clamp(90px, 12vw, 130px);
    height: auto;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-color: transparent;
    border-radius: 0;
    pointer-events: none;
}

/* 都県ごとの画像＆比率（フッター同等） */
.sg-faq .sgfaq-card--chiba .sgfaq-body::after {
    background-image: url("/wp-content/uploads/2026/01/footer_chiba.webp");
    aspect-ratio: 150 / 182;
}

.sg-faq .sgfaq-card--saitama .sgfaq-body::after {
    background-image: url("/wp-content/uploads/2026/01/footer_saitama.webp");
    aspect-ratio: 150 / 83;
}

.sg-faq .sgfaq-card--tokyo .sgfaq-body::after {
    background-image: url("/wp-content/uploads/2026/01/footer_tokyo.webp");
    aspect-ratio: 150 / 78;
}

.sg-faq .sgfaq-card--ibaraki .sgfaq-body::after {
    background-image: url("/wp-content/uploads/2026/01/footer_ibaraki.webp");
    aspect-ratio: 150 / 176;
}

/* -------------------------
   Responsive
------------------------- */
@media (max-width: 900px) {
    .sg-faq .sgfaq-inner {
        padding: 0 var(--sg-pad, 20px);
    }

    .sg-faq .sgfaq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "chiba saitama"
            "tokyo ibaraki";
    }
}

@media (max-width: 600px) {
    .sg-faq .sgfaq-inner {
        padding: 0 var(--sg-pad, 10px);
    }

    .sg-faq .sgfaq-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "chiba"
            "saitama"
            "tokyo"
            "ibaraki";
    }

    .sg-faq .sgfaq-body::after {
        right: 8px;
        bottom: 8px;
        width: clamp(70px, 22vw, 120px);
    }
}

/* 余白調整（SP） */
@media (max-width: 600px) {
    .sg-faq {
        padding-bottom: 54px;
    }

    .sg-faq .sgfaq-q {
        grid-template-columns: 36px 1fr 36px;
        padding: 14px 12px;
        column-gap: 10px;
    }

    .sg-faq .sgfaq-qmark {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .sg-faq .sgfaq-qtext {
        font-size: 16px;
    }

    .sg-faq .sgfaq-a {
        padding: 0 12px 14px;
    }

    .sg-faq .sgfaq-legend {
        font-size: 15px;
        gap: 10px;
    }

    .sg-faq .sgfaq-legend-swatch {
        width: 16px;
        height: 16px;
    }
}