/* Website Inquiry Styles - White & #37b68f Theme */
#website-inquiry-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.inquiry-start-screen {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    color: #2c3e50;
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(55, 182, 143, 0.1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(55, 182, 143, 0.1);
}

.inquiry-start-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(55, 182, 143, 0.05) 0%, transparent 70%);
    animation: float 20s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) translateY(-50%) rotate(360deg); }
}

.inquiry-start-screen h2 {
    font-size: 2.8em;
    margin-bottom: 15px;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: none;
}

.inquiry-start-screen h3 {
    font-size: 1.4em;
    margin-bottom: 25px;
    font-weight: 400;
    color: #37b68f;
    opacity: 1;
}

.inquiry-start-screen p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #5a6c7d;
    opacity: 1;
    line-height: 1.6;
}

/* ボタンスタイル */
.inquiry-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.inquiry-btn-primary {
    background: #37b68f;
    color: white;
    box-shadow: 0 4px 15px rgba(55, 182, 143, 0.25);
}

.inquiry-btn-primary:hover:not(:disabled) {
    background: #2ea374;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 182, 143, 0.35);
}

.inquiry-btn-secondary {
    background: #ffffff;
    color: #37b68f;
    border: 2px solid #37b68f;
    box-shadow: 0 4px 15px rgba(55, 182, 143, 0.15);
}

.inquiry-btn-secondary:hover:not(:disabled) {
    background: #37b68f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 182, 143, 0.25);
}

.inquiry-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* モーダル */
.inquiry-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.6);
    backdrop-filter: blur(8px);
}

.inquiry-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 1px solid rgba(55, 182, 143, 0.1);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(55, 182, 143, 0.15);
    overflow-y: auto;
}

body.inquiry-modal-open {
    overflow: hidden;
}

/* プログレスバー */
.inquiry-progress {
    padding: 30px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(55, 182, 143, 0.1);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #f1f5f4;
    border-radius: 10px;
    margin-right: 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #37b68f, #2ea374);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
    color: #37b68f;
    font-size: 14px;
}

/* ステップコンテンツ */
.inquiry-step {
    padding: 25px 30px;
    display: none;
    background: #ffffff;
}

.inquiry-step.active {
    display: block;
}

.inquiry-step h3 {
    font-size: 1.6em;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

/* オプションカード（グリッド） */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.option-card {
    background: #ffffff;
    border: 2px solid rgba(55, 182, 143, 0.15);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(55, 182, 143, 0.08);
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #37b68f, #2ea374);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(55, 182, 143, 0.2);
    border-color: #37b68f;
}

.option-card.selected {
    border-color: #37b68f;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(55, 182, 143, 0.25);
}

.option-card.selected::before {
    opacity: 1;
}

.option-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
    display: block;
}

.option-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
    color: inherit;
}

.option-desc {
    font-size: 0.9em;
    opacity: 0.8;
    color: inherit;
}

/* オプションリスト（垂直） */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.option-item {
    padding: 14px 20px;
    background: #ffffff;
    border: 2px solid rgba(55, 182, 143, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: left;
    color: #2c3e50;
    box-shadow: 0 1px 3px rgba(55, 182, 143, 0.08);
}

.option-item:hover {
    background: rgba(55, 182, 143, 0.05);
    border-color: #37b68f;
    transform: translateX(4px);
}

.option-item.selected {
    background: #37b68f;
    border-color: #37b68f;
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(55, 182, 143, 0.25);
}

/* フォームグループ */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1em;
}

/* 顧客タイプ選択 */
.customer-type-section {
    margin-bottom: 30px;
    text-align: left;
}

.customer-type-section > label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
    text-align: center;
}

.customer-type-radio {
    display: flex;
    gap: 20px;
    justify-content: center;
    background: #f8fffe;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(55, 182, 143, 0.15);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    margin: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #37b68f;
}

.radio-option label {
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    margin: 0;
    font-size: 1em;
}

/* トグル機能 */
.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.function-item {
    text-align: left;
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(55, 182, 143, 0.1);
    box-shadow: 0 1px 3px rgba(55, 182, 143, 0.05);
}

.function-item label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.toggle-group {
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(55, 182, 143, 0.2);
}

.toggle-option {
    flex: 1;
    padding: 10px 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    border-right: 1px solid rgba(55, 182, 143, 0.2);
    color: #2c3e50;
    font-size: 0.9em;
}

.toggle-option:last-child {
    border-right: none;
}

.toggle-option:hover {
    background: rgba(55, 182, 143, 0.05);
}

.toggle-option.selected {
    background: #37b68f;
    color: white;
}

/* お客様情報フォーム */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(55, 182, 143, 0.1);
    box-shadow: 0 2px 8px rgba(55, 182, 143, 0.08);
    transition: all 0.3s ease;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.required {
    color: #37b68f;
}

.form-row input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid rgba(55, 182, 143, 0.2);
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2c3e50;
    font-family: inherit;
    box-sizing: border-box;
}

.form-row input:focus {
    outline: none;
    border-color: #37b68f;
    box-shadow: 0 0 0 3px rgba(55, 182, 143, 0.1);
}

/* 完了画面 */
.complete-content {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%);
}

.complete-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    animation: bounce 1s ease;
    color: #37b68f;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0,-20px,0); }
    70% { transform: translate3d(0,-10px,0); }
    90% { transform: translate3d(0,-3px,0); }
}

.complete-content h3 {
    color: #37b68f;
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 700;
}

.complete-message, .followup-message {
    font-size: 1.1em;
    color: #5a6c7d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.result-summary {
    background: rgba(55, 182, 143, 0.08);
    border-radius: 12px;
    padding: 24px;
    margin: 25px 0;
    text-align: left;
    border-left: 4px solid #37b68f;
}

.result-item {
    margin-bottom: 12px;
    font-size: 1em;
    color: #2c3e50;
}

.result-item strong {
    color: #37b68f;
}

.recommended-plan {
    margin-top: 25px;
    padding: 20px;
    background: rgba(55, 182, 143, 0.05);
    border-radius: 8px;
    border-left: 4px solid #37b68f;
}

.recommended-plan h4 {
    color: #37b68f;
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 600;
}

.recommended-plan p {
    color: #2c3e50;
    line-height: 1.5;
    margin: 0;
}

/* ナビゲーション */
.inquiry-navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 30px 25px;
    background: #ffffff;
    border-top: 1px solid rgba(55, 182, 143, 0.1);
}

/* パルスアニメーション */
.pulse {
    animation: pulse-scale 2s infinite ease-in-out;
}

@keyframes pulse-scale {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ローディングアニメーション */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #37b68f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    #website-inquiry-container {
        padding: 20px 10px;
    }
    
    .inquiry-start-screen {
        padding: 40px 20px;
        border-radius: 12px;
    }
    
    .inquiry-start-screen h2 {
        font-size: 2.2em;
    }
    
    .inquiry-start-screen h3 {
        font-size: 1.2em;
    }
    
    .inquiry-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .inquiry-progress {
        padding: 20px 20px 0;
        flex-direction: column;
        gap: 15px;
    }
    
    .progress-bar {
        margin-right: 0;
    }
    
    .inquiry-step {
        padding: 20px;
    }
    
    .inquiry-step h3 {
        font-size: 1.4em;
    }
    
    /* タブレット・スマホでも2列を維持 */
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .option-card {
        padding: 20px 15px;
    }
    
    .function-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .toggle-group {
        flex-direction: column;
    }
    
    .toggle-option {
        border-right: none;
        border-bottom: 1px solid rgba(55, 182, 143, 0.2);
    }
    
    .toggle-option:last-child {
        border-bottom: none;
    }
    
    .customer-type-radio {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    /* スマホサイズ時のナビゲーションボタンの順序変更 */
    .inquiry-navigation {
        padding: 15px 20px 20px;
        flex-direction: column;
    }
    
    /* 次へボタンを上に、戻るボタンを下に */
    #next-btn, #submit-btn {
        order: 1;
    }
    
    #prev-btn {
        order: 2;
    }
    
    .inquiry-btn {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
    }
    
    .complete-content {
        padding: 30px 15px;
    }
    
    .complete-icon {
        font-size: 3em;
    }
    
    .complete-content h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .inquiry-start-screen h2 {
        font-size: 1.8em;
    }
    
    .inquiry-start-screen h3 {
        font-size: 1.1em;
    }
    
    .inquiry-start-screen p {
        font-size: 1em;
    }
    
    .inquiry-modal-content {
        border-radius: 10px;
    }
    
    .inquiry-step {
        padding: 15px;
    }
    
    .inquiry-step h3 {
        font-size: 1.3em;
        margin-bottom: 20px;
    }
    
    /* スマホでも2列を維持 */
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .option-card {
        padding: 15px 10px;
    }
    
    .option-icon {
        font-size: 2em;
    }
    
    .option-title {
        font-size: 1em;
    }
    
    .option-desc {
        font-size: 0.85em;
    }
    
    .form-row input {
        font-size: 16px; /* iOS Safari zoom prevention */
    }
    
    .result-summary {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .progress-info {
        text-align: center;
    }
}

/* 超小画面対応 */
@media (max-width: 360px) {
    .option-card {
        padding: 12px 8px;
    }
    
    .option-icon {
        font-size: 1.8em;
    }
    
    .option-title {
        font-size: 0.9em;
    }
    
    .option-desc {
        font-size: 0.8em;
    }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pulse {
        animation: none;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .option-card {
        border-width: 3px;
    }
    
    .option-card.selected {
        border-width: 4px;
    }
    
    .toggle-option {
        border-width: 2px;
    }
}

/* ダークモード対応（将来的な拡張用） */
@media (prefers-color-scheme: dark) {
    /* 必要に応じてダークモード対応を追加 */
}