/*
Theme Name: I's TOKYO
Description: Styles for the General Contact template.
*/

/* --- お問い合わせフォームブロック --- */
.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;
}

/* --- 見出しエリア --- */
.car-selection-flow-block {
    text-align: center;
    padding: 0 0 40px 0px;
}

.car-selection-flow-inner {
    max-width: 750px;
    margin: 0 auto;
}

.flow-main-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: bold;
    color: #000;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.flow-main-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #e70314;
    border-radius: 2px;
}

.flow-sub-text {
    font-size: clamp(14px, 2vw, 18px);
    color: #666;
    line-height: 1.6;
}

/* --- お問い合わせ事例（吹き出し） --- */
.contact-examples-block {
    margin-bottom: 40px;
}

.example-heading {
    text-align: center;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 900;
    color: #111;
    margin-bottom: 30px;
    background: #fdf2f2;
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed #e70314;
}

.example-bubbles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.example-bubble-item {
    display: flex;
    flex-direction: column;
}

.example-bubble-item .bubble {
    position: relative;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: clamp(14px, 1.8vw, 15px);
    line-height: 1.6;
    color: #333;
    font-weight: 700;
    flex-grow: 1;
}

.example-bubble-item .bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    border-top: 15px solid #f5f5f5;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
}

.example-bubble-item .user {
    margin-top: 25px;
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-bubble-item .user::before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #e70314;
    font-size: 14px;
}

.example-bubble-item .user span {
    font-size: 12px;
    color: #888;
    font-weight: 700;
}

/* --- 各ステップ --- */
.flow-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    margin-top: 40px;
}

.flow-number {
    font-family: "Oswald", sans-serif;
    font-size: clamp(60px, 10vw, 80px);
    font-weight: normal;
    background: linear-gradient(45deg, #e70314, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    line-height: 1;
}

.flow-text p {
    font-size: clamp(20px, 4vw, 30px);
    font-weight: bold;
    color: #333;
    font-style: italic;
}

.flow-text p span {
    font-size: 0.6em;
    font-weight: normal;
    color: #e70314;
    margin-left: 10px;
    font-style: normal;
}

/* --- LINEお問い合わせセクション --- */
.line-contact-block {
    text-align: center;
    padding: 30px 20px;
}

.line-button {
    display: inline-block;
    padding: 20px 40px;
    background-color: #00C300;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: clamp(18px, 4vw, 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);
}

.line-button i {
    margin-right: 10px;
}

.line-note {
    font-size: 14px;
    color: #888;
    margin-top: 15px;
}

/* --- もしくは区切り線 --- */
.or-text {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #999;
    position: relative;
    margin: 40px 0;
}

.or-text::before,
.or-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background-color: #eee;
}

.or-text::before { left: 0; }
.or-text::after { right: 0; }

/* --- フォームセクション --- */
.inquiry-frame {
    border: solid 1px #e70314;
    border-radius: 12px;
    margin-top: 40px;
    overflow: hidden;
}

.form-contact-title {
    text-align: center;
    background: linear-gradient(45deg, #8b1102, #e70314);
    padding: 20px;
}

.form-contact-title h3 {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.inquiry-heading {
    text-align: center;
    padding: 40px 20px 20px;
}

.inquiry-heading .main-title {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: bold;
    background: linear-gradient(45deg, #8b1102, #e70314);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 20px;
}

.inquiry-heading p {
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}

.inquiry-form-wrapper {
    padding: 20px;
}

.inquiry-form-wrapper iframe {
    border-radius: 8px;
    background-color: #fcfcfc;
}

/* 
==============================================
SP Styles (max-width: 639px)
==============================================
*/
@media screen and (max-width: 639px) {
    .inquiry-form-block {
        padding: 40px 10px;
    }

    .inquiry-form-inner.card {
        padding: 20px 15px;
    }

    .example-bubbles {
        grid-template-columns: 1fr;
    }

    .flow-step {
        gap: 15px;
        margin-top: 30px;
    }

    .line-button {
        width: 100%;
        padding: 15px 20px;
    }

    .or-text::before,
    .or-text::after {
        width: 25%;
    }

    .inquiry-frame {
        margin-left: 0;
        margin-right: 0;
    }
}

/* --- 戻るリンクボタン --- */
.contact-return-block {
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.return-text {
    font-size: 22px;
    font-weight: 900;
    color: #111;
    margin-bottom: 30px;
}

.return-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-return {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 22px 45px;
    border-radius: 60px;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-return i {
    margin-right: 12px;
    font-size: 1.2em;
}

.btn-return-stock {
    background: linear-gradient(135deg, #e70314 0%, #a0020e 100%);
    color: #fff !important;
    box-shadow: 0 15px 40px rgba(231, 3, 20, 0.4);
}

.btn-return-top {
    background: #111;
    color: #fff !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-return:hover {
    transform: translateY(-5px);
    opacity: 0.95;
    box-shadow: 0 20px 50px rgba(231, 3, 20, 0.5);
}

.btn-return-top:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 639px) {
    .return-buttons {
        flex-direction: column;
    }
    .btn-return {
        width: 100%;
    }
}
