/* server/static/css/contact.css */

:root {
    --primary-color: #1a303a;  /* ダークネイビー */
    --accent-color: #d4c3a3;   /* ベージュ */
    --bg-beige: #f9f6f0;       /* 薄いオーガニックベージュ */
    --text-color: #1c1c1c;     /* 黒文字 */
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-beige);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 100px 20px 40px 20px; /* ヘッダーの厚みを考慮した余白 */
    box-sizing: border-box;
    color: var(--text-color);
}

/* ==========================================
   上部固定ヘッダー（ログイン画面等と完全同一）
   ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 4px 20px rgba(26, 48, 58, 0.04);
    z-index: 2000;
    box-sizing: border-box;
}

.header-logo-image {
    max-height: 32px;
    width: auto;
    display: block;
}

/* ==========================================
   コンテンツレイアウト
   ========================================== */
.contact-page-container {
    width: 100%;
    max-width: 480px; /* テキストエリアがあるのでログイン枠より少しだけ広く設定 */
    display: flex;
    flex-direction: column;
}

/* 白枠の外側・上部ヘッダー */
.contact-outer-header {
    margin-bottom: 25px;
    text-align: center;
}

.contact-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.contact-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* 🌟 白枠（カード）スタイル */
.contact-card {
    background-color: #ffffff;
    padding: 45px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(26, 48, 58, 0.06);
    width: 100%;
    box-sizing: border-box;
}

/* フォームグループ */
.form-group {
    margin-bottom: 22px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* 必須マーク（*） */
.required {
    color: #c53030;
    font-weight: bold;
    margin-left: 4px;
}

/* 入力欄 & テキストエリアの共通デザイン */
.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    color: var(--text-color);
    background-color: #ffffff;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
    min-height: 160px;
    resize: vertical; /* 縦方向のみユーザーがリサイズ可能 */
    line-height: 1.6;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 48, 58, 0.08);
}

/* 🌟 主役のネイビー送信ボタン */
.btn-submit {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.2s, transform 0.1s;
    width: 100%;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #0f1e24;
}
.btn-submit:active {
    transform: scale(0.98);
}

/* 戻るボタンの洗練化 */
.contact-footer-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
    text-align: center;
}

.btn-back {
    display: inline-block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* フラッシュメッセージ */
.message {
    font-weight: 700;
    font-size: 0.9rem;
    min-height: 1.2em;
    text-align: center;
    margin-top: 15px;
}
.message.success { color: #2f855a; }
.message.error { color: #c53030; }

/* ==========================================
   📱 スマホ環境用の設定（20%コンパクト化）
   ========================================== */
@media (max-width: 768px) {
    html {
        font-size: 13px; /* スマホ画面で文字や要素を20%縮小 */
    }
    body {
        padding-top: 80px;
    }
    .site-header {
        padding: 12px 20px;
    }
    .contact-card {
        padding: 35px 20px;
    }
}