/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ecf9fd;
    color: #333333;
}

.sp-only {
    display: none;
}

section h2 {
    color: #38BBCE;
    font-size: 3rem;
}

.emphasis_text {
    font-weight: bold;
    font-size: 1.125rem;
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    height: 5rem;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    z-index: 999;
}

.navbar-logo {
    margin: 0;
}

.logo {
    width: 9.375rem;
    margin-top: 0.625rem;
}

.buttons button img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Top Section */
.top-image {
    margin-top: 5rem; /* ナビの高さ分ずらす */
}

.top-image img {
    width: 100%;
    height: calc(100vh - 5rem);
    object-fit: cover;
}

/* Training */
.training {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    background-color: #fff;
    gap: 2rem;
}

.training-text {
    flex: 1 1 20rem;
    padding: 0 1.5rem;
}

.training-text h3 {
    font-size: 1.5rem;
    color: #737373;
}

.about-us {
    margin: 2rem 0;
}

.about-us::before {
    content: '';
    width: 1.875rem;
    background-color: currentColor;
    height: 0.0625rem;
    display: inline-block;
    vertical-align: top;
    margin: 0.875rem 0.625rem 0 0;
}

.gym-explanation {
    line-height: 2;
    margin-bottom: 2rem;
}
.training-image {
    flex: 1;
}

.training-image img {
    width: 100%
}

/* Data Section */
.data-section {
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.chart-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.875rem;
}

.chart-wrapper {
    width: 15.625rem;
    height: 15.625rem;
}

canvas {
    width: 100%;
    height: 100%;
}

.custom-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-top: 0.5rem;
}

.custom-legend div {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #444;
}

.custom-legend span {
    display: inline-block;
    width: 1.75rem;
    height: 0.875rem;
    margin-right: 0.375rem;
    background-color: #ccc;
    border: 0.125rem solid #fff;
    box-sizing: border-box;
}

/* Price セクション全体 */
.price {
    padding: 2rem;
    text-align: center;
}

.price h2 {
    margin-bottom: 0.625rem;
}

.price .note {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: #333;
}

/* テーブルの基本設定 */
.priceTable {
    width: 100%;
    max-width: 62.5rem;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: white;
}

.priceTable th,
.priceTable td {
    border: 1px solid #ccc;
    padding: 1rem;
    vertical-align: middle;
    font-size: 1rem;
}

.priceTable thead .course {
    background-color: #d0f1f7;
}

.priceTable thead th {
    color: #38BBCE;
    font-weight: bold;
}

.service-note {
    font-size: 0.75rem;
}
.font-bold {
    font-weight: bold;
}

.color-38BBCE {
    color: #38BBCE;
}

/* キャンペーン用 */
.campaign-message {
    color: #ee7800;
    width: 100%;
    max-width: 62.5rem;
    margin: 0 auto;
    text-align: left;
    font-weight: bold;
}
.admission-fee {
    width: 100%;
    max-width: 62.5rem;
    margin: 0 auto;
    margin-top: 0.625rem;
    text-align: left;
}

.admission-fee span {
    color: #ee7800;
    font-weight: bold;
    font-size: 1.5rem;
}

.scroll {
    text-align: left;
    margin-top: .5rem;
}

.strikethrough {
    text-decoration: line-through;
    color: #ee7800;
    /* text-decoration-color: #ee7800; */
}
  

/* Trainers */
.trainer-slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    border-radius: 0.75rem;
    margin: 0 auto;
}

.trainer-slides {
    display: flex;
    width: 100%;
    transition: transform 0.8s ease-in-out;
}

.trainer-slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 0.75rem;
}

.slider-indicators {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background:rgba(204, 204, 204, 0.7);
    border: none;
    border-radius: 50%; /* 丸くする */
    width: 48px;
    height: 48px;
    padding: 0;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
  }
  
  .arrow img {
    width: 60px;
    height: 60px;
    opacity: 0.7; /* アイコンも半透明 */
    transition: opacity 0.3s ease;
  }
  
  .arrow:hover {
    background: #ccc;
  }
  
  .arrow:hover img {
    opacity: 1;
  }
  
  .arrow.prev {
    left: 10px;
  }
  
  .arrow.next {
    right: 10px;
  }

/* レスポンシブ */
@media screen and (max-width: 768px) {
    .trainer-card {
        flex-direction: column;
        align-items: center;
    }
}

.trainers {
    background-color: #2e3b45;
    color: #fff;
    padding: 3.75rem 2rem;
}

.trainers h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.trainer-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3.75rem;
    flex-wrap: wrap;
}

.trainer-info {
    flex: 1;
    min-width: 17.5rem;
}

.trainer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 0.125rem solid #fff;
    padding-bottom: 0.25rem;
}

.trainer-info h4 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.5rem;
    color: #a0d8ef;
}

.trainer-info ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.trainer-info ul li {
    list-style: disc;
    margin-bottom: 0.25rem;
}

.trainer-info p {
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

/* Access */
.access {
    padding: 3rem 2rem;
    background-color: #f5f5f5;
}

.access-title {
    text-align: center;
    margin-bottom: 2rem;
}

.access-body {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-around;
}

.access-data dl {
    margin: 0;
}

.access-data dt {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.access-data dd {
    margin: 0 0 1.5rem;
    padding-left: 0.75rem;
    color: #555;
}

.time-elaboration:not(:first-of-type) {
    margin-top: 0.25rem;
}

.map {
    flex: 1 1 18.75rem;
    max-width: 37.5rem;
}

.map iframe {
    width: 100%;
    height: 18.75rem;
    border: none;
    border-radius: 0.5rem;
}

/* Footer */
.footer {
    padding: 1.25rem;
    text-align: center;
    background-color: #fff;
}

.footer-links button {
    height: 9.375rem;
    width: 18.75rem;
    margin: 3.125rem;
    border-radius: 0.625rem;
}

/* Floating Button */
.reservation-buttons-wrapper {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.btn img {
    width: 400px;
    height: auto;
    border: 2px solid #a0d8ef;
    border-radius: 10px;
}

.line-btn {
    background-color: #06C755;
    border-radius: 50%;
    padding: 0.625rem;
    transition: background-color 0.3s ease;
}

.line-btn:hover {
    background-color: #04a94f;
    color: #ffffff;
}

.sns dd a{
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    border-bottom: 2px solid #333;
}

.sns .icon {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 0.5rem 0.25rem 0;
}

#scrollImage {
    transition: opacity 0.3s ease;
    opacity: 1;
}

#scrollImage.hidden {
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sp-only {
        display: block;
    }

    section h2 {
        font-size: 2rem;
    }

    .navbar {
        height: 4rem;
        padding: 0 1rem;
    }

    .logo {
        width: 7.5rem;
        margin-top: 0.625rem;
    }

    .top-image {
        margin-top: 4rem;
    }

    .top-image img {
        height: calc(100vh - 4rem);
    }

    .price table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .training {
        flex-direction: column;
        padding: 1.25rem;
    }

    .training-text {
        padding: 0;
    }

    .trainer-card {
        flex-direction: column;
        align-items: center;
    }

    .training-text h2 {
        font-size: 1.75rem;
        line-height: 1.4;
        word-break: keep-all;
    }

    .training-text h3 {
        font-size: 1rem;
        line-height: 1.4;
        word-break: keep-all;
    }

    .trainer-card img {
        width: 100%;
        max-width: none;
    }

    .data-section .note,
    .price .note {
        font-size: 0.875rem;
    }

    .access-body {
        flex-direction: column;
        gap: 1.25rem;
    }

    .map iframe {
        height: 15rem;
    }

    .chart-group {
        flex-direction: column;
        align-items: center;
    }

    .chart-wrapper {
        width: 12.5rem;
        height: 12.5rem;
    }

    .reservation-buttons-wrapper {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        z-index: 9999;
    }

    .reservation-button-group p {
        color: #ffffff;
        font-size: 0.625rem;
        text-align: center;
        line-height: 1.1;
        margin: 0;
    }

    .btn img {
        width: 100%;
        height: 100%;
        margin-top: 0.2rem;
        border: 2px solid #a0d8ef;
        border-radius: 10px;
    }

    .priceTable {
        overflow-x: scroll;
    }

    .priceTable thead .course {
        text-align: left;
    }

    
}
