body {
    overflow-x: hidden;
}

section {
    background-color: #1a1d20;
    margin-bottom: 30px;
}

.navbar-brand img {
    width: 80%;
    height: auto;
}

footer {
    padding-top: 40px;
    padding-bottom: 20px;
    background-color: #1a1d20;
    color: #ffffff;
}

footer a {
    color: #ffffff;
}

footer h3 {
    font-size: 2rem;
}

footer i {
    font-size: 5rem;
}

/* Loader関連 */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* サイトの背景色に合わせる */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-bar {
    width: 0;
    height: 2px;
    background-color: #333; /* アクセントカラー */
    margin-top: 10px;
}

/* モバイルメニュー関連 */
.hamburger-overlay {
    display: none;
    position: fixed;
    top: 12px;
    right: 20px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
}

@media only screen and (max-width: 599px) {
    .hamburger-overlay {
        top: 7px;
    }
}

@media only screen and (max-width: 991px) {
    .hamburger-overlay {
        display: block;
    }
}

.hamburger-overlay__line {
    position: absolute;
    left: 11px;
    width: 26px;
    height: 2px;
    background-color: #333;
    transition: all .6s;
}

.hamburger-overlay__line:nth-of-type(1) { top: 14px; }
.hamburger-overlay__line:nth-of-type(2) { top: 23px; }
.hamburger-overlay__line:nth-of-type(3) { top: 32px; }

.hamburger-overlay.active .hamburger-overlay__line {
    background-color: #fff;
}

.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(1) {
    transform: translateY(9px) rotate(-45deg);
}
.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(2) {
    opacity: 0;
}
.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(3) {
    transform: translateY(-9px) rotate(45deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    visibility: hidden;
    opacity: 0;
    transition: all .6s;
    z-index: 900;
}

.nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.overlay-menu__logo {
    position: absolute;
    top:15px;
    left: 7px;
}

.overlay-menu__logo img {
    width: 80%;
}

.nav-overlay__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    text-align: left;
}

.nav-overlay__list {
    margin: 0;
    padding: 0 0 0 10rem;
    list-style: none;
}

.nav-overlay__item {
    opacity: 0;
    transform: translateY(20px);
    transition: all .6s;
}

.nav-overlay__item hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-right: 40px;
    color: #ffffff;
    opacity: 1;
}

.nav-overlay__item span {
    font-size: 24px;
}

.nav-overlay__item i {
    font-size: 36px;
}

.nav-overlay.active .nav-overlay__item {
    opacity: 1;
    transform: translateY(0);
}

.nav-overlay.active .nav-overlay__item:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.active .nav-overlay__item:nth-child(2) { transition-delay: 0.15s; }
.nav-overlay.active .nav-overlay__item:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay.active .nav-overlay__item:nth-child(4) { transition-delay: 0.25s; }
.nav-overlay.active .nav-overlay__item:nth-child(5) { transition-delay: 0.3s; }
.nav-overlay.active .nav-overlay__item:nth-child(6) { transition-delay: 0.35s; }
.nav-overlay.active .nav-overlay__item:nth-child(7) { transition-delay: 0.4s; }
.nav-overlay.active .nav-overlay__item:nth-child(8) { transition-delay: 0.45s; }

.nav-overlay__link {
    display: inline-block;
    padding: 7px;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    transition: color .3s;
}

.nav-overlay__link:hover {
    color: #4a90e2;
}

.page-top {
    position: fixed;
    right: 50px;
    bottom: 60px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}

.page-top a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #222222;
    transition: opacity 0.3s;
}

.page-top a:hover {
    opacity: 0.7;
}

.page-top a i {
    width: 20px;
    height: 20px;
    font-size: 40px;
}

/* ワンページ - トップ部分 */
.company-cover {
    position: absolute;
    z-index: 998;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background-color: #000000;
}

.company-title {
    position: absolute;
    z-index: 999;
    left: 2em;
    top: 80px;
}

.company-title p {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
}

.company-button {
    position: absolute;
    z-index: 999;
    left: 2em;
    bottom: 3rem;
}

.company-button button {
    font-size: 2.5rem;
    font-weight: bold;
    color: #222222;
}

.company-title01,
.company-title02,
.company-title03 {
    /*font-size: clamp(2rem, 8vw, 5rem);*/
    /*font-weight: 700;*/
    /*margin-bottom: 20px;*/
    overflow: hidden;
}

.char {
    display: inline-block;
}

.top-btn {
    background-color: #0171e3;
    border-radius: 50px;
}

.top-btn:hover {
    background-color: #0055b2;
}

/* ワンページ - カテゴリ部分 */
#project-category {
    background-color: #ffffff;
    /*margin-top: 45vh;*/
}

#project-category h2 {
    font-size: 4rem;
    font-weight: bold;
}

#project-category p {
    font-size: 2rem;
    font-weight: bold;
}

#project-category .btn {
    border-radius: 0;
    border: solid 1px;
}

#project-category .category {
    margin-top: 1.5rem;
    padding: 2.5rem;
    min-height: 300px;
    color: #ffffff;
    border-radius: 1.5rem;
}

#project-category .category p {
    text-align: center;
    font-size: clamp(2.1rem, 2vw, 3.6rem);
    white-space: nowrap;
}

#project-category .category hr {
    border: none;
    border-top: 2px solid #ffffff;
    height: 0;
}

#project-category .category div {
    position: absolute;
    bottom: 40px;
}

#project-category .category p,
#project-category .category span,
#project-category .category hr,
#project-category .category div {
    z-index: 1;
}

#project-category .category.life-stay {
    background: url(../img/category001.jpg) center no-repeat #ffffff;
    background-size: cover;
    position: relative;
}

#project-category .category.relaxation-wellness {
    background: url(../img/category002.jpg) center no-repeat #ffffff;
    background-size: cover;
    position: relative;
}

#project-category .category.culture-expression {
    background: url(../img/category003.jpg) center no-repeat #ffffff;
    background-size: cover;
    position: relative;
}

#project-category .category.work-creation {
    background: url(../img/category004.jpg) center no-repeat #ffffff;
    background-size: cover;
    position: relative;
}

#project-category .category.life-stay::before,
#project-category .category.relaxation-wellness::before,
#project-category .category.culture-expression::before,
#project-category .category.work-creation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 1.5rem;
}

@media only screen and (max-width: 576px) {
    /*#project-category {*/
    /*    background-color: #ffffff;*/
    /*    margin-top: 15vh;*/
    /*}*/
}

@media only screen and (max-width: 1199px) {
    #project-category .category p {
        text-align: center;
        font-size: clamp(3.1rem, 2vw, 3.6rem);
        white-space: nowrap;
    }
}

#about {
    position: relative;
    overflow: hidden;
    height: 100vh;
    background: url(../img/works/p006s002.jpg) center no-repeat #ffffff;
    background-size: cover;

    span {
        opacity: 0;
    }

    .parallax-object {
        position: absolute;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        z-index: 1;
    }
}

@media only screen and (max-width: 767px) {
    #about {
        .parallax-title {
            margin-top: 60px;
            margin-bottom: 15px;
        }
    }

}

/* ワンページ - プロジェクト分類：詳細部分 */
#project-detail {
    background-color: #1a1d20;
    margin-top: 100px;
}

#project-detail p {
    font-size: 4rem;
    font-weight: bold;
}

#project-detail div.row > div {
    position: relative;
    background-size: cover;
    width: 100vw;
    height: 75vh;
}

#project-detail .full-hotel {
    background: url(../img/detail001.jpg) center no-repeat #ffffff;
}

#project-detail .full-city {
    background: url(../img/detail002.jpg) center no-repeat #ffffff;
}

#project-detail .full-restaurant {
    background: url(../img/detail003.jpg) center no-repeat #ffffff;
}

#project-detail .detail-content {
    position: absolute;
    top: 40%;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

/* ワンページ - ブログ部分 */
#news {
    background-color: #ffffff;
    margin-top: 60px;
    padding: 60px 20px;

    a {
        color: #888888;
        font-size: 1.1em;
        font-weight: bold;
    }

    a:hover {
        color: #333333;
    }

    a.btn:hover {
        color: #ffffff;
    }

    h2 {
        font-size: 4rem;
        font-weight: bold;
    }

    h5 {
        font-size: 2rem;
        font-weight: bold;
    }

    p {
        font-size: 2rem;
        font-weight: bold;
    }

    .btn {
        padding: 10px 40px;
        border-radius:0;
    }

    .card-body .btn {
        padding: 10px 40px;
        border-radius:0;
        border: #cccccc solid 1px;
        color: #41464b;
        /*background-color: #f2f2f2;*/
    }

    .card-body .btn:hover {
        color: #ffffff;
    }

    .card {
        /*border: #1a1d20 solid 2px;*/
        border-radius: 8px;
    }

    .card img {
        width: 100%;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        object-position: left top;
        border-radius: 8px 8px 0 0;
    }

    .card-body p {
        font-size: 1.5rem;
        font-weight: normal;
    }

    .card-img-top {
        border: #cccccc solid 1px;
        border-radius: 5px;
    }

    .card-title, #news .card-text{
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ワンページ - コンセプト部分 */
#concept {
    background-color: #1a1d20;
    margin-top: 60px;
    padding: 60px 20px;
}

#concept h2 {
    font-size: 4rem;
    font-weight: bold;
}

#concept p {
    font-size: 2rem;
    font-weight: bold;
}

#concept .image-area {
    clip-path: polygon(0 25%, 100% 0, 100% 100%, 0% 100%);
    width: 100vw;
    object-fit: cover;
}

/* ワンページ - コンタクト部分 */
#contact {
    background-color: #ffffff;
    margin-top: 60px;
    padding: 60px 20px;
}

#contact h2 {
    font-size: 4rem;
    font-weight: bold;
}

#contact p {
    font-size: 2rem;
    font-weight: bold;
}

#contact .btn {
    border-radius: 0;
    border: solid 1px;
    font-size: 1.5rem;
}

#contact .image-area {
    position: relative;
    /*width: 500px;*/
    min-height: 250px;
    border-radius: 10%;
    /*mask-image: radial-gradient(rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 60%);*/
}

#contact .image-area img{
    object-fit: contain;
    /*position: absolute;*/
    width: 100%;
    height: 100%;
}

#single_works {
    padding-top: 90px;
    min-height: 150vh;
}

#single_works h2 {
    font-size: 4rem;
}

#single_works .category {
    background-color: #f5f5f5;
    border-radius: 0.5rem;
    white-space: nowrap;
    cursor: pointer;
}

#single_works .category.active {
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

#single_concept {

}

#single_about {
    padding: 90px 20px;
    min-height: 100vh;
}

#single_about h2 {
    font-size: 4rem;
}

#single_about .about-table > div {
    border-bottom: #bbbbbb solid 1px;
    padding-top: 0.3rem;
    padding-bottom: 0.5rem;
}

#single_contact {
    padding-top: 90px;
    min-height: 100vh;
}

#single_contact h2 {
    font-size: 4rem;
}

#single_contact span {
    font-size: 1.3rem;
}

#single_contact input#name,
#single_contact input#phone,
#single_contact input#email,
/*#single_contact select#category,*/
#single_contact textarea#message,
#single_contact input#send-form {
    border-radius: 0;
    border: #999999 solid 1px;
}

#single_contact input#tel,
#single_contact select#category {
    width: 30%;
}

@media only screen and (max-width: 767px) {
    #single_contact input#tel,
    #single_contact select#category {
        width: 50%;
    }
}

#contact_information {
    max-width: 1024px !important;
}

#contact_information h2 {
    font-size: 26px;
}

#contact_information h3 {
    font-size: 20px;
}

#contact_information a, #contact_information span {
    font-size: 16px;
    color: #222222;
}

#contact_information iframe {
    width: 100%;
    border-radius: 1rem;
}

.mkm-preloader-holder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    animation-fill-mode: both;
}

.mkm-preloader-holder img {
    max-height: 20px;
}

#works_detail {
    padding-top: 90px;
    background-color: #ffffff;

    h2 {
        font-size: 4rem;
        font-weight: bold;
    }

    .path-wrapper-top {
        position: relative;
        width: 100%;
        height: 50px;

        .vertical-top-line {
            bottom: 0;
            left: 10px;
            width: 1px;
            height: 25px;
            transform-origin: bottom;
        }

        .horizontal-top-line {
            bottom: 25px;
            left: 10px;
            width: 30px;
            height: 1px;
            transform-origin: left;
        }

    }

    .path-wrapper-bottom {
        position: relative;
        width: 100%;
        height: 50px;

        .vertical-bottom-line {
            top: -15px;
            right: 10px;
            width: 0.5px;
            height: 25px;
            transform-origin: bottom;
        }

        .horizontal-bottom-line {
            top: 9px;
            right: 10.5px;
            width: 29px;
            height: 0.5px;
            transform-origin: left;
        }

    }

    .line {
        position: absolute;
        background-color: #444444;
    }

    .fade-text {
        font-size: 1.3rem;
        font-weight: bold;
        color: #444444;
        opacity: 0;
    }

    .fade-top-text {
        position: absolute;
        bottom: 35%;
        left: 30px;
        opacity: 0;
    }

    .fade-bottom-text {
        position: absolute;
        top: 0;
        right: 70px;
        opacity: 0;
    }

    .grid-thumbnail {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        width: 50%;
        align-content: start;
        line-height: 0;
    }

    .grid-thumbnail .grid-item {
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }

    .grid-thumbnail .grid-item img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
    }

    /* モーダルの基本状態 */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 9999;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: opacity 0.6s ease, visibility 0.6s ease;
    }

    /* 表示時 */
    .modal.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .splide__slide img {
        width: 100%;
        height: 80vh;
        object-fit: contain;
    }

    .modal-close {
        position: absolute;
        top: 20px; right: 20px;
        font-size: 30px; color: white;
        background: none; border: none; cursor: pointer;
        z-index: 10000;
    }

    /* スライド（親）をFlexboxにして中央に寄せる */
    #modal-slider .splide__slide {
        display: flex;
        align-items: center;      /* 上下中央 */
        justify-content: center;   /* 左右中央 */
        height: 100vh;            /* 画面いっぱいの高さにする */
    }

    /* 画像自体のサイズ調整（必要に応じて） */
    #modal-slider .splide__slide img {
        max-height: 90vh;         /* 画面からはみ出さないように */
        max-width: 90vw;
        width: auto;              /* 横幅は自動（アスペクト比維持） */
        height: auto;             /* 高さは自動 */
        object-fit: contain;      /* 全体が見えるように収める */
    }

    /* 矢印ボタンの共通設定 */
    #modal-slider .splide__arrow {
        position: absolute;
        top: 50%;             /* 画面中央に配置 */
        transform: translateY(-50%);
        background: none;     /* 背景を消す（お好みで） */
        opacity: 0.8;
        z-index: 10;
    }

    /* 左矢印を画面の左端に */
    #modal-slider .splide__arrow--prev {
        left: 20px;
    }

    /* 右矢印を画面の右端に */
    #modal-slider .splide__arrow--next {
        right: 20px;
    }

    /* 矢印のアイコン自体のサイズと色 */
    #modal-slider .splide__arrow svg {
        fill: #ffffff;           /* 矢印を白に */
        width: 40px;
        height: 40px;
    }
}

@media only screen and (max-width: 767px) {
    #works_detail {
        .grid-thumbnail {
            width: 100%;
        }
    }
}

