/* ==========================================================================
   Subpage Title
   ========================================================================== */
.subpage__title {
    width: 100%;
    padding: clamp(8rem, 15.333vw, 11.5rem) clamp(2rem, 10vw, 7.5rem) clamp(2rem, 5.333vw, 4rem);
    text-align: center;
}

.subpage__title .t__wrapper {
    max-width: 55rem;
    margin: 0 auto;
}

.subpage__title .ja__txt {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3.75vw, 2.8125rem);
    line-height: 1.6;
    color: #333851;
    letter-spacing: 0.1em;
}

.subpage__title .ja__txt span {
    color: #468f03;
}

/* ==========================================================================
   Contact Wrapper
   ========================================================================== */
.contact__wrapper {
    max-width: 55rem;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(3rem, 5vw, 4rem);
}

/* ==========================================================================
   Detail Text (案内テキスト)
   ========================================================================== */
.detail__txt {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.4;
    color: #000000;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.detail__txt span {
    font-weight: 700;
    color: #468f03;
}

.detail__txt .accent {
    font-weight: 500;
    color: #468f03;
}

/* ==========================================================================
   Contact Steps (記入 → 確認 → 送信)
   ========================================================================== */
.contact__steps {
    max-width: 18.75rem;
    margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
}

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

/* ==========================================================================
   Contact Form (table レイアウト)
   ========================================================================== */
.contact__form table {
    width: 100%;
    border-collapse: collapse;
}

.contact__form table tr td:first-child {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.4;
    color: #333851;
    letter-spacing: 0.1em;
    white-space: nowrap;
    vertical-align: top;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 2.5rem) clamp(1rem, 2vw, 1.5rem) 0;
    width: clamp(12rem, 18vw, 15rem);
}

.contact__form table tr td:last-child {
    padding: clamp(1rem, 2vw, 1.5rem) 0;
    vertical-align: top;
}

/* セクション区切り線 (区分・内容 と 名前〜 の間) */
.contact__form table tr.up__name td {
    border-top: 1px solid #e0e0e0;
}

/* 最後のフィールドの下線 */
.contact__form table tr:last-child td {
    border-bottom: 1px solid #e0e0e0;
}

/* ==========================================================================
   Required / Optional Badge
   ========================================================================== */
.required {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem 0.625rem;
    border-radius: 1.25rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    background-color: #ffcd16;
    color: #468f03;
    margin-right: clamp(0.5rem, 1vw, 0.75rem);
    flex-shrink: 0;
}

.required.free {
    background-color: #d9d9d9;
    color: #333851;
}

/* ==========================================================================
   Inputs
   ========================================================================== */
.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"] {
    width: 100%;
    padding: clamp(0.5rem, 0.8vw, 0.625rem) 1rem;
    border: none;
    border-radius: 0.625rem;
    background-color: #ffffff;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #333851;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.contact__form input[type="text"]:focus,
.contact__form input[type="email"]:focus,
.contact__form input[type="tel"]:focus {
    box-shadow: 0 0 0 2px #468f03;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
    color: #969696;
}

.contact__form textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.625rem;
    background-color: #ffffff;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #333851;
    outline: none;
    resize: vertical;
    transition: box-shadow 0.2s ease;
}

.contact__form textarea:focus {
    box-shadow: 0 0 0 2px #468f03;
}

/* ==========================================================================
   Name Group (c__item)
   ========================================================================== */
.c__item {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
}

.c__item .item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
}

.c__item .item .lbl {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    color: #333851;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

/* ==========================================================================
   Postal (mwform-zip-field)
   ========================================================================== */
.c__item.c02 {
    margin-bottom: 0.5rem;
}

.mwform-zip-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    color: #333851;
}

.mwform-zip-field input[type="text"] {
    width: clamp(4rem, 8vw, 5.5rem);
}

.c__item.c01 .item .lbl {
    display: none;
}

/* ==========================================================================
   Checkbox Fields (mwform-checkbox-field)
   ========================================================================== */
.mwform-checkbox-field.horizontal-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.mwform-checkbox-field.horizontal-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #333851;
    letter-spacing: 0.1em;
}

.mwform-checkbox-field input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    background-color: #ffffff;
    border: none;
    border-radius: 0.125rem;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

.mwform-checkbox-field input[type="checkbox"]:checked {
    background-color: #468f03;
}

.mwform-checkbox-field input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
}

/* ==========================================================================
   Note Text
   ========================================================================== */
.note__txt {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: 0.1em;
    color: #333851;
    margin-top: 0.5rem;
}

.note__txt span {
    color: #468f03;
}

/* ==========================================================================
   Privacy Check
   ========================================================================== */
.privacy__chk {
    display: flex;
    justify-content: center;
    padding: clamp(1rem, 2vw, 1.5rem) 0;
}

.privacy__link {
    color: #468f03;
    text-decoration: underline;
    text-underline-offset: 0.125rem;
}

.privacy__link:hover {
    text-decoration: none;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */
.submit__area {
    display: flex;
    justify-content: center;
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.link__btn.confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 13.625rem;
    height: 2.6875rem;
    background-color: #468f02;
    color: #ffcd16;
    border: none;
    border-radius: 1.5625rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.link__btn.confirm:hover {
    filter: brightness(0.9);
}

.link__btn.confirm .btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 1.9375rem;
    background-color: #ffffff;
    border-radius: 50%;
}

.link__btn.confirm .btn__icon img {
    width: 0.875rem;
    height: auto;
}

/* ==========================================================================
   Confirm Page (確認画面)
   ========================================================================== */
.mw_wp_form_confirm .contact__form table tr td:last-child {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    line-height: 1.8;
    color: #333851;
}

.confirm__val {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    color: #333851;
}

.confirm__address {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.confirm__buttons {
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.link__btn.back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 13.625rem;
    height: 2.6875rem;
    background-color: #b0b0a8;
    color: #ffffff;
    border: none;
    border-radius: 1.5625rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.link__btn.back:hover {
    filter: brightness(0.9);
}

.link__btn.back .btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 1.9375rem;
    background-color: #ffffff;
    border-radius: 50%;
}

.link__btn.back .btn__icon img {
    width: 0.875rem;
    height: auto;
}

/* ==========================================================================
   CTA Content (送信完了画面・共通CTA)
   ========================================================================== */
.cta-content {
    margin: 0 calc(-1 * clamp(0rem, 3vw, 3rem));
}

.cta-content__card {
    position: relative;
    margin: 0 auto;
    border-radius: 1.875rem;
    overflow: hidden;
    padding: clamp(1.5rem, 2.5vw, 2rem) clamp(2rem, 5vw, 4rem);
}

.cta-content__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-content__bg img {
    width: 400%;
    height: 100%;
    object-fit: cover;
    margin-left: -100%;
}

.cta-content__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.cta-content__text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cta-content__title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 3.3vw, 2.5rem);
    color: #FFCD16;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

.cta-content__desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: clamp(0.75rem, 1.6vw, 1.25rem);
    color: #ffffff;
    line-height: 1.4;
    white-space: nowrap;
}

@media (max-width: 797px) {
    .cta-content__desc {
        white-space: normal;
    }
}

.cta-content__buttons {
    display: flex;
    justify-content: center;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    width: 100%;
    flex-wrap: wrap;
}

.cta-content__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 19.5rem;
    height: clamp(3rem, 5vw, 4.375rem);
    border-radius: 2.1875rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: clamp(1.125rem, 1.8vw, 1.625rem);
    line-height: 1.7;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.cta-content__btn:hover {
    filter: brightness(0.95);
}

.cta-content__btn--phone {
    background-color: #ffffff;
    color: #575757;
}

.cta-content__btn--phone img[src*="tel_icon"] {
    width: 1.5rem;
    height: 1.625rem;
}

.cta-content__btn--phone img[src*="vector"] {
    width: 1.125rem;
    height: auto;
}

.cta-content__btn--email {
    background-color: #ffcd16;
    color: #468f02;
}

.cta-content__btn--email img {
    width: 1.75rem;
    height: 1.25rem;
}

.cta-content__btn--line {
    background-color: #ffffff;
    color: #575757;
    letter-spacing: 0.15em;
}

/* ==========================================================================
   Responsive – Tablet (max-width: 1023px)
   ========================================================================== */
@media (max-width: 1023px) {
    .subpage__title {
        padding-top: clamp(6rem, 10vw, 8rem);
    }
}

/* ==========================================================================
   Responsive – Mobile (max-width: 797px)
   ========================================================================== */
@media (max-width: 797px) {
    .subpage__title {
        padding-top: 5rem;
        padding-bottom: 1.5rem;
    }

    .contact__form table tr td:first-child {
        display: block;
        width: 100%;
        padding-bottom: 0.5rem;
    }

    .contact__form table tr td:last-child {
        display: block;
        width: 100%;
        padding-top: 0;
    }

    .contact__form table tr,
    .contact__form table tbody {
        display: block;
    }

    .c__item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .mwform-checkbox-field.horizontal-item {
        display: flex;
        margin-right: 0;
    }
}
