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

:root {
    --primary-green: #54885a;
    --dark-green: #3d5340;
    --light-bg: #f8f7f5;
    --white: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --accent-gold: #ecd0aa;
}

body {
    font-family: 'Noto Serif JP', serif;
    color: var(--text-dark);
    line-height: 1.8;
    background: var(--white);
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.logo-container {
    max-width: 200px;
    margin: 0 auto;
    animation: slideDown 1s ease 0.3s backwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container img {
    width: 100%;
    height: auto;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.5s forwards;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center center;
    transition: transform 0.6s ease;
}

.hero:hover .hero-image {
    transform: scale(1.05);
}


/* Message Section */
.message-section {
    padding: 120px 5%;
    text-align: center;
    background: var(--white);
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.message-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 80px;
    letter-spacing: 0.15em;
    position: relative;
    display: inline-block;
}

.message-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--primary-green);
}

.message-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(15px, 2.5vw, 18px);
    line-height: 26px;
    letter-spacing: 0.08em;
    color: var(--text-dark);
}

.message-content p {
    margin-bottom: 1.5em;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.message-content p:nth-child(1) { animation-delay: 1.2s; }
.message-content p:nth-child(2) { animation-delay: 1.4s; }
.message-content p:nth-child(3) { animation-delay: 1.6s; }
.message-content p:nth-child(4) { animation-delay: 1.8s; }

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

/* Company Info Section */
.company-section {
    background: var(--primary-green);
    color: var(--white);
    padding: 100px 5%;
}

.company-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 0px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.section-subtitle {
    font-size: clamp(13px, 2vw, 15px);
    margin-bottom: 60px;
    letter-spacing: 0.15em;
    opacity: 0.9;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.company-info {
    display: grid;
    gap: 0px;
}

.info-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    align-items: start;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.info-row:nth-child(1) { animation-delay: 0.3s; }
.info-row:nth-child(2) { animation-delay: 0.4s; }
.info-row:nth-child(3) { animation-delay: 0.5s; }
.info-row:nth-child(4) { animation-delay: 0.6s; }
.info-row:nth-child(5) { animation-delay: 0.7s; }

.info-label {
    font-size: clamp(13px, 2vw, 15px);
    white-space: nowrap;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 24px;
}

.info-label::before {
    content: '◆';
    font-size: 10px;
    color: var(--accent-gold);
}

.info-content {
    font-size: clamp(13px, 2vw, 15px);
    line-height: 24px;
}

.info-content ol {
    list-style: none;
    counter-reset: item;
    margin: 0;
    padding: 0;
}

.info-content ol li {
    counter-increment: item;
    padding-left: 2em;
    position: relative;
    margin-bottom: 8px;
}

.info-content ol li::before {
    content: '(' counter(item) ')';
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact-section {
    background: var(--white);
    padding: 100px 5%;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: var(--text-dark);
}

.contact-form {
    margin-top: 50px;
}

.form-required-note {
    font-size: clamp(12px, 1.8vw, 14px);
    color: var(--text-light);
    margin-top: 14px;
    margin-bottom: 22px;
    letter-spacing: 0.03em;
}

.required-mark {
    color: var(--primary-green);
    font-size: 0.88em;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.form-group {
    margin-bottom: 35px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.3s; }
.form-group:nth-child(2) { animation-delay: 0.4s; }
.form-group:nth-child(3) { animation-delay: 0.5s; }
.form-group:nth-child(4) { animation-delay: 0.6s; }
.form-group:nth-child(5) { animation-delay: 0.7s; }
.form-group:nth-child(6) { animation-delay: 0.8s; }

.form-label {
    display: block;
    font-size: clamp(13px, 2vw, 15px);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #d0d0d0;
    background: var(--light-bg);
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(14px, 2vw, 16px);
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(90, 123, 99, 0.1);
}

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

.submit-button {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    padding: 18px 60px;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(14px, 2vw, 16px);
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.4s ease;
    display: block;
    margin: 50px auto 0;
}

.submit-button:hover {
    background: var(--text-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 80px 5% 30px;
    text-align: center;
}

.footer-logo {
    max-width: 150px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.footer-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-text {
    font-size: clamp(11px, 1.8vw, 13px);
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
}

/* Status Modal */
.status-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.status-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.status-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(61, 83, 64, 0.32);
}

.status-modal__dialog {
    position: relative;
    width: min(520px, 100%);
    background: linear-gradient(180deg, #ffffff 0%, #f5f9f5 100%);
    border: 1px solid rgba(84, 136, 90, 0.25);
    border-radius: 16px;
    padding: 28px 26px 24px;
    box-shadow: 0 20px 45px rgba(44, 60, 47, 0.2);
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.status-modal.is-open .status-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.status-modal__badge {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(84, 136, 90, 0.12);
    color: var(--primary-green);
    margin-bottom: 12px;
}

.status-modal__title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.4;
    color: var(--dark-green);
    margin-bottom: 10px;
}

.status-modal__message {
    font-size: clamp(14px, 2.2vw, 16px);
    line-height: 1.8;
    color: var(--text-dark);
}

.status-modal__button {
    margin-top: 22px;
    background: var(--primary-green);
    color: var(--white);
    border: 1px solid var(--primary-green);
    padding: 10px 24px;
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.status-modal__button:hover {
    background: var(--dark-green);
    box-shadow: 0 8px 20px rgba(61, 83, 64, 0.22);
    transform: translateY(-1px);
}

.status-modal.is-error .status-modal__badge {
    background: rgba(170, 106, 79, 0.12);
    color: #8f4e35;
}

.status-modal.is-error .status-modal__dialog {
    border-color: rgba(143, 78, 53, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #fdf8f6 100%);
}

.status-modal.is-error .status-modal__button {
    background: #8f4e35;
    border-color: #8f4e35;
}

.status-modal.is-error .status-modal__button:hover {
    background: #77412c;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .header {
        padding: 50px 0;
    }

    .hero {
        height: 50vh;
        min-height: 350px;
        max-height: 600px;
    }

    .message-section {
        padding: 80px 5%;
    }

    .company-section,
    .contact-section {
        padding: 70px 5%;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header {
        padding: 40px 0;
    }

    .logo-container {
        max-width: 150px;
    }

    .hero {
        height: 40vh;
        min-height: 300px;
        max-height: 450px;
    }


    .message-section {
        padding: 60px 5%;
    }

    .message-title {
        margin-bottom: 40px;
    }

    .message-title::after {
        bottom: -15px;
        width: 40px;
    }

    .company-section,
    .contact-section {
        padding: 60px 5%;
    }

    .section-title {
        margin-bottom: 10px;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .info-row {
        padding: 15px 0;
        gap: 8px;
    }

    .submit-button {
        padding: 15px 40px;
        width: 100%;
    }

    .footer {
        padding: 60px 5% 25px;
    }

    .footer-logo {
        max-width: 120px;
        margin-bottom: 30px;
    }

    .status-modal__dialog {
        padding: 24px 20px 20px;
    }

    .status-modal__button {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .message-section {
        padding: 50px 5%;
    }

    .company-section,
    .contact-section {
        padding: 50px 5%;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading animation optimization */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
