/* 問い合わせページのモダンスタイル */

/* ヒーローセクション */
.hero {
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    filter: brightness(0.9);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* 問い合わせセクション */
.contact-section {
    padding: 80px 0;
}

/* 問い合わせ方法 */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto 60px;
    max-width: 1000px;
}

.contact-method {
    background-color: #fff;
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-method h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-method i {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-right: 15px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.phone-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

.form-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

.phone-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.phone-hours {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* エラーメッセージボックス */
.error-box {
    background-color: #ffebee;
    border-left: 4px solid var(--error-color);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: var(--radius);
    animation: fadeIn 0.3s ease;
}

.error-box p {
    margin-bottom: 10px;
    color: #c62828;
}

.error-box .small {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* フォームの改善 */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    background-color: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
    background-color: #fff;
}

.form-control.error {
    border-color: var(--error-color);
    background-color: #fff8f7;
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.required {
    color: var(--error-color);
    margin-left: 3px;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* チェックボックスの改善 */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
    appearance: none;
    background-color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-group input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.checkbox-group input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
    outline: none;
}

.checkbox-group label {
    font-size: 0.95rem;
    user-select: none;
    cursor: pointer;
}

/* ボタンスタイルの改善 */
.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255,255,255,0.1);
    transition: var(--transition-fast);
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: var(--primary-color);
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background-color: #eee;
    box-shadow: var(--shadow-sm);
}

/* 確認画面のスタイル改善 */
.contact-confirm {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.confirm-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-color);
}

.confirm-description {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
}

.confirm-table {
    background-color: #f9f9f9;
    border-radius: var(--radius);
    margin-bottom: 40px;
    overflow: hidden;
}

.confirm-row {
    display: flex;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-row dt {
    width: 30%;
    padding: 15px 20px;
    font-weight: 600;
    background-color: rgba(0,0,0,0.02);
    border-right: 1px solid #eee;
}

.confirm-row dd {
    width: 70%;
    padding: 15px 20px;
}

.confirm-message {
    white-space: pre-line;
}

/* 送信完了画面 */
.message-sent {
    text-align: center;
    padding: 60px 0;
}

.message-sent-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 40px;
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease;
}

.message-sent h2 {
    color: var(--success-color);
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

.message-sent p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.message-sent-action {
    margin-top: 40px;
}

/* 問い合わせ情報セクション */
.contact-info {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

.contact-info h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    color: var(--primary-color);
}

.contact-info h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-item {
    padding: 30px;
    text-align: center;
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info-item p {
    line-height: 1.7;
    color: var(--text-color);
    font-size: 1.05rem;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .confirm-table {
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-form,
    .contact-confirm {
        padding: 30px 25px;
    }
    
    .message-sent-inner {
        padding: 40px 25px;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .confirm-row {
        flex-direction: column;
    }
    
    .confirm-row dt,
    .confirm-row dd {
        width: 100%;
        border-right: none;
    }
    
    .confirm-row dt {
        padding-bottom: 5px;
    }
    
    .confirm-row dd {
        padding-top: 10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .message-sent h2 {
        font-size: 1.6rem;
    }
    
    .message-sent p {
        font-size: 1rem;
    }
    
    .contact-info-item {
        padding: 25px 20px;
    }
}
