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

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


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

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

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

.text-overlay p {
    font-size: 3rem;
    font-weight: bold;
    text-align: left;
}



.service-content-section {
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
}

.content-wrapper {
    position: relative;
    width: 100%;
    
    margin: 0 auto;
}

.image-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.image-grid img {
    position: absolute;
    width: 200px; /* 画像サイズを指定 */
    height: auto;
    display: block; /* 追加 */
}

.service-image-top-left {
    top: 100px;
    left: 100px;
}

.service-image-center-right {
    top: 300px;
    right: 100px;
}

.service-image-center-left {
    top: 800px;
    left: 100px;
}

.service-image-bottom-right {
    top: 1000px;
    right: 100px;
}

.text-content {
    /* position: absolute;
    top: 40%; */
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    text-align: center;
    z-index: 2;
    width: 80%;
    margin: auto;
    font-weight: bold;
    font-size: 0.8rem;
}

.text-content h2 {
    margin-bottom: 1.5rem;
}

.text-content span {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

@media (max-width: 1200px) {
    .image-grid img {
    display: none;
   } 
}


@media (max-width: 768px) {


.text-content span {
    font-size: 0.8rem;
}

    .service-image-top-left {
        top: 10%;
        left: -30%;
    }

    .service-image-center-right {
        top: 30%;
        right: -30%;
    }

    .service-image-center-left {
        top: 60%;
        left: -30%;
    }

    .service-image-bottom-right {
        top: 80%;
        right: -30%;
    }


    .service-content-section {
        height: 100%;
        margin-top: 30px;
        margin-bottom: 100px;
        overflow: hidden;
    }

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

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

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

.service-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;
    /* margin: 10% 0; */
    overflow: hidden;
    /* height: 100svh; */
}

.about-content {
    padding: 60px;
    z-index: -2;
    top: 100px; /* 下に100px移動 */
    background-color: var(--bg-color);
    margin-left: 40%; /* 左からのマージンを追加 */
    margin-top: 10%; /* 上からのマージンを追加 */
}

.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.05rem;
    letter-spacing: 0.2rem;
    font-weight: 700;
}


@media (min-width: 1200px) {

    .about-section{
        padding: 10%;
        padding-top: 5%;
        padding-bottom: 0;
    }


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

    }
}



@media (max-width: 1200px) {

    .about-section{
        margin: 30px 0;
    }
}


@media (max-width: 768px) {

    .about-content {
        padding: 5%;
        padding-top: 480px;
        max-width: 100%;
        margin: 0;
        background: none;
    }
    .about-content>p {
        font-size: 1rem;
    }
}


.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) {
    .approach-section {
        padding: 30px 5%;
    }
}

.service01-shape1 {
    right: 0;
}

@media (max-width: 768px) {
    .service01-shape1 {
        width: 40px;
        top: 350px;
    }

    .service01-shape2 {
        top: 600px;
    }
}




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

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

.info-section {
    width: 100%;
    padding: 4rem 0;
    margin-top: 2rem;
}

.info-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    background-color: white;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.info-text {
    flex: 1;
    margin-left: 5%;
}

.info-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-text h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.info-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.2rem;
    font-weight: bold;
}

.info-image {
    flex: 1;
    max-width: 50%;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .info-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .info-text,
    .info-image {
        max-width: 100%;
        padding-top: 3rem;
    }


.info-text h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.info-text h3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.info-text p {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-size: 0.8rem;
    font-weight: bold;
}

}

.article-section {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.article-header {
    position: relative;
    margin-bottom: 3rem;
}

.triangle-decoration {
    width: 50px;
    height: 50px;
    background-color: #000;
    clip-path: polygon(0 0, 0% 100%, 100% 0);
    position: absolute;
    left: 0;
    top: 0;
}

.article-header h2 {
    font-size: 2rem;
    padding-left: 70px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.article-card {
    position: relative;
    background-color: #f5f5f5;
    padding: 2rem;
    text-decoration: none;
    color: #000;
    min-height: 150px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.article-card:hover {
    background-color: #e5e5e5;
}

.article-card h3 {
    font-size: 1.2rem;
    line-height: 1.6;
}

.triangle-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: #000;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

.related-business {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.related-business h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 4rem;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.business-card {
    background: #fff;
    border: 1px solid #eee;
    position: relative;
}

.number-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.number {
    position: relative;
    width: 45px; /* 幅を調整 */
    height: 70px; /* 縦長に */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 2rem;
}

.number.red {
    background-color: #E84141;
    color: #fff;
}

.number.yellow {
    background-color: #FFC700;
    color: #fff;
}


.number.blue {
    background-color: #3498db;
    color: #fff;
}


.number.black {
    background-color: #000;
    color: #fff;
}


.number.red::after {
    content: '';
    position: absolute;
    bottom: -20px; /* 灰色ブロックの位置 */
    left: 0;
    width: 100%;
    height: 20px; /* 灰色ブロックの高さ */
    background-color: #E5E5E5; /* 灰色 */
}

.title-block {
    padding: 1.5rem 3rem;
}

.title-block h3 {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.4;
}

.subtitle {
    display: block;
    color: #E84141;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.business-content {
    padding: 0 1.5rem 1.5rem;
}

.business-content p {
    line-height: 1.8;
    margin: 0;
    font-size: 0.9rem;
}

.more-button {
    text-align: center;
    margin-top: 4rem;
}

.btn-more {
    display: inline-block;
    padding: 1rem 4rem;
    border: 1px solid #000;
    border-radius: 50px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: #000;
    color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .business-card {
        padding: 1.5rem;
    }

    .title-block {
        padding: 1.5rem 1rem;
    }
}

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

/* 画像コンテナのスタイル */
.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-image-new-3 {
    /* top: 10%; */
    left: 5%;
    width: 40%;
    z-index: 1;
}

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

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

.about-image-new-51 {
    bottom: 0;
    right: 35%;
    width: 5%;
    z-index: 4;
}

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

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

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

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


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

.about-content-new p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: bold;
    color: #666;
}

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

.about-content-new h3 {
    font-size: 1.8em;
    margin: 30px 0;
    color: #333;
}

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

/* アニメーション用のスタイルを明示的に設定 */
.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 h2 span.visible,
.about-content-new h3 span.visible,
.about-content-new p span.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .about-section-new {
        flex-direction: column;
        padding: 50px 20px;
        padding-top: 50svh;
    }

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

    .about-content-new {
        width: 100%;
        padding: 30px;
    }

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

    .about-content-new h2 {
        font-size: 2em;
    }

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

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

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

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


    /* Mission セクションのスマホ用スタイル */
    .core-value-section {
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin: 40px 20px;
    }

    .core-value-title {
        text-align: left;
        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;
        padding: 0px 20px;
        border-radius: 10px;
        /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    }

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

  

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

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

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

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

    .core-value-item p {
        font-size: 0.9em;
        line-height: 1.6;
    }
}

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

.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: 40px;
    margin-top: 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: 1.5em;
    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 {
        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: 1200px) {
    .text-overlay{
        top: 60%;
        left: 40%;
    }

    .text-overlay h2 {
        font-size: 6rem;
    }

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

@media (max-width: 768px) {
    .text-overlay{
        top: 60%;
        left: 40%;
    }

    .text-overlay h2 {
        font-size: 3rem;
    }

    .text-overlay p {
        font-size: 1.2rem;
    }

    .service-page-image-mobile{
        width: 80%;
        margin: auto;
        margin-bottom: 50px;
    }
}

/* スクロールインジケーター用のスタイル */
@media screen and (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
    .scroll-indicator {
        margin-top: -10px;
        margin-bottom: 20px;
    }
}