/* --------------------------
 * style.css (LP本体 専用CSS)
 * -------------------------- */

/* --- 基本設定 --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}
img { max-width: 100%; height: auto; display: block; }

/* --- ヘッダー --- */
.site-header {
    width: 100%;
    background-color: #0b245e;
    padding: 10px 20px;
    box-sizing: border-box;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
    /* PCでは上部固定 */
    position: sticky;
    top: 0;
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo img {
    max-height: 60px;
    width: auto;
}
.header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-phone-link {
    background-color: #ffffff;
    padding: 8px;
    border-radius: 8px;
    transition: opacity 0.3s;
}
.header-form-link {
    background-color: #e86202;
    padding: 8px;
    border-radius: 8px;
    transition: opacity 0.3s;
}
.header-phone-link:hover,
.header-form-link:hover {
    opacity: 0.85;
}
.header-phone-link img,
.header-form-link img {
    max-height: 40px;
    width: auto;
}

/* --- 2. 漫画コンテナ --- */
.manga-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
}
.manga-panel {
    width: 100%;
    height: auto;
    display: block; 
}

/* --- 3. 診断セクション --- */
.diagnosis-section {
    background: linear-gradient(180deg, #ffc65c 0%, #f7931e 100%);
    padding: 30px 15px;
}
.diagnosis-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}
.diagnosis-header {
    text-align: center;
    padding: 20px 20px 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}
.diagnosis-header p { margin: 0; font-size: 0.9em; }
.diagnosis-header h3 {
    color: #e60012;
    font-size: 2.2em;
    margin: 5px 0;
}

/* プログレスバー */
.progress-bar {
    padding: 15px 20px;
}
.progress-bar-label {
    font-size: 0.9em;
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;
    text-align: center;
}
.progress-bar-inner-bg {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-inner {
    width: 25%;
    height: 100%;
    background-color: #007bff;
    transition: width 0.4s ease;
}

/* 診断ステップ本体 */
.diagnosis-body {
    padding: 20px;
    min-height: 300px;
}
.diagnosis-step {
    display: none;
    animation: fadeIn 0.5s;
}
.diagnosis-step.active {
    display: block;
}
.diagnosis-question {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
    text-align: center;
}
.diagnosis-question small {
    font-size: 0.8em;
    font-weight: normal;
    color: #555;
}
.diagnosis-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.diagnosis-option-btn {
    background-color: #fff;
    color: #333;
    font-size: 1.05em;
    font-weight: 500;
    padding: 18px 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
}
.diagnosis-option-btn:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
    transform: translateY(-2px);
}

/* 戻るボタン */
.diagnosis-footer {
    padding: 0 20px 20px;
    text-align: center;
}
.back-button {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: underline;
    visibility: hidden;
}

/* 診断結果スタイル */
.diagnosis-result-step {
    text-align: center;
}
.result-box {
    padding: 20px;
    border: 3px solid #007bff;
    border-radius: 8px;
    margin: 10px 0 25px 0;
    background: #f0f8ff;
}
.result-box h3 {
    color: #0056b3;
    margin-top: 0;
    font-size: 1.4em;
}
.result-box p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 0;
}
.result-box.result-box-x {
    border-color: #ccc;
    background: #f5f5f5;
}
.result-box.result-box-x h3 {
    color: #555;
}

/* 結果ページの誘導CTAボタン */
.cta-pre-text {
    font-size: 1.1em;
    font-weight: bold;
    color: #d9534f;
    line-height: 1.5;
}
.cta-button-link {
    display: block; 
    position: relative; 
    width: 90%;
    max-width: 500px;
    margin: 20px auto; 
    background-color: #e60012;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: none;
    border-radius: 50px; 
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 15px 20px 15px 110px; 
    box-sizing: border-box;
    cursor: pointer;
}
.cta-button-link:hover {
    transform: scale(1.03); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}
.cta-badge {
    position: absolute; 
    left: 15px;
    top: 50%;
    transform: translateY(-50%); 
    background-color: white;
    color: #e60012;
    border-radius: 50%; 
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.cta-text {
    font-size: 1.5em; 
    vertical-align: middle;
}

/* --- 4. お問い合わせフォームセクション --- */
.contact-section {
    background-color: #fdfdfd;
    padding: 60px 15px;
}
.request-section {
    background-color: #f0fdf4;
    border-top: 1px solid #e0e0e0;
}
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px 30px;
}
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}
.contact-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0b245e;
}
.contact-header p {
    font-size: 1rem;
    color: #666;
}
.contact-form-group {
    margin-bottom: 25px;
}
.contact-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}
.required {
    background: #E60012;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
}
.any-mark {
    background: #888;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
}
.contact-form-input,
.contact-form-textarea,
.contact-form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}
.contact-form-input:focus,
.contact-form-textarea:focus,
.contact-form-select:focus {
    outline: none;
    border-color: #e86202;
    background: white;
    box-shadow: 0 0 0 4px rgba(232, 98, 2, 0.1);
}
.contact-form-textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 6px;
}
.contact-form-submit {
    margin-top: 35px;
    text-align: center;
}
.contact-submit-button {
    width: 100%;
    background: linear-gradient(135deg, #e86202 0%, #f7931e 100%);
    color: white;
    padding: 16px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 98, 2, 0.4);
}
.contact-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 98, 2, 0.6);
}
.contact-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.request-submit-button {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}
.request-submit-button:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

/* --- 5. フッター --- */
.site-footer {
    width: 100%;
    padding-bottom: 60px; /* スマホ固定フッター用 */
}
.footer-upper {
    background: linear-gradient(180deg, #ffc65c 0%, #f7931e 100%);
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* PCでは上揃え */
    gap: 20px;
    flex-wrap: wrap;
}
.footer-column {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
}
.footer-column h4 {
    color: #ffffff;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 15px;
}
.footer-logo-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-logo-box a {
    display: block;
    width: 100%;
    text-decoration: none;
}
.footer-logo-box img {
    max-height: 70px;
    width: auto;
    margin: 0 auto;
}
.footer-bottom {
    background-color: #0b245e;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #333;
}
.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.footer-links a {
    color: #aaa;
    text-decoration: underline;
    font-size: 0.9em;
}
.footer-links a:hover {
    color: #fff;
}
.copyright {
    font-size: 0.8em;
    color: #888;
    margin: 0;
}

/* スマホ用固定フッター */
.sticky-footer {
    display: none;
}

/* --- アニメーション --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {
    .site-header {
        position: static;
    }
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    .header-logo img {
        max-height: 50px;
    }
    .header-contact {
        display: none;
    }
    
    .diagnosis-body {
        min-height: 250px;
    }
    
    /* 【★修正】フッターを中央揃えに */
    .footer-upper {
        flex-direction: column;
        gap: 30px;
        align-items: center; /* 左寄せ(flex-start)から中央(center)へ変更 */
    }
    .footer-column {
        width: 100%;
        margin: 0 auto; /* 中央配置 */
    }
    
    .contact-container {
        padding: 30px 20px;
    }
    .contact-header h2 {
        font-size: 1.5rem;
    }
    .contact-form-input,
    .contact-form-textarea,
    .contact-form-select {
        font-size: 16px;
    }

    /* 固定フッター表示 */
    .sticky-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
    }
    .sticky-btn {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        color: #fff;
        font-weight: bold;
        font-size: 0.9em;
    }
    .sticky-tel {
        background-color: #0b245e;
    }
    .sticky-form {
        background-color: #e86202;
    }
    .sticky-icon {
        font-size: 1.5em;
        margin-bottom: 2px;
    }
}