/* header */
#nav-area-fullwidth {
    align-items: center;
}

#nav-area-fullwidth .logo img {
    height: auto;
    width: 50%;
    margin-left: 0;
    max-width: 240px;
}

/* loading logo */
.loading-screen {
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    max-width: 454px;
    width: 80%;
}

.loading-logo {
    width: 100%;
    height: auto;
    animation: fadeIn 1.5s ease-in-out forwards;
    animation-delay: 0.5s;
}

/* --- スライドショー --- */

body {
    overflow-x: hidden; /* topのみ横スクロールを排除 */
}

.slideshow-section {
    width: 100%;
    overflow: hidden;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    padding: 0 0 60px 0;
}
.slideshow-section .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.slideshow-container {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 5 / 2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.8s ease-in-out;
    display: block;
}

.slide.active {
    transform: translateX(0);
    z-index: 1;
}

.slide.slide-out {
    transform: translateX(-100%);
    z-index: 0;
}

.slide-pc {
    display: block;
}
.slide-mobile {
    display: none !important;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    width: 100%;
    aspect-ratio: 5 / 2;
}
.grid-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    transition: transform 0.3s ease;
}
.grid-item:hover {
    transform: scale(1.005);
    z-index: 1;
}
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.no-image {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

@media screen and (max-width: 1023px) {
    .slideshow-container {
        aspect-ratio: 2 / 3;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        aspect-ratio: 2 / 3;
    }

    .slide-pc {
        display: none !important;
    }

    .slide-mobile {
        display: block !important;
    }
}

/* title */
.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.section-title h2 {
    color: #333;
    margin-bottom: 0;
    position: relative;
    width: 100%;
}

.section-title h2::before {
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    font-size: 60px;
    z-index: -1;
    color: rgba(186, 186, 234, 0.1);
}

.section-title span {
    color: #0000cc;
}

.section-title div {
    border-bottom: 3px solid;
    padding: 0 6em .75em 6em;
    font-weight: 500;
}

/* --- About Us --- */
.about-us-section {
    padding: 60px 0;
}

.about-us-section::before,
.about-us-section::after {
    content: "";
    display: block;
    height: 50px;
    width: 0;
    transition: width 1s ease-out;
}

.about-us-section.is-visible::before,
.about-us-section.is-visible::after {
    width: 85%;
}

.about-us-section::before {
    border-top: 2px solid #a4a4a4;
    margin-left: 15px;
}

.about-us-section::after {
    border-bottom: 2px solid #a4a4a4;
    margin: auto 15px 0 auto;
}

.about-us-container {
    text-align: center;
    font-size: 1.5em;

    background: url(http://bransic.net/wp-content/uploads/2025/10/bransic_logo_透過.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.9);
    background-blend-mode: lighten;
}

.about-us-text-wrapper__title {
    font-size: 1.3em;
    font-weight: 500;
    letter-spacing: .2em;
}

.about-us-container p {
    text-align: center;
}

/* Service Section Layout */
.service-section {
    padding: 60px 0;
}

.service-section .section-title h2::before {
    content: "Service";
}

.service-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding: 0 24px;
}

.service-list:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

.service-item {
    width: 33%;
    display: block;
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s ease;
    text-align: center;
}

.service-item:hover {
    opacity: 0.7;
}

.service-item-image {
    aspect-ratio: 16 / 10;
    margin-bottom: 16px;
}

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

.service-item-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* --- Information --- */
.information-section {
    padding: 60px 0;
}

.information-section .section-title h2::before {
    content: "Information";
}

.information-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.information-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #e0e0e0;
}

.information-item:last-child {
    border-bottom: 0;
}

.item-thumbnail a {
    display: block;
}

.item-thumbnail img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.item-content {
    flex: 1;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.item-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.item-categories a {
    background-color: #0000cc;
    color: #ffffff;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.item-categories a:hover {
    opacity: 0.65;
}

.item-date {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.item-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.5;
}

.item-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.item-title a:hover {
    opacity: 0.65;
}

.more-btn {
    margin: 25px 0;
}

.more-btn a {
    text-align: center;
    width: 150px;
    background-color: #0000cc;
    color: #fff;
    padding: 20px;
    font-size: 1.5em;
    font-weight: 500;
    margin: 0 auto;
}

.more-btn a:hover {
    opacity: 0.65;
}


@media screen and (max-width: 1279.98px) {
    .information-item {
        width: 95%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 1023.98px) {
    #nav-area-fullwidth .logo img {
        max-width: 160px;
    }
    .menu-trigger {
        top: 32px !important;
    }

    .about-us-image-wrapper,
    .about-us-text-wrapper {
        flex-basis: 100%;
        width: 100%;
    }

    .about-us-image-wrapper img {
        margin-right: auto;
        width: 100%;
    }

    .about-us-text-wrapper {
        margin: 0;
        padding: 0;
    }

    .about-us-text-wrapper p {
        padding: 5%;
        margin-bottom: 0;
    }

    .service-list {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 40px;
    }
}

@media screen and (max-width: 600px) {
    .service-list {
        flex-direction: column;
    }

    .service-item {
        width: 75%;
        margin: 0 auto;
    }

    .about-us-text-wrapper__title {
        font-size: 1.15em;
    }

    .about-us-container {
        width: 95%;
        margin: 0 auto;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
