/* Contact Page Styles - Updated to match React design */

/* Base Styles */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (min-width: 768px) and (max-width: 1000px) {
    html {
        overflow-x: auto;
    }
}

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

body {
    font-family: 'Noto Serif JP', serif;
    min-height: 100vh;
    background: #fff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 320px;
    width: 100%;
    max-width: 100%;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

@media (min-width: 768px) and (max-width: 1000px) {
    body {
        min-width: 1000px;
        overflow-x: auto;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.header.menu-open {
    opacity: 0;
    pointer-events: none;
}

.header-content {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .header-content {
        padding: 0.75rem 2rem;
    }
}

@media (min-width: 1024px) {
    .header-content {
        padding: 0.75rem 2.5rem;
    }
}

.header-logo {
    flex-shrink: 0;
    cursor: pointer;
    margin-left: -0.25rem;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.header-logo img {
    height: 1.75rem;
    width: auto;
    display: block;
}

.hamburger-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 0.25rem;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    transition: opacity 0.3s;
}

.hamburger-btn:hover {
    opacity: 0.7;
}

.hamburger-icon {
    height: 32px;
    width: 56px;
    transition: opacity 0.3s;
}

/* Menu */
.menu {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: rgba(217, 217, 217, 0.7);
    backdrop-filter: blur(4px);
    z-index: 40;
    /* 横スクロール抑止: translateX でレイアウト幅を押し広げない */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    pointer-events: none;
    transition: clip-path 0.5s ease-in-out, visibility 0s linear 0.5s;
}

@media (min-width: 1024px) {
    .menu {
        left: 67%;
    }
}

.menu.open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    pointer-events: auto;
    transition: clip-path 0.5s ease-in-out, visibility 0s linear 0s;
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 5rem;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .menu-header {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .menu-header {
        padding: 0 2rem;
    }
}

.close-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.close-btn:hover {
    opacity: 0.7;
}

.close-icon {
    height: 32px;
    width: 56px;
}

.menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    gap: 1rem;
}

@media (min-width: 640px) {
    .menu-nav {
        padding: 0 3rem;
    }
}

.menu-item {
    text-align: center;
    color: #000;
    font-size: 1.875rem;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    font-family: 'Noto Serif JP', serif;
}

@media (min-width: 640px) {
    .menu-item {
        font-size: 2.25rem;
    }
}

.menu-item:hover {
    opacity: 0.7;
}

.menu-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1.5rem;
}

.social-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 0.5rem;
    border: 2px solid #000;
    color: #000;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #f3f3f3;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-top: 5rem;
}

@media (min-width: 1024px) {
    .hero-section {
        height: 500px;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Breadcrumb */
.breadcrumb-section {
    background: #f3f3f3;
    padding: 1rem 0;
}

.breadcrumb-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

@media (min-width: 640px) {
    .breadcrumb-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .breadcrumb-container {
        padding: 0 2rem;
    }
}

.breadcrumb-link {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.875rem;
    padding: 0;
}

.breadcrumb-link:hover {
    color: #333;
}

.breadcrumb-separator {
    color: #666;
}

.breadcrumb-current {
    color: #333;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0 8rem 0;
    background: #fff;
}

@media (min-width: 1024px) {
    .contact-section {
        padding: 8rem 0;
    }
}

.contact-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 767px) {
    .contact-container {
        padding: 0 1rem;
    }
}

@media (min-width: 640px) {
    .contact-container {
        padding: 0 2.5rem;
    }
}

@media (min-width: 1024px) {
    .contact-container {
        padding: 0 2rem;
    }
}

/* section-title-common（index と同等・contact.html 用） */
.section-title-common {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #333;
    position: relative;
    margin-bottom: 3px;
    display: inline-block;
}

@media (min-width: 768px) {
    .section-title-common {
        font-size: 36px;
    }
}

.section-header--line-stretch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 3rem;
}

.section-title-line-desktop {
    display: none;
}

.section-title-line-mobile {
    height: 1px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background-color: #333;
}

@media (min-width: 768px) {
    .section-header--line-stretch {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .section-header--line-stretch .section-title-common {
        flex-shrink: 0;
    }

    .section-title-line-desktop {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        height: 1px;
        background-color: #333;
        align-self: center;
    }

    .section-title-line-mobile {
        display: none;
    }
}

/* Section Title with line */
.section-title-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-title-wrapper {
        width: auto;
    }
}

.section-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    padding-bottom: 24px;
    color: #333;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: #333;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 40px;
        margin-bottom: 64px;
        padding-bottom: 32px;
    }
    
    .section-title::after {
        width: 80px;
    }
}

/* Contact Description */
.contact-description {
    font-size: 1rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .contact-description {
        font-size: 1.125rem;
    }
}

/* Contact Form iframe 埋め込み */
.contact-form-embed {
    margin-top: 2rem;
    width: 100%;
    max-width: 800px;
    overflow-x: hidden;
}

.contact-iframe {
    width: 100%;
    min-height: 0;
    border: none;
    display: block;
}

/* Privacy Policy Section */
.privacy-policy-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 2rem;
}

.privacy-policy-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .privacy-policy-title {
        font-size: 1.5rem;
    }
}

.privacy-policy-content {
    font-size: 0.875rem;
    color: #666;
    font-weight: 300;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .privacy-policy-content {
        font-size: 1rem;
    }
}

.privacy-policy-content p {
    margin-bottom: 1rem;
}

.privacy-policy-list {
    margin: 1rem 0 1rem 1.5rem;
    padding: 0;
}

.privacy-policy-list li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Alert Messages */
.alert {
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.25rem;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.alert p {
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
}

/* Contact Form */
.contact-form {
    max-width: 800px;
}

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

.form-label {
    display: block;
    font-size: 1rem;
    color: #333;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.required {
    color: #e53e3e;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: 'Noto Serif JP', serif;
    border: 1px solid #d0d0d0;
    border-radius: 0.25rem;
    background: #fff;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

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

.form-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.form-checkbox-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 300;
    line-height: 1.6;
    cursor: pointer;
}

.submit-btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 400;
    color: #fff;
    background: #333;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Noto Serif JP', serif;
    margin-top: 1rem;
}

.submit-btn:hover:not(:disabled) {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Footer */
.footer {
    background: #f3f3f3;
    color: #333;
    padding: 3rem 2rem 2rem 2rem;
    border-top: 1px solid #949494;
}

@media (min-width: 768px) {
    .footer {
        padding: 4rem 2rem 2.5rem 2rem;
    }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    font-family: 'Noto Serif JP', serif;
}

@media (min-width: 768px) {
    .footer-link {
        font-size: 1.125rem;
    }
}

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

.footer-separator {
    color: #999;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .footer-separator {
        font-size: 1.125rem;
    }
}

.footer-copyright {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    font-weight: 300;
}

/* Utility Classes */
.hidden {
    display: none;
}