/*
Theme Name: I's TOKYO
Description: Styles for the Backorder Contact template.
*/

.contact-block {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    max-width: 800px; /* フォームコンテンツの最大幅 */
    margin: 40px auto;
}

.contact-main-title {
    font-family: "Noto Serif JP", serif;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.contact-description {
    font-size: 16px;
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

.input-content-display {
    background-color: #f8f8f8;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.input-content-display h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #e70314;
    text-align: center;
}

.input-field {
    display: flex;
    margin-bottom: 15px;
    align-items: baseline;
}

.input-field .label {
    font-weight: bold;
    min-width: 120px;
    color: #333;
    font-size: 16px;
}

.input-field .value {
    flex-grow: 1;
    color: #555;
    font-size: 16px;
}

.contact-options {
    margin-top: 40px;
}

.option-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    position: relative;
}

.option-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #e70314;
    margin: 10px auto 0;
}

.email-button {
    display: block;
    width: fit-content;
    margin: 0 auto 40px auto;
    padding: 15px 40px;
    background-color: #e70314; /* Accent Red */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.email-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.phone-option-title {
    margin-top: 50px;
}

.phone-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.phone-form input[type="tel"] {
    width: 100%;
    max-width: 350px;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.phone-form .phone-inquiry-button {
    padding: 15px 40px;
    background-color: #00B900; /* LINE Green or similar for phone */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phone-form .phone-inquiry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* --- 詳細お問い合わせフォームブロック --- */
.inquiry-form-block {
    padding: 60px 20px;
}

.inquiry-form-inner.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    max-width: 1000px; /* 指示された最大幅 */
    margin: 0 auto;    /* 中央揃え */
}

/* --- LINEお問い合わせボタン --- */
.line-contact-block {
    text-align: center;
    padding: 20px 0px;
    min-width:300px;
}

.line-button {
    display: inline-block;
    padding: 20px 40px;
    background-color: #00C300; /* LINE Green */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 280px;
}

.line-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.inquiry-frame {
    border:solid 1px #e70314;
    border-radius: 8px;
    margin: 40px 20px 0 20px;
    overflow: hidden;
}

.form-contact-title {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #8b1102, #e70314);
}

.form-contact-title h3 {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
    padding:20px 40px;
}




.flow-main-title {
    font-size: 48px;
    font-weight: bold;
    color: #000;
    position: relative;
    display: inline-block;
}

.flow-main-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #e70314;
    border-radius: 2px;
}




/* --- 車選びの流れ 見出し --- */
.car-selection-flow-block {
    text-align: center;
    padding: 0 0 40px 0px;
}

.car-selection-flow-inner {
    max-width: 750px; /* 指示された最大幅 */
    margin: 0 auto;    /* 中央揃え */
}


/* --- 車選びの流れ 各ステップ --- */
.flow-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.flow-number {
    font-family: "Oswald", cursive; /* サイトタイトル風のフォントを想定 */
    font-size: 80px; /* デカく */
    font-weight: normal;
    background: linear-gradient(45deg, #e70314, #ff6600); /* グラデーション赤字 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    flex-shrink: 0;
    line-height: 1;
}

.flow-text {
    flex-grow: 1;
    display: flex;
    font-style:italic;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.flow-text p {
    font-size: 30px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
}

.flow-text p span {
    font-size: 18px;
    font-weight: normal;
    color: #e70314;
    margin-left: 10px;
}

/* --- もしくは区切り線 --- */
.or-text {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    position: relative;
    margin: 20px 0;
}

.or-text::before,
.or-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #ccc;
}

.or-text::before {
    left: 0;
}

.or-text::after {
    right: 0;
}





.inquiry-heading {
    text-align: center; 
}

.inquiry-heading .main-title {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(45deg, #8b1102, #e70314);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
    margin-bottom:20px;
}

.inquiry-heading .sub-title {
    font-size: 22px;
    font-weight: bold;
    margin: 10px 0; 
}

.inquiry-heading p {
    font-size: 16px;
    margin:0 20px 20px 20px;
    padding-bottom:20px;
    border-bottom:solid 1px #e70314;
}

.inquiry-form-wrapper {
    padding:0px;
}

.forminator-all-group-copies {
    border:none!important;
    box-shadow:none!important;
    background-color: rgba(231, 3, 20, 0.05) !important; /* 元の赤を5%の薄さにしたもの */
}

.inquiry-form-wrapper form {
  display: grid;
  /* 左右均等の2列 */
  grid-template-columns: 1fr 1fr;
  /* レイアウトの設計図 */
  grid-template-areas:
    "area-a area-b"  /* 1段目: 2列 */
    "area-c area-c"  /* 2段目: 2列 */
    "area-e area-e" /* 3段目: 1列（2列分を結合） */
    "area-f area-f";
  gap: 16px; /* 要素間の余白 */
}

.inquiry-form-wrapper form .forminator-row .form-title .forminator-label {
    font-size:18px!important;
}

/* 各行（forminator-row）への割り当て */
/* nth-child を使うことで、HTML側に専用クラスがなくても順番で指定可能です */

.inquiry-form-wrapper form .forminator-row-last {
  grid-area: area-f;
}

.inquiry-form-wrapper form .forminator-response-message{
    grid-area: area-e;

}

.forminator-ui#forminator-module-16.forminator-design--material .forminator-button-submit {
    background-color: #e70314;
    display: block;
    padding: 20px 40px;
    border:none;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 24px!important;
    font-weight: bold!important;
    font-family: "Noto Sans JP"!important;
    margin:0 auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 280px;
}

.forminator-ui#forminator-module-16.forminator-design--material .forminator-button-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.inquiry-form .form-columns {
    display: flex;
    gap: 40px;
    padding:40px;
}

.inquiry-form .form-column-left,
.inquiry-form .form-column-right {
    flex: 1;
    min-width: 0; /* flexアイテムのはみ出し防止 */
}

.inquiry-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.inquiry-form legend {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.inquiry-form legend span {
    font-size: 14px;
    font-weight: normal;
    color: #e70314;
}

.inquiry-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.inquiry-form select,
.inquiry-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.inquiry-form .checkbox-label {
    display: inline-block;
    margin-left: 10px;
}

.inquiry-form .form-note {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.inquiry-form .highlight-box {
    background-color: #fffde7;
    border: 2px dashed #fbc02d;
    padding: 20px;
    border-radius: 8px;
}

.inquiry-frame .form-submit {
    text-align: center;
    margin-bottom: 40px;
}

.inquiry-frame .submit-button {
    background-color: #e70314;
    display: inline-block;
    padding: 20px 40px;
    border:none;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 280px;
}

.inquiry-frame .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Custom Radio Buttons */
.radio-group {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.radio-group label {
    display: block; /* override default */
    margin-bottom: 0; /* override default */
}

.radio-group label input[type="radio"] {
    display: none; /* Hide original radio button */
}

.radio-group label span {
    display: block;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-size: 14px;
    margin-bottom:10px;
}

/* Hover state */
.radio-group label:hover span {
    background-color: #f5f5f5;
    color: black;
}

/* Checked state */
.radio-group label input[type="radio"]:checked + span {
    background-color: #e70314;
    color: #ffffff;
    border-color: #e70314;
    font-weight: bold;
}


/* --- 納車フローブロック --- */
.bo-flow-block {
    padding: 0px 20px 60px 20px;
}

.bo-flow-inner.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.bo-flow-main-title {
    font-size: 48px;
    font-weight: bold;
    color: #000;
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.bo-flow-main-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #e70314;
    border-radius: 2px;
}

.bo-flow-image {
    width: 100%;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 8px;
}

.bo-flow-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bo-flow-list {
    list-style: none;
    counter-reset: bo-flow-counter;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.bo-flow-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
    font-size: 20px;
    line-height: 1.6;
}

.bo-flow-item span {
    font-weight:bold;
    background: linear-gradient(transparent 83%, #f7f000 83%, #f7f000 90%,transparent 90%);
}

.bo-flow-item:before {
    counter-increment: bo-flow-counter;
    content: counter(bo-flow-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #e70314, #ff6600);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 40px;
    font-family: "Oswald", cursive;
}

.bo-flow-item:last-child {
    margin-bottom: 0;
}

/* 
==============================================
SP Styles (max-width: 639px)
==============================================
*/
@media screen and (max-width: 639px) {
    .contact-block {
        padding: 20px;
        margin: 20px auto;
    }

    .contact-main-title {
        font-size: clamp(24px, 6vw, 30px);
        margin-bottom: 15px;
    }

    .contact-description {
        font-size: clamp(14px, 3.5vw, 16px);
        margin-bottom: 30px;
    }

    .input-content-display {
        padding: 15px;
        margin-bottom: 30px;
    }
    .input-content-display h3 {
        font-size: clamp(18px, 4.5vw, 22px);
        margin-bottom: 15px;
    }
    .input-field {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    .input-field .label {
        min-width: unset; /* モバイルでは最小幅をリセット */
        margin-bottom: 5px;
        font-size: clamp(14px, 3.5vw, 16px);
    }
    .input-field .value {
        font-size: clamp(14px, 3.5vw, 16px);
    }

    .option-title {
        font-size: clamp(20px, 5vw, 24px);
        margin-bottom: 20px;
    }
    .option-title::after {
        width: 40px;
        height: 2px;
        bottom: -5px;
    }

    .email-button {
        width: 100%;
        font-size: clamp(16px, 4.5vw, 18px);
        padding: 12px 20px;
        margin-bottom: 30px;
    }

    .phone-option-title {
        margin-top: 40px;
    }

    .phone-form input[type="tel"],
    .phone-form .phone-inquiry-button {
        width: 100%;
        max-width: unset; /* モバイルでは最大幅をリセット */
        font-size: clamp(16px, 4.5vw, 18px);
        padding: 12px 20px;
    }






        /* --- 車選びの流れ 見出し --- */
    .car-selection-flow-block {
        padding: 15px 0px;
    }
    .flow-main-title {
        font-size: clamp(28px, 6vw, 40px);
    }


    .stock-list-block {
        width: 100%; /* ボタンを全幅に */
    }
    .stock-list-button {
        width: 100%;
        font-size: clamp(18px, 4.5vw, 22px);
        padding: 15px 20px;
    }
    
    /* --- LINEお問い合わせボタン --- */
    .line-contact-block {
        padding: 0 15px 30px;
    }
    .line-button {
        width: 100%;
        min-width: unset;
        font-size: clamp(18px, 4.5vw, 22px);
        padding: 15px 20px;
    }

    /* --- もしくは区切り線 --- */
    .or-text {
        margin: 30px 0;
        font-size: clamp(16px, 4vw, 18px);
    }
    .or-text::before,
    .or-text::after {
        width: 30%; /* 幅を調整 */
    }

    /* --- フォームコンタクトタイトル --- */





    .inquiry-form-block {
        padding:20px 0px;
    }

    .inquiry-form-inner.card {
        padding:20px;
        margin: 0 10px;
    }

    .inquiry-form-wrapper form {
        display: block;
    }


    /* --- 車選びの流れ 各ステップ --- */
    .flow-step {
        gap: 15px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .flow-number {
        font-size: clamp(50px, 12vw, 70px);
        margin-bottom: 10px;
        overflow: visible;
    }
    .flow-text {
        flex-direction: column;
        align-items: flex-start; /* 左寄せ */
        gap: 10px;
        width: 100%;
    }
    .flow-text p {
        font-size: clamp(18px, 4.5vw, 22px);
    }

    .inquiry-frame {
        margin:0;
    }

    .inquiry-heading .main-title {
        font-size: clamp(22px, 4vw, 32px);
    }
    .inquiry-heading .sub-title {
        font-size: clamp(18px, 3.5vw, 22px);
    }
    .inquiry-heading p {
        font-size: clamp(12px, 3.5vw, 16px);
    }



    .form-contact-title {
        margin-bottom: 20px;
    }
    .form-contact-title h3 {
        font-size: clamp(24px, 6vw, 28px);
    }
    
    .inquiry-form .form-columns { /* Moved from 767px */
        flex-direction: column;
        gap: 0;
    }
    .info-block {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .bo-flow-block {
        padding: 0 10px 10px 10px;
    }

    .bo-flow-inner.card {
        padding: 10px;
    }

    .bo-flow-main-title {
        font-size: clamp(28px, 6vw, 40px);
        margin-bottom: 30px;
    }

    .bo-flow-item {
        padding-left: 50px;
        font-size: clamp(16px, 4vw, 18px);
        margin-bottom: 20px;
    }

    .bo-flow-item:before {
        width: 35px;
        height: 35px;
        font-size: 20px;
        line-height: 35px;
    }
}