/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-600: #059669;
    --green-700: #047857;
    --green-800: #065f46;
    --green-900: #064e3b;
    --green-50: #ecfdf5;
    --green-100: #d1fae5;
    --green-200: #a7f3d0;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --red-500: #ef4444;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-sm {
    max-width: 896px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Layout */
.min-h-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

/* Header */
.header {
    background-color: var(--white);
    color: var(--green-700);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--green-600);
}

.header-inner {
    padding: 1rem;
}

.logo {
    display: inline-block;
    margin-bottom: 1rem;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo svg {
    height: 48px;
    width: auto;
}

.nav ul {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav a {
    transition: color 0.3s, text-decoration 0.3s;
}

.nav a:hover {
    color: var(--green-600);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--gray-800);
    color: var(--white);
    padding: 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.footer p, .footer-contact-item span {
    font-size: 0.875rem;
    color: #d1d5db;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

.footer-contact-item a {
    color: #d1d5db;
    transition: text-decoration 0.3s;
}

.footer-contact-item a:hover {
    text-decoration: underline;
}

.footer-contact-item svg {
    width: 1rem;
    height: 1rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(to right, var(--green-600), var(--green-800));
    color: var(--white);
    padding: 8rem 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(6, 78, 59, 0.7);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .hero h2 {
        font-size: 3rem;
    }
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-white {
    background-color: var(--white);
    color: var(--green-600);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: var(--green-50);
}

.btn-green {
    background-color: var(--green-600);
    color: var(--white);
}

.btn-green:hover {
    background-color: var(--green-700);
}

.btn-gray {
    background-color: var(--gray-600);
    color: var(--white);
}

.btn-gray:hover {
    background-color: var(--gray-700);
}

.btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Section */
.section {
    padding: 4rem 0;
}

.section-gray {
    background-color: var(--gray-50);
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Service Card */
.service-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
    display: block;
}

.service-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-card-image {
    width: 100%;
    height: 12rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-600);
}

/* Service Card Large */
.service-card-lg {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s;
    display: block;
}

.service-card-lg:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-card-lg-image {
    width: 100%;
    height: 16rem;
}

.service-card-lg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-lg-content {
    padding: 1.5rem;
}

.service-card-lg h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.service-card-lg p {
    color: var(--gray-600);
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-buttons .btn {
    padding: 0.75rem 2rem;
}

/* Company Profile */
.profile-card {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    background-color: var(--green-600);
    color: var(--white);
    padding: 1rem 1.5rem;
}

.profile-header h2 {
    font-size: 1.25rem;
    font-weight: bold;
}

.profile-row {
    display: flex;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    width: 33.333%;
    color: var(--gray-600);
    font-weight: bold;
}

.profile-value {
    width: 66.667%;
}

.profile-value ol {
    list-style-type: decimal;
    list-style-position: inside;
}

.profile-value ol li {
    margin-bottom: 0.5rem;
}

/* Mission Box */
.mission-box {
    margin-top: 3rem;
    background-color: var(--green-50);
    border: 1px solid var(--green-200);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.mission-box h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--green-900);
}

.mission-box p {
    color: var(--gray-700);
    line-height: 1.8;
}

/* Message Page */
.message-card {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

@media (min-width: 768px) {
    .message-card {
        padding: 3rem;
    }
}

.message-content {
    color: var(--gray-700);
    line-height: 1.8;
}

.message-content p {
    margin-bottom: 1.5rem;
}

.message-signature {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: right;
}

.message-signature p:first-child {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.message-signature p:last-child {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--gray-900);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-card {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.contact-info-card h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--green-100);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--green-600);
}

.contact-info-item h3 {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.contact-info-item a {
    color: var(--green-600);
    font-size: 1.125rem;
    transition: text-decoration 0.3s;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-info-item p {
    color: var(--gray-700);
}

.contact-info-item .small-text {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Contact Notice */
.contact-notice {
    background-color: var(--green-50);
    border: 1px solid var(--green-200);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.contact-notice h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--green-900);
}

.contact-notice p {
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* Contact Form */
.contact-form-card {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.contact-form-card h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

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

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-label .required {
    color: var(--red-500);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: outline 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

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

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Service Detail Page */
.service-detail-image {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.service-detail-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.service-detail-content {
    color: var(--gray-600);
    line-height: 1.8;
}

.service-detail-content p {
    margin-bottom: 1.5rem;
}

.service-detail-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.service-detail-content ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

.service-detail-content ul li {
    margin-bottom: 0.75rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--green-700);
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        margin-bottom: 0;
    }
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.alert-success {
    background-color: var(--green-100);
    color: var(--green-800);
    border: 1px solid var(--green-200);
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert.show {
    display: block;
}

/* Loading */
.loading {
    display: none;
}

.loading.show {
    display: inline-block;
}

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
