.contacts-page-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3em;
    padding: 0 0 3em;
}

body{
    background-color: #fff1e5;
}

body * {
    box-sizing: border-box;
}

.big_text {
    font-size: 1.3em;
}

.yellow-line {
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(transparent 90%, #ffff2b 90%);
}

.contacts-page-wrapper a {
    text-decoration: none;
}

.contacts_visual {
    background: #2d73d5;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 2em 1em 2.5em;
    color: white;
    gap: 1em;
    width: 100%;
}

.contacts_title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.contacts_title h1 {
    font-size: 3em;
    margin: 0;
}

.contacts_visual p {
    font-size: 1em;
    word-wrap: break-word;
}

#area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#area .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    background-color: #FFDA60;
    width: calc(100% - 2em);
    max-width: 45em;
    margin: 0 auto;
    padding: 1.5em;
    border-radius: 2em;
}

#area .map-icon {
    height: 2em;
}

.area_select {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    width: 25em;
}

.area_select label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
}

.area_select label h2 {
    font-size: 1.3em;
    color: #192e77;
    margin: 0;
}

#result-box {
    background: white;
    border-radius: 1em;
    min-height: 9em;
    width: 25em;
    max-width: 100%;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#area select {
    height: 2.5em;
    width: 100%;
    font-weight: bold;
    font-size: 1em;
    border-radius: 10em;
    padding: 0 1em;
}

#area .message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-weight: bold;
    line-height: 1.4;
    font-size: 1em;
}

#result-icon img {
    width: 3.5em;
    height: 3.5em;
    object-fit: contain;
}

.status-default {
    color: #b3b3b3;
}

.status-ok {
    color: #00ba89;
}

.status-ng {
    color: #fd5256;
}

/* 下部のアイテムセクション */
#contact_items {
    padding-bottom: 0.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4em;
    width: 100%;
}

.contact_item_group {
    background-color: #ffe1c6;
    width: 100%;
    height: auto;
    padding: 4em 1em 2.5em;
    border-radius: 1em;
    position: relative;
    width: 100%;
    max-width: 1200px;
}

.contact_item_group:first-child {
    margin-top: 2em;
}

.contact_item_group h2 {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    font-size: 2em;
    background-color: white;
    color: #192e77;
    padding: 0.2em 1em;
    border-radius: 10em;
    white-space: nowrap;
    box-shadow: 0 0.2em rgba(25, 46, 119, 0.2);
}

.contact_item_group h2 img {
    height: 1.8em;
    width: auto;
    object-fit: contain;
}

.contact_item_wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    row-gap: calc(1.5em + 0.5em);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#contact_items .contact_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 0.2em solid #192e77;
    box-shadow: 0 0.5em 0 #192e77;
    overflow: hidden;
    border-radius: 1em;
    width: calc((100% / 5) - 2em);
    text-decoration: none;
    transition: 0.2s all;
}

#contact_items .contact_item:hover {
    box-shadow: 0 0em 0 #192e77;
    transform: translateY(0.5em);
}

.contact_item h3 {
    background-color: #192e77;
    color: white;
    font-weight: bold;
    font-size: 1.25em;
    text-align: center;
    display: block;
    width: 100%;
    height: 3em;
    padding: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.contact_items_img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    object-fit: contain;
    padding: 1em;
}

.contact_items_img.full-image {
    padding: 0;
}

.contact_items_img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.blue-shadow {
    filter: drop-shadow(0 0 3em rgb(25 46 119 / 10%)) drop-shadow(0 0 0.1em rgb(25 46 119 / 100%));
}

.contact_items_bottom {
    background-color: #FFDA60;
    color: #192e77;
    display: flex;
    gap: 0.3em;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5em;
    font-weight: bold;
    font-size: 1.15em;
    text-decoration: none;
    white-space: nowrap;
}

.contact_items_bottom img {
    width: 1.5em;
}

body.modal-open {
    overflow: hidden;
}

.estimate-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    transition: 0.2s all;
}

.estimate-modal.show {
    opacity: 1;
    visibility: visible;
}

.estimate-modal-content {
    background: #fff;
    padding: 3em;
    border-radius: 3em;
    text-align: center;
    width: 30em;
    position: relative;
}

.modal-title {
    font-size: 2em;
}

.estimate-modal-content p {
    font-size: 1em;
}

.modal-close {
    border-radius: 100%;
    height: 5em;
    width: 5em;
    position: absolute;
    right: 1em;
    top: 1em;
    transform: translate(50%, -50%);
    background-color: white;
    border: 0.3em solid #192e77;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.3em 0 rgba(25, 45, 119, 0.3);
    transition: 0.2s all;
}

.modal-close span {
    font-size: 4em;
    line-height: 0;
    color: #192e77;
}

.modal-close:hover {
    background-color: #fcf204;
}

.modal-buttons {
    margin-top: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.modal-btn {
    display: block;
    padding: 0.5em 1em;
    border-radius: 10em;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5em;
    transition: 0.2s all;
    position: relative;
    box-shadow: 0 0.3em 0 #192e77;
    border: 0.15em solid #192e77;
    color: #192e77;
}

.modal-btn::after {
    content: "";
    height: 1.3em;
    width: 1.3em;
    position: absolute;
    top: 50%;
    right: 0.5em;
    transform: translateY(-50%);
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(/img/common/icon/btn-arrow.svg);
}

.modal-btn-fast {
    background: #d2002f;
    color: white;
    box-shadow: 0 0.3em 0 #88000f;
    border: 0.15em solid #88000f;
    position: relative;
    padding: 1em 1em 0.7em;
}

.modal-btn-fast::after {
    background-image: url(/img/common/icon/btn-arrow_white.svg);
}

.modal-btn-fast span {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-size: 0.8em;
    background-color: #fcf204;
    border-radius: 10em;
    color: #192e77;
    border: 0.15em solid #192e77;
    padding: 0 1.5em;
    display: flex;
    align-items: center;
    justify-content: baseline;
}

.modal-btn-fast span::before,
.modal-btn-fast span::after {
    content: "";
    display: block;
    height: 1em;
    width: 0.15em;
    background: #192e77;
    border-radius: 10em;
}

.modal-btn-fast span::before {
    transform: rotate(-25deg) translateX(-0.4em) translateY(-0.2em);
}

.modal-btn-fast span::after {
    transform: rotate(25deg) translateX(0.4em) translateY(-0.2em);
}


.modal-btn-normal {
    background-color: #e5f4ff;
}

.modal-btn:hover {
    box-shadow: 0 0em 0 #192e77;
    transform: translateY(0.3em);
}

.modal-btn-fast:hover {
    box-shadow: 0 0em 0 #88001d;
    transform: translateY(0.3em);
}

@media screen and (max-width: 768px) {
    .contacts-page-wrapper {
        font-size: 3.5vw;
        gap: 1.5em;
    }

    .contacts_title h1 {
        font-size: 2.3em;
    }

    .contacts_title img {
        height: 2.5em;
    }

    .contacts_visual p {
        text-align: left;
    }

    #area .container {
        flex-direction: column;
    }

    .area_select {
        gap: 1em;
    }

    .area_select label h2 {
        font-size: 1.5em;
    }

    #area .map-icon {
        height: 2em;
    }

    #area select {
        width: calc(100% - 3em);
        font-size: 1.2em;
    }

    #area .message {
        flex-direction: row;
        font-size: 1.2em;
    }

    #result-box {
        min-height: 6em;
    }

    .contact_item_group {
        width: calc(100% - 2em);
    }

    .contact_item_group h2 {
        font-size: 1.5em;
    }

    .contact_item_wrap {
        padding: 0 1em;
        gap: 1.5em;
        row-gap: calc(1.5em + 0.5em);
    }

    .contact_item_group .contact_item_wrap {
        padding: 0;
    }


    #contact_items .contact_item {
        width: calc((100% / 2) - 1.5em);
    }

    #contact_items .contact_item_group .contact_item {
        width: calc((100% / 2) - 1em);
    }


    .contact_item h3 {
        font-size: 1.2em;
    }

    .contact_items_img {
        height: 11em;
    }

    .contact_items_bottom {
        font-size: 1.15em;
    }

    .estimate-modal-content {
        width: calc(100% - 4em);
        padding: 2em 2em 2.5em;
    }

    .estimate-modal-content p {
        font-size: 16px;
        text-align: left;
    }

    .modal-close {
        top: 0;
    }

    .modal-title {
        font-size: 1.7em;
    }

    .modal-btn {
        font-size: 1.8em;
        text-align: left;
        border-radius: 1em;
    }

    .modal-btn::after {
        right: 0.2em;
    }
}


/* ============================================================
   hybrid_select: ウィザードフォーム
   (hybrid_select.blade.php 専用)
============================================================ */


/* ウィザードフォーム外枠 */
.wizard-form {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 1em 2em;
}

/* 各ステップ共通 */
.wizard-step {
    width: 100%;
    background: #fff7f1;
    border: 0.15em solid #192e77;
    overflow: hidden;
}

/* STEP1: 上辺のみ角丸・下はつながり点線 */
#wizard-step-1 {
    border-radius: 1em 1em 0 0;
    border-bottom: 0.15em dashed #b0bcd8;
}

/* STEP2・STEP3（初期: 非表示・高さ0） */
.wizard-step-next {
    border-top: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.wizard-step-next.wizard-step-open {
    max-height: 5000px;
    opacity: 1;
}

/* STEP2は上下に区切り線（STEP3と繋げる） */
#step-waterheater,
#step-ecocute {
    border-top: 0.15em dashed #b0bcd8;
    border-bottom: 0.15em dashed #b0bcd8;
}

/* STEP3は最後なので下辺のみ角丸 */
#step-contact {
    border-top: 0.15em dashed #b0bcd8;
    border-radius: 0 0 1em 1em;
}


/* ステップヘッダー */
.wizard-step-header {
    background-color: #192e77;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    padding: 0.8em 1.2em;
    flex-wrap: nowrap;
}

.wizard-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: #FFDA60;
    color: #192e77;
    font-weight: bold;
    font-size: 1.1em;
    flex-shrink: 0;
}

.wizard-step-title {
    font-size: 2em;
    font-weight: bold;
    text-align: left;
}



/* ステップ本体 */
.wizard-step-body {
    padding: 2em 1em;
}

/* STEP1: カード2択 */
#wizard-step-1 .contact_item_wrap {
    justify-content: center;
    gap: 1em;
    padding: 0 1em;
}

#wizard-step-1 .contact_item {
    width: min(16em, calc(50% - 2em));
    cursor: pointer;
    background-color: white;
    border-radius: 1em;
    overflow: hidden;
    border: 0.15em solid #192e77;
    transition: 0.2s all;
}

#wizard-step-1 .contact_item h3 {
    font-size: 1.5em;
}

#wizard-step-1 .contact_items_img {
    width: 100%;
    aspect-ratio: 1;
}

/* STEP1 ホバー・選択済みハイライト */
#wizard-step-1 .contact_item:hover,
#wizard-step-1 .wizard-choice-selected {
    box-shadow: 0 0 0 0.4em #FFDA60;
    transform: scale(0.98);
}

#wizard-step-1 .contact_item .contact_items_bottom {
    transition: 0.2s all;
}

#wizard-step-1 .contact_item:hover .contact_items_bottom,
#wizard-step-1 .wizard-choice-selected .contact_items_bottom {
    background-color: #192e77;
    color: #FFDA60;
}

/* STEP2 カード: STEP1と完全に同じ見た目 */
#step-waterheater .contact_item,
#step-ecocute .contact_item {
    cursor: pointer;
    background-color: white;
    border-radius: 1em;
    overflow: hidden;
    border: 0.15em solid #192e77;
    box-shadow: none;
    /* #contact_items .contact_item の box-shadow を打ち消す */
    transition: 0.2s all;
}

#step-waterheater .contact_item .contact_items_bottom,
#step-ecocute .contact_item .contact_items_bottom {
    transition: 0.2s all;
}

/* STEP2 ホバー・選択済みハイライト（STEP1と同じ） */
#step-waterheater .contact_item:hover,
#step-ecocute .contact_item:hover,
#step-waterheater .wizard-choice-selected,
#step-ecocute .wizard-choice-selected {
    box-shadow: 0 0 0 0.4em #FFDA60;
    transform: scale(0.98);
}

#step-waterheater .contact_item:hover .contact_items_bottom,
#step-ecocute .contact_item:hover .contact_items_bottom,
#step-waterheater .wizard-choice-selected .contact_items_bottom,
#step-ecocute .wizard-choice-selected .contact_items_bottom {
    background-color: #192e77;
    color: #FFDA60;
}

/* STEP2B エコキュート: カード2択 */
.wizard-ecocute-wrap {
    justify-content: center;
    padding: 0 1em;
}

.wizard-ecocute-wrap .contact_item {
    width: min(16em, calc(50% - 2em));
}

.wizard-ecocute-wrap .contact_items_img {
    height: 12em;
}

/* ============================================================
   STEP3: お問い合わせ方法
============================================================ */
.wizard-contact-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    padding: 2em 1em;
}

.wizard-contact-note {
    font-size: 1em;
    text-align: center;
    color: #444;
    line-height: 1.7;
}

.wizard-contact-buttons {
    display: flex;
    gap: 1.5em;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 40em;
}

.wizard-contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    min-width: 14em;
    padding: 1em 1.5em;
    border-radius: 1em;
    font-weight: bold;
    font-size: 1.3em;
    text-decoration: none;
    position: relative;
    border: 0.15em solid #192e77;
    box-shadow: 0 0.3em 0 #192e77;
    color: #192e77;
    transition: 0.2s all;
    line-height: 1.4;
}

.wizard-contact-btn:hover {
    box-shadow: 0 0 0 #192e77;
    transform: translateY(0.3em);
}

/* 写真あり（赤） */
.wizard-contact-btn-fast {
    background: #d2002f;
    color: white;
    border-color: #88000f;
    box-shadow: 0 0.3em 0 #88000f;
    padding-top: 1.8em;
}

.wizard-contact-btn-fast:hover {
    box-shadow: 0 0 0 #88000f;
}

/* バッジ */
.wizard-contact-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-size: 0.8em;
    background-color: #fcf204;
    border-radius: 10em;
    color: #192e77;
    border: 0.15em solid #192e77;
    padding: 0.2em 1.2em;
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.wizard-contact-badge::before,
.wizard-contact-badge::after {
    content: "";
    display: block;
    height: 0.9em;
    width: 0.12em;
    background: #192e77;
    border-radius: 10em;
    flex-shrink: 0;
}

.wizard-contact-badge::before {
    transform: rotate(-25deg);
}

.wizard-contact-badge::after {
    transform: rotate(25deg);
}

/* 写真なし（水色） */
.wizard-contact-btn-normal {
    background-color: #e5f4ff;
}

.wizard-contact-btn-inner {
    display: block;
}

/* ============================================================
   レスポンシブ
============================================================ */
@media screen and (max-width: 768px) {
    .wizard-form {
        padding: 0 0 2em;
    }

    .wizard-step {
        border: none;
    }

    .wizard-step-title {
        font-size: 1.6em;
    }

    .wizard-step-num {
        font-size: 1.5em;
    }

    .wizard-step-body {
        padding: 2em 0;
    }

    #wizard-step-1 .contact_item,
    .wizard-ecocute-wrap .contact_item {
        width: calc(50% - 1em);
    }

    #wizard-step-1 .contact_item h3 {
        font-size: 1.2em;
    }

    #wizard-step-1 .contact_items_img,
    .wizard-ecocute-wrap .contact_items_img {
        height: 9em;
    }

    .wizard-contact-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1em;
    }

    .wizard-contact-btn {
        font-size: 1.4em;
        min-width: unset;
    }
}

/* -------------------------------------------------
   common.css の @media(max-width:768px){ a:link,a:visited,a:hover{color:#000} } が
   .modal-btn / .wizard-contact-btn より詳細度が高く、SP幅でボタン文字が黒くなるため打ち消す
   ------------------------------------------------- */
a.modal-btn,
a.modal-btn:link,
a.modal-btn:visited,
a.modal-btn:hover,
a.modal-btn-normal:link,
a.modal-btn-normal:visited,
a.modal-btn-normal:hover {
    color: #192e77;
}

a.modal-btn-fast,
a.modal-btn-fast:link,
a.modal-btn-fast:visited,
a.modal-btn-fast:hover {
    color: #fff;
}

a.wizard-contact-btn,
a.wizard-contact-btn:link,
a.wizard-contact-btn:visited,
a.wizard-contact-btn:hover,
a.wizard-contact-btn-normal:link,
a.wizard-contact-btn-normal:visited,
a.wizard-contact-btn-normal:hover {
    color: #192e77;
}

a.wizard-contact-btn-fast,
a.wizard-contact-btn-fast:link,
a.wizard-contact-btn-fast:visited,
a.wizard-contact-btn-fast:hover {
    color: #fff;
}
