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

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

body {
    font-family: 'Noto Sans JP', 'Yu Mincho', 'Hiragino Mincho Pro', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
#header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
}

.menu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    background: #226D06;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: calc(infinity);
    color: #fff;
}

.menu-toggle:hover {
    background: #333;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 35px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    rotate: 45deg;
    translate: 0px 10px;
}

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

.menu-toggle.active .hamburger span:nth-child(3) {
    rotate: -45deg;
    translate: 0px -8px;
}

.menu-text {
    font-size: 12px;
}

.navigation {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 80px;
}

.navigation.active {
    right: 0;
}

.nav-list {
    list-style: none;
    padding: 20px;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f5f5f5;
    padding-left: 30px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 320px;
    height: 50dvh;
    overflow: hidden;
}

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

.hero-content {
    position: absolute;
    /* top: 50%; */
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    text-align: center;
    z-index: 10;

    inset: 0;
    padding: 2em;
    display: grid;
    place-items: center;
}

.hero-title {
    font-family: 'Yu Mincho', 'Hiragino Mincho Pro', serif;
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

/* Lead Section */
.lead {
    padding: 80px 0;
    overflow: hidden;
}

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

.lead-text p {
    font-family: 'Yu Mincho', 'Hiragino Mincho Pro', serif;
    font-size: 2rem;
    color: #000;
    line-height: 2;
}

/* Carousel */
.carousel-wrapper {
}

.carousel {
    padding-inline: 60px;
}

.carousel-inner {
}

.carousel-track {
}

.carousel-item {
    padding-inline: 10px;
}

.carousel-item.clone {
    pointer-events: none;
}

.carousel-item img {
    width: 100%;
    height: auto;
}

.slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ccc;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0;
    z-index: 10;
}
.slick-arrow {
    position: absolute;
    top: 50%;
    /* translate: 0% -50%; */
    z-index: calc(infinity);
    font-size: 0;
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    appearance: none;
    border: none;
    background: #ccc;
    padding: 0;
    cursor: pointer;
    &::before {
        display: grid;
        place-items: center;
        font-size: 20px;
        font-weight: bold;
        color: #666;
        border-radius: 100vmax;
        height: 2.5em;
        width: 2.5em;
    }
}
.slick-prev {
    /* left: max(calc((100dvw - var(--bp-xl)) / 2), calc(var(--gap) * 2)); */
    left: -50px;
    &::before {
        content: "\f104";
    }
}
.slick-next {
    /* right: max(calc((100dvw - var(--bp-xl)) / 2), calc(var(--gap) * 2)); */
    right: -50px;
    &::before {
        content: "\f105";
    }
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #fff;
}

.contents {
    padding: 80px 0 0;
    background: #fff url("../img/background/bg_contents.webp") no-repeat center 0;
    background-size: contain;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    font-family: 'Yu Mincho', 'Hiragino Mincho Pro', serif;
}
.contents-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #226D06;
}
/* About Section */
.about {
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 20px 40px;
    max-width: 1000px;
    margin: 0 auto;
}


.company-info {
    margin-top: 40px;
}


.info-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.info-table th,
.info-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.info-table th {
    font-weight: 700;
    width: 30%;
}

.info-table td {
    width: 70%;
}

/* Location Section */
.location {
    padding: 80px 0 20px;
    background: #fff;
}
.location .container {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.map-container {
    width: 100%;
    height: 450px;
}

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

/* Links Section */
.links {
    padding: 80px 0;
    background: #fff;
}

.link-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.link-button {
    display: block;
    padding: 20px;
    background: #fff;
    border: 1px solid #999;
    color: #333;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-button:hover {
    background: #226D06;
    border-color: #226D06;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-info {
    max-width: 600px;
    width: fit-content;
    margin: 0 auto;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 15px;
    font-size: 2rem;
    font-weight: 700;
}

.contact-item {
    gap: 15px;
    font-size: 2rem;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    align-items: center;
}

.contact-item i {
    font-size: 2rem;
}

.contact-label {
    font-weight: 700;
    min-width: 60px;
    margin-inline-end: 15px;
}

/* Footer */
.footer {
    background: #fff url("../img/background/bg_footer.webp") no-repeat center 0;
    background-size: contain;
    padding: calc(43dvw + 80px) 0 80px;
    text-align: center;
}

.footer p {
    margin: 5px 0;
}

.footer-company {
    font-size: 2rem;
    font-weight: 700;
}

.footer-copyright {
    margin-top: 20px;
    font-size: 0.875rem;
    color: #666;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* Focus indicators */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #226D06;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .carousel-prev,
    .carousel-next {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .link-button {
        border-color: #000;
        background: #fff;
        color: #000;
    }
    
    .link-button:hover {
        background: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel-track {
        transition: none;
    }
}