/* フォームページ専用スタイル */

/* ヒーローセクション */
.form-hero {
    background: linear-gradient(rgba(42, 92, 145, 0.8), rgba(42, 92, 145, 0.8)), 
                url('https://images.unsplash.com/photo-1521791136064-7986c2920216?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}

.form-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* フォームコンテナ */
.form-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .form-container {
        grid-template-columns: 1fr;
    }
}

/* フォームメイン */
.form-main {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-intro {
    margin-bottom: 40px;
}

.form-intro h2 {
    color: #2a5c91;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.form-intro h2 i {
    margin-right: 15px;
    color: #e67e22;
}

.form-intro p {
    color: #64748b;
    line-height: 1.6;
}

/* 緊急連絡ボックス */
.contact-urgent {
    background-color: #fff8f0;
    border-left: 4px solid #e67e22;
    padding: 20px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

.urgent-box {
    text-align: center;
}

.urgent-box h3 {
    color: #2a5c91;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.urgent-box h3 i {
    margin-right: 10px;
    color: #e67e22;
}

.urgent-phone {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 10px 0;
    text-decoration: none;
}

.urgent-box p {
    color: #64748b;
    margin: 0;
    font-size: 0.9rem;
}

/* フォーム要素 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2a5c91;
}

.form-group .required {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-left: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2a5c91;
    box-shadow: 0 0 0 3px rgba(42, 92, 145, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232a5c91' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

/* チェックボックス */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.checkbox-group a {
    color: #2a5c91;
    text-decoration: underline;
}

.checkbox-group a:hover {
    color: #e67e22;
}

/* 送信ボタン */
.form-submit {
    margin-top: 40px;
    text-align: center;
}

.submit-button {
    background-color: #2a5c91;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.submit-button i {
    margin-right: 10px;
}

.submit-button:hover {
    background-color: #1a4a7b;
    transform: translateY(-2px);
}

/* フォームサイドバー */
.form-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    color: #2a5c91;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.sidebar-widget h3 i {
    margin-right: 10px;
    color: #e67e22;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.office-info {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.office-info strong {
    color: #2a5c91;
    display: block;
    margin-bottom: 10px;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.hours-list li {
    margin-bottom: 8px;
}

.urgent-notice {
    background-color: #fff8f0;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #e74c3c;
}

.urgent-notice p {
    color: #5f3e1d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.urgent-button {
    display: block;
    background-color: #e74c3c;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.urgent-button:hover {
    background-color: #c0392b;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .form-hero h1 {
        font-size: 2rem;
    }
    
    .form-main {
        padding: 25px;
    }
    
    .urgent-phone {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .form-hero {
        padding: 60px 20px;
    }
    
    .form-hero h1 {
        font-size: 1.8rem;
    }
    
    .submit-button {
        width: 100%;
    }
}