/* ════════════════════════════════════════════════
   株式会社ケイハン — メインスタイルシート
   css/mail.css
════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cream: #F5F0E8;
    --warm-white: #FDFAF4;
    --wheat: #E8D5B0;
    --crust: #C4903A;
    --dark-crust: #8B5E1A;
    --deep-brown: #2C1810;
    --charcoal: #3D3530;
    --text-muted: #7A6B5A;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic Pro', sans-serif;
    --nav-h: 72px;
    --success: #3a7d44;
    --error: #b94040;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--warm-white);
    color: var(--deep-brown);
    font-weight: 300;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ────────────────────────────────────
   NAV
──────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(253,250,244,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196,144,58,0.15);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}
.nav-logo {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans";
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-crust);
    letter-spacing: 0.04em;
    text-decoration: none;
    line-height: 1.2;
}
.nav-logo span {
    display: block;
    font-size: 0.65rem;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--charcoal);
    font-weight: 400;
    transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--crust); }
.nav-cta {
    background: var(--crust) !important;
    color: #fff !important;
    padding: 0.5rem 1.4rem;
    border-radius: 2px;
}
@media (max-width: 768px) {
    .nav-links { display: none; }
}

/* ────────────────────────────────────
    PAGE HEADER 
──────────────────────────────────── */
.page-header {
    padding-top: var(--nav-h);
    background: var(--deep-brown);
    text-align: center;
    padding-bottom: 4rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1509440159596-0249088772ff?w=1600&q=60&auto=format&fit=crop') center/cover no-repeat;
    opacity: 0.12;
}
.page-header-inner { position: relative; z-index: 1; padding-top: 3.5rem; }
.page-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    color: var(--crust);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}
.page-eyebrow::before, .page-eyebrow::after {
    content: ''; display: block; width: 2rem; height: 1px; background: var(--crust);
}
.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    color: var(--wheat);
    line-height: 1.1;
}
.page-title em { font-style: italic; color: var(--crust); }

/* ────────────────────────────────────
    MAIN LAYOUT
──────────────────────────────────── */
main { flex: 1; }

.contact-wrap {
    max-width: 840px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 3rem);
}

/* ────────────────────────────────────
    PHONE CARD
──────────────────────────────────── */
.phone-card {
    background: var(--cream);
    border: 1px solid rgba(196,144,58,0.25);
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}
.phone-card-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}
.phone-card-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--crust);
    margin-bottom: 0.3rem;
}
.phone-card-number {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 400;
    color: var(--deep-brown);
    letter-spacing: 0.05em;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}
.phone-card-number:hover { color: var(--crust); }
.phone-card-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ────────────────────────────────────
    DIVIDER 
──────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 3rem;
}
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px; background: var(--wheat);
}
.divider span {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
}

/* ──────────────────────────────────── 
    STEP INDICATOR 
──────────────────────────────────── */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
}
.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(122,107,90,0.45);
}
.step.active { color: var(--crust); }
.step.done { color: var(--text-muted); }
.step-circle {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.step.active .step-circle {
    background: var(--crust);
    border-color: var(--crust);
    color: #fff;
}
.step-line {
    width: 3rem; height: 1px;
    background: var(--wheat);
    flex-shrink: 0;
}

/* ────────────────────────────────────
    ALERTS
──────────────────────────────────── */
.alert {
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.88rem;
    line-height: 1.8;
    border-left: 3px solid;
}
.alert-error {
    background: rgba(185,64,64,0.06);
    border-color: var(--error);
    color: var(--error);
}
.alert-success {
    background: rgba(58,125,68,0.06);
    border-color: var(--success);
    color: var(--success);
}

/* ────────────────────────────────────
    FORM 
──────────────────────────────────── */
.form-section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--deep-brown);
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--wheat);
}

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

.form-label {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--charcoal);
    font-weight: 400;
    margin-bottom: 0.6rem;
}
.required-badge {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    background: var(--crust);
    color: #fff;
    padding: 1px 6px;
    border-radius: 2px;
}
.optional-badge {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--wheat);
    padding: 1px 6px;
    border-radius: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--deep-brown);
    background: #fff;
    border: 1px solid var(--wheat);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--crust);
    box-shadow: 0 0 0 3px rgba(196,144,58,0.12);
}
textarea {
    resize: vertical;
    min-height: 220px;
    line-height: 1.8;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* ────────────────────────────────────
    電話番号 プレビュー 
──────────────────────────────────── */
.phone-preview {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--crust);
    margin-top: 0.4rem;
    min-height: 1.2em;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}

/* ────────────────────────────────────
    FORM ACTIONS 
──────────────────────────────────── */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--deep-brown);
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover { background: var(--charcoal); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--wheat);
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: all 0.25s;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover { border-color: var(--charcoal); background: var(--cream); }

/* ──────────────────────────────────── 
    CONFIRM TABLE 
──────────────────────────────────── */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2.5rem;
}
.confirm-table tr {
    border-bottom: 1px solid var(--wheat);
}
.confirm-table th {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    font-weight: 400;
    color: var(--text-muted);
    text-align: left;
    padding: 1rem 1.5rem 1rem 0;
    width: 40%;
    vertical-align: top;
}
.confirm-table td {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--deep-brown);
    line-height: 1.8;
    word-break: break-word;
}

/* ───────────────────────────────────── 
    DONE 
──────────────────────────────────── */
.done-wrap {
    text-align: center;
    padding: 3rem 0;
}
.done-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 1px solid var(--crust);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}
.done-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--deep-brown);
    margin-bottom: 1rem;
}
.done-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 42ch;
    margin: 0 auto 2.5rem;
    line-height: 2;
}

/* ────────────────────────────────────
    FOOTER 
──────────────────────────────────── */
footer {
    background: #1A0E08;
    color: rgba(255,255,255,0.3);
    text-align: center;
    padding: 2rem clamp(1.5rem, 5vw, 4rem);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}
.footer-logo {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans";
    font-size: 1rem;
    font-style: italic;
    color: rgba(255,255,255,0.45);
}
footer a { color: rgba(255,255,255,0.3); text-decoration: none; }
footer a:hover { color: var(--crust); }

@media (max-width: 600px) {
    .phone-card { flex-direction: column; gap: 1rem; }
    .step-line { width: 1.5rem; }
    .confirm-table th { width: 35%; }
    footer { flex-direction: column; align-items: center; }
}
