@charset "utf-8";

/* ==========================================================================
   1. 変数定義・リセットCSS・基本設定
   ========================================================================== */
:root {
    /* 共通カラー */
    --bg-sky: #E0F7FA;
    --trunk: #8D6E63;
    --leaf-light: #C5E1A5;
    --leaf-main: #9CCC65;
    --leaf-dark: #689F38;
    --apple: #E53935;
    --text: #5D4037;
    --white: #ffffff;
    --gray-box: #cfd8dc;
    --card-bg: #FFFDE7;
    --accent-orange: #FF9800;

    /* サブページ用追加カラー */
    --wood-color: #8D6E63;
    --wood-dark: #5D4037;
}

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

html {
    scroll-padding-top: var(--header-h, 0px);
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    /* 横スクロール防止 */
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    color: var(--text);
    background-color: var(--bg-sky);
    padding-top: 80px;
    /* ヘッダー固定分 */
    position: relative;
    /* .trunk-bg をページ基準で配置するため */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

h1,
h2,
h3,
h4 {
    font-family: 'Yusei Magic', sans-serif;
}

ul {
    list-style: none;
}

p {
    margin-bottom: 1em;
    line-height: 1.8;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* ==========================================================================
   2. 共通レイアウト・パーツ
   ========================================================================== */

/* --- 背景：太い幹 (固定) --- */
.trunk-bg {
    position: absolute;
    top: calc(var(--header-h, 0px) + 30vh);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    max-width: 80vw;
    background: var(--trunk);
    z-index: -1;
    background-image: repeating-linear-gradient(90deg, transparent 0, transparent 20px, rgba(0, 0, 0, 0.05) 20px, rgba(0, 0, 0, 0.05) 25px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    padding-top: var(--header-h, 0px);
}

/* --- ヘッダー (共通) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* デフォルトはサブページ仕様（白背景） */
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.page-top header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* ロゴ */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1002;
    white-space: nowrap;
    height: 100%;
}

.logo i {
    color: var(--leaf-dark);
    font-size: 1.8rem;
}

.logo i.fa-tree::before {
    display: none;
}

.logo-tree {
    width: auto;
    height: 50px;
    /* ヘッダー内に収まる高さ */
    border-radius: 0;
    object-fit: contain;
}

/* トップページの場合はロゴサイズ指定が少し異なるため調整 */
.page-top .logo-tree, .page-sub .logo-tree{
    width: 190px;
    height: auto;
}

/* PC用ナビゲーション */
.header-nav {
    display: flex;
    gap: 5px;
}

.nav-apple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 60px;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--text);
    background: #f1f8e9;
    border-radius: 10px;
    text-align: center;
    line-height: 1.1;
}

.nav-apple:hover {
    background: var(--accent-orange);
    color: white;
}

.nav-apple i {
    font-size: 1rem;
    margin-bottom: 2px;
}

.nav-apple2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 80px;
    height: 58px;

    font-size: 0.7rem;
    font-weight: bold;
    color: var(--white);
    background: var(--apple);
    border-radius: 10px;
    text-align: center;
    line-height: 1.1;

    box-shadow: 0 3px 0 #b71c1c;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}



.nav-apple2:hover {
    background: var(--apple);
    color: white;
    transform: translateY(2px);
    box-shadow: 0 1px 0 #b71c1c;
}


.nav-apple2 i {
    font-size: 1rem;
    margin-bottom: 2px;
}

/* ハンバーガーボタン */
.hamburger-btn {
    display: none;
    /* PCでは非表示 */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1002;
    background: none;
    border: none;
    padding: 0;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* モバイルドロワーメニュー */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: 100px;
    /* トップページ仕様に合わせる */
    transition: 0.4s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer ul {
    padding: 20px;
}

.mobile-drawer li {
    margin-bottom: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.mobile-drawer a {
    font-weight: bold;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.mobile-drawer i {
    color: var(--leaf-main);
    width: 30px;
    text-align: center;
}

/* --- フッター (共通) --- */
footer {
    background: #3E2723;
    color: #D7CCC8;
    text-align: center;
    padding: 40px 0;
    width: 100%;
}

/* --- 共通コンポーネント: モコモコ枠 (.moko-wrapper) --- */
.moko-wrapper {
    position: relative;
    z-index: 1;
    margin: 20px;
}

.deco-leaf {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

/* 葉っぱ配置パターン */
.moko-wrapper .d1 {
    width: 120px;
    height: 120px;
    background: var(--leaf-dark);
    top: -30px;
    left: -30px;
}

.moko-wrapper .d2 {
    width: 100px;
    height: 100px;
    background: var(--leaf-main);
    top: -40px;
    right: 20%;
}

.moko-wrapper .d3 {
    width: 130px;
    height: 130px;
    background: var(--leaf-light);
    top: -20px;
    right: -30px;
}

.moko-wrapper .d4 {
    width: 110px;
    height: 110px;
    background: var(--leaf-dark);
    bottom: -30px;
    left: 10%;
}

.moko-wrapper .d5 {
    width: 140px;
    height: 140px;
    background: var(--leaf-main);
    bottom: -40px;
    right: -20px;
}

.moko-wrapper .d6 {
    width: 90px;
    height: 90px;
    background: var(--leaf-light);
    top: 40%;
    left: -40px;
}

.moko-wrapper .d7 {
    width: 100px;
    height: 100px;
    background: var(--leaf-dark);
    top: 30%;
    right: -40px;
}

/* 葉っぱの中身 (.leaf-box) */
.leaf-box {
    background: var(--card-bg);
    border-radius: 40px;
    padding: 40px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 5px solid var(--leaf-main);
    line-height: 1.8;
}

.img-box-inner {
    background: var(--white);
    padding: 10px;
    border-radius: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-box-inner iframe {
    border-radius: 30px;
}

/* --- 共通コンポーネント: セクションレイアウト --- */
.section-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin-bottom: 120px;
    position: relative;
    gap: 40px;
    width: 100%;
    /* アンカーリンク位置調整 */
    padding-top: 100px;
    margin-top: -100px;
}

.section-row:nth-child(even) {
    flex-direction: row-reverse;
}

.branch {
    position: absolute;
    top: 50%;
    width: 60%;
    height: 40px;
    background: var(--trunk);
    z-index: -2;
    border-radius: 20px;
    max-width: 50vw;
}

.section-row:nth-child(odd) .branch {
    left: 50%;
    transform: translate(-20px, -50%) rotate(-3deg);
}

.section-row:nth-child(even) .branch {
    right: 50%;
    transform: translate(20px, -50%) rotate(3deg);
}


/* ==========================================================================
   3. トップページ専用スタイル (.page-top)
   ========================================================================== */

/* コンテナ位置調整（ヒーローエリアへの食い込み） */
.page-top .container {
    margin: -80px auto 0;
}

.page-sub .container {
    padding-top: var(--header-h, 0px);
}

/* --- ヒーローエリア --- */
.page-top .hero {
    position: relative;
    min-height: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 140px;
    padding-top: 80px;
    width: 100%;
}

/* 木の冠 */
.page-top .tree-crown {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    max-width: 95vw;
    height: 900px;
    background: var(--leaf-main);
    border-radius: 50% 50% 45% 45%;
    z-index: -1;
    box-shadow: 0 15px 0 var(--leaf-dark);
}

.page-top .tree-crown::before {
    content: '';
    position: absolute;
    top: 120px;
    left: -1%;
    width: 30%;
    height: 35%;
    background: var(--leaf-main);
    border-radius: 50%;
}

.page-top .tree-crown::after {
    content: '';
    position: absolute;
    top: 200px;
    right: -5%;
    width: 30%;
    height: 40%;
    background: var(--leaf-main);
    border-radius: 50%;
}

/* ヒーローコンテンツ */
.page-top .hero-content {
    color: white;
    z-index: 2;
    margin-top: -50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    padding: 0 20px;
    width: 100%;
    pointer-events: none;
}

.page-top .hero-content h1,
.page-top .hero-content p,
.page-top .hero-content .hero-cta {
    pointer-events: auto;
    display: inline-block;
    max-width: 100%;
}

.page-top .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.4;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.page-top .hero-content p {
    font-size: 1.3rem;
    font-weight: bold;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.page-top .hero-cta {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 20px;
    box-shadow: 0 5px 0 #E65100;
    max-width: 100%;
    white-space: normal;
}

.page-top .hero-cta:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #E65100;
}

/* 9つのリンゴメニュー */
.page-top .hero-menu-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 850px;
    height: 850px;
    max-width: 90vw;
    max-height: 90vw;
    pointer-events: none;
    z-index: 5;
}

.page-top .hero-apple-btn {
    position: absolute;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle at 30% 30%, #FF5252, #D32F2F);
    border-radius: 50% 50% 45% 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    transition: transform 0.3s;
    line-height: 1.2;
    z-index: 20;
}

.page-top .hero-apple-btn:hover {
    transform: scale(1.15) rotate(10deg);
}

.page-top .hero-apple-btn::before {
    content: '';
    position: absolute;
    top: -8px;
    width: 6px;
    height: 14px;
    background: #5D4037;
    border-radius: 3px;
}

.page-top .hero-apple-btn::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 60%;
    width: 20px;
    height: 10px;
    background: #4CAF50;
    border-radius: 10px 0;
    transform: rotate(-30deg);
}

/* リンゴ配置 */
.page-top .pos-1 {
    top: 0;
    left: 43%;
}

.page-top .pos-2 {
    top: 15%;
    right: 15%;
}

.page-top .pos-3 {
    top: 40%;
    right: 0;
}

.page-top .pos-4 {
    bottom: 25%;
    right: 5%;
}

.page-top .pos-5 {
    bottom: 5%;
    right: 25%;
}

.page-top .pos-6 {
    bottom: 5%;
    left: 25%;
}

.page-top .pos-7 {
    bottom: 25%;
    left: 5%;
}

.page-top .pos-8 {
    top: 40%;
    left: 0;
}

.page-top .pos-9 {
    top: 15%;
    left: 15%;
}

/* --- トップページ固有のレイアウト幅 --- */
.page-top .w-text {
    width: 50%;
}

.page-top .w-img {
    width: 40%;
}

.page-top .w-full {
    width: 90%;
    max-width: 900px;
}

/* --- トップページ固有のコンポーネントスタイル --- */
/* Leaf Box内の見出しスタイル */
.h2-parent {
    text-align: center;
}

.page-top .leaf-box h2 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 20px;
    border-bottom: 2px dashed var(--trunk);
    display: inline-block;
}

.page-top .leaf-box h3 {
    font-size: 1.4rem;
    color: var(--leaf-dark);
    margin-top: 20px;
    margin-bottom: 10px;
}

/* 選ばれる理由のトップ画像 */
.page-top .reasons-top-img-container {
    width: 100%;
    max-width: 810px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

.page-top .reasons-top-img-container img {
    max-height: 400px;
    border: 5px solid var(--leaf-main);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
}

/* 講師紹介セクション */
.page-top .instructor-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 80px;
    width: 100%;
    padding-top: 100px;
    margin-top: -100px;
}

.page-top .instructor-row.reverse {
    flex-direction: row-reverse;
}

/* 実績リスト (Achievements) */
.page-top .achievements {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.7;
    display: grid;
    gap: 12px;
}

.page-top .achievements__section {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 12px;
}

.page-top .achievements__title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page-top .achievements__title::before {
    content: "";
    width: 6px;
    height: 18px;
    border-radius: 4px;
    background: #e66;
}

.page-top .achievements__list {
    margin: 0;
    padding-left: 1.2em;
}

.page-top .achievements__list li {
    margin: 0.25em 0;
}

.page-top .achievements__year {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #eaeaea;
    font-size: 0.85em;
    margin-right: 6px;
    white-space: nowrap;
}

/* 生徒の声 (Voice) */
.page-top .voice-stack {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    width: 100%;
    padding-top: 100px;
    margin-top: -100px;
}

.page-top .voice-item {
    width: 80%;
}

/* 入会までの流れ (Flow) */
.page-top .flow-list {
    text-align: left;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-top .flow-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}

.page-top .flow-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--apple);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
}

.page-top .flow-sub {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-top: 10px;
    border: 1px solid #ddd;
}

/* よくある質問 (FAQ) */
.page-top .faq-item {
    margin-bottom: 20px;
    border-bottom: 1px dashed #ccc;
}

.page-top .faq-q {
    font-weight: bold;
    cursor: pointer;
    padding: 15px 40px 15px 0;
    position: relative;
    transition: color 0.3s;
}

.page-top .faq-q:hover {
    color: var(--accent-orange);
}

.page-top .faq-q::after {
    content: '+';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--leaf-dark);
    font-weight: bold;
    transition: transform 0.3s;
}

.page-top .faq-item.open .faq-q::after {
    content: '-';
    transform: translateY(-50%);
}

.page-top .faq-a {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.3s ease, opacity 0.3s ease;
    padding-left: 20px;
    color: #555;
}

.page-top .faq-item.open .faq-a {
    height: auto;
    opacity: 1;
    padding-bottom: 20px;
}

/* スライダーエリア */
.page-top .slider-area {
    background: var(--leaf-main);
    padding: 20px 0;
    overflow: hidden;
    border-top: 5px solid var(--leaf-dark);
    border-bottom: 5px solid var(--leaf-dark);
    width: 100%;
}

.page-top .slider-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.page-top .slide-img {
    width: 200px;
    height: 150px;
    background: white;
    padding: 5px;
    border-radius: 10px;
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 汎用ボタンリンク */
.page-top .btn-link {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 20px;
    box-shadow: 0 4px 0 #E65100;
    max-width: 100%;
}

.page-top .btn-link:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #E65100;
}


/* 汎用ボタン（赤/体験・お問い合わせ用） */
.page-top .btn-apple {
    display: inline-block;
    background: var(--apple);
    color: white;
    padding: 20px 60px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: 20px;
    box-shadow: 0 5px 0 #b71c1c;
    max-width: 100%;
}

.page-top .btn-apple:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b71c1c;
}

/* #lesson セクション調整 */
.page-top #lesson .leaf-box {
    text-align: center;
}

.page-top #lesson .leaf-box p,
.page-top #lesson .leaf-box ul {
    text-align: left;
}


/* ==========================================================================
   4. サブページ（料金）専用スタイル (.page-sub)
   ========================================================================== */

/* --- サブページ固有のレイアウト幅 --- */
.page-sub .w-text {
    width: 45%;
}

.page-sub .w-img {
    width: 45%;
}

.page-sub .w-full {
    width: 90%;
    max-width: 900px;
}

/* --- ページヘッダー (ボリュームアップ) --- */
.page-sub .page-header {
    text-align: center;
    padding-top: 0px;
    position: relative;
    margin-bottom: 110px;
}

/* タイトル背景の大きな茂み */
.page-sub .page-header-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 500px;
    z-index: -1;
    background: var(--leaf-main);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    box-shadow: 0 15px 0 var(--leaf-dark);
}

.page-sub .page-header-bg::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 100px;
    width: 250px;
    height: 180px;
    background: var(--leaf-main);
    border-radius: 50%;
}

.page-sub .page-header-bg::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: 100px;
    width: 250px;
    height: 250px;
    background: var(--leaf-main);
    border-radius: 50%;
}

.page-sub .page-title-box {
    display: inline-block;
    position: relative;
    z-index: 2;
    padding: 20px;
    color: white;
}

.page-sub .page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-sub .page-header p {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* --- 木の看板風メッセージ --- */
.page-sub .wood-sign {
    background-color: var(--wood-color);
    background-image: linear-gradient(to bottom, #8D6E63, #5D4037);
    border: 4px solid #4E342E;
    border-radius: 15px;
    color: white;
    padding: 20px 40px;
    margin: 40px auto 0;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.page-sub .wood-sign::before,
.page-sub .wood-sign::after {
    content: '';
    position: absolute;
    top: -20px;
    width: 4px;
    height: 25px;
    background: #3E2723;
}

.page-sub .wood-sign::before {
    left: 20%;
}

.page-sub .wood-sign::after {
    right: 20%;
}

.page-sub .wood-sign .nail {
    position: absolute;
    top: 5px;
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* --- ページ内ナビゲーション --- */
.page-sub .course-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 80px;
    position: relative;
    z-index: 5;
}

.page-sub .course-nav-btn {
    background: var(--white);
    border: 3px solid var(--leaf-main);
    color: var(--text);
    padding: 15px 25px;
    border-radius: 30px 0 30px 0;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-sub .course-nav-btn:hover {
    transform: translateY(3px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
    background: var(--leaf-main);
    color: white;
    border-color: var(--leaf-dark);
}

.page-sub .course-nav-btn i {
    color: var(--accent-orange);
}

.page-sub .course-nav-btn:hover i {
    color: white;
}

/* --- サブページ固有のコンポーネントスタイル --- */
/* Leaf Box内の見出し・リストスタイル */
.page-sub .leaf-box h2 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 20px;
    border-bottom: 2px dashed var(--trunk);
    display: inline-block;
}

.page-sub .leaf-box h3 {
    font-size: 1.3rem;
    color: var(--leaf-dark);
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-sub .leaf-box ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.page-sub .leaf-box li {
    margin-bottom: 5px;
    padding-left: 1.2em;
    text-indent: -1.2em;
}

.page-sub .leaf-box li::before {
    content: '・';
    color: var(--accent-orange);
    font-weight: bold;
}

/* --- 料金表スタイル --- */
.page-sub .price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.page-sub .price-table th {
    background: var(--accent-orange);
    color: white;
    padding: 15px;
    text-align: center;
    border: 1px solid #E65100;
}

.page-sub .price-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}

.page-sub .price-row-title {
    background: #fff3e0;
    font-weight: bold;
    text-align: left !important;
    color: var(--text);
}

.page-sub .price-note {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: left;
    border: 2px solid var(--accent-orange);
    margin-top: 30px;
}

/* オレンジボタン */
.page-sub .btn-orange {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 20px;
    box-shadow: 0 5px 0 #E65100;
    text-align: center;
}

.page-sub .btn-orange:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #E65100;
}


/* ==========================================================================
   5. メディアクエリ (レスポンシブ対応)
   ========================================================================== */

/* --- 1360px以下 (共通) --- */
@media (max-width: 1360px) {
    #main-header {
        background-color: rgba(255, 255, 255, 0.95);
    }

    .header-nav {
        display: none !important;
    }

    .hamburger-btn {
        display: flex;
    }

    .branch {
        display: none;
    }

    .img-box-inner iframe {
        width: 100%;
        height: 100%;
    }

    /* Top Page Specific */
    .page-top .hero-menu-circle {
        width: 600px;
        height: 600px;
        display: none;
    }

    .page-top .hero-apple-btn {
        width: 90px;
        height: 90px;
        font-size: 0.8rem;
    }

    .page-top .w-text {
        width: 48%;
    }

    .page-top .w-img {
        width: 45%;
    }

    /* Sub Page Specific */
    .page-sub .w-text {
        width: 48%;
    }

    .page-sub .w-img {
        width: 45%;
    }
}

/* --- 900px以下 (共通) --- */
@media (max-width: 900px) {
    .trunk-bg {
        width: 150px;
    }

    .deco-leaf {
        transform: scale(0.7);
    }

    .leaf-box {
        padding: 30px 20px;
    }

    .img-box-inner iframe {
        height: revert-layer;
    }

    /* 共通: セクションの縦並び化 */
    .section-row,
    .section-row:nth-child(even),
    .section-row:nth-child(odd) {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }

    /* サブページは偶数番目の並び順を逆にする指定があったため調整 */
    .page-sub .section-row:nth-child(even) {
        flex-direction: column-reverse;
    }

    /* 幅のリセット */
    .page-top .w-text,
    .page-top .w-img,
    .page-top .w-full,
    .page-top .voice-item,
    .page-sub .w-text,
    .page-sub .w-img,
    .page-sub .w-full {
        width: 95%;
        max-width: none;
    }

    /* Top Page Specific */
    .page-top .tree-crown {
        width: 150vw;
        max-width: none;
        height: clamp(640px, 82vh, 820px);
        /* 上も丸くして「木の冠」っぽさを維持 */
        border-radius: 55% 55% 45% 45% / 55% 55% 45% 45%;
        /* 幹(.trunk-bg)が見えるように、冠は一段後ろへ */
        z-index: 0;
    }

    .page-top .tree-crown::before,
    .page-top .tree-crown::after {
        top: 16%;
        width: 46%;
        height: 46%;
        background: var(--leaf-main);
        border-radius: 50%;
    }

    .page-top .tree-crown::before {
        left: -16%;
    }

    .page-top .tree-crown::after {
        right: -16%;
    }

    .page-top .hero {
        min-height: 720px;
        padding-top: 0px;
        padding-bottom: 60px;
        flex-direction: column;
        /* ここが強すぎて“木”が崩れていたので、マイナスをやめる */
        margin-top: 0;
    }

    .page-top .hero-content {
        margin-top: 0;
    }

    .page-top .hero-content h1 {
        font-size: 2rem;
    }

    .page-top .hero-menu-circle {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: auto;
        max-width: none;
        max-height: none;
        display: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 30px;
        pointer-events: auto;
    }

    .page-top .hero-apple-btn {
        position: relative;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .page-top .instructor-row,
    .page-top .instructor-row.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }

    /* Sub Page Specific */
    .page-sub .page-header-bg {
        width: 120vw;
        height: 420px;
        border-radius: 38%;
    }

    .page-sub .page-header h1 {
        font-size: 1.8rem;
    }

    .page-sub .course-nav-btn {
        width: 45%;
        justify-content: center;
        font-size: 0.9rem;
    }

    .page-sub .price-table th,
    .page-sub .price-table td {
        padding: 10px 5px;
        font-size: 0.8rem;
    }

    .page-sub .wood-sign {
        width: 90%;
        font-size: 1rem;
        padding: 20px;
    }

    .page-top .leaf-box h2 {
        font-size: 1.4rem;
    }

    .page-top .leaf-box h3 {
        font-size: 1.1rem;
    }

    .page-sub .container {
        padding-top: calc(var(--header-h, 0px) - 30px);
    }
}

/* --- 600px以下 (トップページ微調整) --- */
@media (max-width: 600px) {
    .page-top .hero {
        margin-bottom: 60px;
        padding-bottom: 60px;
        margin-top: 0;
        padding-top: 100px;
        min-height: 100px;
    }

    .page-top .hero-content {
        margin-top: 0;
    }

    /* 600px以下はさらに“木の冠”を大きくして、スマホでも木に見せる */
    .page-top .tree-crown {
        width: 170vw;
        height: clamp(550px, 50vh, 650px);
    }

    .page-top .tree-crown::before,
    .page-top .tree-crown::after {
        top: 14%;
        width: 52%;
        height: 52%;
    }

    .page-top .tree-crown::before {
        left: -20%;
    }

    .page-top .tree-crown::after {
        right: -20%;
    }

    .page-top .section-row {
        margin-bottom: 60px;
        padding-top: 0;
        margin-top: 0;
    }


    .page-top .moko-wrapper {
        margin: 10px;
    }

    .page-top .reasons-top-img-container {
        margin-bottom: 20px;
    }

    .page-top .hero h1 {
        font-size: 1.6rem;
    }

    .page-top .hero-cta,
    .leaf-box .btn-apple {
        display: block;
        max-width: min(92vw, 28rem);
        margin: 16px auto 0;
        padding: 12px 16px;
        font-size: 1rem;
        line-height: 1.35;
        text-align: center;
    }

    .page-sub .container {
        padding-top: calc(var(--header-h, 0px) - 30px);
    }

    .page-sub .hero-cta {
        display: block;
        max-width: min(92vw, 28rem);
        margin: 16px auto 0;
        padding: 12px 16px;
        font-size: 1rem;
        line-height: 1.35;
        text-align: center;
    }

    .page-sub .leaf-box h2 {
        font-size: 1.4rem;
    }

    .page-sub .leaf-box h3 {
        font-size: 1.1rem;
    }
}

/* ボタン内のテキストの改行 */
.page-top .hero-cta,
.leaf-box .btn-apple,
.nav-apple,
.mobile-drawer a,
.page-sub .course-nav-btn,
.page-sub .hero-cta {
    line-break: strict;
    overflow-wrap: break-word;
}

/* 対応ブラウザでは「2行のバランス」を取りやすくする（非対応でも壊れない） */
@supports (text-wrap: balance) {

    .page-top .hero-cta,
    .nav-apple,
    .mobile-drawer a,
    .page-sub .course-nav-btn,
    .page-sub .hero-cta {
        text-wrap: balance;
    }
}

/* PCでは wbr を無効化（改行候補にしない） */
.sp-wbr {
    display: none;
}

@media (max-width: 600px) {

    /* スマホでは wbr を有効化（改行候補にする） */
    .sp-wbr {
        display: inline;
    }

    /* ついでに：改行を許可しておく（重要） */
    .hero-cta {
        white-space: normal;
    }
}

.gotop {
    position: fixed;
    right: 20px;
    bottom: 5px;
    z-index: 999;
}

.gotop a {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 50px;
    height: 50px;

    text-decoration: none;
    color: rgba(229, 57, 53, 0.75);
    /* アイコンの色 */
    transition: transform 0.3s ease, color 0.3s ease;
}

.gotop a:hover {
    transform: scale(1.15);
    /* ふわっと大きくなる */
    color: rgba(229, 57, 53, 1);
    /* ホバー時の色 */
}

.gotop i {
    font-size: 45px;
    /* 丸アイコンなので通常より少し大きく */
}