.top-image {
    width: 100%;
    height: 100vh;
    background-size: cover;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
    }
}

.service-content-top {
    width: 100%;
    height: 50vh;
    margin-top: -60vh;
    position: relative;
}

.triangle {
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
}

.container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    padding: 40px;
    align-items: center;
    gap: 80px;
    padding-top: 225px;
    z-index: 1;
    position: relative;
    margin: 0 auto;
}

.service-title {
    color: white;
    font-size: 70px;
    font-weight: bold;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
}

.service-subtitle {
    color: white;
    font-size: 23px;
    margin-bottom: 40px;
    font-weight: bold;
}

.service-title-area {
    display: flex;
    flex-direction: column;
    width: 50%;
    margin: 0 auto;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: white;
    font-size: 130px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 8px;
}

.left-content {
    width: 50%;
    margin: 0 auto;
}

.service-left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.right-content {
    width: 50%;
    margin-top: 200px;
}

.main-title {
    color: rgb(0, 0, 0);
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 70px;
    line-height: 1.4;
}

.description {
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.8;
    margin-bottom: 20px;
}

.description-block {
    margin-bottom: 15px;
    margin-top: 20px;
}

.main-wrapper {
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: center;
    margin: 0 auto;
}

.service-number {
    font-size: 4rem;
    font-weight: bold;
    color: #666;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}


.service-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
    transition: all 0.3s ease;
}

.service-description p {
    margin-bottom: 20px;
}

.buttons-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: black;
}

.service-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.service-button.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.service-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-button:hover::before {
    left: 100%;
}

.button-text {
    font-size: 1.1rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

/* service-button-2のスタイル（service-buttonと同じ） */
.service-button-2 {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-button-2:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.service-button-2.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.service-button-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-button-2:hover::before {
    left: 100%;
}

.service-content-section {
    margin-top: 100vh;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .main-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .service-number {
        font-size: 3rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-description {
        font-size: 0.9rem !important;
    }

    .buttons-section {
        order: -1;
    }
}

/* コンテンツセクションの修正 */

.content-section {
    padding: 60px 40px !important;
    background-image: url('/src/images/service/service-01.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    filter: none !important;
    filter: brightness(0.8) !important;
    /* brightness フィルターを削除 */
    position: relative !important;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
}

.content-section2 {
    padding: 60px 40px !important;
    background-image: url('/src/images/service/service-bg-01.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    filter: none !important;
    /* brightness フィルターを削除 */
    position: relative !important;
    /* filter: brightness(0.8) !important; */
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
}

/* 背景のオーバーレイ */
.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* 背景のオーバーレイ */
.content-section2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* コンテンツを前面に */
.content-section>* {
    position: relative;
    z-index: 2;
}

/* コンテンツを前面に */
.content-section2>* {
    position: relative;
    z-index: 2;
}

/* フェードアニメーション用のスタイル */
.content-section .service-number,
.content-section .service-title,
.content-section .service-description {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}


/* テキストスタイルの強化 */
.content-section .service-number,
.content-section2 .service-number {
    font-size: 3rem !important;
    font-weight: bold !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.content-section .service-title,
.content-section2 .service-title {
    font-size: 3rem;
    font-weight: bold !important;
    margin-bottom: 30px !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.content-section .service-description,
.content-section2 .service-description {
    font-size: 1.5rem;
    line-height: 1.8 !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.content-section .service-description p,
.content-section2 .service-description p {
    margin-bottom: 20px !important;
}

/* ボタンのアクティブ状態 */
.service-button.active,
.service-button-2.active {
    background: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3) !important;
}

.service-button,
.service-button-2 {
    transition: all 0.3s ease;
}

.service-content-section-2 {
    margin-top: 100px;
    margin-bottom: 100px;
}