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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    min-height: 100vh;
}

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

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

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

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

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(8px);
}

@supports (backdrop-filter: blur(8px)) {
    .header {
        background-color: rgba(255, 255, 255, 0.6);
    }
}

.header-container {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg {
    height: 2.5rem;
    width: auto;
}

.nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    color: #4b5563;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ea580c;
}

/* Mobile Menu */
.mobile-menu-wrapper {
    position: relative;
}

@media (min-width: 768px) {
    .mobile-menu-wrapper {
        display: none;
    }
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1f2937;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    flex-direction: column;
    padding: 0.5rem 0;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: #4b5563;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: #fff7ed;
    color: #ea580c;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

@media (min-width: 640px) {
    .hero {
        padding: 8rem 0;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

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

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

.hero-subtitle {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hidden-sm {
    display: none;
}

@media (min-width: 640px) {
    .hidden-sm {
        display: inline;
    }
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #ea580c;
    color: #ffffff;
    border-color: transparent;
}

.btn-primary:hover {
    background-color: #c2410c;
}

.btn-secondary {
    background-color: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background-color: #f9fafb;
}

.btn-submit {
    gap: 0.5rem;
}

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

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: #f9fafb;
}

@media (min-width: 640px) {
    .services {
        padding: 6rem 0;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
}

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

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

.service-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

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

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.service-description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    flex-grow: 1;
}

.service-link {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ea580c;
}

/* Company Section */
.company {
    padding: 4rem 0;
    background-color: #ffffff;
}

@media (min-width: 640px) {
    .company {
        padding: 6rem 0;
    }
}

.company-card {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.company-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
    .company-row {
        flex-direction: row;
        align-items: flex-start;
    }
}

.company-row:not(:first-child) {
    padding-top: 1.5rem;
}

.company-row.last {
    border-bottom: none;
}

.company-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .company-label {
        width: 12rem;
    }
}

.company-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #ea580c;
}

.company-label span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.company-value {
    flex: 1;
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: #ffffff;
}

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

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

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

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

.contact-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #ffedd5;
    margin: 0 auto 1rem;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #ea580c;
}

.contact-info-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
}

.contact-info-content {
    font-size: 1rem;
    color: #374151;
    white-space: pre-line;
}

.contact-info-link {
    font-size: 1rem;
    color: #ea580c;
    transition: color 0.2s ease;
}

.contact-info-link:hover {
    color: #c2410c;
}

/* Contact Form */
.contact-form-card {
    max-width: 56rem;
    margin: 2rem auto 0;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.required {
    color: #ef4444;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px #ea580c;
}

.form-textarea {
    resize: none;
}

.form-error {
    font-size: 0.875rem;
    color: #ef4444;
    margin-top: 0.25rem;
    display: none;
}

.form-error.show {
    display: block;
}

.form-submit {
    text-align: center;
}

.form-success {
    padding: 1rem;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.form-success p {
    color: #065f46;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #111827;
    color: #ffffff;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo svg {
    height: 2.5rem;
    width: auto;
}

.footer-address,
.footer-contact {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1f2937;
    width: 100%;
}

.footer-copyright p {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Service Detail Page */
.service-detail {
    padding: 4rem 0;
    background-color: #ffffff;
}

@media (min-width: 640px) {
    .service-detail {
        padding: 6rem 0;
    }
}

.service-detail-container {
    max-width: 64rem;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ea580c;
    transition: color 0.2s ease;
    margin-bottom: 2rem;
}

.back-link:hover {
    color: #c2410c;
}

.back-icon {
    width: 1rem;
    height: 1rem;
}

.service-hero-image {
    width: 100%;
    height: 16rem;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .service-hero-image {
        height: 24rem;
    }
}

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

.service-detail-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .service-detail-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .service-detail-title {
        font-size: 3rem;
    }
}

.service-detail-description {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 3rem;
}

.service-features-card,
.service-benefits-card {
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.service-benefits-card {
    background: linear-gradient(to bottom right, #fff7ed, #ffedd5);
}

.service-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

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

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #ea580c;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.feature-text {
    color: #374151;
}

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

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.benefit-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #ea580c;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.benefit-text {
    color: #374151;
}

.service-cta {
    margin-top: 3rem;
    text-align: center;
}

.service-cta-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.service-cta-text {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

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

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

/* Not Found */
.service-not-found {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.not-found-content {
    text-align: center;
}

.not-found-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}
