:root {
    /* store */
    --color01: #000;
    --font01: "Oswald", sans-serif;
    --font02: "Zen Kurenaido", serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Arial", "游ゴシック体", "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
    /*font-family: var(--font02);*/
    background: #000;
    color: #fff;
    font-size: 16px;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    /* 縦スクロールを許可 */
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

img {
    vertical-align: bottom;
    /* または vertical-align: top; */
}


/* 初期状態で非表示 */

.Trigger {
    opacity: 0;
    /* 最初は透明 */
    transform: translateY(50px);
    /* 少し下にずらす */
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* アニメーション効果 */
}

.Trigger.visible {
    opacity: 1;
    /* 表示 */
    transform: translateY(0);
    /* 元の位置に移動 */
}

main.conceptpage {
    min-height: calc(100vh - 50px);
    .contents {
        width: 95%;
        margin: auto;
        font-size: 1em;
    }
}


/*=============== メニュー =================*/


/* Navbar */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: fixed;
    top: 0;
    background: #000;
    color: white;
    width: 100%;
    z-index: 5;
    /* Menu Icon */
    .menu-icon {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 16;
        .bar {
            width: 25px;
            height: 3px;
            background-color: white;
            margin: 3px 0;
            transition: 0.3s;
        }
    }
    /* Menu */
    .menu {
        list-style: none;
        display: none;
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
        background-color: #444;
        padding: 60px 1rem 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        width: 100%;
        height: 100vh;
        margin: 0;
        z-index: 15;
        li {
            margin: 10px 0;
            text-align: center;
            a {
                text-decoration: none;
                color: white;
                transition: color 0.3s;
            }
            a:hover {
                color: #ff6347;
            }
        }
    }
    /* Active Menu */
    .menu.active {
        display: flex;
    }
    /* Transform the Menu Icon when active */
    .menu-icon.active {
        .bar:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }
        .bar:nth-child(2) {
            opacity: 0;
        }
        .bar:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }
    }
}


/*=============== トップ =================*/

#top {
    height: calc(100vh - 50px);
    overflow: hidden;
    .scroll-container {
        display: flex;
        flex-direction: row;
        /* 横方向に配置 */
        width: calc(100vw * var(--section-count));
        /* セクション数に応じた幅 */
        height: calc(100vh - 50px);
        overflow: hidden;
        touch-action: pan-x;
        /* 横方向のスワイプを有効化 */
    }
    #top_main {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 0;
        h1 {
            text-align: center;
            font-size: 13vw;
            font-family: var(--font01);
            line-height: 1.3;
            span {
                opacity: 0;
            }
        }
    }
    .section {
        width: 100vw;
        height: calc(100vh - 160px);
        flex-shrink: 0;
        font-size: 2em;
        color: #fff;
        padding-top: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        h2 {
            text-align: center;
            margin: 0 0 10px;
            font-size: 15vw;
            font-family: var(--font01);
            line-height: 1.5;
            width: 100%;
            span {
                opacity: 0;
            }
        }
        h3 {
            text-align: center;
            display: block;
            /*font-size: 3vw;*/
            line-height: 1;
            margin: 0 auto 100px;
            width: 100%;
            span {
                opacity: 0;
            }
        }
        a {
            text-align: right;
            font-size: 0.8em;
            margin: auto;
            width: 100%;
            max-width: 1200px;
            display: block;
            div {
                display: inline-block;
                /* 必要ならブロック要素の見た目に調整 */
                animation: bikkuri 2.3s both infinite;
                position: relative;
                text-decoration: none;
                /* 必要ならリンク下線を削除 */
                color: inherit;
                /* テキスト色を継承 */
            }
        }
    }
}

@keyframes bikkuri {
    100%,
    60%,
    35%,
    25%,
    0% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-15px);
    }
    40% {
        transform: translateY(-7px);
    }
}

#mobileId {
    #top {
        .section {
            h2 {}
            h3 {
                font-size: 3.5vw;
            }
            a {
                margin-bottom: 40%;
            }
        }
        #top_main {
            .indexKV__txtInner {}
        }
    }
}


/*=============== 下層ページ =================*/

#conceptpage {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 60px 0 50px;
    h1 {
        text-align: center;
        margin: 0 0 20px;
        font-size: 16.5vw;
        font-family: var(--font01);
    }
}

@media (min-width: 850px) {
    #conceptpage {
        h1 {}
    }
}


/*=============== SVGアニメーション内の指定 =================*/

#about {
    #about_txt {
        width: 98%;
        margin: 0 auto;
        max-width: 1180px;
        span {
            display: inline-block;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        h3 {
            font-size: 1.2em;
            margin: 0 auto 30px;
            background: #fff;
            color: #000;
            text-align: center;
            padding: 10px 0;
        }
        .about_card {
            display: flex;
            margin: 30px 0 50px;
            .about_card-box {
                width: 50%;
                overflow: hidden;
                margin: 0.5%;
                border-radius: 20px;
            }
            .about_card-box:nth-child(2) {
                border: 1px solid #fff;
            }
            ul {
                width: 96%;
                max-width: 600px;
                margin: auto;
                li {
                    margin: 0 0 10px;
                    /*white-space: pre-wrap; /* 改行やスペースをそのまま表示 */
                }
                li.end {
                    text-align: center;
                    margin: 50px auto 30px;
                }
            }
        }
    }
}

@media (max-width: 900px) {
    #about {
        #about_txt {
            .about_card {
                display: block;
                .about_card-box {
                    width: calc(100% - 1% - 2px);
                    border: 1px solid #fff;
                    overflow: hidden;
                    margin: 0.5% auto 20px;
                    border-radius: 20px;
                }
                ul {
                    width: 96%;
                    max-width: 600px;
                    margin: auto;
                    li {
                        margin: 0 0 10px;
                        /*white-space: pre-wrap; /* 改行やスペースをそのまま表示 */
                    }
                    li.end {
                        text-align: center;
                        margin: 50px auto 30px;
                    }
                }
            }
        }
    }
}


/*=============== お問い合わせ =================*/

#contact {
    #contactForm {
        width: 90%;
        margin: 0 auto;
        font-size: 16px;
        font-weight: 100;
        max-width: 1000px;
        label {
            width: 100%;
            margin-bottom: 10px;
        }
        input,
        textarea {
            width: calc(100% - 2px);
            padding: 5px;
            margin-bottom: 15px;
            border-radius: 0;
            background-color: #000;
            border: 1px solid #fff;
            color: #fff;
        }
    }
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .modal.active {
        visibility: visible;
        opacity: 1;
    }
    .modal-content {
        background: white;
        color: #000;
        padding: 20px;
        border-radius: 10px;
        max-width: 500px;
        width: 90%;
    }
    .modal-buttons {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
    }
    .modal-buttons button {
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
    }
    .modal-buttons .cancel {
        background: #ccc;
        color: #000;
    }
    .modal-buttons .confirm {
        background: #000;
        color: white;
    }
    /*=============== ボタン共通設定 =================*/
    /* ボタン共通設定 */
    button.btn {
        width: calc(100% - 2px);
        margin: auto;
        text-align: center;
        border: 1px solid #fff;
        border-radius: 0;
        color: #fff;
        padding: 5px 0;
        font-size: 1.2rem;
        display: block;
        background-color: #000;
        /*アニメーションの起点とするためrelativeを指定*/
        position: relative;
        overflow: hidden;
        /*ボタンの形状*/
        text-decoration: none;
        display: inline-block;
        padding: 10px 30px;
        text-align: center;
        outline: none;
        /*アニメーションの指定*/
        transition: ease 0.2s;
        /*ボタン内spanの形状*/
        span {
            position: relative;
            z-index: 3;
            /*z-indexの数値をあげて文字を背景よりも手前に表示*/
            color: #fff;
        }
    }
    button.btn:hover span {
        color: #000;
    }
    /*== 背景が流れる（左から右） */
    button.bgleft:before {
        content: "";
        /*絶対配置で位置を指定*/
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        /*色や形状*/
        background: #fff;
        /*背景色*/
        color: #000;
        width: 100%;
        height: 100%;
        /*アニメーション*/
        transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
        transform: scale(0, 1);
        transform-origin: right top;
    }
    /*hoverした際の形状*/
    button.bgleft:hover:before {
        transform-origin: left top;
        transform: scale(1, 1);
        color: #000;
    }
}

.animationChars__char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.animationChars__char.active {
    opacity: 1;
    transform: translateY(0);
}

.line-break {
    display: block;
    /* ブロック要素にして改行を強制 */
    width: 100%;
    /* 必要に応じて幅を調整 */
    height: 0;
    /* 不要なら高さをゼロに */
}


/* Webkit系ブラウザ（Chrome, Edge, Safariなど）対応 */

.your-element {
    overflow: hidden;
    /* スクロール可能に設定 */
}

.your-element::-webkit-scrollbar {
    width: 8px;
}

.your-element::-webkit-scrollbar-thumb {
    background-color: #ff6f61;
    /* 明るいアクセント色 */
    border-radius: 20px;
    /* 丸みを強調 */
}

.your-element::-webkit-scrollbar-track {
    background: transparent;
    /* 背景を透明に */
}


/*=============== ポートフォリオ =================*/

#portfolio {
    .portfolio_boxs {
        display: flex;
        align-content: center;
        justify-content: center;
        flex-wrap: wrap;
        width: 90%;
        margin: auto;
        max-width: 1500px;
        .open-popup {
            margin: 10px 10px 20px;
            font-size: 16px;
            cursor: pointer;
            padding: 0;
            border-radius: 0;
            border: none;
            max-width: 300px;
            background: none;
            color: #fff;
            width: 100%;
            .img {
                width: 300px;
                height: 300px;
                overflow: hidden;
                object-fit: cover;
                object-position: top;
                img {
                    transition: 1s all;
                    width: 300px;
                    height: 300px;
                    object-fit: cover;
                    object-position: top;
                }
                img:hover {
                    transform: scale(1.2, 1.2);
                    transition: 1s all;
                }
            }
            .name {
                padding: 5px 3px;
            }
        }
        .popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
            z-index: 10;
        }
        .popup-content {
            width: 100%;
            max-width: 900px;
            height: 100vh;
            position: relative;
            display: flex;
            justify-content: center;
            align-content: center;
            flex-wrap: wrap;
            .popup-content_card {
                width: 90%;
                max-width: 700px;
                margin: auto;
                max-height: 90vh;
                height: fit-content;
                overflow: hidden;
                img {
                    width: 100%;
                    aspect-ratio: 1 / 1;
                    object-fit: cover;
                    object-position: top center;
                }
                p {
                    padding: 10px 0;
                    text-align: center;
                }
                button {
                    cursor: pointer;
                    width: 100%;
                    margin: auto;
                    display: block;
                    background: center;
                    border: 1px solid;
                    color: #fff;
                    transition: color .3s, background .3s;
                    border-radius: 20px;
                }
                button:hover {
                    background: #fff;
                    border: 1px solid;
                    color: #000;
                }
            }
        }
        .close-popup {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 30px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #fff;
            color: #000;
            cursor: pointer;
            text-align: center;
        }
    }
}

@media (max-width: 599px) {
    #portfolio {
        .portfolio_boxs {
            justify-content: center;
        }
    }
}


/*=============== スライダー =================*/

.slider-container {
    position: relative;
    overflow: hidden;
    /* スライダー以外の部分を隠す */
    width: 100%;
    height: 300px;
    /* スライド全体の高さ */
    .slider {
        display: flex;
        flex-direction: column;
        /* 縦方向にスライド */
        transition: transform 0.5s ease-in-out;
        .slide {
            width: 100%;
            height: 300px;
            /* スライド1つ分の高さ */
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #f2f2f2;
            font-size: 24px;
        }
    }
    .next-btn {
        position: absolute;
        bottom: 10px;
        right: 10px;
        padding: 10px 20px;
        font-size: 16px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
    .next-btn {
        display: inline-block;
        /* 通常のボタン状態 */
    }
    .next-btn[style="display: none;"] {
        visibility: hidden;
        /* 非表示状態でもレイアウトを崩したくない場合に使用 */
    }
}


/*=============== フッター =================*/

footer {
    p {
        color: #fff;
        text-align: center;
    }
}

@media (min-width: 850px) {
    /*　ポインター　*/
    .cursorpointer {
        position: absolute;
        width: 30px;
        height: 30px;
        pointer-events: none;
        /* この要素がマウスイベントを受け取らないようにする */
        transform: translate(-50%, -50%);
        /* ポインターの中心をカーソルに合わせる */
        .inner {
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            border: 1px solid white;
            border-radius: 50%;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
            animation: pulse 2s infinite;
        }
    }
    @keyframes pulse {
        0%,
        100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.5);
        }
    }
}


/*========= LoadingのためのCSS ===============*/


/* Loading背景画面設定　*/

#splash {
    /*fixedで全面に固定*/
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: #eee;
    text-align: center;
    color: #fff;
    /* Loading画像中央配置　*/
    #splash_logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        /* Loading アイコンの大きさ設定　*/
        svg {
            width: 98%;
            max-width: 1000px;
        }
    }
}


/*=============== SVGアニメーション内の指定 =================*/

#mask path {
    stroke: #000;
    stroke-width: 2;
    transition: fill 1.5s ease;
    fill-opacity: 0;
    /*transition: fill-opacity 0.5s; /*カラーがつく際のアニメーション0.5秒で変化*/
    fill: none;
    /*塗りがない状態*/
}

#mask path.cls-1 {
    fill: none;
    stroke: #000;
    stroke-miterlimit: 10;
    stroke-width: 15px;
}

#mask.done path {
    fill: #000;
    fill-opacity: initial;
}

#mask.done path.cls-1 {
    fill: #000;
    fill-opacity: 0;
    stroke-width: 25px;
}


/* 描画後の追加クラスに対するスタイル例 */

#splash_logo.completed {
    opacity: 1;
    transition: opacity 1.5s ease;
}


/* 描画後の追加クラスに対するスタイル例 */

#splash_logo.completed {
    opacity: 1;
    transition: opacity 1.5s ease;
}

.scroll_down {
    z-index: 5;
}

.scroll_down:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    /*width: 100%;
  height: 80%;*/
    background: linear-gradient(180deg, rgba(#000, 0) 0, rgba(#000, .8) 80%, rgba(#000, .8) 100%);
}

.scroll_down a {
    display: inline-block;
    position: absolute;
    /*right: 0;*/
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 30px;
    padding: 10px 10px 110px;
    color: #fff;
    font-size: 14px;
    /*font-family: 'Josefin Sans', sans-serif;*/
    line-height: 1;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    writing-mode: vertical-lr;
    transition: .2s;
    overflow: hidden;
    margin: auto;
}

#mobileId .scroll_down a {
    transform: rotate(270deg);
    top: auto;
    right: 100px;
    bottom: 10px;
}

.scroll_down a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 100px;
    background: #ddd;
}

.scroll_down a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 100px;
    background: #000;
    animation: sdl01 1.5s cubic-bezier(1, 0, 0, 1) infinite;
}

.scroll_down a:hover {
    opacity: .5;
}

@keyframes sdl01 {
    0% {
        transform: scale(1, 0);
        transform-origin: 0 0;
    }
    50% {
        transform: scale(1, 1);
        transform-origin: 0 0;
    }
    50.1% {
        transform: scale(1, 1);
        transform-origin: 0 100%;
    }
    100% {
        transform: scale(1, 0);
        transform-origin: 0 100%;
    }
}