/* ボディ背景のオーバーライド（白いスペース除去） */
body {
    background-color: #000 !important;
}
/* ヘッダーのダークテーマ対応 */
header {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #333 !important;
}

/* ヘッダー内のテキスト色調整 */
header a,
header .text-gray-700,
header .text-gray-600 {
    color: #fff !important;
}

/* ヘッダー内のホバー効果 */
header a:hover {
    color: #ffcc00 !important;
}

/* ロゴの調整（必要に応じて） */
header .logo {
    filter: brightness(1.2);
}


/* Contact Form Dark Theme Styles */

/* 基本的なダークテーマスタイル */
.contact-container {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ページヘッダー */
.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-description {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* エラーメッセージ（ダークテーマ対応） */
.error-container {
    background-color: #2d1b1b;
    border: 1px solid #dc2626;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.error-icon {
    color: #ef4444;
}

.error-title {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.875rem;
}

.error-list {
    color: #fca5a5;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* フォームコンテナ */
.form-container {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* フォームグループ */
.form-group {
    margin-bottom: 1.5rem;
}

/* ラベル */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
}

.required {
    color: #ef4444;
}

/* 入力フィールド */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #888;
}

/* テキストエリア */
.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* 文字数カウンター */
.character-counter {
    text-align: right;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #888;
}

.character-counter.warning {
    color: #f59e0b;
}

.character-counter.error {
    color: #ef4444;
}

/* 送信ボタン */
.submit-button {
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

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

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background-color: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-content {
        padding: 1rem 0.5rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

/* アニメーション */
.form-container {
    animation: fadeInUp 0.6s ease-out;
}

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

/* ヘッダーナビゲーション調整（既存のナビゲーション要素がある場合） */
.header-nav {
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #333;
}

/* フッター調整 */
.footer {
    margin-top: 3rem;
}

/* お問い合わせ完了ページ用スタイル */
.thanks-container {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    text-align: center;
}

.thanks-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* 成功アイコン */
.success-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #166534;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.success-icon {
    width: 40px;
    height: 40px;
    color: #22c55e;
}

.thanks-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1rem;
}

.thanks-subtitle {
    font-size: 1.125rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

/* 完了メッセージボックス */
.thanks-message-box {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.message-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.message-item:last-child {
    margin-bottom: 0;
}

.message-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #ffcc00;
    margin-top: 2px;
    margin-right: 12px;
}

.message-text {
    color: #ccc;
}

/* アクションボタン */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .action-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
}

.action-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.375rem;
    text-decoration: none;
    background-color: #ffcc00;
    color: #000;
    transition: background-color 0.3s, transform 0.2s;
}

.action-button-primary:hover {
    background-color: #e6b800;
    transform: translateY(-1px);
    color: #000;
    text-decoration: none;
}

.action-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid #444;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.375rem;
    text-decoration: none;
    background-color: #1a1a1a;
    color: #fff;
    transition: background-color 0.3s, border-color 0.3s;
}

.action-button-secondary:hover {
    background-color: #2a2a2a;
    border-color: #666;
    color: #fff;
    text-decoration: none;
}

.button-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* 追加情報セクション */
.additional-info {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.additional-info-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-item {
    text-align: center;
}

.info-item-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.info-item-description {
    color: #ccc;
}

/* ========================================= */
/* Thanks Page (お問い合わせ完了ページ) Styles */
/* ========================================= */

/* Thanks page container */
.thanks-container {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    padding: 2rem 0;
}

.thanks-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

/* Success icon */
.success-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #166534;
    border-radius: 50%;
    margin-bottom: 1rem;
    animation: successBounce 0.6s ease-out;
}

.success-icon {
    width: 40px;
    height: 40px;
    color: #22c55e;
    stroke-width: 3;
}

/* Thanks page titles */
.thanks-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.thanks-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Thanks message box */
.thanks-message-box {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.message-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.message-item:last-child {
    margin-bottom: 0;
}

.message-item > div:first-child {
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.message-icon {
    width: 20px;
    height: 20px;
    color: #ffcc00;
    margin-top: 0.125rem;
}

.message-text {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

/* Thanks page actions */
.thanks-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .thanks-actions {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Button styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #ffcc00;
}

.btn-primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 204, 0, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #444;
}

.btn-secondary:hover {
    background-color: #2a2a2a;
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

/* Additional info section */
.additional-info {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-top: 3rem;
}

.additional-info-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.additional-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .additional-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.additional-info-item {
    text-align: center;
}

.additional-info-item-title {
    font-weight: 600;
    color: #ffcc00;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.additional-info-item-text {
    color: #ccc;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* Animations */
@keyframes successBounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Thanks page responsive adjustments */
@media (max-width: 768px) {
    .thanks-container {
        padding: 1rem 0;
    }
    
    .thanks-title {
        font-size: 2rem;
    }
    
    .thanks-subtitle {
        font-size: 1.1rem;
    }
    
    .thanks-message-box,
    .additional-info {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}
