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

body {
    font-family: 'Yusei Magic', sans-serif;
    background-color: #FDFCFB;
    color: #0A0A0A;
    line-height: 1.5;
}

/* Header */
.header {
    background-color: #FFFDFB;
    border-bottom: 1px solid #F9F4EE;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
    padding: 0 72.5px 1px;
    height: 122px;
}

.header-container {
    max-width: 1169px;
    margin: 0 auto;
    padding: 0 16px;
    height: 121px;
    display: flex;
    flex-direction: column;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding-top: 16px;
    position: relative;
}

.logo-link {
    display: block;
}

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

.address {
    height: 40px;
    width: auto;
    margin-top: 14px;
}

.navigation {
    border-top: 1px solid #E5E7EB;
    padding-top: 1px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    list-style: none;
    height: 100%;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: #0A0A0A;
    font-size: 14px;
    line-height: 1.4285714285714286em;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
    height: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #E45A24;
    border-bottom-color: #E45A24;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #0A0A0A;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Main Content */
.main-content {
    min-height: 929px;
    margin-top: -10px;
}

/* Hero Section */
.hero-section {
    padding: 32px 109px 0;
    margin-bottom: 0;
}

.hero-carousel {
    max-width: 1370px;
    margin: 0 auto;
    position: relative;
    height: 568px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-image-item.active {
    opacity: 1;
}

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

.hero-text-image {
    position: absolute;
    top: 63.88px;
    right: 176px;
    width: 384px;
    height: 440.25px;
    z-index: 10;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.15));
}

.hero-text-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0px 8px 10px -6px rgba(0, 0, 0, 0.1), 0px 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s;
}

.hero-arrow:hover {
    opacity: 0.9;
}

.hero-arrow-left {
    left: 24px;
}

.hero-arrow-right {
    right: 24px;
}

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

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-indicator.active {
    background-color: #FFFFFF;
    width: 32px;
    border-radius: 6px;
}

/* Section Styles */
.about-section,
.facility-section,
.blog-section,
.news-section {
    padding: 80px 109px 0;
}

.about-section {
    background: linear-gradient(180deg, rgba(255, 250, 246, 1) 0%, rgba(255, 246, 240, 1) 100%);
    padding-bottom: 20px;
}

.facility-section {
    background: linear-gradient(180deg, rgba(250, 248, 244, 1) 0%, rgba(245, 242, 237, 1) 100%);
    padding-bottom: 20px;
}

.blog-section {
    background: linear-gradient(180deg, rgba(255, 252, 248, 1) 0%, rgba(255, 250, 244, 1) 100%);
    padding-bottom: 20px;
}

.news-section {
    background: linear-gradient(180deg, rgba(250, 249, 246, 1) 0%, rgba(245, 243, 238, 1) 100%);
    padding-bottom: 30px;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    position: relative;
    height: 60px;
    margin-bottom: 97px;
}

.decorative-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    height: 4px;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.4;
}

.dot-orange {
    background-color: #E45A24;
}

.dot-green {
    background-color: #009A74;
}

.dot-pink {
    background-color: #F8A5C2;
}

.decorative-circle {
    position: absolute;
    left: 50%;
    top: -6px; /* 元の位置 -16px から 20px 下げた位置、さらに10px上げた位置 */
    transform: translateX(-50%);
    width: 128px;
    height: 128px;
    background-color: rgba(228, 90, 36, 0.05);
    border-radius: 50%;
    filter: blur(80px);
}

.decorative-elements {
    position: absolute;
    left: 0;
    top: 10px; /* 元の位置 0px から 20px 下げた位置、さらに10px上げた位置 */
    right: 0;
    height: 50px;
}

.deco-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
}

.deco-element.deco-orange {
    width: 12px;
    height: 12px;
    background-color: #E45A24;
    left: calc(41% - 6px);
    top: 14px; /* 元の位置 4px から 20px 下げた位置、さらに10px上げた位置 */
    opacity: 0.3;
}

.deco-element.deco-green {
    width: 8px;
    height: 8px;
    background-color: #009A74;
    left: calc(57% - 4px);
    top: 22px; /* 元の位置 12px から 20px 下げた位置、さらに10px上げた位置 */
}

.deco-element.deco-pink {
    width: 16px;
    height: 16px;
    background-color: #F8A5C2;
    left: calc(61% - 8px);
    top: 6px; /* 元の位置 -4px から 20px 下げた位置、さらに10px上げた位置 */
    opacity: 0.2;
}

.section-title {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    font-size: 20px;
    line-height: 1.5em;
    color: #E45A24;
    text-align: center;
    border-bottom: 2px solid #E45A24;
    padding: 0 16px 12px;
    white-space: nowrap;
}

/* About Section */
.about-gallery {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-item {
    flex: 0 0 calc((100% - 120px) / 6);
    max-width: 194.66px;
    height: 145.98px;
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-description {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 auto 48px;
    max-width: 768px;
    text-align: center;
}

.description-paragraph {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.description-paragraph p {
    font-size: 16px;
    line-height: 1.625em;
    color: #364153;
    margin: 0;
}

.about-link-wrapper,
.facility-link-wrapper,
.blog-link-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    margin-bottom: 20px;
}

.about-link-button,
.facility-link-button,
.blog-link-button,
.news-link-button,
.recruitment-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background-color: #009A74;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5em;
    border-radius: 9999px;
    box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s;
}

.about-link-button:hover,
.facility-link-button:hover,
.blog-link-button:hover,
.news-link-button:hover,
.recruitment-link-button:hover {
    opacity: 0.9;
}

/* Facility Section */
.facility-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.facility-card {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #F0EBE3;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.15), 0px 8px 12px -1px rgba(0, 0, 0, 0.15);
}

.facility-card-image {
    width: 100%;
    height: 178.88px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(232, 244, 240, 1) 0%, rgba(0, 154, 116, 1) 100%);
}

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

.facility-card-title {
    font-size: 18px;
    line-height: 1.5em;
    color: #1E2939;
    text-align: center;
    padding: 17px;
    margin: 0;
    font-weight: 400;
}

/* Blog Section */
.blog-articles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.blog-article {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #F5F0E8;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-article:hover {
    transform: translateY(-4px);
    box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.15), 0px 8px 12px -1px rgba(0, 0, 0, 0.15);
}

.blog-article-image {
    width: 100%;
    height: 194.66px;
    overflow: hidden;
}

.blog-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-article-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.blog-category {
    display: inline-block;
    padding: 4px 8px;
    background-color: #D658AA;
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3333333333333333em;
    width: fit-content;
}

.blog-article-title {
    font-size: 16px;
    line-height: 1.5em;
    color: #1E2939;
    margin: 0;
    font-weight: 400;
}

.blog-article-date {
    font-size: 12px;
    line-height: 1.3333333333333333em;
    color: #6A7282;
    margin: 0;
}

.blog-article-excerpt {
    font-size: 14px;
    line-height: 1.4285714285714286em;
    color: #4A5565;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Section */
.news-content-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.news-box,
.recruitment-box {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #E8DCC8;
    border-radius: 14px;
    box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 25px;
    min-height: 610px;
    display: flex;
    flex-direction: column;
}

.news-box .section-header,
.recruitment-box .section-header {
    margin-bottom: 20px;
}

.news-list,
.recruitment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    margin-bottom: 16px;
}

.news-item,
.recruitment-item {
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 16px;
}

.news-item:last-child,
.recruitment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-meta,
.recruitment-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.news-date,
.recruitment-date {
    font-size: 14px;
    line-height: 1.4285714285714286em;
    color: #4A5565;
}

.news-tag,
.recruitment-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3333333333333333em;
    font-weight: 400;
}

.news-tag-bidding {
    background-color: #AC0258;
    color: #FFFFFF;
}

.news-tag-notice {
    background-color: #C7E008;
    color: #000000;
}

.recruitment-tag {
    background-color: #004793;
    color: #FFFFFF;
}

.news-title,
.recruitment-title {
    font-size: 14px;
    line-height: 1.4285714285714286em;
    color: #1E2939;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: color 0.3s;
}

.news-title:hover,
.recruitment-title:hover {
    color: #E45A24;
}

.news-link-wrapper,
.recruitment-link-wrapper {
    display: flex;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, rgba(109, 94, 80, 1) 0%, rgba(90, 77, 64, 1) 100%);
    padding: 48px 72.5px 0;
    height: 350.5px;
}

.footer-container {
    max-width: 1169px;
    margin: 0 auto;
    height: 254.5px;
    position: relative;
}

.footer-content {
    height: 100%;
    position: relative;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 896px;
    max-width: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    height: 117.5px;
    align-items: center;
}

.footer-org-name {
    font-size: 16px;
    line-height: 1.5em;
    color: #99A1AF;
    text-align: center;
    font-weight: 400;
    width: 100%;
}

.footer-facility-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 16px;
    line-height: 1.5em;
    font-weight: 400;
    height: 24px;
    width: 100%;
}

.facility-type {
    color: #99A1AF;
    margin-right: 0;
}

.facility-name {
    color: #FFFFFF;
    margin-left: 0;
}

.footer-address {
    margin-top: 8px;
    width: 100%;
}

.footer-address p {
    font-size: 14px;
    line-height: 1.625em;
    color: #D1D5DC;
    text-align: center;
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 16px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 992px;
    max-width: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 149.5px;
    min-height: 20px;
    margin: 0;
}

.footer-nav li {
    height: 20px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.footer-nav a {
    color: #D1D5DC;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4285714285714286em;
    transition: color 0.3s;
    display: inline-block;
}

.footer-nav a:hover {
    color: #FFFFFF;
}

.footer-copyright {
    border-top: 1px solid #7A6B5B;
    padding-top: 33px;
    text-align: center;
    width: 992px;
    max-width: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 201.5px;
    height: 53px;
    margin: 0;
}

.footer-copyright p {
    font-size: 14px;
    line-height: 1.4285714285714286em;
    color: #D1D5DC;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section,
    .about-section,
    .facility-section,
    .blog-section,
    .news-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .facility-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-articles {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .header-container {
        padding: 0 12px;
    }

    .header-top {
        height: auto;
        min-height: 80px;
        padding: 16px 0;
    }

    .address {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: #FFFDFB;
        border-top: none;
        border-left: 1px solid #E5E7EB;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }

    .navigation.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        height: auto;
    }

    .nav-item {
        width: 100%;
        height: auto;
        border-bottom: 1px solid #E5E7EB;
    }

    .nav-link {
        width: 100%;
        padding: 16px;
        border-bottom: none;
        justify-content: flex-start;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(228, 90, 36, 0.1);
        border-bottom: none;
        color: #E45A24;
    }

    .hero-section {
        padding: 16px 12px 0;
    }

    .hero-carousel {
        height: 400px;
    }

    .hero-text-image {
        width: 280px;
        height: 320px;
        top: 40px;
        right: 20px;
        transform: translateX(-10px);
    }

    .hero-arrow-left {
        left: 10px;
    }

    .hero-arrow-right {
        right: 10px;
    }

    .about-section,
    .facility-section,
    .blog-section {
        padding: 48px 12px 20px;
    }

    .news-section {
        padding: 48px 12px 30px;
    }

    .facility-cards {
        grid-template-columns: 1fr;
    }

    .blog-articles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 12px;
        height: auto;
        min-height: 80px;
    }

    .header-container {
        height: auto;
        min-height: 80px;
    }

    .hero-carousel {
        height: 300px;
    }

    .hero-text-image {
        width: 200px;
        height: 230px;
        top: 20px;
        right: 20px;
        transform: translateX(-10px);
    }

    .hero-arrow {
        width: 36px;
        height: 36px;
    }

    .hero-arrow-left {
        left: 10px;
    }

    .hero-arrow-right {
        right: 10px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 18px;
    }

    .about-gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .gallery-item {
        max-width: 100%;
        height: 120px;
    }

    .blog-articles {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 32px 12px 0;
        height: auto;
        min-height: 350.5px;
    }

    .footer-container {
        height: auto;
        min-height: 254.5px;
    }

    .footer-info {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        align-items: center;
    }

    .footer-nav {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 24px auto 0;
        padding: 0 12px;
        justify-content: center;
        align-items: center;
        gap: 12px;
        min-height: auto;
    }

    .footer-nav li {
        height: auto;
    }

    .footer-copyright {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 24px auto 0;
        padding: 24px 12px 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 12px 0;
    }

    .logo {
        height: 36px;
    }

    .hero-carousel {
        height: 250px;
    }

    .about-gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .section-title {
        font-size: 16px;
    }
}

