/* ============================================
   CSS Reset
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* PC画面でのみスクロールバーを常に表示してレイアウトシフトを防ぐ */
@media (min-width: 821px) {
    html {
        overflow-y: scroll;
    }
}

/* ============================================
   基本スタイル
   ============================================ */
body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.sub-page {
    background-color: #fefefe;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    color: #0052a3;
    text-decoration: underline;
}

b {
    font-weight: 600;
    font-size: 1.1em;
}

ul,
ol {
    list-style: none;
}

small {
    font-size: 0.5rem;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* スマホ専用の改行 */
.smp {
    display: none;
}

/* ============================================
   Hero Section（ファーストビュー）
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    --zoom-scale: 1;
    /* background-color: white; */
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(var(--zoom-scale));
    z-index: -1;
    will-change: transform, opacity;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-section::after.active {
    opacity: 1;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1);
    will-change: transform, opacity;
}

.hero-bg-layer.active {
    opacity: 1;
    z-index: -1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: white; */
    z-index: 0;
}

.hero-logo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    pointer-events: none;
    opacity: 1;
    /* 初期状態を明示的に設定（スマホChromeでの検知を確実にするため） */
}

.hero-logo-content img,
.hero-logo-content h1 {
    pointer-events: auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    /* background-color: white; */
    transform-origin: center center;
    transition: transform 0.3s ease-out;
}

.hero-bg-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: white; */
    background-image: url('../images/yoga-top2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.3s ease-out;
    z-index: -1;
}

.hero-content2 {
    position: relative;
    width: 100%;
    height: 60vh;
    z-index: 2;
    opacity: 0;
}

/* PC画面時は80vhに変更 */
@media (min-width: 821px) {
    .hero-content2 {
        height: 80vh;
    }
}

.hero-content-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.hero-content-text h2 {
    color: #ffffff;
    text-align: center;
    margin: 0;
    font-family: 'Shippori Mincho', serif;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero-logo {
    width: 30vw;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    filter: brightness(0) invert(1);
    opacity: 0;
}

.hero-content h1,
.hero-logo-content h1 {
    color: #ffffff;
    font-size: clamp(0.75rem, 2.2vw, 1.6rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    font-family: 'Zen Old Mincho', serif;
}

/* ============================================
   Main Section（メインコンテンツ）
   ============================================ */
.main-section {
    width: 100%;
    /* background-color: #ffffff; */
}



.main2-section {
    width: 100%;
    /* background-color: #ffffff; */
    margin-top: clamp(6rem, 12vw, 10rem);
}

.info-section {
    margin-top: clamp(6rem, 12vw, 10rem);
    background-color: #eeeeee;
}

/* 見出しスタイル */
h2 {
    font-family: 'Noto Sans JP', sans-serif;
}

h3 {
    font-family: 'Noto Sans JP', sans-serif;
}

/* hero2-content、menu-content、price-content内のh2とh3はShippori Minchoを維持 */
.hero2-content h2,
.menu-content h2,
.price-content h2,
.hero2-content h3,
.menu-content h3,
.price-content h3 {
    font-family: 'Shippori Mincho', serif;
}

.main-section h1,
.main-section h2,
.main-section h3,
.main-section h4,
.main-section h5,
.main-section h6 {
    font-weight: 400;
}

.main-section h2 {
    font-size: clamp(1.125rem, 2vw, 1.875rem);
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 600;
}

.main-section h3 {
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    margin-bottom: clamp(0.8rem, 1.2vw, 1.2rem);
    font-weight: 500;
}

/* テキストスタイル */
.main-section p {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 2;
}

.main-section p.top-text {
    line-height: 2.5 !important;
    margin-bottom: clamp(4rem, 7vw, 8rem);
}

/* リストスタイル */
.main-section ol {
    list-style: decimal;
    padding-left: 1.5em;
}

.main-section li {
    line-height: 1.8;
    padding-top: clamp(0.75rem, 1.25vw, 1rem);
    padding-bottom: clamp(0.75rem, 1.25vw, 1rem);
    padding-left: 0.3em;
}

.main-section li::marker {
    font-size: 1.2em;
    font-weight: 500;
}


.main-section ul:not(.price-list) {
    margin-top: 2rem;
}

.main-section ul+p {
    margin-top: clamp(3rem, 5vw, 4rem);
}

/* flex-class-content内のul直後のpタグ（週間スケジュールリンク）の間隔を調整 */
.flex-class-content ul+p {
    margin-top: clamp(2rem, 3.5vw, 3rem);
}

/* ============================================
   ユーティリティクラス
   ============================================ */
.utility-content-width {
    max-width: 100%;
    margin: 6rem auto;
    padding-left: clamp(1.8rem, 6vw, 10rem);
    padding-right: clamp(1.8rem, 6vw, 10rem);
}

/* 下層ページのh1 */
.sub-page h1 {
    font-family: 'Zen Old Mincho', serif;
    font-size: clamp(1.7rem, 2.2vw, 2.2rem);
    font-weight: 500;
    margin-bottom: 2rem;
}

/* 下層ページ共通スタイル */
.sub-page p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.sub-page dl dt,
.sub-page dl dd,
.sub-page ul li {
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.sub-page .title-margin {
    margin: 3rem 0 8rem 0;
}

.sub-page .last-margin {
    margin-bottom: 8rem;
}

.sub-page .margin-bottom-2 {
    margin-bottom: 2rem;
}

.sub-page ul.list-disc {
    list-style-type: disc;
    margin-left: 1.6rem;
    margin-bottom: 2rem;
}

.sub-page ol.list-decimal {
    list-style-type: decimal;
    margin-left: 1.6rem;
}

/* ============================================
   コンテナレイアウト
   ============================================ */
.main-content {
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) clamp(1.8rem, 6vw, 10rem) clamp(5rem, 10vw, 8rem);
}

/* slide3（クラス紹介）の直後のmain-content（クラス紹介セクション） */
.slide3+.main-content {
    padding-bottom: clamp(6rem, 12vw, 10rem);
}

.main-content-close {
    padding-top: clamp(1rem, 3vw, 2rem);
    margin-top: clamp(-2rem, -4vw, -3rem);
}

.main-content-close-top {
    padding-top: clamp(1rem, 2vw, 1.5rem);
}

.main-content-no-bottom {
    padding-bottom: 0;
}

.main-content-narrow {
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem) clamp(8rem, 16vw, 28rem) clamp(5rem, 10vw, 8rem);
}

.main-content-narrow h3:first-of-type {
    margin-top: clamp(2rem, 4vw, 3rem);
}

/* main-contentの直後のmain-content-narrowの最初のh3（世田谷駅前スタジオ）の上の空きを狭くする */
.main-content:not(.main-content-close)+.main-content-narrow h3:first-of-type {
    margin-top: clamp(0.2rem, 0.5vw, 0.5rem);
}

.main-content-narrow h3 {
    margin-top: clamp(3rem, 5vw, 4rem);
    margin-bottom: clamp(0.5rem, 1vw, 0.8rem);
}

/* main-content-narrow内のh3の直後のprice-listの間隔を狭くする */
.main-content-narrow h3+ul.price-list {
    margin-top: 0 !important;
}

/* 料金プランセクションのh3のmargin-bottomを小さくする（price-listの直前のh3のみ） */
.main-content-narrow .pricing-title~h3 {
    margin-bottom: clamp(0.2rem, 0.5vw, 0.4rem);
}

/* main-contentの直後のmain-content-narrow（世田谷駅前スタジオ） */
/* main-content-closeを除外して、世田谷駅前スタジオのセクションのみに適用 */
.main-content:not(.main-content-close)+.main-content-narrow {
    padding-top: 0;
    margin-top: clamp(-2rem, -5vw, -3rem);
}

.main-content-narrow-bottom {
    padding-bottom: clamp(1rem, 3.5vw, 8rem);
}

/* main-content-narrow内の特定のpタグ（スタジオ説明） */
.main-content-narrow>.flex-2column+p {
    margin-top: 1rem;
}

/* trial-section内のh3 */
.trial-section h3 {
    margin-top: 0;
}

/* info-section内のmain-content-narrow */
.info-section .main-content-narrow {
    padding-top: clamp(3rem, 6vw, 5rem);
}

/* ============================================
   Flexレイアウト
   ============================================ */
/* Flex Class（クラス紹介用） */
.flex-class {
    display: flex;
    justify-content: flex-start;
    gap: clamp(4rem, 8vw, 10rem);
    flex-wrap: wrap;
}

.flex-class-content {
    flex: 0 1 auto;
    width: auto;
}

/* クラスリストのインタラクティブスタイル */
.main-section .flex-class-content ul li {
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, padding-left 0.3s ease, padding-right 0.3s ease;
}

/* デスクトップ（ホバー可能なデバイス）のみホバー効果を適用 */
@media (hover: hover) and (pointer: fine) {
    .main-section .flex-class-content ul li:hover {
        background-color: #efefef;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* すべてのデバイスでactiveクラスの効果を適用（クリック/タップ用） */
.main-section .flex-class-content ul li.active {
    background-color: #efefef;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Flex Class - 821px以上では横並びを強制 */
@media (min-width: 821px) {
    .flex-class {
        flex-wrap: wrap;
    }

    .flex-class-content {
        width: calc(50% - clamp(2rem, 4vw, 5rem));
        flex: 0 0 calc(50% - clamp(2rem, 4vw, 5rem));
        max-width: calc(50% - clamp(2rem, 4vw, 5rem));
        box-sizing: border-box;
    }

    .flex-class .taiken-link-right2 {
        width: 100%;
        flex-basis: 100%;
        margin-top: clamp(2rem, 4vw, 3rem);
    }
}

/* Flex Class - 820px以下で縦並びに切り替え */
@media (max-width: 820px) {
    .flex-class {
        flex-direction: column;
        gap: clamp(6rem, 12vw, 10rem);
    }

    .flex-class-content {
        min-width: 100%;
    }
}

/* Flex 2 Column（2カラムレイアウト） */
.flex-2column {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Flex Body Main Layout */
.flex-body-main {
    display: flex;
    gap: 1rem;
    /* optional spacing between columns */
}

.flex-body-main-left {
    width: 30%;
}

.flex-body-main-left h2 {
    font-size: clamp(1.2rem, 1.2vw, 1.5rem);
    font-weight: 600;
    font-family: 'Zen Old Mincho', serif;
}

.flex-body-main-left p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 0;
}

.flex-body-main-right {
    width: 70%;
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
    .flex-body-main {
        flex-direction: column;
    }

    .flex-body-main-left,
    .flex-body-main-right {
        width: 100%;
    }
}

.flex-2column-content {
    flex: 1;
    min-width: calc(50% - 10px);
}

.flex-2column-content img {
    width: 100%;
    height: auto;
    display: block;
}

.flex-2column+h3 {
    margin-top: clamp(1.2rem, 2.5vw, 2rem) !important;
}

/* ============================================
   料金プラン
   ============================================ */
.pricing-title {
    margin-top: 50px;
}

ul.price-list {
    margin-top: 0.2rem !important;
    margin-bottom: 7rem !important;
    list-style: disc !important;
    padding-left: 1em;
}

/* ul.price-listの直後にh3がある場合、ul.price-listのmargin-bottomを小さくする */
.main-content-narrow ul.price-list+h3 {
    margin-top: clamp(2rem, 4vw, 3rem) !important;
}

/* ul.price-listの直後にh3がある場合、ul.price-listのmargin-bottomを小さくする（h3の前のulのみ） */
.main-content-narrow ul.price-list:not(:last-of-type) {
    margin-bottom: clamp(1rem, 2vw, 1.5rem) !important;
}

/* 最後のul.price-listの直後にtrial-sectionがある場合、元のmargin-bottomを維持 */
.main-content-narrow ul.price-list:last-of-type+.trial-section {
    margin-top: clamp(6rem, 12vw, 10rem);
}

/* 最後のul.price-listのmargin-bottomを維持（trial-sectionの前） */
.main-content-narrow ul.price-list:last-of-type {
    margin-bottom: 7rem !important;
}

ul.price-list li {
    margin-bottom: 0.5rem !important;
    padding-left: 0;
}

ul.price-list li::marker {
    font-size: 0.6em;
}

b.price-number {
    font-size: 1.4em !important;
    font-weight: 400 !important;
    color: #333 !important;
    display: inline-block;
}

.procedure-title {
    margin-top: 0 !important;
    padding-top: 0;
}

/* ============================================
   ボーダーライン
   ============================================ */
.upper-line {
    border-top: 1px solid #ccc;
    margin-top: clamp(1.5rem, 2vw, 2rem);
    padding-top: clamp(1rem, 1.5vw, 1.2rem);
}

.under-line {
    border-bottom: 1px solid #ccc;
    margin-bottom: clamp(0.8rem, 1.5vw, 1rem);
    padding-bottom: clamp(0.5rem, 1vw, 0.8rem);
}

.voice-item .under-line {
    clear: none;
    overflow: hidden;
}

/* マップリンク */
.map-link {
    margin-top: 0.8rem;
}

/* よくあるご質問のh3の上の間隔を広げる */
.map-link+h3 {
    margin-top: clamp(4rem, 8vw, 6rem);
}

/* お問合せリンク */
.contact-link {
    margin-top: 0.8em;
}

/* お問合せフォームと体験レッスン申込フォームの横並び */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.contact-links .arrow-link {
    white-space: nowrap;
}

/* ============================================
   FAQ アコーディオン
   ============================================ */
.faq-list {
    margin-top: clamp(1.5rem, 3vw, 2rem);
}

.faq-question {
    font-size: 1rem;
    font-weight: 400;
    padding: clamp(1rem, 2vw, 1.2rem) clamp(1rem, 2vw, 1.5rem);
    background-color: #f5f5f5;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
    position: relative;
    padding-right: 3rem;
}

.faq-question:hover {
    background-color: #e8e8e8;
}

.faq-question::after {
    content: '▼';
    font-size: 0.8em;
    color: #999;
    transition: transform 0.3s ease;
    position: absolute;
    right: clamp(1rem, 2vw, 1.5rem);
    top: 50%;
    transform: translateY(-50%);
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    font-size: 1rem;
    padding: 0 clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 0;
    margin-left: 0;
    line-height: 1.8;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease, margin-bottom 0.4s ease;
}

.faq-answer.show {
    max-height: 500px;
    opacity: 1;
    padding: clamp(1rem, 2vw, 1.2rem) clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.faq-list dt {
    font-size: 1rem;
}

.faq-list dd {
    font-size: 1rem;
}

.faq-question::first-letter,
.faq-answer::first-letter {
    font-size: 1.25em;
    font-weight: 500;
}


/* ============================================
   会員様の声
   ============================================ */
.flex-voice {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(2rem, 3vw, 3rem);
}

/* flex-voiceがmain-content-narrowの最後の子要素の場合、下の空きを小さくする */
.main-content-narrow .flex-voice:last-child {
    margin-bottom: clamp(-2rem, -4vw, -3rem);
}

.voice-item {
    flex: 1 1 calc(50% - 1.5rem);
    min-width: 300px;
    background-color: #eeeeee;
    padding: clamp(1.5rem, 2.5vw, 2rem);
}

.voice-item::after {
    content: '';
    display: block;
    clear: both;
}

.voice-item h3 {
    margin-top: 0 !important;
    margin-bottom: clamp(0.8rem, 1.5vw, 1rem);
}

.photo-left {
    width: 100px;
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.photo-left img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   体験申込セクション
   ============================================ */
.trial-section {
    margin-top: clamp(6rem, 12vw, 10rem);
    margin-bottom: clamp(5rem, 10vw, 8rem);
}

.trial-title {
    margin-top: 0;
}

.trial-content {
    background-color: #eeeeee;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: clamp(4rem, 8vw, 6rem);
}

/* trial-sectionの直後のprocedure-titleの間隔を広げる */
.main-content-narrow .trial-section+h2.procedure-title {
    margin-top: clamp(4rem, 8vw, 6rem) !important;
}

.trial-content h3 {
    margin-top: 0 !important;
    margin-bottom: clamp(0.8rem, 1.2vw, 1.2rem);
}

.trial-content>h3:first-child {
    margin-top: 0 !important;
}

.trial-spacing {
    margin-top: 0.8rem;
}

/* ============================================
   リンクスタイル
   ============================================ */
/* 体験申込リンク */
.taiken-link-right {
    text-align: right;
    margin: 0 0 clamp(4rem, 6vw, 5rem) 0;
}

.taiken-link-right p {
    margin: 0;
}

.taiken-link-right a {
    color: #000;
    transition: opacity 0.3s ease;
}

.taiken-link-right a:hover {
    opacity: 0.7;
}

.taiken-link-right2 {
    width: 100%;
    text-align: right;
    margin-top: clamp(-2rem, -3vw, -1.5rem);
}

.taiken-link-right2 p {
    margin: 0;
}

.taiken-link-bottom {
    margin-top: 3rem;
}

/* 矢印付きリンク */
a.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    text-decoration: none;
    color: #000;
    transition: transform 0.3s ease, color 0.3s ease;
}

a.arrow-link:hover {
    transform: translateX(5px);
    color: #333;
}

a.arrow-link::before {
    content: '';
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    background-image: url('../images/arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(0.1em);
    transition: transform 0.3s ease;
}

a.arrow-link:hover::before {
    transform: translateY(0.1em) translateX(3px);
}

/* 電話リンク */
a.tel-link {
    color: #000;
    text-decoration: none;
    pointer-events: none;
}

/* 電話番号を大きく表示 */
.number-large {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
}

/* ============================================
   レスポンシブ対応（タブレット・スマホ）
   ============================================ */
/* タブレット画面（820px以下、601px以上） */
@media (max-width: 820px) and (min-width: 601px) {
    .main-content-narrow {
        padding: clamp(1rem, 3vw, 2rem) clamp(1.5rem, 5vw, 2.5rem) clamp(4rem, 10vw, 6rem);
    }
}

/* タブレット以下（820px以下） */
@media (max-width: 820px) {

    /* Hero Section */
    .hero-logo {
        width: clamp(120px, 25vw, 180px);
        max-width: 180px;
    }

    .hero-content h1,
    .hero-logo-content h1 {
        font-size: clamp(1.2rem, 2.5vw, 2rem);
    }

    /* Main Section */
    .main-content {
        padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 2.5rem) clamp(4rem, 10vw, 6rem);
    }

    .taiken-link-right {
        display: block;
    }

    /* スマホ専用の改行を表示 */
    .smp {
        display: block;
    }


    /* 電話リンク - クリック可能に */
    a.tel-link {
        color: #0066cc;
        text-decoration: underline;
        pointer-events: auto;
    }

    /* お問合せリンク - スマホ画面時は縦並び */
    .contact-links {
        flex-direction: column;
        align-items: flex-start;
    }

    /* junior-logo-text - タブレット画面でも横並び */
    .junior-logo-text {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }

    .junior-logo-text a {
        flex: 0 0 auto;
        max-width: 40%;
    }

    .junior-logo {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .junior-logo-text p {
        flex: 1;
        min-width: 0;
    }

    /* junior-sports - スマホ画面時のpaddingを25px程度に */
    .junior-sports {
        padding: 25px !important;
    }

    /* member-page - スマホ画面時のpaddingを25px程度に */
    .member-page {
        padding: 25px !important;
    }
}

/* スマホ画面（600px以下） */
@media (max-width: 600px) {

    /* Hero Section */
    .hero-logo-content h1 {
        font-size: clamp(1.2rem, 4vw, 2.2rem);
    }

    /* Main Section h2 - スマホ時はフォントサイズを大きく */
    .main-section h2 {
        font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    }

    /* Main Section p - スマホ時は1remに固定 */
    .main-section p {
        font-size: 1rem;
    }

    /* Flex 2 Column - 縦並び */
    .flex-2column {
        flex-direction: column;
        gap: 10px;
    }

    .flex-2column-content {
        min-width: 100%;
    }

    /* main-content-narrow */
    .main-content-narrow {
        padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 5vw, 2.5rem) clamp(4rem, 10vw, 6rem);
    }

    /* main-content-close */
    .main-content-close {
        padding-top: clamp(1.5rem, 4vw, 2.5rem);
        margin-top: clamp(-1rem, -2vw, -1.5rem);
    }

    /* 会員様の声 - 縦並び */
    .flex-voice {
        flex-direction: column;
        gap: clamp(2rem, 4vw, 3rem);
    }

    .voice-item {
        min-width: 100%;
    }

    .photo-left {
        width: 80px;
        margin-right: 1rem;
    }

    /* junior-logo-text - スマホ画面時のみ縦並び */
    .junior-logo-text {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .junior-logo-text a {
        width: 100%;
        max-width: 100%;
        display: block;
    }

    .junior-logo {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        display: block;
    }

    .junior-logo-text p {
        max-width: 100%;
    }

    /* junior-sports - より小さなスマホ画面時のpaddingを25px程度に */
    .junior-sports {
        padding: 25px !important;
    }

    /* member-page - より小さなスマホ画面時のpaddingを25px程度に */
    .member-page {
        padding: 25px !important;
    }

    /* info-section内のmain-content-narrow - スマホ画面時のpadding-topを小さく */
    .info-section .main-content-narrow {
        padding-top: clamp(3rem, 4vw, 3rem);
    }

    /* bタグのフォントサイズを調整（h3より大きくならないように） */
    b {
        font-size: 1em;
    }
}

.message-content {
    margin: 5rem 0 2rem 0;
}

.message-content p {
    line-height: 2.5 !important;
}

/* ============================================
   Work Shop List
   ============================================ */
/* WORK SHOPの説明文とリストの間隔を狭く */
.main-section p:has(+ .work-shop-list) {
    margin-bottom: 0.5rem !important;
}

.work-shop-list {
    display: flex;
    flex-wrap: wrap;
    gap: 21px;
    margin: 0 0 10rem 0;
}

.work-shop-item {
    flex: 1 1 calc(33.333% - 14px);
    /* 3列、gapを考慮（21px * 2 / 3 = 14px） */
    min-width: 0;
}

.work-shop-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.work-shop-item a {
    display: block;
    transition: opacity 0.3s ease;
}

.work-shop-item a:hover {
    opacity: 0.8;
}


/* スマホ画面（600px以下）: 1列 */
@media (max-width: 600px) {
    .work-shop-item {
        flex: 1 1 100%;
        /* 1列 */
    }
}


/* section-info内のinfo-listスタイル */
.component-info-list {
    margin: 0 0 1rem 0;
    padding: 0;
    list-style: none;
    font-size: 0;
    /* 改行スペースを削除 */
    border-top: 1px solid #ddd;
    /* 最初の項目の上に線 */
    border-bottom: 1px solid #ddd;
    /* 最後の項目の下に線 */
}

.component-info-list dt {
    display: inline-block;
    width: 10ch;
    /* 10文字分の幅 */
    padding: 1rem 1rem 1rem 0;
    vertical-align: top;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
    /* 改行を防ぐ */
    font-size: 1rem;
}

.component-info-list dd {
    display: inline-block;
    width: calc(100% - 10ch - 1rem);
    /* dtの幅とpaddingを引く */
    margin: 0;
    padding: 1rem 0 1rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
}

.component-info-list dd:last-child {
    border-bottom: none;
    /* 最後のddの下部ボーダーは削除（親要素のborder-bottomで表示） */
}

.component-info-list dd h3 {
    margin: 0 0 0.5rem 0 !important;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 500;
    color: #000;
}

.component-info-list dd p {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: #000;
}

.component-info-list dd a {
    color: #000000;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.component-info-list dd a:hover {
    color: #24357e;
}

/* スマホ画面では縦並びに変更 */
@media (max-width: 820px) {
    .component-info-list dt {
        display: block;
        width: 100%;
        padding: 1rem 0 0.5rem 0;
        white-space: normal;
        /* 改行を許可 */
    }

    .component-info-list dd {
        display: block;
        width: 100%;
        padding: 0 0 1rem 0;
        border-bottom: 1px solid #ddd;
    }

    .component-info-list dd:last-child {
        border-bottom: none;
    }
}

.member-page {
    margin-top: 40px;
    padding: 60px;
    /* PC画面 */
    background-color: #dddddd;
    /* 白 */
    line-height: 1.8;
    color: #000;
    opacity: 1;
    /* 初期状態で非表示 */
    box-sizing: border-box;
}

.member-page h2 {
    font-size: clamp(1rem, 2.2vw, 1.4rem) !important;
    /* 通常のh2よりかなり小さく、!importantで確実に適用 */
    margin-bottom: 1rem;
}

.junior-sports {
    margin-top: 40px;
    padding: 60px;
    /* PC画面 */
    background-color: #ffffff;
    /* 白 */
    border: 1px solid #ddd;
    /* 枠線を追加 */
    line-height: 1.8;
    color: #000;
    opacity: 1;
    /* 初期状態で非表示 */
    box-sizing: border-box;
}

.junior-sports h2 {
    font-size: clamp(1rem, 2.2vw, 1.4rem) !important;
    /* 通常のh2よりかなり小さく、!importantで確実に適用 */
    margin-bottom: 1rem;
}


/* junior-sports内のロゴとテキストのレイアウト */
.junior-logo-text {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 1rem;
}

.junior-logo {
    width: auto;
    height: auto;
    max-width: 180px;
    flex-shrink: 0;
}

.junior-logo-text p {
    margin: 0;
    flex: 1;
}

.contact-content {
    margin-top: clamp(6rem, 12vw, 10rem);
}


.section-footer {
    padding-top: 3rem;
    /* 波型分を削除 */
    padding-bottom: 3rem;
    padding-left: 20px;
    padding-right: 20px;
}

.section-footer {
    margin: 0 auto;
    margin-top: -0.5px;
    /* 隙間を完全に埋める */
    padding-top: 5rem;
    /* 波型分を削除 */
    padding-bottom: 5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
    z-index: 1100;
    overflow: hidden;
    /* 隙間を防ぐためにhiddenに変更 */
}


.section-footer::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 100vw;
    background-color: #839ec9;
    transform: translateX(-50%);
    z-index: -1;
    background-image: url("../images/footer01.webp");
    background-position: center top;
    background-size: cover;
}

/* Footerレイアウト */
.section-footer .footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.section-footer .footer>ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 70%;
}

.section-footer .footer>ul li {
    margin: 0;
}

.section-footer .footer>ul li a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    transition: opacity 0.3s ease;
}

.section-footer .footer>ul li a:hover {
    opacity: 0.8;
}

.section-footer .footer-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 40%;
    text-align: right;
}

.section-footer .footer-right>div:first-child {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.section-footer .footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.flex-icon {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
}

.flex-icon .icon {
    width: clamp(24px, 4vw, 32px);
    margin-left: clamp(8px, 2vw, 15px);
}

.flex-icon .icon:first-child {
    margin-left: 0;
}

.flex-icon .icon img {
    width: 100%;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.flex-icon .icon img:hover {
    opacity: 1;
}

.section-footer .footer-logo img {
    height: auto;
    width: 90%;
    display: block;
    margin-left: auto;
}

/* component-logoを白に */
.component-logo {
    filter: brightness(0) invert(1);
}

/* section-footer内のトップに戻るボタンを白に */
.section-footer .component-button-back-to-top img {
    filter: brightness(0) invert(1) !important;
}

/* section-footer内のメニューボタンを白に */
.section-footer .menu-button img {
    filter: brightness(0) invert(1) !important;
}

/* ============================================
   トップに戻るボタン
   ============================================ */
.component-button-back-to-top {
    position: fixed;
    bottom: 30px;
    right: clamp(1.8rem, 6vw, 10rem);
    width: auto;
    height: auto;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.component-button-back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.component-button-back-to-top:hover {
    opacity: 0.7;
}

.component-button-back-to-top img {
    width: clamp(20px, 1.8vw, 24px);
    height: auto;
    display: block;
}

/* スマホ画面時の調整 */
@media (max-width: 600px) {
    .component-button-back-to-top {
        bottom: 35px;
        right: clamp(1.5rem, 5vw, 2.5rem);
    }

    .component-button-back-to-top img {
        width: 27px;
    }
}

/* ============================================
   ヘッダー（下層ページ用）
   ============================================ */
.header {
    position: relative;
    padding-top: 10px;
    padding-left: clamp(1.8rem, 6vw, 10rem);
    margin-bottom: 20px;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.header a {
    display: inline-block;
    line-height: 0;
    flex-shrink: 0;
}

.header-logo {
    width: 90px;
    height: auto;
    display: block;
    filter: brightness(0) invert(0);
    pointer-events: auto;
}

.header-content p {
    margin: 0;
    white-space: nowrap;
}

/* スマホ画面時の調整 */
@media (max-width: 600px) {
    .header {
        padding-top: 20px;
        padding-left: 20px;
    }

    .header-logo {
        width: 80px;
    }
}

/* ============================================
   メニューボタン
   ============================================ */
.menu-button {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 45px;
    height: 27px;
    padding: 9px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
}

.menu-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* スマホ画面時の調整 */
@media (max-width: 600px) {
    .menu-button {
        top: 20px;
        right: 20px;
        width: 36px;
        height: 22px;
        padding: 7px;
    }
}

/* ============================================
   クローズボタン
   ============================================ */
.close-button {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 45px;
    height: 27px;
    padding: 9px;
    background-color: rgba(255, 255, 255, 0.4);
    z-index: 2001;
    cursor: pointer;
}

.close-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* スマホ画面時の調整 */
@media (max-width: 600px) {
    .close-button {
        top: 20px;
        right: 20px;
        width: 36px;
        height: 22px;
        padding: 7px;
    }
}

/* ============================================
   メニュー画面
   ============================================ */
.menu-screen {
    position: fixed;
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: 50%;
    height: calc(100% - 20px);
    background-color: rgba(100, 120, 160, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-content-container {
    width: 100%;
    height: 100%;
    padding: clamp(2rem, 4vw, 3rem);
}

.menu-home {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ffffff;
}

.menu-home a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.4rem;
    /* Slightly larger than 1.1rem */
    font-family: 'Zen Old Mincho', serif;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.menu-home a:hover {
    opacity: 0.7;
    transform: translateX(5px);
}

.flex-menu {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    font-family: 'Zen Old Mincho', serif;
    width: 100%;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 2rem;
}

.menu-content-left {
    flex: 1;
    border-right: 1px solid #ffffff;
    padding-right: 2rem;
}

.menu-content-right {
    flex: 1;
}

.flex-menu ul {
    list-style: none;
    padding: 0;
    /* Removed padding */
    margin: 0;
    /* Removed background-color */
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    /* Reduced gap from 1.2rem */
}

.flex-menu li {
    display: block;
}

.flex-menu p {
    margin-bottom: 1.2rem;
    /* Increased margin from 0.5rem */
    font-size: 1.1rem;
    /* Increased font size */
}

.flex-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    /* Increased font size */
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.flex-menu a:hover {
    opacity: 0.7;
    transform: translateX(5px);
}

/* Responsive behavior */
@media (max-width: 480px) {
    .flex-menu {
        flex-direction: column;
        gap: 2rem;
    }

    .menu-content-left {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #ffffff;
        padding-bottom: 2rem;
    }
}

/* スマホ画面時の調整 */
@media (max-width: 840px) {
    .menu-screen {
        width: calc(100% - 20px);
        left: 10px;
        right: auto;
        bottom: 10px;
        height: auto;
    }
}


.section-footer .footer-right p {
    color: #fff;
    font-size: 12px;
    margin: 0;
}

.section-footer .footer>p {
    color: #fff;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    text-align: center;
    margin: 2rem 0 0 0;
}

.section-footer .footer-copyright {
    color: #fff;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    text-align: center;
    margin: 2rem 0 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

@media (min-width: 821px) {
    .section-footer .footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .section-footer .footer>ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem 2rem;
        width: auto;
        justify-content: center;
    }

    .section-footer .footer-right {
        width: auto;
        align-items: center;
        text-align: center;
    }

    .section-footer .footer-right>div:first-child {
        justify-content: center;
    }

    .section-footer .flex-icon {
        justify-content: center;
    }

    .section-footer .footer-logo {
        justify-content: center;
    }

    .section-footer .footer-logo img {
        width: 55%;
        margin-left: auto;
        margin-right: auto;
    }
}

.section-title ul {
    list-style: disc;
    padding-left: 2rem;
}

.section-title ul li {
    margin-bottom: 0.3rem;
}

.section-title ul li a {
    color: #000;
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.1rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-title ul li a:hover {
    opacity: 0.7;
    transform: translateX(5px);
    text-decoration: underline;
}

/*運営会社*/
/* company-info-listのスタイル（PC画面で横並び、スマホ画面で縦並び） */
.company-info-list {
    margin: 2rem 0 1rem 0;
    padding: 0;
    list-style: none;
    font-size: 0;
    /* 改行スペースを削除 */
    border-top: 1px solid #ddd;
    /* 最初の項目の上にボーダー */
    border-bottom: 1px solid #ddd;
    /* 最後の項目の下にボーダー */
}

.company-info-list dt {
    display: inline-block;
    width: 10ch;
    /* 10文字分の幅 */
    padding: 1.5rem 1rem 1.5rem 0;
    /* 行間を十分確保 */
    vertical-align: top;
    font-size: 1rem;
    /* 16px */
    font-weight: 600;
    color: #000;
    white-space: nowrap;
    /* 改行を防ぐ */
    border-top: 1px solid #ddd;
    /* 行の上にボーダー（PC画面で横並びの場合） */
}

.company-info-list dt::before {
    content: "■";
    margin-right: 0.3em;
}

.company-info-list dt:first-child {
    border-top: none;
    /* 最初のdtの上ボーダーは削除（親要素のborder-topで表示） */
}

.company-info-list dd {
    display: inline-block;
    width: calc(100% - 10ch - 1rem);
    /* dtの幅とpaddingを引く */
    margin: 0;
    padding: 1.5rem 0 1.5rem 1rem;
    /* 行間を十分確保 */
    vertical-align: top;
    border-top: 1px solid #ddd;
    /* 行の上にボーダー（PC画面で横並びの場合） */
    font-size: 1rem;
    /* 16px */
    line-height: 1.8;
    /* 行間を十分確保 */
    color: #000;
}

/* 最初の行のddの上ボーダーは重複しないように削除 */
.company-info-list dt:first-child+dd {
    border-top: none;
    /* 最初の行のddの上ボーダーは削除（親要素のborder-topで表示） */
}

/* スマホ画面では縦並びに変更 */
@media (max-width: 820px) {
    .company-info-list dt {
        display: block;
        width: 100%;
        padding: 1.5rem 0 0.5rem 0;
        /* 行間を十分確保 */
        white-space: normal;
        /* 改行を許可 */
        border-top: 1px solid #ddd;
        /* 行の上にボーダー */
    }

    .company-info-list dt:first-child {
        border-top: none;
        /* 最初のdtの上ボーダーは削除（親要素のborder-topで表示） */
    }

    .company-info-list dd {
        display: block;
        width: 100%;
        padding: 0 0 1.5rem 0;
        /* 行間を十分確保 */
        border-top: none;
        /* スマホではdtのボーダーで表示 */
        border-bottom: none;
        /* スマホではdlのborder-bottomで表示 */
    }
}