@import "../../css/base/_variables.css";

/* Layouts */


/* Components */
@import "../../css/components/_header.css";
@import "../../css/components/_footer.css";
@import "../../css/components/_buttons.css";

/* Pages */
@import "../../css/pages/_about.css";
@import "../../css/pages/_services.css";
@import "../../css/pages/_company.css";
@import "../../css/pages/_details.css";

@import "../../css/style.css";



.unique-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/mockups/mockup_4.png'); /* 画像パスを追加 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.text-overlay h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.text-overlay p {
    font-size: 2rem;
    text-align: left;
}



.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.unique-text-animation {
    position: absolute;
    top: 30%;
    opacity: 1;
    writing-mode: vertical-rl;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.unique-image-container {
    position: absolute;
    top: 15%;
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    opacity: 0;
}

.unique-image-container > img {
    max-width: 100%;
    transition: opacity 1s ease, transform 1s ease;
}

.unique-image-container img.visible {
    animation: fadeIn 1s forwards;
}


#unique-image1 {
    margin-top: 100px; /* 上に余白を追加 */
}

#unique-image2 {
    margin-top: 100px; /* 上に余白を追加 */
}


#unique-image3 {
    margin-top: 100px; /* 上に余白を追加 */
}



.content-section {
    margin-top: 0;
    padding: 20px;
    padding-bottom: 100px;
    width: 100%;
    /* height: 100svh; */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #E4E4E4;
    position: relative;
    z-index: 1;

}

.content-section>p {
    line-height: 3rem;
    font-weight: bold;
    font-size: 1.25rem;
}

/* 背景テキストのスタイル追加 */
.content-section::before {
    content: 'WHAT IS YOUR SELF COLOR';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    white-space: nowrap;
    -webkit-text-stroke: 2px #333;
    -webkit-text-fill-color: transparent;
    opacity: 0.1;
    z-index: 0;
    max-width: 100%;
    font-size: 4vw;
    writing-mode: vertical-rl;
    letter-spacing: 0.1em;
}



.content-section p span,
.about-page-content p span,
.about-page-content h2 span,
.about-page-content h3 span,
.about-page-service01-content p span,
.about-page-service01-content h2 span,
.about-page-service01-content h3 span,
.service02-content p span,
.service02-content h2 span,
.service02-content h3 span,
.approach-details p span,
.approach-details h2 span,
.approach-details h3 span,
.approach-content p span,
.approach-title span,
.service-number,
.service-title p span,
.service-title h3 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.content-section p span.visible,
.about-page-content p span.visible,
.about-page-content h2 span.visible,
.about-page-content h3 span.visible,
.about-page-service01-content p span.visible,
.about-page-service01-content h2 span.visible,
.about-page-service01-content h3 span.visible,
.service02-content p span.visible,
.service02-content h2 span.visible,
.service02-content h3 span.visible,
.approach-details p span.visible,
.approach-details h2 span.visible,
.approach-details h3 span.visible,
.approach-content p span.visible,
.approach-title span.visible,
.service-number.visible,
.service-title p span.visible,
.service-title h3 span.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1s forwards;
}

.fade-out {
    animation: fadeOut 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        /* transform: translateY(-50px); */
    }
    to {
        opacity: 1;
        /* transform: translateY(0); */
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.about-page-section {
    align-items: center;
    /* margin: 10% 0; */
    /* overflow: hidden; */
    /* height: 100svh; */
}

.about-page-content {
    padding: 60px;
    z-index: 2;
    
    background-color: var(--bg-color);
    margin-left: 50%; /* 左からのマージンを追加 */
    position: absolute;

    bottom: -10%;
}

.about-page-content>h2 {
    font-size: 2.5rem;
    font-weight: 700;
}


.about-page-content>h3 {
    margin: 20px 0;
    font-size: 1.8rem;
    font-weight: 600;
}


.about-page-content>p {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.2rem;
    font-weight: 700;
}


.about-images .Image2 {
    position: absolute;
    width: 200px; /* 幅を固定 */
    right: 10px; /* 左からの距離を指定 */
    top: 10px; /* 上からの距離を指定 */
}

.about-images .Image3 {
    position: absolute;
    width: 200px; /* 幅を固定 */
    right: 150px; /* 左からの距離を指定 */
    top: 150px; /* 上からの距離を指定 */
}

.image1 {
    top: 10svh;
    right: 5%;
    width: 35%;
}

.image2 {
    top: 40svh;
    right: 0;
    width: 35%;
}

.image3 {
    bottom: 10px;
    left: 10px;
}

.image4 {
    top: 0;
    left: 0;
    width: 50%;
}

.image6 {
    top: 5svh;
    right: 3%;
}

.image7 {
    top: 65svh;
    right: 30%;
}


h2,
h3 {
    margin: 0;
}

/* ボタンの基本スタイル */
.btn-base {
    border-radius: 100px;
    font-weight: bold;
    border: 1px solid #000;
    background-color: transparent;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-base:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 通常ボタン */
.btn-normal {
    padding: 15px 50px;
}

/* コンタクトボタン */
.contact-btn {
    padding: 10px 30px;
    margin-top: 10px;
}

/* トグルボタン基本 */
.toggle-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 24px;
    color: #000;
    min-width: 35px;
    transition: background-color 0.3s ease;
    margin: 0;
}

.toggle-button:hover {
    background-color: #e0e0e0;
}

.toggle-button.rotated {
    background-color: #f00;
}

/* 色付きトグルボタン */
.toggle-button--red {
    padding-top: 5px;
    background-color: #e74c3c;
}

.toggle-button--blue {
    padding-top: 5px;
    background-color: #3498db;
}

.toggle-button--yellow {
    padding-top: 5px;
    background-color: #f1c40f;
}

.about-page-service01-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* height: 100svh; */
    /* padding: 0 5%; */
    box-sizing: border-box;
    background-color: #fff;
    /* overflow: hidden; */
}

.about-page-service01-content {
    max-width: 50%;
    padding: 20px;
    z-index: 1;
    position: relative;
}

.about-page-service01-content h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.service01-p{
    font-weight: bold;
    font-size: 1.25rem;
}

.service01-p1{
    padding: 2rem 0;
    font-size: 1.2em;
}

.service01-p2{
    font-size: 1rem;
}


.service-number {
    font-size: 2rem;
    font-weight: bold;
}

.service-title {
    border-left: 3px solid #000;
    padding: 1rem;
    margin: 1rem 0;
}

.service-title h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    /* padding-top: 1rem; */
}

.service-title p {
    font-size: 1rem;
    margin: 0;
    /* padding: 1rem 0; */
}

.about-page-service01-content p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.service01-images {
    position: relative;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service01-images img {
    position: absolute;
    height: auto;
}

.service01-button{
    text-align: center;
    margin: 3rem 0;
}


.image5 {
    left: 80%;
    width: 100%;
}

.image8 {
    bottom: 100px;
    left: -15%;
    width: 25%;
}

.image9 {
    left: 0;
    max-width: 100%;
}

@media (min-width: 1200px) {

    .about-page-section{
        flex-direction: row;
        padding-top: 5%;
    }


    .about-page-service01-section {
        flex-direction: row;
        padding: 10%;

    }

    .about-page-content,
    .about-page-service01-content {
        max-width: 50%;
    }

    .about-images,
    .service01-images {
        width: 100%;
    }

    .about-page-content h2,
    .about-page-service01-content h2 {
        font-size: 2.5rem;
    }
}


@media (min-width: 1000px) {

    .image1 {
        width: 30%;
    }

    .image2 {
        width: 30%;
    }

    .image3 {}

    .image4 {}

    .image6 {}

    .image7 {}
    
    .image9 {
        max-width: 80%;
    }
}




.service02-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* height: 100svh; */
    padding: 0 5%;
    box-sizing: border-box;
    background-color: #f9f9f9;
    overflow: hidden;
}

.service02-section img.large-box {
    position: absolute;
    bottom: 0;
    left: 0;
}

.service02-content {
    max-width: 50%;
    padding: 60px;
    z-index: 1;
    position: relative;
}

.service02-content h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.service02-content .service-number {
    font-size: 2rem;
    font-weight: bold;
}

.service02-content .service-title {
    border-left: 3px solid #000;
    padding: 1rem;
    margin: 1rem 0;
}

/* .service02-content .service-title h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.service02-content .service-title p {
    font-size: 1rem;
    margin: 0;
} */

.service02-images {
    position: relative;
    width: 40%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service02-images img:nth-child(1) {
    width: 30%;
    height: 400px;
    margin: 0;
    object-fit: cover;
    margin-bottom: 10%;
}

.service02-images img:nth-child(2) {
    width: 30%;
    height: 400px;
    margin: 0;
    object-fit: cover;
    margin-top: 10%;
}

.service02-images img:nth-child(3) {
    width: 30%;
    height: 400px;
    margin: 0;
    object-fit: cover;
    margin-top: 30%;
}

.service02-images img.blue-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 50px;
}

.service02-images img.large-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    transform: translate(0, 100%);
}

.service02-images-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.service02-images-decoration img {
    position: absolute;
    height: auto;
}

.service02-shape1 {
    position: absolute;
    width: 100px;
    right: 0px;
    top: 150px;
    z-index: 2;
}

.service02-shape2 {
    position: absolute;
    width: 60px;
    left: 100px;
    top: 300px;
    z-index: 2;
}


.approach-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px 5%;
    background-color: #f0f0f0;
}

.approach-content {
    max-width: 45%;
    text-align: left;
}

.approach-title {
    font-size: 3em;
    font-weight: bold;
    margin: 0;

}

.approach-images {
    margin: 100px 0;
}

.approach-images img {
    width: 100%;
    height: auto;
}

.approach-details {
    max-width: 45%;
}


.approach-details  > h3{
    font-size: 1.8rem;
}

.approach-details  > p{
    font-size: 15px;
    margin: 50px 0;
}


.detail-item {
    background-color: #fff;
    margin-bottom: 20px;
    /* padding: 20px; */
    position: relative; /* 擬似要素の位置を相対的に設定 */
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 20px 0 0; /* 三角形のサイズを設定 */
    border-color: #000 transparent transparent transparent; /* 三角形の色を設定 */
}

.detail-item h4 {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 30px 20px 30px;
}

.detail-item p {
    font-size: 1rem;
    margin: 0;
    padding: 1rem;
    font-weight: bold;
}


@media (max-width: 768px) {
    .about-page-section{
        height: 100svh;
        min-height: 850px;
    }

    .approach-section {
        flex-direction: column;
        padding: 30px 5%;
    }

    .approach-content,
    .approach-details {
        max-width: 90%; /* 幅を調整 */
        width: 100%;
        margin-bottom: 20px; /* 下に余白を追加 */
    }

    .approach-details  > h3{
        font-size: 1.5rem;
    }

    .approach-images{
        display: none;
    }
}

.about-page-image-1 {
    position: absolute;
    width: 200px;
    left: 10px; /* 左からの距離を指定 */
    top: 20px; /* 上からの距離を指定 */
}

.about-page-image-2 {
    position: absolute;
    width: 200px;
    left: 150px;
    top: 100px;
}

.about-page-image-3 {
    position: absolute;
    width: 30vw;
    left: 0;
    top: 0;
    display: none;
}

.about-page-image-4 {
    position: absolute;
    width: 150px;
    right: 5%;
    top: 50px;
}

.about-page-image-5 {
    position: absolute;
    width: 80px;
    right: 200px;
    top: 750px;
}

.about-page-image-6 {
    position: relative;
    width: 50%;
    left: 10%;
    margin-top: 10%;
}

.about-page-image-7 {
    position: absolute;
    width: 300px;
    right: 100px;
    top: 150px;
}

.about-page-image-41 {
    position: absolute;
    width: 50px;
    left: 0px;
    top: 0px;
    transform: rotateZ(90deg) !important;
}

.about-page-image-51 {
    position: absolute;
    width: 5%;
    top: 400px;
}

.about-page-image-52 {
    position: absolute;
    width: 8%;
    top: 80%;
    right: -10%;
    z-index: 4;
    display: none;
}

.about-page-image-61 {
    position: absolute;
    width: 40px;
    right: 50px;
    top: 450px;
}

.about-page-image-71 {
    position: absolute;
    width: 60px;
    right: 250px;
    top: 300px;
}

.about-page-image-81 {
    position: absolute;
    width: 40%;
    right: 10%;
    top: 0;
}

@media (max-width: 768px) {
    .about-page-image-3 {
        width: 200px;
        left: 10px;
        top: 100px;
        display: none;
    }

    .about-page-image-4 {
        position: absolute;
        width: 50px;
        right: 10px;
        top: 300px;
        display: none;
    }

    .about-page-image-5 {
        position: absolute;
        width: 50px;
        right: 0px;
        top: 750px;
    }

    .about-page-image-6 {
        position: absolute;
        width: 90%;
        right: 0px;
        left: 0px;
        top: 50px;
        margin: auto;
    }

    .about-page-image-7 {
        position: absolute;
        width: 320px;
        left: 30px;
        top: -50px !important; /* -150pxから-50pxに変更 */
        z-index: 1;
    }

    .about-page-image-41 {
        position: absolute;
        width: 30px;
        top: 250px;
        left: -20px;
        transform: rotate(90deg) !important;
        display: none;
    }

    .about-page-image-51 {
        position: absolute;
        width: 100px;
        top: 610px;
        left: -50px;
        display: none;
        /* transform: rotate(90deg) !important; */
    }

    .about-page-image-52 {
        position: absolute;
        width: 10%;
        top: 450px;
        right: 50px;
        display: none;
    }

    .about-page-image-61 {
        position: absolute;
        width: 30px;
        top: 150px;
        right: -20px;
        transform: rotate(-45deg) !important;
    }

    .about-page-image-71 {
        position: absolute;
        width: 40px;
        top: 500px;
        right: -25px;
        transform: rotate(45deg) !important;
    }

    .about-page-image-81 {
        position: absolute;
        width: 80%;
        right: 10%;
        top: -100%;
    }


    .about-page-image-3.visible {
        animation-delay: 2s;
    }

    .about-page-image-4.visible {
        animation-delay: 1.5s;
    }

    .about-page-image-5.visible {
        animation-delay: 1.5s;
    }

    .about-page-image-6.visible {
        animation-delay: 2s;
    }

    .about-page-image-7.visible {
        animation-delay: 2.5s;
    }
    
}

/* デスクトップ用のスタイル */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* スマホサイズ用のスタイル */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .about-page-service01-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-page-service01-images-mobile {
        /* display: grid; */
        grid-template-columns: repeat(3, 1fr); /* 3列に設定 */
        grid-template-rows: repeat(2, 1fr); /* 2行に設定 */
        gap: 0; /* ギャップを0に設定 */
        width: 100%;
        height: auto; /* 高さは自動調整 */
    }

    /* .about-page-service01-content {
        text-align: center;
    } */

    .image-mobile {
        width: 100%;
        height: auto;
        object-fit: cover; /* 画像を枠にフィットさせる */
        padding: 5%;
    }
}

.image-mobile:nth-child(1),
.image-mobile:nth-child(2) {
    grid-row: 1; /* 上段に配置 */
    grid-column: span 2; /* 2列分の幅を占める */
}

.image-mobile:nth-child(3),
.image-mobile:nth-child(4),
.image-mobile:nth-child(5) {
    grid-row: 2; /* 下段に配置 */
}

.image-mobile:nth-child(1) {
    /* ここに微調整のスタイルを追加 */
    /* width: 300px; */
}

.image-mobile:nth-child(2) {
    grid-row: 1; /* 上段に配置 */
    grid-column: 3; /* 3列目に配置 */
    height: 100%; /* 高さを100%に設定 */
    object-fit: cover; /* 縦横比を維持しつつ、枠にフィット */
}

.image-mobile:nth-child(3) {
    /* ここに微調整のスタイルを追加 */
}

.image-mobile:nth-child(4) {
    /* ここに微調整のスタイルを追加 */
}

.image-mobile:nth-child(6) {
    /* ここに微調整のスタイルを追加 */
}

.image-mobile:nth-child(7) {
    /* ここに微調整のスタイルを追加 */
}

.service-image {
    width: 100px;
    height: auto;
    margin-top: 20px; /* 共通の上部余白 */
    /* 必要に応じて共通スタイルを追加 */
}

.service-image-1 {
    /* Image 1 に対する個別スタイル */
    margin-left: 10px;
    /* 他のスタイルを追加 */
}

.service-image-2 {
    /* Image 2 に対する個別スタイル */
    margin-left: 20px;
    /* 他のスタイルを追加 */
}

.service01-images-custom {
    position: relative;
    /* width: 40%;
    display: flex;
    justify-content: center;
    align-items: center; */
}

.service01-image-1 {
    display: none;
}

.service01-image-2 {
    display: none;
}

@media (max-width: 768px) {
    .service01-image-1 {
        position: absolute;
        width: 50px; /* 必要に応じてサイズを調整 */
        top: 450px; /* 上からの距離を指定 */
        left: 10px; /* 左からの距離を指定 */
        display: block;
    }
    
    .service01-image-2 {
        position: absolute;
        width: 30px; /* 必要に応じてサイズを調整 */
        top: 0px; /* 上からの距離を指定 */
        right: 0px; /* 左からの距離を指定 */
        display: block;
    }
}

.service02-images-custom {
    position: relative;
    /* 必要に応じてスタイルを調整 */
}

.service02-image-1 {
    display: none;
    /* 必要に応じてスタイルを追加 */
}

.service02-image-2 {
    display: none;
    /* 必要に応じてスタイルを追加 */
}

.service02-image-3 {
    display: none;
    /* 必要に応じてスタイルを追加 */
}

.service02-image-4 {
    display: none;
    /* 必要に応じてスタイルを追加 */
}

.service02-image-5 {
    display: none;
    /* 必要に応じてスタイルを追加 */
}

.service02-image-6 {
    display: none;
    /* 必要に応じてスタイルを追加 */
}

@media (max-width: 768px) {
    .service01-image-1 {
        position: absolute;
        width: 50px; /* 必要に応じてサイズを調整 */
        top: 450px; /* 上からの距離を指定 */
        left: 10px; /* 左からの距離を指定 */
        display: block;
    }
    
    .service01-image-2 {
        position: absolute;
        width: 30px; /* 必要に応じてサイズを調整 */
        top: 0px; /* 上からの距離を指定 */
        right: 0px; /* 左からの距離を指定 */
        display: block;
    }

    .service02-image-1 {
        position: absolute;
        width: 50px; /* 必要に応じてサイズを調整 */
        top: 1000px; /* 上からの距離を指定 */
        left: 0px; /* 左からの距離を指定 */
        display: block;
        transform: rotate(90deg) !important;
        z-index: -1;
    }
    
    .service02-image-2 {
        position: absolute;
        width: 150px; /* 必要に応じてサイズを調整 */
        top: 100px; /* 上からの距離を指定 */
        right: -100px; /* 左からの距離を指定 */
        display: block;
        z-index: -1;
    }

    .service02-image-3 {
        position: absolute;
        width: 30px; /* 必要に応じてサイズを調整 */
        top: 400px; /* 上からの距離を指定 */
        left: -30px; /* 左からの距離を指定 */
        display: block;
        transform: rotate(90deg) !important;
        z-index: -1;
    }

    .service02-image-4 {
        position: absolute;
        width: 50px; /* 必要に応じてサイズを調整 */
        top: 1000px; /* 上からの距離を指定 */
        left: 0px; /* 左からの距離を指定 */
        display: block;
        transform: rotate(90deg) !important;
        z-index: -1;
    }

    .service02-image-5 {
        position: absolute;
        /* width: 100px; 必要に応じてサイズを調整 */
        top: 0px; /* 上からの距離を指定 */
        left: 100px; /* 左からの距離を指定 */
        display: block;
        transform: rotate(90deg) !important;
        /* z-index: -1; */
    }
    
    .service02-image-6 {
        position: absolute;
        width: 60px; /* 必要に応じてサイズを調整 */
        top: 750px; /* 上からの距離を指定 */
        left: 100px; /* 右からの距離を指定 */
        display: block;
        /* z-index: -1; */
    }

}

.scroll-indicator {
    text-align: center;
    margin-top: 20px; /* 適宜調整 */
    margin-bottom: 20px; /* 適宜調整 */
}

.scroll-indicator span {
    display: block;
    font-weight: bold;
}

.scroll-indicator .line {
    width: 1px;
    height: 30px; /* 適宜調整 */
    background-color: black;
    margin: 0 auto;
}

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
    .unique-container {
        min-height: 60vh;
    }

    .background-video {
        height: 100%;
    }
}

/* スマートフォン基本設定 */
@media (max-width: 768px) {
    .unique-container {
        min-height: 40vh;
        height: auto;
        margin: 0;
    }

    .background-video {
        height: 100%;
        max-height: 40vh;
        object-fit: cover;
        object-position: center;
    }
}

/* スマートフォン縦向き */
@media (max-width: 768px) and (orientation: portrait) {
    .unique-container {
        min-height: 35vh;
    }

    .background-video {
        max-height: 35vh;
    }
}

/* スマートフォン横向き */
@media (max-width: 768px) and (orientation: landscape) {
    .unique-container {
        min-height: 50vh;
    }

    .background-video {
        max-height: 50vh;
    }
}

/* 小型スマートフォン */
@media (max-width: 375px) {
    .unique-container {
        min-height: 30vh;
    }

    .background-video {
        max-height: 30vh;
    }
}

/* スクロールインジケーター調整 */
@media (max-width: 768px) {
    .scroll-indicator {
        margin: 10px auto;
    }

    .scroll-indicator .line {
        height: 20px;
    }
}

/* PCサイズ（768px以上）の場合 */
@media screen and (min-width: 768px) {
    .unique-container {
        height: 100vh;
    }
    
    .background-video {
        width: 100vw;
        height: auto;
        min-width: 100%;
        min-height: 100%;
    }
}

/* スマホサイズ（768px未満）の場合 */
@media screen and (max-width: 767px) {
    .unique-container {
        height: 100vh;
    }
    
    .background-video {
        width: auto;
        height: 100vh;
        min-width: 100%;
        min-height: 100%;
    }
}

/* スマホサイズでヘッダーを非表示 */
@media screen and (max-width: 767px) {
    .header {
        display: none;
    }
}

/* スマホサイズでメニューボタンを表示 */
@media screen and (max-width: 767px) {
    .menu-icon {
        display: block;
    }
    
    .nav {
        z-index: 9998;
    }
    
    .overlay {
        z-index: 9997;
    }
}

.mobile-menu-container {
    display: none;
}

@media (max-width: 767px) {
    .mobile-menu-container {
        display: block;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 10000;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-nav.active {
        transform: translateX(100%);
    }

    .mobile-nav .nav__items {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 2rem;
        list-style: none;
        margin: 0;
    }

    .mobile-nav .nav__items li {
        width: 100%;
        text-align: center;
        padding: 1.5rem 0;
        opacity: 0;
        transform: translateY(40px);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        overflow: hidden;
        border: none;
    }

    .mobile-nav .nav__items li a {
        text-decoration: none;
        color: #333;
        font-weight: 600;
        font-size: 1.4rem;
        display: inline-block;
        padding: 0.5rem 1rem;
        letter-spacing: 0.15em;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
    }

    .mobile-nav .nav__items li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            #333 20%, 
            #333 80%, 
            transparent 100%
        );
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-nav.active .nav__items li a::after {
        transform: scaleX(1);
        transition-delay: 0.2s;
    }

    /* メニューがアクティブになったときの各項目のディレイ */
    .mobile-nav.active .nav__items li:nth-child(1) { 
        transition-delay: 0.1s;
    }
    .mobile-nav.active .nav__items li:nth-child(2) { 
        transition-delay: 0.2s;
    }
    .mobile-nav.active .nav__items li:nth-child(3) { 
        transition-delay: 0.3s;
    }

    .mobile-nav.active .nav__items li:nth-child(1) a {
        transition-delay: 0.2s;
    }
    .mobile-nav.active .nav__items li:nth-child(2) a {
        transition-delay: 0.3s;
    }
    .mobile-nav.active .nav__items li:nth-child(3) a {
        transition-delay: 0.4s;
    }

    .mobile-nav.active .nav__items li {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav.active .nav__items li a {
        opacity: 1;
        transform: translateY(0);
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.2);
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        backdrop-filter: blur(8px);
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
}

.service01-shape1 {
    position: absolute;
    width: 50px;
    right: 50px;
    top: 150px;
    z-index: 2;
}

.service01-shape2 {
    position: absolute;
    width: 60px;
    left: 150px;
    top: 300px;
    z-index: 2;
}

@media (max-width: 768px) {
    .service01-shape1 {
        position: absolute;
        width: 30px;
        top: 250px;
        right: 20px;
        /* transform: rotate(-45deg) !important; */
        z-index: 2;
    }

    .service01-shape2 {
        position: absolute;
        width: 40px;
        top: 600px;
        left: 5px;
        /* transform: rotate(90deg) !important; */
        z-index: 2;
    }
}

.approach-shape1 {
    position: absolute;
    width: 40px;
    right: 50px;
    top: 150px;
    z-index: 2;
}

.approach-shape2 {
    position: absolute;
    width: 60px;
    left: 150px;
    top: 300px;
    z-index: 2;
}

.approach-shape3 {
    position: absolute;
    width: 80px;
    right: 200px;
    top: 450px;
    z-index: 2;
}

.approach-images-decoration {
    position: absolute;
    /* width: 100%; */
    height: 100%;
    z-index: 0;
}

.approach-images-decoration img {
    position: absolute;
    height: auto;
}

.approach-image-neon {
    width: 80%;
    left: 10%;
    top: 10%;
    opacity: 0.8;
}

.approach-image-red {
    width: 60%;
    right: 20%;
    top: 20%;
}

.approach-shape1 {
    position: absolute;
    width: 40px;
    right: 50px;
    top: 100px;
    z-index: 2;
}

.approach-shape2 {
    position: absolute;
    width: 60px;
    left: 100px;
    top: 250px;
    z-index: 2;
}

.approach-shape3 {
    position: absolute;
    width: 80px;
    right: 150px;
    top: 400px;
    z-index: 2;
}

@media (max-width: 768px) {
    .approach-images-decoration {
        /* position: relative; */
        width: 100%;
        height: 600px;
        margin-bottom: 30px;
    }

    .approach-image-neon {
        display: none;
    }

    .approach-image-red {
        display: none;
    }

    .approach-shape1 {
        width: 30px;
        top: 50px;
        right: 0px;
    }

    .approach-shape2 {
        width: 40px;
        top: 210px;
        left: -15px;
        transform: rotate(90deg) !important;
    }

    .approach-shape3 {
        width: 50px;
        top: 650px;
        right: 50px;
    }
}

.contact-images-decoration {
    position: absolute;
    width: 100%;
    z-index: 0;
}

.contact-images-decoration img {
    position: absolute;
    height: auto;
}

.contact-shape1 {
    position: absolute;
    width: 80px;
    right: 50px;
    top: 100px;
    z-index: 2;
}

@media (max-width: 768px) {
    .contact-images-decoration {
        width: 100%;
        margin-bottom: 30px;
    }

    .contact-shape1 {
        width: 50px;
        top: -100px;
        right: 30px;
    }
}

/* PCサイズでservice02-sectionのservice01-imagesを非表示 */
.service02-section .service01-images {
    display: none;
}

/* スマホサイズで表示 */
@media (max-width: 768px) {
    .service02-section .service01-images {
        display: block;
        position: relative;
        width: 100%;
        height: 100%;
    }
}


.approach-image-self-color {
    width: 100%;
    height: auto;
    margin: 50px 0;
}

@media (max-width: 768px) {
    .approach-image-self-color {
        display: none;
    }
}


.about-section-new-PC {
    display: block;
}

.about-section-new-mobile {
    display: none;
}



.about-section-new-PC {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 100px 0; */
    /* margin: 100px 0; */
    /* overflow: hidden; */
    aspect-ratio: 16 / 9;
}

/* 画像コンテナのスタイル */
.about-images-new {
    position: absolute;
    width: 100%;
    height: 600px;
}

.about-images-new img {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.about-images-new img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 各画像の位置指定 */
.about-page-image-new-3 {
    /* top: 10%; */
    left: 5%;
    width: 40%;
    z-index: 1;
}

.about-page-image-new-4 {
    right: 12%;
    width: 3%;
    z-index: 4;
}

.about-page-image-new-41 {
    top: 50%;
    right: 15%;
    width: 10%;
    z-index: 1;
}

.about-page-image-new-51 {
    bottom: -15%;
    right: 45%;
    width: 5%;
    z-index: 4;
}

.about-page-image-new-6 {
    top: 5%;
    right: 10%;
    width: 35%;
    z-index: 3;
}

.about-page-image-new-7 {
    top: 10%;
    right: 30%;
    width: 15%;
    z-index: 3;
}

/* コンテンツ部分のスタイル */
.about-content-new, .about-content-new-mobile {
    width: 50%;
    padding: 20% 10%;
    /* background-color: rgba(255, 255, 255, 0.9); */
    position: relative;
    /* height: 100svh; */
    z-index: 4;
    padding-bottom: 20%;
}

.about-content-new h2, .about-content-new-mobile h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}


.about-content-new h2 span, .about-content-new-mobile h2 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.about-content-new p, .about-content-new-mobile p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: bold;
    font-size: 1rem;
}

.about-content-new p span, .about-content-new-mobile p span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.about-content-new h3, .about-content-new-mobile h3 {
    font-size: 2rem;
    margin: 30px 0;
    color: #333;
}

.about-content-new h3 span, .about-content-new-mobile h3 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

/* アニメーション用のスタイルを明示的に設定 */
.about-content-new-mobile h2 span,
.about-content-new-mobile h3 span,
.about-content-new-mobile p span,
.about-content-new h2 span,
.about-content-new h3 span,
.about-content-new p span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.about-content-new-mobile h2 span.visible,
.about-content-new-mobile h3 span.visible,
.about-content-new-mobile p span.visible,
.about-content-new h2 span.visible,
.about-content-new h3 span.visible,
.about-content-new p span.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}



.core-value-section {
    background: white;
    padding: 60px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10% auto;
    width: 80%;
}

.core-value-title {
    text-align: center;
    margin-bottom: 30px;
}

.core-value-title h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.core-value-title p {
    font-size: 1.2em;
    color: #666;
}

.core-value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5%;
    margin: 40px;
}

.core-value-item {
    padding: 20px 0;
    border-bottom: 2px solid #000;
}

.core-value-item .number {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
}

.core-value-item h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.core-value-item p {
    font-size: 1em;
    line-height: 1.8;
    color: #000;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .core-value-grid {
        grid-template-columns: 1fr;
    }
    
    .core-value-section {
        width: 90%;
        padding: 30px;
        margin: 40px 20px;
    }
}

/* PCサイズでは非表示 */
.core-value-images-mobile {
    display: none;
}



@media (max-width: 768px) {
    /* スマホサイズでの表示設定 */
    .core-value-images-mobile {
        display: block;
        width: 100%;
        position: relative;
        
    }

    /* 赤い図形 */
    .core-value-shape1 {
        position: absolute;
        width: 50px;
        top: -50px;
        left: 5%;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
        z-index: 1;
    }

    /* グレーの図形 */
    .core-value-shape2 {
        position: absolute;
        width: 15%;
        top: 1000px;
        right: -10%;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
        z-index: 2;
    }

    .core-value-shape1.visible,
    .core-value-shape2.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* モバイル専用クラス */
    .mobile-only {
        display: block;
    }
} 






/* レスポンシブ対応 */
@media (max-width: 768px) {
    .about-section-new-PC {
        display: none;
    }

    .about-section-new-mobile {
        position: relative;
        display: block;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
        padding: 50px 20px;
        padding-top: 60svh;
        /* aspect-ratio: none; */
    }

    .about-images-new {
        width: 90%;
        height: 400px;
        margin-bottom: 30px;
    }

    .about-content-new-mobile {
        width: 100%;
        padding: 30px;
        height: auto;
        /* height: 100svh; */
    }

    .about-page-image-new-6,
    .about-page-image-new-7 {
        width: 150px;
    }

    .about-content-new-mobile h2 {
        font-size: 3rem;
    }

    .about-content-new-mobile h3 {
        font-size: 1.5em;
    }

    .about-page-image-new-4 {
        right: 12%;
        width: 10%;
        z-index: 4;
    }

    .about-page-image-new-51 {
        top: -30svh;
        left: -5%;
        width: 10%;
        z-index: 4;
    }

    /* 各画像の位置指定 */
    .about-page-image-new-3 {
        /* top: 10%; */
        display: none;
    }



    .core-value-title {
        text-align: center;
        margin-top: 30px;
        margin-bottom: 0px;
        position: relative;
        padding-left: 20px;
    }

    .core-value-title h2 {
        font-size: 2.4em;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .core-value-title p {
        font-size: 1em;
        color: #333;
    }

    .core-value-grid {
        display: block;
        background: white;
        border-radius: 10px;
        margin: 40px 10px;
        /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    }

    .about-page-image-new-6 {
        width: 65%;
        position: relative;
        top: -40svh;
        left: 15%;
        transform: translateX(-50%);
        margin-bottom: 30px;
    }

  

    /* グリッドアイテムのスマホ用スタイル */
    .core-value-item {
        margin-bottom: 50px;
        padding: 0;
    }

    .core-value-item:last-child {
        margin-bottom: 0;
    }

    .core-value-item .number {
        font-size: 1rem;
        color: #333;
        margin-bottom: 10px;
    }

    .core-value-item h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .core-value-item p {
        font-size: 0.9em;
        padding: 20px 0;
        line-height: 1.6;
    }
}
@media (max-width: 768px) {
    .text-overlay h2 {
        font-size: 3rem;
    }

    .text-overlay p {
        font-size: 1.2rem;
    }
}
@media (max-width: 768px) {
    .unique-container {
        min-height: 40vh; /* より小さいサイズに調整 */
        margin-top: 0;
        height: auto;
    }

    .background-video {
        height: 100%;
        max-height: 40vh; /* ビデオの最大高さを制限 */
        object-position: center center;
    }

    .unique-image-container {
        top: 100px;

    }

    .unique-text-animation {
        top: 28%;
        font-size: 24px;
    }

    #unique-image1 {
        margin-top: -30px;
        width: 1000px;
        height: 400px;
    }
    
    #unique-image2 {
        margin-top: 80px; /* 上に余白を追加 */
        margin-left: 50px;
        margin-right: 50px;
        top: 25%;
        width: 90%;
    }
    
    
    #unique-image3 {
        margin-top: 80px; /* 上に余白を追加 */
        margin-left: 50px;
        margin-right: 50px;
        top: 25%;
        width: 90%;
    }
    
}

@media (orientation: portrait) {
    .background-video {
        object-fit: cover; /* 縦向きの場合は画面いっぱいに */
    }
}

@media (orientation: landscape) {
    .background-video {
        object-fit: contain; /* 横向きの場合はアスペクト比を維持 */
    }
}


@media (max-width: 768px) {
    .content-section {
        height: 100%;
        margin-top: 30px;
        margin-bottom: 100px;
        overflow: hidden;
    }

    .content-section > p {
        font-size: 0.8rem;
        line-height: 1.5rem;
    }

    .content-section::before {
        font-size: 8vw;
    }
}


@media (max-width: 768px) {
    .about-page-service01-section {
        flex-direction: column;
        /* height: 100%; */
        margin-top: 50px;
        /* padding: 0 5%; */
        /* padding-bottom: 15%; */
    }

    .service01-images,
    .about-page-service01-content {
        width: 100%;
        max-width: 90%;
    }

    .service-title h3 {
        font-size: 1.3rem;
        font-weight: bold;
        margin: 0;
    }
    
    .service-title p {
        font-size: 0.8rem;
        margin: 0;
    }

    .about-page-service01-content p{
        font-size: 0.8rem;
    }

    .service01-p .service01-p1 {
        font-size: 1rem;
        font-weight: bold;
        margin: 1rem 0;
    }

    .service01-p .service01-p2 {
        font-size: 1rem;
        font-weight: bold;
    }


    .about-page-content {
        padding: 5%;
        padding-top: 100%;
        max-width: 100%;
        margin: 0;
        background: none;
        position: relative;
    }

    .about-page-content>h3 {
        font-size: 1.2rem;
    }
    
    .about-page-content>p {
        font-size: 1rem;
    }
    
    .button-centering{
        margin-top: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .service02-section {
        display: flex;
        flex-direction: column;
        background : none;
    }

    .service02-images {
        order: -1;
        display: block;
        flex-direction: column;
    }

    .service02-content{
        max-width: 100%;
        width: 100%;
        padding: 20px 10px; /* 上下の余白を追加 */
    }

    .service02-images {
        max-width: 100%;
        width: 100%;
        padding: 20px 0; /* 上下の余白を追加 */
    }


    .large-box {
        display: none;
    }

    .service02-content h2 {
        font-size: 2rem;
    }

    .service02-content p {
        font-size: 0.8rem;
    }

    .service02-images img {
        display: none; /* すべての画像を非表示にする */
    }

    .service02-images img:nth-child(-n+2) {
        display: inline-block; /* 最初の2枚の画像を表示 */
        width: 48%; /* 横に並べるための幅調整 */
        margin-right: 2%; /* 画像間のスペース */
    }

    .service02-images img:nth-child(2) {
        margin-right: 0; /* 最後の画像の右マージンをリセット */
    }

    .service02-shape1 {
        position: absolute;
        width: 100px;
        top: 80px;
        right: -60px;
        /* transform: rotate(-45deg) !important; */
        z-index: 2;
    }

    .service02-shape2 {
        position: absolute;
        width: 40px;
        top: 400px;
        left: -50px;
        transform: rotate(90deg) !important;
        z-index: 2;
    }

    .about-content-new-mobile p{
        font-size: 1rem;
    }
}



@media (max-width: 1200px) {
    .about-page-content>p {
        font-size: 1rem;
    }

    .about-page-content {
        bottom: -50%;
    }

    .about-page-section{
        padding: 0 2%;
        margin: 30px 0;
        /* min-height: 700px; */
    }

    .about-page-content h2,
    .about-page-service01-content h2 {
        font-size: 2rem;
    }

    .about-page-content h3,
    .about-page-service01-content h3 {
        font-size: 1.5rem;
    }


    .core-value-grid {
        margin: 5% 0;
    }

}