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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #EDCFCE; 
    color: #4A3B3B; 

    /* 日本語禁則　句読点・括弧などを行頭に置かない */
    line-break: strict;
    /* 英単語もはみ出さず折り返す */
    overflow-wrap: break-word;
    /* 単語の途中では原則改行しない */
    word-break: normal;
}

p {
    word-break: normal;         /* フォールバック */
    word-break: auto-phrase;    /* 対応ブラウザでは自然に改行 */
    overflow-wrap: break-word;
    line-break: strict;
}

/* 改行用 */
.sp-only {
    display: none;
}

section h2 {
    background: linear-gradient(135deg, #D48888 0%, #C77D7D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #C77D7D;
    font-size: 3rem;
    display: inline-block;
}

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

/* Header */
.navbar {
    position: fixed;
    top: 0;
    height: 5rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(237, 207, 206, 0.3);
}

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

/* Top Section */
.top-slider {
    margin-top: 5rem;
    position: relative;
    width: 100%;
    height: calc(100vh - 5rem);
    overflow: hidden;
}

.top-slides {
    display: flex;
    width: 700%;
    height: 100%;
    transition: transform 1s ease;
}

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

.top-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.top-text h1 {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
}

.top-text h1 span {
    font-size: 3.5rem;
    display: block;
}

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

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

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

.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%;
    border-radius: 10px;
}

/* Data Section */
.data-section {
    text-align: center;
    padding: 2.5rem 1.25rem;
    background-color: #fff;
    border-radius: 20px;
    margin: 2rem;
}

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

/* -------------------------------------
   料金表 (Price)
------------------------------------- */
.price {
    padding: 2rem 1rem;
    text-align: center;
    background-color: #fff;
    margin: 2rem; 
    border-radius: 20px;
}

.price h2 { margin-bottom: 0.625rem; }
.price .note { margin-bottom: 1.25rem; color: #4A3B3B; }

.campaign-message { color: #E68A8A; font-weight: bold; text-align: center; margin: 0 auto; }
.admission-fee { text-align: center; margin: 0.5rem auto 2rem auto; }
.admission-fee span { color: #E68A8A; font-weight: bold; font-size: 1.5rem; }

.priceTable.noa-style {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(237, 207, 206, 0.3);
}

.priceTable.noa-style th {
    background-color: #EDCFCE;
    color: #4A3B3B;
    padding: 1rem;
    font-weight: bold;
    text-align: center;
}

.priceTable.noa-style tr {
    border-bottom: 1px solid #F0E0E0;
}

.priceTable.noa-style tbody tr:last-child {
    border-bottom: none;
}

.priceTable.noa-style td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
}

.priceTable.noa-style .plan-name {
    text-align: left;
    width: 55%;
}

.priceTable.noa-style .plan-price {
    text-align: right;
    width: 45%;
}

.priceTable.noa-style .plan-title {
    font-weight: bold;
    color: #C77D7D;
    font-size: 1.1rem;
}

.priceTable.noa-style .highlight-price {
    font-size: 1.15rem; 
    font-weight: bold;
    color: #D48888; 
    letter-spacing: 0.05em; 
}

.priceTable.noa-style .limit-note,
.priceTable.noa-style .one-lesson {
    display: block;
    font-size: 0.8rem;
    color: #8C7373;
    margin-top: 0.25rem;
}

.priceTable.noa-style .strikethrough-price {
    color: #8C7373;
    text-decoration: line-through;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.priceTable.noa-style .strikethrough-text {
    text-decoration: line-through;
    color: #8C7373;
}

.priceTable.noa-style .highlight-text {
    color: #D48888; 
    font-weight: bold;
}

/* -------------------------------------
   トレーナー 横スクロール (Trainers)
------------------------------------- */
.trainers {
    background-color: #FFF5F5;
    color: #4A3B3B;
    padding: 3.75rem 0; 
    text-align: center; 
}

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

.trainers-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 0 calc(50% - 500px) 2rem calc(50% - 500px); 
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1050px) {
    .trainers-wrapper {
        padding: 0 5% 2rem 5%;
    }
}

.trainers-wrapper::-webkit-scrollbar { height: 6px; }
.trainers-wrapper::-webkit-scrollbar-thumb { background: #D48888; border-radius: 10px; }
.trainers-wrapper::-webkit-scrollbar-track { background: #F7E6E6; }

.trainer-card {
    flex: 0 0 90%; 
    max-width: 1000px; 
    scroll-snap-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(237, 207, 206, 0.4);
    display: flex;
    flex-direction: row; 
    align-items: flex-start;
    gap: 3.5rem;
    text-align: left;
}

.trainer-slider {
    position: relative;
    width: 100%;
    max-width: 320px; 
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0.75rem;
}

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

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

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 240, 245, 0.8);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow img {
    width: 60px;
    height: 60px;
    opacity: 0.7;
}

.arrow.prev { left: 10px; }
.arrow.next { right: 10px; }

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

.trainer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #EDCFCE;
    padding-bottom: 0.25rem;
    color: #4A3B3B;
}

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

.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 & Footer
------------------------------------- */
.access { 
    padding: 2.5rem 1rem; 
    background-color: #fff; 
    border-radius: 20px; 
    margin: 2rem; 
}

.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: #4A3B3B; }
.access-data dd { margin: 0 0 1.5rem; padding-left: 0.75rem; color: #6B5555; }
.map { flex: 1 1 18.75rem; max-width: 37.5rem; }
.map iframe { width: 100%; height: 18.75rem; border: none; border-radius: 0.5rem; }
.footer { padding: 1.25rem; text-align: center; background-color: transparent; color: #8C7373; }

/* SNSアイコンとリンクのデザイン */
.sns dd a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #4A3B3B;
    border-bottom: 2px solid #4A3B3B;
}
.sns .icon {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 0.5rem 0.25rem 0;
}


/* -------------------------------------
   Floating Button
------------------------------------- */
.reservation-buttons-wrapper {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}
.btn img {
    width: 300px;
    height: auto;
    border: 2px solid #EDCFCE;
    border-radius: 10px;
}
#scrollImage { transition: opacity 0.3s ease; opacity: 1; }
#scrollImage.hidden { opacity: 0; }


/* -------------------------------------
   スマホ用レイアウト調整
------------------------------------- */
@media (max-width: 768px) {
    .sp-only { display: inline; }

    section h2 { font-size: 2rem; }

    .navbar { height: 4rem; padding: 0 1rem; }
    .logo { width: 7.5rem; margin-top: 0.625rem; }

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

    .training,
    .price,
    .access {
        margin: 1rem; 
        padding: 1.5rem 1rem; 
    }

    .data-section{
        margin: 1rem; 
        padding: 2rem 1rem; 
    }

    .training { flex-direction: column; }
    
    .training-text { padding: 0; }
    .training-text h2 { font-size: 1.45rem; line-height: 1.4; word-break: keep-all; }
    .training-text h3 { font-size: 1rem; line-height: 1.4; word-break: keep-all; }

    .trainer-card {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .trainer-slider {
        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 {
        text-align: center;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .btn img {
        width: 80%;
        margin-top: 0.2rem;
    }

    .top-overlay-text h1 { font-size: 1.5rem; margin: 0; }
    .top-overlay-text h2 { font-size: 1.2rem; margin: 0; }
}