/* お問い合わせページ専用スタイル */

.title-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.title-link:hover {
    opacity: 0.7;
}

/* ページヘッダーは common.css で定義済み */

/* お問い合わせ紹介文 */
.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.contact-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin: 0.5rem 0;
}

/* FAQ セクション */
.faq-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item summary {
    padding: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 3rem;
    background: #f9f9f9;
    transition: background 0.3s ease;
}

.faq-item summary:hover {
    background: #f5f5f5;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #9C27B0;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    padding: 1.25rem;
    color: #666;
    line-height: 1.8;
    background: white;
    margin: 0;
}

/* お問い合わせフォーム */

/* Google Form コンテナ */
.google-form-container {
    margin: 2rem auto 3rem auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.google-form-container iframe {
    display: block;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.required {
    color: #ff4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9C27B0;
}

.form-group select {
    cursor: pointer;
    background: white;
}

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

/* チェックボックスグループ */
.checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label span {
    display: inline;
    line-height: 1.5;
    text-align: left;
}

.checkbox-group small {
    display: block;
    margin-top: 0.5rem;
    text-align: center;
    color: #999;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* フォームアクション */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    padding: 1rem 3rem;
    background: #9C27B0;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

.btn-submit:hover {
    background: #7B1FA2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* その他の連絡方法 */
.other-contact {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.other-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-method {
    text-align: center;
}

.contact-method h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-method p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.contact-method small {
    color: #999;
    font-size: 0.875rem;
}

/* 成功メッセージ */
.success-message {
    background: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

/* エラーメッセージ */
.error-message {
    background: #f44336;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

/* fadeIn アニメーションは common.css で定義済み */

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .faq-section {
        padding: 1.5rem;
    }

    .checkbox-group {
        padding: 0 1rem;
    }
    
    .checkbox-group label span {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    
    .contact-intro p {
        font-size: 1rem;
    }
    
    .faq-item summary {
        padding: 1rem;
        padding-right: 2.5rem;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* iOSのズームを防ぐ */
    }
}