/* =========================================
   てならいワークス LP CSS
   カラーテーマ：オレンジ（明るく親しみやすい）
   ▼ 横スクロール根本対策
     - html/body/main/section すべて overflow-x: hidden
     - min-width は原則使わない（0のみ許可）
     - 固定px幅は使わない（% / clamp / fr のみ）
     - position:fixed 要素も max-width: 100% で制限
========================================= */

/* ============================================================
   リセット & ベース
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 68px;
}

body {
    overflow-x: hidden;
    width: 100%;
    font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: #3a2a14;
    background: #fff8ec;
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
    word-break: break-word;
}

main { width: 100%; overflow-x: hidden; }

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; transition: opacity .2s, color .2s; }
a:hover { opacity: .8; }
button { font-family: inherit; cursor: pointer; }
ul, ol, dl { list-style: none; }
h1,h2,h3,h4,h5 {
    line-height: 1.4;
    font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
    font-weight: 800;
    letter-spacing: .02em;
}

/* ============================================================
   カラー変数
============================================================ */
:root {
    --orange:      #FF7A2F;
    --orange-dark: #E85D0F;
    --orange-light:#FFA76A;
    --orange-pale: #FFE9D6;
    --yellow:      #FFD21A;
    --yellow-pale: #FFF3B5;
    --cream:       #FFF8EC;
    --text:        #3a2a14;
    --text-soft:   #6b5a48;
    --shadow:      0 8px 24px rgba(255,122,47,.18);
    --radius:      16px;
    --radius-lg:   28px;
}

/* ============================================================
   コンテナ（唯一の幅制限）
============================================================ */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }
@media (max-width: 480px) { .container { padding: 0 16px; } }

/* ============================================================
   セクション共通
============================================================ */
section {
    width: 100%;
    padding: 88px 0;
    position: relative;
    overflow: hidden;   /* はみ出し要素をセクション単位でクリップ */
}
@media (max-width: 768px) { section { padding: 56px 0; } }

.pc-only { display: inline; }
.sp-only { display: none; }
@media (max-width: 768px) {
    .pc-only { display: none; }
    .sp-only { display: inline; }
}

mark {
    background: linear-gradient(transparent 60%, var(--yellow-pale) 60%);
    color: inherit; padding: 0 .15em; font-weight: 900;
}

.section-head    { text-align: center; margin-bottom: 48px; }
.section-en      { color: var(--orange); font-weight: 700; letter-spacing: .25em; font-size: 14px; margin-bottom: 12px; font-family: "M PLUS Rounded 1c", sans-serif; }
.section-title   { font-size: clamp(22px, 3.5vw, 36px); color: var(--text); display: inline-block; }
.section-title::after {
    content: ""; display: block;
    width: 60px; height: 5px;
    background: var(--orange); border-radius: 999px;
    margin: 16px auto 0;
}
.title-strong { color: var(--orange); }
.title-sub    { font-size: .75em; color: var(--text-soft); display: inline-block; }
.section-catch { font-size: clamp(16px, 2vw, 20px); margin-top: 20px; font-weight: 700; }
.section-lead  { font-size: 16px; color: var(--text-soft); margin-top: 16px; }

/* ============================================================
   ヘッダー
   ※ position:fixed は html/body の overflow-x 管理外のため
      独自に幅制限・クリップを設定する
============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    /* width: 100% だけでは fixed が画面幅を超えることがある
       → right:0 + overflow-x:hidden で確実に制限 */
    width: 100%;
    overflow-x: hidden;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
}

.header-logo        { display: block; flex-shrink: 0; }
.header-logo img    { height: 44px; width: auto; }

/* ナビは余白を flex-shrink で縮ませ、溢れたらクリップ */
.header-nav         { margin-left: auto; min-width: 0; overflow: hidden; flex-shrink: 1; }
.header-nav ul      { display: flex; gap: 12px; align-items: center; }
.header-nav a       { font-size: 13px; font-weight: 700; color: var(--text); padding: 6px 2px; white-space: nowrap; position: relative; }
.header-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 0; height: 3px; background: var(--orange); border-radius: 999px;
    transition: width .25s;
}
.header-nav a:hover::after { width: 100%; }

.header-cta {
    flex-shrink: 0;
    background: var(--orange); color: #fff !important;
    padding: 10px 16px; border-radius: 999px;
    font-weight: 800; font-size: 13px;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap; box-shadow: var(--shadow);
}
.header-cta:hover { background: var(--orange-dark); opacity: 1; }

.hamburger {
    display: none; flex-shrink: 0;
    background: var(--orange); border: 0;
    width: 44px; height: 44px; border-radius: 12px;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ドロワー: position:fixed でヘッダーの overflow に左右されない */
.drawer {
    position: fixed;
    top: 64px; left: 0; right: 0;
    width: 100%; overflow-x: hidden;
    background: #fff; max-height: 0; overflow-y: hidden;
    transition: max-height .3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
    z-index: 999;
}
.drawer.is-open { max-height: 80vh; overflow-y: auto; }
.drawer ul      { padding: 8px 0 24px; }
.drawer li      { border-bottom: 1px solid #f3e9d8; }
.drawer a       { display: block; padding: 14px 24px; font-weight: 700; color: var(--text); }
.drawer .drawer-cta {
    background: var(--orange); color: #fff;
    margin: 16px 20px 0; border-radius: 999px;
    text-align: center; box-shadow: var(--shadow);
}

/* PC 幅縮小時：ナビ文字を縮小 */
@media (max-width: 1180px) {
    .header-nav ul { gap: 8px; }
    .header-nav a  { font-size: 11.5px; }
    .header-cta    { padding: 8px 12px; font-size: 12px; }
    .header-logo img { height: 38px; }
}
@media (max-width: 980px) {
    .header-inner { gap: 8px; }
    .header-nav ul { gap: 6px; }
    .header-nav a  { font-size: 11px; }
}
/* スマホ: ハンバーガーに切り替え */
@media (max-width: 860px) {
    .header-nav { display: none; }
    .header-cta { display: none; }
    .hamburger  { display: flex; margin-left: auto; }
    .header-logo img { height: 36px; }
    .drawer { top: 60px; }
}

/* ============================================================
   ボタン
============================================================ */
.btn {
    display: inline-flex; flex-direction: column;
    align-items: center; justify-content: center;
    border-radius: 999px; text-align: center;
    font-weight: 800; line-height: 1.3;
    transition: transform .2s, box-shadow .2s, background .2s;
    text-decoration: none;
    /* min-width は使わない。幅は親か width:100% で制御 */
}
.btn-primary {
    background: linear-gradient(135deg, #FF8A3C, #FF6B1A);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(255,107,26,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(255,107,26,.45); opacity: 1; }
.btn-secondary { background: #fff; color: var(--orange) !important; border: 3px solid var(--orange); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.btn-secondary:hover { background: var(--orange-pale); transform: translateY(-2px); opacity: 1; }

.btn-large  { padding: 18px 36px; font-size: 18px; }
.btn-xlarge { padding: 22px 40px; font-size: clamp(17px, 2.4vw, 22px); }

.btn .btn-sub  { font-size: .78em; font-weight: 700; opacity: .95; margin-bottom: 2px; }
.btn .btn-main { font-size: 1em; display: flex; align-items: center; gap: 12px; }
.btn .btn-main .fa-arrow-right { transition: transform .2s; }
.btn:hover .btn-main .fa-arrow-right { transform: translateX(4px); }

@media (max-width: 600px) {
    .btn-large, .btn-xlarge { padding: 16px 16px; font-size: 15px; }
    .btn-xlarge .btn-main   { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .btn-xlarge .btn-sub    { font-size: .75em; }
}

/* ============================================================
   1. ヒーロー（FV）
============================================================ */
.hero {
    background: linear-gradient(135deg, #FFB066 0%, #FF7A2F 55%, #FF5E0E 100%);
    padding: 130px 0 120px;
    color: #fff; position: relative; overflow: hidden;
    width: 100%;
}

/* 背景デコはこの div でクリップ */
.hero-bg-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float-shape  { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); animation: floatY 6s ease-in-out infinite; }
.shape-1 { width: 180px; height: 180px; top: 12%; left: 6%; }
.shape-2 { width: 110px; height: 110px; top: 60%; left: 3%; animation-delay: 1s; background: rgba(255,210,26,.25); }
.shape-3 { width: 140px; height: 140px; top: 8%; right: 8%; animation-delay: 2s; background: rgba(255,210,26,.2); }
.shape-4 { width: 220px; height: 220px; bottom: -40px; right: -40px; animation-delay: 1.5s; }
.shape-5 { width: 80px;  height: 80px;  top: 38%; right: 15%; animation-delay: .5s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.hero-inner {
    width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px;
    align-items: center; position: relative; z-index: 1;
}
.hero-inner > * { min-width: 0; }  /* grid アイテムの溢れ防止 */

.hero-text { color: #fff; }
.hero-pre  { display: inline-block; background: #fff; color: var(--orange); font-weight: 900; font-size: 14px; padding: 6px 18px; border-radius: 999px; margin-bottom: 20px; box-shadow: 0 6px 14px rgba(0,0,0,.1); }
.hero-title { font-size: clamp(24px, 4vw, 48px); color: #fff; margin-bottom: 24px; line-height: 1.35; text-shadow: 0 4px 10px rgba(0,0,0,.15); }
.hero-title-sub  { display: block; font-size: .55em; font-weight: 700; margin-bottom: 6px; color: #fff8ec; }
.hero-title-sub:last-child { margin-top: 16px; margin-bottom: 0; font-size: .42em; line-height: 1.6; }
.hero-title-main { display: block; font-size: 1em; font-weight: 900; }
.hero-title-main mark { background: linear-gradient(transparent 55%, var(--yellow) 55%); color: #fff; padding: 0 .1em; }
.hero-lead   { font-size: clamp(14px, 1.6vw, 17px); margin-bottom: 24px; text-shadow: 0 2px 6px rgba(0,0,0,.1); }

.hero-badges    { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.hero-badges li {
    background: rgba(255,255,255,.95); color: var(--text);
    padding: 12px 16px 12px 46px; border-radius: 12px;
    font-size: 15px; font-weight: 700; position: relative;
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.hero-badges li i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 20px; }
.hero-badges li strong { color: var(--orange); }
.hero-cta { margin-top: 24px; }

/* ヒーロー画像 */
.hero-image       { position: relative; width: 100%; overflow: hidden; border-radius: 24px; }
.hero-image-frame { background: #fff; border-radius: 20px; padding: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.2); overflow: hidden; }
.hero-image-frame img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; }
.hero-image-deco  { position: absolute; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 6px 14px rgba(0,0,0,.2); animation: floatY 4s ease-in-out infinite; pointer-events: none; }
.deco-block { width: 50px; height: 50px; top: 12px; left: 12px; background: var(--yellow); color: var(--orange); }
.deco-star  { width: 50px; height: 50px; bottom: 12px; right: 12px; animation-delay: 1s; background: #fff; color: var(--yellow); }

/* ヒーロー波 */
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; overflow: hidden; }
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ヒーロー レスポンシブ */
@media (max-width: 900px) {
    .hero { padding: 110px 0 90px; }
    .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 0 20px; }
    .hero-image { max-width: 440px; margin: 0 auto; }
}
@media (max-width: 600px) {
    .hero { padding: 95px 0 75px; }
    .hero-inner { padding: 0 16px; gap: 20px; }
    .hero-image { max-width: 100%; }
    .hero-image-deco { width: 38px; height: 38px; font-size: 14px; }
    .hero-badges li { padding: 10px 12px 10px 40px; font-size: 13px; }
    .hero-badges li i { left: 12px; font-size: 17px; }
}

/* ============================================================
   2. お悩み
============================================================ */
.worry { background: var(--cream); }

.worry-list { display: flex; flex-direction: column; gap: 16px; }
.worry-list li { display: flex; }
.worry-list li:nth-child(odd)  { justify-content: flex-start; }
.worry-list li:nth-child(even) { justify-content: flex-end; }

.worry-balloon {
    background: #fff; border: 2px solid #f5e1c5; border-radius: 18px;
    padding: 14px 18px 14px 46px;
    max-width: 80%;     /* containerの80%以内に収める */
    font-size: 15px; font-weight: 600; position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
    overflow-wrap: break-word; word-break: break-word;
}
.worry-balloon i { position: absolute; left: 16px; top: 16px; color: var(--orange); font-size: 17px; }
.worry-balloon strong { color: var(--orange-dark); }

@media (max-width: 600px) {
    .worry-balloon { max-width: 90%; font-size: 14px; padding: 12px 14px 12px 40px; }
    .worry-balloon i { left: 12px; top: 14px; font-size: 15px; }
}

.worry-arrow  { text-align: center; color: var(--orange); font-size: 48px; margin: 32px 0 20px; animation: bounce 1.4s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

.worry-answer { background: #fff; border-radius: var(--radius-lg); padding: 40px 28px; text-align: center; border: 3px solid var(--orange); box-shadow: 0 20px 40px rgba(255,122,47,.15); }
.answer-tag   { display: inline-block; background: var(--orange); color: #fff; padding: 8px 24px; border-radius: 999px; font-weight: 800; font-size: 14px; margin-bottom: 16px; }
.answer-title { font-size: clamp(20px, 3vw, 30px); color: var(--text); margin-bottom: 12px; }
.brand-text   { color: var(--orange); }
.answer-text  { font-size: 16px; color: var(--text-soft); }
.answer-text strong { color: var(--text); font-size: 1.05em; }

/* ============================================================
   3. 3つの特長
============================================================ */
.features { background: linear-gradient(180deg, var(--cream) 0%, #FFEBD4 100%); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-grid > * { min-width: 0; }
.feature-card {
    background: #fff; border-radius: var(--radius-lg); padding: 40px 24px 28px;
    position: relative; box-shadow: 0 14px 30px rgba(58,42,20,.08);
    transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 38px rgba(255,122,47,.18); }
.feature-number {
    position: absolute; top: -22px; left: 24px;
    background: var(--orange); color: #fff;
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 900; font-size: 20px;
    box-shadow: var(--shadow);
}
.feature-icon  { width: 72px; height: 72px; margin: 16px auto 18px; background: var(--yellow-pale); color: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.feature-title { font-size: 18px; text-align: center; margin-bottom: 14px; color: var(--text); }
.feature-title .hl { color: var(--orange); border-bottom: 4px solid var(--yellow); }
.feature-text  { font-size: 14px; color: var(--text-soft); }
.feature-text strong { color: var(--orange-dark); }

@media (max-width: 768px) { .feature-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   4. Scratchとは
============================================================ */
.scratch-intro { background: linear-gradient(180deg, #FFF8EC 0%, #FFEBD4 100%); }
.scratch-overview { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; margin-bottom: 48px; }
.scratch-overview > * { min-width: 0; }

.scratch-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 14px 30px rgba(58,42,20,.15); aspect-ratio: 4/3; }
.scratch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scratch-img-screen { aspect-ratio: 16/10; background: #fff; border: 4px solid #fff; }
.scratch-img-screen img { object-fit: contain; background: #f5f5f7; }

.scratch-img-badge {
    position: absolute; left: 12px; bottom: 12px;
    background: rgba(255,255,255,.95); color: var(--text);
    padding: 10px 14px; border-radius: 10px;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 6px 14px rgba(0,0,0,.15);
}
.scratch-img-badge i { color: var(--orange); font-size: 20px; }
.scratch-img-badge strong { color: var(--orange); }

.scratch-text p { margin-bottom: 14px; font-size: 15px; color: var(--text-soft); line-height: 1.9; }
.scratch-text strong { color: var(--orange-dark); }
.scratch-lead { font-size: 16px !important; color: var(--text) !important; }

.scratch-merits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.scratch-merits > * { min-width: 0; }
.scratch-merit {
    background: #fff; border-radius: var(--radius); padding: 22px 16px;
    text-align: center; box-shadow: 0 8px 18px rgba(58,42,20,.06);
    border-bottom: 4px solid var(--orange); transition: transform .25s;
}
.scratch-merit:hover { transform: translateY(-4px); }
.merit-icon  { width: 56px; height: 56px; margin: 0 auto 10px; background: var(--yellow-pale); color: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.scratch-merit h4 { font-size: 14px; margin-bottom: 8px; color: var(--text); }
.scratch-merit p  { font-size: 13px; color: var(--text-soft); line-height: 1.7; }

@media (max-width: 900px) { .scratch-overview { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .scratch-merits { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   5. ジュニア・プログラミング検定
============================================================ */
.kentei { background: #fff; }
.kentei-desc     { text-align: center; color: var(--text-soft); font-size: 16px; max-width: 880px; margin: 0 auto 44px; }
.kentei-subtitle { text-align: center; font-size: clamp(18px, 2.4vw, 26px); color: var(--text); margin-bottom: 28px; }
.kentei-subtitle i { color: var(--orange); margin-right: 10px; }

.level-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.level-grid > * { min-width: 0; }
.level-grid::before {
    content: ""; position: absolute;
    top: 50%; left: 5%; right: 5%; height: 4px;
    background: linear-gradient(to right, #ffd9b5, var(--orange));
    border-radius: 999px; z-index: 0;
}
.level-card {
    background: #fff; border: 3px solid var(--orange-pale); border-radius: 16px;
    padding: 20px 12px; text-align: center; position: relative; z-index: 1;
    box-shadow: 0 6px 16px rgba(0,0,0,.05); transition: transform .3s;
}
.level-card:hover { transform: translateY(-6px); }
.level-badge { display: inline-block; background: var(--orange); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; margin-bottom: 10px; }
.level-name  { font-size: clamp(16px, 2.4vw, 22px); font-weight: 900; font-family: "M PLUS Rounded 1c", sans-serif; color: var(--orange); margin-bottom: 4px; }
.level-jp    { font-size: 12px; color: var(--text-soft); font-weight: 600; }
.level-entry  { background: #FFF7E6; border-color: #FFE6A8; }
.level-entry  .level-name { color: #C8A211; } .level-entry  .level-badge { background: #C8A211; }
.level-bronze { background: #FCEFE0; border-color: #E8B98D; }
.level-bronze .level-name { color: #A0623A; } .level-bronze .level-badge { background: #A0623A; }
.level-silver { background: #F2F2F2; border-color: #C9C9C9; }
.level-silver .level-name { color: #808080; } .level-silver .level-badge { background: #808080; }
.level-gold   { background: linear-gradient(135deg, #FFE9A0, #FFC83C); border-color: #E5A300; }
.level-gold   .level-name { color: #B57500; } .level-gold   .level-badge { background: #B57500; }
.level-note   { text-align: center; margin-top: 18px; font-weight: 700; color: var(--orange); }

.kentei-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.kentei-points > * { min-width: 0; }
.kentei-point { background: var(--cream); border-radius: var(--radius); padding: 28px 20px; text-align: center; border: 2px dashed var(--orange-light); transition: transform .25s, border-color .25s; }
.kentei-point:hover { transform: translateY(-4px); border-color: var(--orange); }
.point-icon { width: 64px; height: 64px; margin: 0 auto 14px; background: var(--orange); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: var(--shadow); }
.kentei-point h4 { font-size: 17px; margin-bottom: 10px; color: var(--text); }
.kentei-point p  { font-size: 14px; color: var(--text-soft); text-align: left; }
.kentei-point strong { color: var(--orange-dark); }

@media (max-width: 768px) {
    .level-grid { grid-template-columns: repeat(2, 1fr); }
    .level-grid::before { display: none; }
    .kentei-points { grid-template-columns: 1fr; }
}

/* ============================================================
   6. 作品例
============================================================ */
.works { background: #fff; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.works-grid > * { min-width: 0; }
.work-card { background: var(--cream); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 24px rgba(58,42,20,.08); transition: transform .3s; display: flex; flex-direction: column; }
.work-card:hover { transform: translateY(-6px); }
.work-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #fff; }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work-card:hover .work-image img { transform: scale(1.05); }
.work-level { position: absolute; top: 10px; left: 10px; padding: 5px 14px; border-radius: 999px; color: #fff; font-weight: 800; font-size: 12px; z-index: 1; }
.level-easy { background: #4CAF50; }
.level-mid  { background: var(--orange); }
.level-hard { background: #D63B3B; }
.work-body  { padding: 20px 20px 24px; flex: 1; }
.work-title { font-size: 17px; color: var(--text); margin-bottom: 12px; }
.work-title i { color: var(--orange); margin-right: 8px; }
.work-info  { font-size: 13px; line-height: 1.7; }
.work-info dt { font-weight: 800; color: var(--orange-dark); font-size: 12px; margin-top: 8px; }
.work-info dt:first-child { margin-top: 0; }
.work-info dd { margin: 3px 0 0; color: var(--text-soft); }

@media (max-width: 900px) { .works-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ============================================================
   7. カリキュラム
============================================================ */
.curriculum { background: var(--cream); }
.curriculum-steps { max-width: 860px; margin: 0 auto; position: relative; }
.curriculum-steps::before {
    content: ""; position: absolute;
    left: 56px; top: 24px; bottom: 24px; width: 4px;
    background: repeating-linear-gradient(to bottom, var(--orange) 0 8px, transparent 8px 16px);
}
.step {
    display: grid; grid-template-columns: 110px 1fr; gap: 20px;
    align-items: flex-start; background: #fff; border-radius: var(--radius);
    padding: 22px 24px; margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(58,42,20,.06); position: relative; z-index: 1;
}
.step > * { min-width: 0; }
.step-num  { background: var(--orange); color: #fff; width: 110px; height: 110px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow); flex-shrink: 0; }
.step-num span   { font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.step-num strong { font-size: 40px; font-family: "M PLUS Rounded 1c", sans-serif; line-height: 1; }
.step-body { padding-top: 10px; }
.step-title { font-size: clamp(17px, 2vw, 21px); color: var(--text); margin-bottom: 8px; }
.step-title small { color: var(--orange); font-size: .7em; margin-left: 8px; font-weight: 700; }
.step-body p { color: var(--text-soft); font-size: 14px; }
.step-body strong { color: var(--orange-dark); }

@media (max-width: 768px) {
    .curriculum-steps::before { display: none; }
    .step { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
    .step-num { margin: 0 auto; width: 80px; height: 80px; }
    .step-num strong { font-size: 30px; }
    .step-body { padding-top: 0; }
    .step-body p { text-align: left; }
}

/* ============================================================
   8. コース・料金
============================================================ */
.price { background: #fff; }
.price-block {
    background: var(--cream); border-radius: var(--radius-lg);
    padding: 32px 28px; margin-bottom: 24px;
}
.price-block-title { font-size: clamp(18px, 2.4vw, 24px); color: var(--text); margin-bottom: 22px; text-align: center; padding-bottom: 12px; border-bottom: 3px dashed var(--orange-light); }
.price-block-title i { color: var(--orange); margin-right: 8px; }
.price-lead { text-align: center; font-size: 17px; margin-bottom: 22px; }
.big-text   { color: var(--orange); font-size: 1.6em; font-family: "M PLUS Rounded 1c", sans-serif; margin: 0 4px; }

.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.schedule-grid > * { min-width: 0; }
.schedule-card { background: #fff; border: 2px solid var(--orange-pale); border-radius: var(--radius); padding: 20px 12px; text-align: center; transition: border-color .2s, transform .2s; }
.schedule-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.schedule-no   { display: inline-block; background: var(--orange); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 12px; margin-bottom: 10px; }
.schedule-time { font-size: clamp(16px, 2.4vw, 22px); font-weight: 900; font-family: "M PLUS Rounded 1c", sans-serif; color: var(--text); }
.schedule-time span { color: var(--orange); margin: 0 3px; }
.schedule-min  { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.schedule-note { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text-soft); }

.target-grade  { text-align: center; font-size: clamp(20px, 3vw, 30px); font-family: "M PLUS Rounded 1c", sans-serif; color: var(--text); }
.target-grade strong { color: var(--orange); font-size: 1.1em; }

.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fee-grid > * { min-width: 0; }
.fee-card { background: #fff; border: 2px solid var(--orange-pale); border-radius: var(--radius); padding: 24px 14px; text-align: center; }
.fee-card-main {
    border: 3px solid var(--orange);
    background: linear-gradient(180deg, #fff 0%, #FFF3E2 100%);
    position: relative;
    /* transform: scale() は使わない（幅に影響する） */
}
.fee-card-main::before {
    content: "メイン"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--orange); color: #fff; padding: 4px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 800; white-space: nowrap;
}
.fee-name   { font-weight: 800; color: var(--orange-dark); margin-bottom: 8px; font-size: 14px; }
.fee-amount { font-size: clamp(22px, 3.6vw, 34px); font-weight: 900; font-family: "M PLUS Rounded 1c", sans-serif; color: var(--text); line-height: 1.1; }
.fee-amount span { font-size: .5em; margin-left: 3px; color: var(--text-soft); }
.fee-tax    { font-size: 12px; color: var(--text-soft); margin-top: 6px; }

@media (max-width: 768px) {
    .schedule-grid, .fee-grid { grid-template-columns: 1fr; }
    .price-block { padding: 24px 18px; }
}

/* ============================================================
   9. 体験の流れ
============================================================ */
.flow { background: var(--cream); }
.flow-steps {
    display: flex; align-items: stretch; justify-content: center;
    gap: 12px; flex-wrap: wrap;
}
/* flow-step の幅: 固定px ではなく flex + 最小幅で制御 */
.flow-step {
    background: #fff; border-radius: var(--radius); padding: 26px 18px 24px;
    text-align: center; flex: 1 1 160px; max-width: 220px;
    box-shadow: 0 8px 20px rgba(58,42,20,.06); border-top: 6px solid var(--orange);
    transition: transform .25s;
}
.flow-step:hover { transform: translateY(-5px); }
.flow-icon { width: 64px; height: 64px; margin: 0 auto 12px; background: var(--orange-pale); color: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.flow-num  { font-size: 12px; font-weight: 800; color: var(--orange); letter-spacing: .1em; margin-bottom: 6px; }
.flow-step h3  { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.flow-text { font-size: 13px; color: var(--text-soft); }
.flow-arrow { display: flex; align-items: center; color: var(--orange); font-size: 28px; flex-shrink: 0; }

@media (max-width: 768px) {
    .flow-arrow { transform: rotate(90deg); }
    .flow-step  { flex: 1 1 100%; max-width: 400px; }
}

/* ============================================================
   10. FAQ
============================================================ */
.faq { background: #fff; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--cream); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(58,42,20,.04); transition: box-shadow .2s; }
.faq-item.is-open { box-shadow: 0 8px 24px rgba(255,122,47,.18); }
.faq-toggle { width: 100%; background: transparent; border: 0; text-align: left; padding: 18px 50px 18px 60px; font-size: 15px; font-weight: 700; color: var(--text); position: relative; line-height: 1.6; }
.faq-mark   { position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 900; font-size: 14px; }
.faq-icon   { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 17px; transition: transform .25s; }
.faq-item.is-open .faq-icon { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 20px 0 60px; background: #fff; }
.faq-item.is-open .faq-a { max-height: 600px; padding: 16px 20px 20px 60px; }
.faq-a .a-mark { background: var(--yellow); color: var(--orange-dark); top: 16px; }
.faq-a p { font-size: 14px; color: var(--text-soft); }
.faq-a strong { color: var(--orange-dark); }

@media (max-width: 600px) {
    .faq-toggle { padding: 16px 44px 16px 52px; font-size: 14px; }
    .faq-mark   { left: 14px; width: 26px; height: 26px; font-size: 12px; }
    .faq-a      { padding-left: 52px; padding-right: 14px; }
    .faq-item.is-open .faq-a { padding-left: 52px; padding-right: 14px; }
}

/* ============================================================
   11. アクセス
============================================================ */
.access { background: var(--cream); }
.access-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.access-grid > * { min-width: 0; }
.access-info, .access-map { background: #fff; border-radius: var(--radius); box-shadow: 0 8px 20px rgba(58,42,20,.06); overflow: hidden; }
.access-info { padding: 24px; }
.access-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.access-table th, .access-table td { padding: 12px 4px; border-bottom: 1px dashed #e9d9bd; text-align: left; vertical-align: top; }
.access-table th { color: var(--orange-dark); width: 90px; font-size: 12px; white-space: nowrap; }
.access-table td small { color: var(--text-soft); font-size: 12px; }
.phone-link { font-size: 20px; font-weight: 900; color: var(--orange) !important; font-family: "M PLUS Rounded 1c", sans-serif; }
.access-map { min-height: 320px; }
.access-map iframe { width: 100%; height: 100%; min-height: 320px; display: block; }

@media (max-width: 768px) { .access-grid { grid-template-columns: 1fr; } }

/* ============================================================
   12. CVエリア
============================================================ */
.cv {
    background: linear-gradient(135deg, #FF9447 0%, #FF6B1A 100%);
    color: #fff; text-align: center; overflow: hidden;
    padding: 80px 0 90px; position: relative;
}
/* デコ円は完全にセクション内側に収める */
.cv-deco-left, .cv-deco-right {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.1); border-radius: 50%; pointer-events: none;
}
.cv-deco-left  { left: -50px;  width: 140px; height: 140px; }
.cv-deco-right { right: -50px; width: 180px; height: 180px; }

.cv .container { position: relative; z-index: 1; }
.cv-pre    { display: inline-block; background: var(--yellow); color: var(--orange-dark); padding: 6px 20px; border-radius: 999px; font-weight: 800; font-size: 14px; margin-bottom: 18px; }
.cv-pre i  { margin-right: 6px; }
.cv-title  { font-size: clamp(22px, 4vw, 40px); color: #fff; margin-bottom: 16px; line-height: 1.4; text-shadow: 0 4px 10px rgba(0,0,0,.15); }
.cv-title-strong { display: inline-block; background: #fff; color: var(--orange); padding: 4px 16px; border-radius: 10px; margin-top: 6px; }
.cv-text   { font-size: 15px; margin-bottom: 28px; text-shadow: 0 2px 6px rgba(0,0,0,.1); }
.cv-buttons { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 480px; margin: 0 auto; }
.cv-buttons .btn { width: 100%; }
.cv-hours  { margin-top: 16px; color: rgba(255,255,255,.9); font-size: 14px; }

/* ============================================================
   フッター
============================================================ */
.site-footer { background: #2a1c0c; color: #f7eedf; padding: 56px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 28px; }
.footer-grid > * { min-width: 0; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.footer-logo img { height: 46px; width: auto; }
.footer-desc { font-size: 13px; line-height: 1.9; color: #d6c8b1; }
.footer-info h4, .footer-nav h4 { color: var(--orange-light); font-size: 15px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #4a3318; font-family: "M PLUS Rounded 1c", sans-serif; }
.footer-info p  { font-size: 13px; margin-bottom: 8px; color: #d6c8b1; line-height: 1.8; }
.footer-info i  { color: var(--orange-light); margin-right: 6px; }
.footer-info a  { color: #fff; font-weight: 700; }
.footer-nav ul  { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a   { font-size: 13px; color: #d6c8b1; }
.footer-nav a:hover { color: var(--orange-light); }
.footer-bottom  { border-top: 1px solid #4a3318; padding-top: 18px; text-align: center; font-size: 12px; color: #9a8a6f; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-logo { display: block; text-align: center; }
}

/* ============================================================
   固定CTA（モバイル下部）
   ※ position:fixed は html/body の overflow-x 管理外
     → right:0 + overflow-x:hidden で幅を制限
============================================================ */
.floating-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%; overflow-x: hidden;
    display: none;
    background: #fff; padding: 8px; gap: 8px;
    box-shadow: 0 -4px 16px rgba(0,0,0,.1);
    z-index: 900;
    box-sizing: border-box;
}
.floating-cta a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 10px; font-size: 12px; font-weight: 800; }
.floating-cta i { font-size: 18px; margin-bottom: 3px; }
.floating-call  { background: #fff; color: var(--orange); border: 2px solid var(--orange); }
.floating-apply { background: var(--orange); color: #fff; }
.floating-apply:hover { background: var(--orange-dark); opacity: 1; }

@media (max-width: 768px) {
    .floating-cta { display: flex; }
    body { padding-bottom: 68px; }
}

/* ============================================================
   ページトップボタン
============================================================ */
.page-top {
    position: fixed; right: 20px; bottom: 20px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--orange); color: #fff; border: 0;
    font-size: 20px; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s, background .2s; z-index: 800;
}
.page-top.show { opacity: 1; pointer-events: auto; }
.page-top:hover { background: var(--orange-dark); transform: translateY(-3px); }

@media (max-width: 768px) { .page-top { bottom: 76px; right: 14px; width: 42px; height: 42px; font-size: 17px; } }

/* ============================================================
   フェードイン
============================================================ */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
