/* Base */
@import "css/base/_variables.css";
@import "css/base/_reset.css";

/* Layouts */
@import "css/layouts/_grid.css";

/* 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";


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

.background-video {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    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; /* 上に余白を追加 */
}


@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 {
        width: 100%;
    }
}

@media (orientation: landscape) {
    .background-video {
        height: 100vh;
    }
}

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

}

.content-section>p {
    text-align: center;
    line-height: 3rem;
    font-weight: bold;
    font-size: 1.5rem;
}

/* 背景テキストのスタイル追加 */
.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;
}

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

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

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

.content-section p span,
.about-content p span,
.about-content h2 span,
.about-content h3 span,
.service01-content p span,
.service01-content h2 span,
.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-content p span.visible,
.about-content h2 span.visible,
.about-content h3 span.visible,
.service01-content p span.visible,
.service01-content h2 span.visible,
.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-section {
    align-items: center;
    /* height: 100svh; */
}

.about-content {
    min-width: 300px;
    max-width: 55%;
    margin-right: 20px;
    padding: 120px 60px;
    z-index: 1;
    top: 0;
    /* position: absolute; */
}

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


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


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

.about-images {
    position: relative;
    /* background-color: #f9f9f9; */
    /* z-index: 0; */
    z-index: 3;
}

.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%;
}

.image8 {
    bottom: 20%;
    left: 20%;
}

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;
    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;
}

.service01-section {
    display: flex;
    align-items: center;
    box-sizing: border-box;

}

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

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

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

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

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


.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; */
}

.service01-content p {
    /* font-size: 1rem; */
    line-height: 1.5;
}

.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%;
    max-width: 300%;
}

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

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

@media (min-width: 1200px) {

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

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

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

    .about-content h2,
    .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%;
    }
}


@media (max-width: 1200px) {

    .about-section{
        padding: 0 2%;
    }
    .about-section{
        margin-top: 100px;
    }

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

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

}


@media (max-width: 768px) {
    /* .about-section{
        text-align: center;
    } */

    .service01-section {
        flex-direction: column;
        /* height: 100%; */
        margin-top: 50px;
        /* padding: 0 5%; */
        /* padding-bottom: 15%; */
    }

    .service01-images,
    .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;
    }

    .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: 0.9rem;
        font-weight: bold;
    }


    .about-content {
        padding: 0 30px 0 30px;
        padding-top: 320px;
        max-width: 100%;
        margin-right: 0;
    }

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


.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: 40px;
    transform: rotate(90deg) !important;
}

.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;
}

@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: 500px;
        left: -50px;
        transform: rotate(90deg) !important;
        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;
}




@media (max-width: 768px) {
    .approach-section {
        flex-direction: column; /* 縦方向に配置 */
        align-items: center; /* 中央揃え */
    }

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

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

    .approach-images{
        display: none;
    }
}

.sitemap {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 80%;
}

.sitemap h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.sitemap ul {
    list-style: none;
    padding: 0;
}

.sitemap li {
    font-size: 1rem;
    margin-bottom: 5px;
}

.title-container {
    display: flex;
    justify-content: space-between;
}

.title-container button {
    width: 35px;
    height: 35px;
    background-color: #e74c3c; /* 赤色 */
    border: none;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.title-container button::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(135deg);
    transition: transform 0s; /* 回転のトランジションを削除 */
}

.title-container button:hover {
    background-color: #c0392b; /* 少し濃い赤色 */
}

.toggle-button {
    background: none; /* 背景を透明に */
    border: none; /* ボーダーを削除 */
    padding: 0; /* パディングを削除 */
    cursor: pointer; /* カーソルをポインターに */
    font-size: 24px; /* フォントサイズを大きく */
    color: #000; /* テキストカラーを黒に */
    transition: background-color 0.3s ease; /* 背景色のトランジションのみ */
    margin: 0;
}

.toggle-button:hover {
    background-color: #e0e0e0; /* ホバー時の背景色 */
}

.toggle-button.rotated {
    background-color: #f00; /* ボタンがクリックされたときの色 */
}

.toggle-button.rotated::before {
    transform: rotate(315deg); /* 棒だけを回転 */
}


.content {
    overflow: hidden;
    max-height: 0; /* 初期状態では高さを0に設定 */
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.3s ease;
    padding: 0; /* 初期状態ではパディングも0にして完全に隠す */
}

.content.open {
    max-height: 500px; /* 適切な最大高さを指定 */
    opacity: 1;
    padding: 20px; /* 開いた時のパディングを適用 */
}

.detail-item {
    background-color: #fff;
    margin-bottom: 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 20px;
}

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

.detail-item.red .toggle-button {
    padding-top: 5px;
    background-color: #e74c3c;
}

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

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

.detail-item.gray .toggle-button {
    padding-top: 5px;
    background-color: gray;
}

.toggle-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 24px;
    color: #000;
    transition: transform 0.3s ease;
}

.toggle-button.rotated {
    transform: rotate(45deg);
}


.image-grid {
    display: grid;
    grid-template-areas:
        "top-left center-right"
        "center-left bottom-right";
    gap: 10px;
}


.image-grid img {
    position: absolute;
    width: 150px;
    height: 150px;
    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);
    z-index: 1; /* ベースのz-indexを設定 */
}

.image-grid img.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .image-grid img {
        width: 120px;
        height: 120px;
    }
}

.image-top-left {
    top: 5%;
    left: 10%;
    transition-delay: 0s;
}

.image-center-right {
    top: 30%;
    right: 10%;
    transform: translateY(-50%);
    transition-delay: 0.2s;
}

.image-center-left {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    transition-delay: 0.4s;
}

.image-bottom-right {
    bottom: 10%;
    right: 10%;
    transition-delay: 0.6s;
    z-index: 1000 !important; /* より高い優先度でz-indexを設定 */
}

@media (max-width: 768px) {
    .image-top-left {
        top: 5%;
        left: 0;
        transform: translate(-15px, 0) !important;
    }
    
    .image-center-right {
        top: 40%;
        right: -5%;
        transform: translate(15px, -50%) !important;
    }
    
    .image-center-left {
        top: 53%;
        left: -5%;
        transform: translate(-15px, -50%) !important;
    }
    
    .image-bottom-right {
        bottom: 5%;
        right: -5%;
        transform: translate(15px, 0) !important;
        z-index: 1000 !important;
    }
    
}



.image-top-left.visible {
    animation-delay: 0s;
}

.image-center-right.visible {
    animation-delay: 1.5s;
}

.image-center-left.visible {
    animation-delay: 2s;
}

.image-bottom-right.visible {
    animation-delay: 2s;
}

/* 画像の基本アニメーション設定 */
img:not(.menu-icon), .image-mobile {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

/* 表示状態 */
img.visible, .image-mobile.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 非表示状態への遷移 */
img:not(.menu-icon):not(.visible), .image-mobile:not(.visible) {
    opacity: 0;
    transform: translateY(-20px);
}

/* 遅延設定 */
img.visible[class*="delay-"], .image-mobile.visible[class*="delay-"] {
    transition-delay: var(--delay, 0s);
}

/* 遅延時間の定義 */
.delay-0 { --delay: 0s; }
.delay-1 { --delay: 0.5s; }
.delay-2 { --delay: 1s; }
.delay-3 { --delay: 1.5s; }
.delay-4 { --delay: 2s; }
.delay-5 { --delay: 2.5s; }

/* アニメーション無効化クラス */
.no-animation {
    transition: none !important;
}

/* 以下の重複するアニメーション定義を削除 */
/* @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

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

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

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

.about-image-4 {
    position: absolute;
    width: 50px;
    right: 100px;
    top: 50px;
}

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

.about-image-6 {
    position: absolute;
    width: 200px;
    right: 0px;
    top: 350px;
}

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

.about-image-41 {
    position: absolute;
    width: 50px;
    right: 0px;
    top: 100px;
}

.about-image-51 {
    position: absolute;
    width: 150px;
    right: 400px;
    /* top: 300px; */
}

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

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

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

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

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

    .about-image-6 {
        position: absolute;
        width: 80px;
        right: 0px;
        top: 50px;
        display: none;
    }

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

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

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

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

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

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

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

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

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

    .about-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;
    }

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

    .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; /* 高さは自動調整 */
    }

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

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

.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: contain; /* 縦横比を維持しつつ、枠にフィット */
}

.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 {
        height: 40vh;
    }

    .background-video {
        width: 100%;
        height: 100%;
        max-height: 40vh;
    }
}

/* スマートフォン縦向き */
@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%;
    }
}


.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: 1200px) {
    .service01-shape1 {
        position: absolute;
        width: 30px;
        top: 250px;
        right: 20px;
        /* transform: rotate(-45deg) !important; */
        z-index: 2;
    }

    .service01-shape2 {
        position: absolute;
        width: 40px;
        top: 750px;
        left: -5%;
        /* transform: rotate(90deg) !important; */
        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: 750px;
        left: -5%;
        /* 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%;
    }
}

/* デバッグよう */
/* @media (max-width: 768px) {
    * {
        outline: 1px solid red;
    }

    div {
        background: rgba(255, 0, 0, 0.1);
    }

    div {
        max-width: 100vw;
    }

    * {
        scrollbar-width: thin;
        scrollbar-color: red transparent;
    }

    *:not(body):not(html) {
        border-right: 2px solid blue;
    }
} */


.content-p{
    font-size: 0.9rem;
}