/* servicesページ専用のスタイル */
.main-content {
    background-color: var(--color1);
    background-image: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

/* スクロールバーのスタイル */
/* 横スクロールバー（services-scroll）のスタイル */
.services-scroll::-webkit-scrollbar,
.service-content::-webkit-scrollbar {
    height: 10px;
    width: 3px; /* 縦スクロールバー用 */
}

.services-scroll::-webkit-scrollbar-track,
.service-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.services-scroll::-webkit-scrollbar-thumb,
.service-content::-webkit-scrollbar-thumb {
    background: var(--color-orange);
    border-radius: 5px;
}

.services-scroll::-webkit-scrollbar-thumb:hover,
.service-content::-webkit-scrollbar-thumb:hover {
    background: #e67e22;
}

/* サービスカードのスタイル */
.services-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: scroll;
    padding: 2rem;
    scroll-snap-type: x mandatory;
    position: relative;
}

.service-card {
    position: relative;
    min-width: 53.33%;
    height: 40vh;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-orange);
    border-radius: 10px;
    padding: 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-logo {
    position: absolute;
    bottom: 10%;
    right: 2%;
    width: auto;
    height: 300px;
    opacity: 0.8;
    z-index: -1;
    mix-blend-mode: normal;
}

.service-title h2 {
    font-size: 2.5rem;
    color: var(--color-orange);
    margin: 0;
}

.pronunciation {
    font-size: 1.2rem;
    color: white;
    margin-left: 1rem;
}

.service-content {
    padding: 1rem;
    height: 200px;
    overflow-y: scroll;
}

.service-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.service-content li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.service-content h3 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: var(--color-orange);
}

.service-content p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

/* 共通ボタンスタイル */
.more-info,
.official-web,
.renewing {
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    flex: 1;  /* 同じ大きさになるよう追加 */
    max-width: 200px; /* 最大幅を設定 */
    white-space: nowrap; /* テキスト折り返しなし */
    text-align: center; /* テキストを中央揃え */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 詳しくはこちらボタン */
.more-info {
    background-color: var(--color-orange);
    color: white;
}

.more-info:hover {
    opacity: 0.8;
}

/* 公式webはこちらボタン */
.official-web {
    background-color: white;
    color: var(--color-orange);
    margin-right: 1rem;
}

.official-web:hover {
    opacity: 0.8;
}

/* リニューアル中ボタン */
.renewing {
    background-color: #888;
    color: white;
    cursor: default;
}

.renewing:hover {
    opacity: 1; /* ホバー時に透明度を変えない */
}

/* ボタンを横並びにするコンテナ */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

/* 各カードの右側に三角形を配置 */
.service-card::after {
    content: "";
    position: absolute;
    right: -1.4rem; /* カード間の隙間の中央 */
    top: 50%;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
}

/* 最後のカードには三角形を表示しない */
.service-card:last-child::after {
    display: none;
}
