/* Contact Page Styles */

/* CSS Variables */
:root {
    --navy: #1a2744;
    --navy-dark: #0f1a2e;
    --navy-light: #2a3a5c;
    --gray: #6b7280;
    --gray-light: #f8f9fa;
    --gray-lighter: #f5f5f5;
    --white: #ffffff;
    --accent: #c9a961;
    --accent-light: #e8d9a8;
    --error: #dc3545;
    --success: #28a745;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-number: 'Noto Serif JP', serif;
}

/* Page Hero */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.pexels.com/photos/7652046/pexels-photo-7652046.jpeg?auto=compress&cs=tinysrgb&w=1600');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.page-hero::after {
    content: 'CONTACT';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Noto Serif JP', serif;
    font-size: 200px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.03);
    letter-spacing: 20px;
    pointer-events: none;
    white-space: nowrap;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.page-hero-label {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 20px;
}

.page-hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 64px;
    font-weight: 400;
    letter-spacing: 10px;
    margin-bottom: 15px;
}

.page-hero-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    opacity: 0.8;
}

/* Main Copy Section */
.section-main-copy {
    background-color: var(--white);
    padding: 120px 60px;
}

.main-copy-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.main-copy-title {
    font-family: var(--font-sans);
    font-size: 36px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--navy);
    margin-bottom: 40px;
}

.main-copy-desc {
    font-size: 15px;
    line-height: 2.2;
    color: var(--gray);
}

/* Contact Methods Section */
.section-contact-methods {
    background-color: var(--gray-light);
    padding: 80px 60px;
}

.methods-inner {
    max-width: 900px;
    margin: 0 auto;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.method-card {
    background: var(--white);
    padding: 50px 40px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.method-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon i {
    font-size: 32px;
    color: var(--white);
}

.method-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 15px;
}

.method-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

.method-tel {
    font-size: 32px;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.method-tel .num {
    font-family: 'Noto Serif JP', serif;
}

.method-hours {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
}

.method-hours-note {
    font-size: 12px;
    color: #999;
}

.method-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-light);
    border-radius: 30px;
    font-size: 14px;
    color: var(--navy);
}

.method-note i {
    color: var(--accent);
}

/* Form Section */
.section-form {
    background-color: var(--white);
    padding: 100px 60px;
}

.form-inner {
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 60px;
}

.form-section-title {
    margin-bottom: 20px;
}

.form-section-title .title-en {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 10px;
}

.form-section-title .title-ja {
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
}

.form-lead {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
}

.required-note {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
}

.required-note .required {
    color: var(--error);
}

/* Contact Form */
.contact-form {
    background: var(--gray-light);
    padding: 60px;
    border-radius: 8px;
}

.form-section {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 30px;
}

.heading-number {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--accent);
    padding: 5px 12px;
    background: var(--white);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 10px;
}

.required {
    color: var(--error);
    margin-left: 5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px 18px;
    font-family: var(--font-sans);
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--error);
}

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

.form-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--gray);
}

.form-hint i {
    color: var(--accent);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.checkbox-item {
    display: block;
    cursor: pointer;
}

.checkbox-item input {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: var(--navy);
    transition: all 0.3s ease;
}

.checkbox-label i {
    color: var(--accent);
    font-size: 16px;
}

.checkbox-item input:checked + .checkbox-label {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.checkbox-item input:checked + .checkbox-label i {
    color: var(--accent);
}

/* Radio Grid */
.radio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-item {
    display: block;
    cursor: pointer;
}

.radio-item input {
    display: none;
}

.radio-label {
    display: inline-block;
    padding: 12px 20px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    color: var(--navy);
    transition: all 0.3s ease;
}

.radio-item input:checked + .radio-label {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* Agreement */
.form-agreement {
    margin: 40px 0;
    text-align: center;
}

.agreement-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.agreement-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.agreement-text {
    font-size: 14px;
    color: var(--navy);
}

.agreement-text a {
    color: var(--accent);
    text-decoration: underline;
}

.agreement-checkbox.error {
    color: var(--error);
}

/* Submit Button */
.form-submit {
    text-align: center;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 60px;
    background: var(--navy);
    border: none;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 39, 68, 0.3);
}

.btn-submit i {
    font-size: 14px;
}

.submit-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--gray);
}

/* Flow Section */
.section-flow {
    background-color: var(--gray-light);
    padding: 100px 60px;
}

.flow-inner {
    max-width: 900px;
    margin: 0 auto;
}

.flow-header {
    text-align: center;
    margin-bottom: 60px;
}

.flow-title .title-en {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 10px;
}

.flow-title .title-ja {
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
}

.flow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.flow-step {
    flex: 1;
    text-align: center;
    max-width: 250px;
}

.step-number {
    font-family: 'Noto Serif JP', serif;
    font-size: 42px;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 20px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.step-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray);
}

.flow-connector {
    flex: 0 0 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    margin-top: 30px;
}

.flow-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    padding: 20px;
    background: var(--white);
    border-radius: 4px;
    font-size: 14px;
    color: var(--navy);
}

.flow-note i {
    color: var(--accent);
}

/* Access Section */
.section-access {
    background-color: var(--white);
    padding: 100px 60px;
}

.access-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.access-header {
    text-align: center;
    margin-bottom: 60px;
}

.access-title .title-en {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 10px;
}

.access-title .title-ja {
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.access-info {
    padding: 40px;
    background: var(--gray-light);
    border-radius: 8px;
}

.company-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 5px;
}

.company-name-en {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    color: var(--gray);
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.access-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.access-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.access-item dt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
}

.access-item dt i {
    font-size: 12px;
}

.access-item dd {
    font-size: 15px;
    color: var(--navy);
    line-height: 1.8;
    padding-left: 20px;
}

.access-item dd .note {
    font-size: 12px;
    color: var(--gray);
}

.access-map {
    background: var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
    min-height: 350px;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Map Placeholder (fallback) */
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: var(--gray-light);
    border-radius: 8px;
    color: var(--gray);
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--navy);
    opacity: 0.3;
}

.map-placeholder p {
    font-size: 14px;
}

/* Address Note */
.address-note {
    display: block;
    margin-top: 8px;
    color: var(--accent);
    font-weight: 500;
}

/* Info Tel */
.info-tel .num {
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 1px;
}

/* Related Section */
.section-related {
    background-color: var(--gray-light);
    padding: 80px 60px;
}

.related-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.related-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.related-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-icon i {
    font-size: 20px;
    color: var(--white);
}

.related-content {
    flex: 1;
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 5px;
}

.related-desc {
    font-size: 13px;
    color: var(--gray);
}

.related-arrow {
    color: var(--accent);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.related-card:hover .related-arrow {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .page-hero-title {
        font-size: 42px;
        letter-spacing: 6px;
    }
    
    .page-hero::after {
        font-size: 100px;
    }
    
    .section-main-copy {
        padding: 80px 30px;
    }
    
    .main-copy-title {
        font-size: 26px;
    }
    
    .section-contact-methods {
        padding: 60px 30px;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .method-card {
        padding: 40px 30px;
    }
    
    .method-tel {
        font-size: 28px;
    }
    
    .section-form {
        padding: 60px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
    
    .radio-grid {
        flex-direction: column;
    }
    
    .radio-label {
        width: 100%;
        text-align: center;
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 18px 40px;
    }
    
    .section-flow {
        padding: 60px 30px;
    }
    
    .flow-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .flow-step {
        max-width: 100%;
    }
    
    .flow-connector {
        width: 2px;
        height: 30px;
        margin: 0 auto;
    }
    
    .section-access {
        padding: 60px 30px;
    }
    
    .access-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .access-info {
        padding: 30px 20px;
    }
    
    .section-related {
        padding: 60px 30px;
    }
    
    .related-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-card {
        padding: 20px;
    }
}

/* ==========================================
   フォームバリデーション
   ========================================== */

/* エラー状態のフィールド */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--error);
    background-color: rgba(220, 53, 69, 0.03);
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* エラーメッセージ */
.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--error);
}

.field-error::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
}

/* 送信中ボタン */
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-submit:disabled:hover {
    box-shadow: none;
}

/* 成功メッセージモーダル */
.form-success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

.form-success-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.form-success-message::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    font-size: 40px;
    color: var(--white);
}

.form-success-message h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 15px;
}

.form-success-message p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 30px;
}

.btn-close-success {
    display: inline-block;
    padding: 14px 40px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-success:hover {
    background: var(--navy-light);
}

@media (max-width: 768px) {
    .form-success-message {
        width: 90%;
        padding: 40px 30px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
    }
    
    .success-icon i {
        font-size: 30px;
    }
    
    .form-success-message h3 {
        font-size: 20px;
    }
}
