@charset "utf-8";
/* 練習ツール（tools.html）専用スタイル
   クラス名は tl- で始める（他ページの CSS とぶつからないように） */

/* =========================================
   デザインの決まり（ここだけ見れば全体がわかる）
   ========================================= */
:root {
    /* 幅 */
    --tl-container: 1080px;
    --tl-gutter: 24px;
    --tl-measure: 38em;          /* 読みやすい 1 行の長さ */

    /* 余白の段階 */
    --tl-s1: 8px;
    --tl-s2: 16px;
    --tl-s3: 24px;
    --tl-s4: 40px;
    --tl-s5: 64px;
    --tl-s6: 96px;
    --tl-s7: 128px;

    /* 文字の大きさ */
    --tl-h1: 56px;
    --tl-statement: 42px;
    --tl-h2: 30px;
    --tl-h3: 20px;
    --tl-h4: 17px;
    --tl-body: 16px;
    --tl-small: 14px;
    --tl-lh: 1.8;

    /* 色（サイトの変数を使う。濃いピンクはボタン・番号用で、白文字が読める濃さ） */
    --tl-accent: var(--color-1);
    --tl-accent-strong: #c4566f;
    --tl-navy: #1B2A4A;        /* アプリの紺（rabbit.ts の BRAND_NAVY）。「開く」ボタン */
    --tl-navy-hover: #2C406B;
    --tl-accent-strong-hover: #a94860;
    --tl-text: var(--color-text);
    --tl-muted: var(--color-text-secondary);
    --tl-line: var(--color-border);
    --tl-surface: #ffffff;
    --tl-tint: rgba(162, 217, 206, 0.22);   /* --color-2 を薄く */
    --tl-radius: 16px;
    --tl-shot-shadow: 0 10px 30px rgba(45, 41, 38, 0.10);
}

/* =========================================
   土台
   ========================================= */
.tl {
    color: var(--tl-text);
    font-size: var(--tl-body);
    line-height: var(--tl-lh);
    overflow-wrap: anywhere;
}
.tl-container {
    max-width: var(--tl-container);
    margin: 0 auto;
    padding: 0 var(--tl-gutter);
    box-sizing: border-box;
}
.tl h2, .tl h3, .tl h4 { color: var(--tl-text); line-height: 1.4; }
.tl p { margin: 0; }

.tl a:focus-visible {
    outline: 3px solid var(--tl-text);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ボタン */
.tl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 36px;
    background: var(--tl-navy);
    color: #fff;
    border-radius: var(--btn-radius);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}
.tl-btn:hover { background: var(--tl-navy-hover); color: #fff; }

/* 画面写真の額 */
.tl-shot { margin: 0; }
.tl-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(45, 41, 38, 0.10);
    box-shadow: var(--tl-shot-shadow);
    background: #fff;
}

/* =========================================
   ファーストビュー
   ========================================= */
.tl-hero {
    padding: var(--tl-s6) 0 var(--tl-s5);
}
.tl-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--tl-s6);
    align-items: center;
}
.tl-eyebrow {
    font-size: 15px;
    font-weight: 700;
    color: var(--tl-accent-strong);
    letter-spacing: 0.08em;
    margin: 0 0 var(--tl-s2) 0;
}
.tl-hero-app {
    display: flex;
    align-items: center;
    gap: var(--tl-s2);
    margin-bottom: var(--tl-s2) !important;
}
.tl-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 17px;
    flex: 0 0 auto;
}
.tl-hero-name {
    display: flex;
    flex-direction: column;
    font-size: var(--tl-h1);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.tl-hero-kana {
    font-size: 14px;
    font-weight: 400;
    color: var(--tl-muted);
    letter-spacing: 0.05em;
    margin-top: 4px;
}
.tl-hero-lead {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: var(--tl-s2) !important;
}
.tl-hero-intro {
    max-width: 32em;
    color: var(--tl-muted);
}
.tl-hero-action {
    margin-top: var(--tl-s4);
}
.tl-hero-note {
    font-size: var(--tl-small);
    color: var(--tl-muted);
    margin-top: 12px !important;
}
.tl-hero-shot {
    width: 320px;
}

/* =========================================
   入り口の案内（2 つの大きなリンク）
   ========================================= */
.tl-chooser {
    padding: var(--tl-s3) 0 var(--tl-s5);
}
.tl-chooser-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--tl-s3);
}
.tl-choice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--tl-s3) 28px;
    background: var(--tl-surface);
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-radius);
    color: var(--tl-text);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tl-choice:hover {
    border-color: var(--tl-accent);
    box-shadow: 0 6px 20px rgba(45, 41, 38, 0.08);
}
.tl-choice-title {
    font-size: 22px;
    font-weight: 700;
}
.tl-choice-title span {
    font-size: 16px;
    color: var(--tl-muted);
}
.tl-choice-text {
    color: var(--tl-muted);
}
.tl-choice-more {
    margin-top: var(--tl-s1);
    font-size: var(--tl-small);
    font-weight: 700;
    color: var(--tl-accent-strong);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =========================================
   章の帯
   ========================================= */
.tl-band {
    padding: var(--tl-s7) 0;
    scroll-margin-top: 72px;
}
.tl-band--use  { background: var(--tl-surface); }
.tl-band--make { background: var(--tl-tint); }
.tl-band--info { background: transparent; padding: var(--tl-s6) 0 var(--tl-s5); }

.tl-chapter-head {
    margin-bottom: var(--tl-s6);
}
.tl-chapter-head h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 var(--tl-s3) 0;
}
.tl-chapter-head h2 span {
    font-weight: 400;
    color: var(--tl-muted);
}
.tl-statement {
    font-size: var(--tl-statement);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    max-width: 16em;
    word-break: auto-phrase;
    text-wrap: balance;
    margin-bottom: var(--tl-s3) !important;
}
.tl-statement em {
    font-style: normal;
    color: var(--tl-accent-strong);
}
.tl-chapter-lead {
    max-width: var(--tl-measure);
    font-size: 17px;
    color: var(--tl-muted);
}

/* 「特長」「使い方」 */
.tl-block-title {
    font-size: var(--tl-h3);
    font-weight: 700;
    margin: 0 0 var(--tl-s3) 0;
    padding-top: var(--tl-s3);
    border-top: 2px solid var(--tl-text);
}
.tl-block-title ~ .tl-block-title {
    margin-top: var(--tl-s5);
}

/* =========================================
   特長（3 列）
   ========================================= */
.tl-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--tl-s4) var(--tl-s4);
}
.tl-features h4 {
    font-size: var(--tl-h4);
    font-weight: 700;
    margin: 0 0 var(--tl-s1) 0;
}
.tl-features p {
    font-size: 15px;
    color: var(--tl-muted);
    line-height: 1.75;
}

/* =========================================
   使い方（生徒）：4 ステップを横に
   ========================================= */
.tl-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--tl-s4) var(--tl-s3);
}
.tl-steps .tl-shot {
    max-width: 220px;
    margin: 0 auto var(--tl-s3);
}
.tl-steps p {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 10px;
    font-size: 15px;
    line-height: 1.75;
}
.tl-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tl-accent-strong);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin-top: -1px;
}
.tl-aside {
    margin-top: var(--tl-s4) !important;
    font-size: var(--tl-small);
    color: var(--tl-muted);
}

/* その他の使い方（3 列） */
.tl-extras {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--tl-s4) var(--tl-s3);
    margin-top: var(--tl-s5);
    padding-top: var(--tl-s5);
    border-top: 1px solid var(--tl-line);
}
.tl-extra .tl-shot {
    max-width: 180px;
    margin: 0 0 var(--tl-s3);
}
.tl-extra h4,
.tl-guide-title {
    font-size: var(--tl-h4);
    font-weight: 700;
    margin: 0 0 var(--tl-s1) 0;
}
.tl-extra p {
    font-size: 15px;
    line-height: 1.75;
}
.tl-extra p + p,
.tl-extra .tl-list + p { margin-top: var(--tl-s1); }

/* 番号付きの手順 */
.tl-list {
    margin: 0;
    padding-left: 1.5em;
    font-size: 15px;
    line-height: 1.75;
}
.tl-list li + li { margin-top: 6px; }
.tl-list li::marker {
    font-weight: 700;
    color: var(--tl-accent-strong);
}

/* =========================================
   使い方（先生）：写真と手順を左右交互に
   ========================================= */
.tl-guides {
    display: grid;
    gap: var(--tl-s5);
}
.tl-guide {
    display: grid;
    grid-template-columns: 240px minmax(0, var(--tl-measure));
    grid-template-rows: auto 1fr;
    column-gap: var(--tl-s5);
    align-items: start;
    justify-content: center;
}
.tl-guide .tl-shot { grid-column: 1; grid-row: 1 / span 2; }
.tl-guide-title    { grid-column: 2; grid-row: 1; padding-top: var(--tl-s3); }
.tl-guide-body     { grid-column: 2; grid-row: 2; }
.tl-guide:nth-child(even) { grid-template-columns: minmax(0, var(--tl-measure)) 240px; }
.tl-guide:nth-child(even) .tl-shot { grid-column: 2; }
.tl-guide:nth-child(even) .tl-guide-title,
.tl-guide:nth-child(even) .tl-guide-body { grid-column: 1; }
.tl-guide .tl-guide-title { font-size: var(--tl-h3); margin-bottom: var(--tl-s2); }
.tl-guide .tl-list { font-size: var(--tl-body); }
.tl-note {
    margin-top: var(--tl-s2) !important;
    font-size: var(--tl-small);
    color: var(--tl-muted);
    line-height: 1.75;
}
.tl-note a { color: inherit; }

/* =========================================
   ホーム画面に追加・よくある質問
   ========================================= */
.tl-home {
    background: var(--tl-surface);
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-radius);
    padding: var(--tl-s3) 28px;
    margin-bottom: var(--tl-s5);
}
.tl-home h2 {
    font-size: var(--tl-h4);
    font-weight: 700;
    margin: 0 0 6px 0;
}
.tl-home p {
    font-size: 15px;
    color: var(--tl-muted);
    line-height: 1.75;
}

.tl-faq-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 var(--tl-s3) 0;
}
.tl-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--tl-s5);
    align-items: start;
}
.tl-faq-col h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--tl-muted);
    margin: var(--tl-s4) 0 0 0;
    padding-bottom: var(--tl-s1);
    border-bottom: 2px solid var(--tl-text);
}
.tl-faq-col h3:first-child { margin-top: 0; }
.qa { margin: 0; }
.qa-item {
    padding: var(--tl-s2) 0;
    border-bottom: 1px solid var(--tl-line);
}
.qa dt,
.qa dd {
    display: grid;
    grid-template-columns: 1.8em minmax(0, 1fr);
    line-height: 1.75;
    margin: 0;
}
.qa dt { font-weight: 700; }
.qa dd { margin-top: 4px; color: var(--tl-muted); font-size: 15px; }
.qa dt::before,
.qa dd::before {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}
.qa dt::before { content: 'Q'; color: var(--tl-accent-strong); }
.qa dd::before { content: 'A'; color: #8a7d71; }

/* =========================================
   最後の案内
   ========================================= */
.tl-cta {
    background: var(--tl-surface);
    padding: var(--tl-s5) 0;
    text-align: center;
}
.tl-cta p {
    font-weight: 700;
    margin-bottom: var(--tl-s3);
}
/* フッターの上の余白をなくして帯をつなげる */
.tl + .site-footer { margin-top: 0; }

/* =========================================
   タブレット
   ========================================= */
@media (max-width: 1024px) {
    .tl-hero-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: var(--tl-s4); }
    .tl-hero-shot { width: 240px; }
    .tl-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tl-guide,
    .tl-guide:nth-child(even) { grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--tl-s4); }
    .tl-guide:nth-child(even) .tl-shot { grid-column: 1; }
    .tl-guide:nth-child(even) .tl-guide-title,
    .tl-guide:nth-child(even) .tl-guide-body { grid-column: 2; }
    .tl-faq-grid { grid-template-columns: 1fr; }
    .tl-faq-col + .tl-faq-col h3:first-child { margin-top: var(--tl-s4); }
}

/* =========================================
   スマホ
   ========================================= */
@media (max-width: 767px) {
    :root {
        --tl-gutter: 16px;
        --tl-h1: 28px;
        --tl-h2: 24px;
        --tl-h3: 18px;
        --tl-statement: 28px;
    }
    .tl-hero { padding: var(--tl-s4) 0 var(--tl-s3); }
    .tl-hero-grid { grid-template-columns: 1fr; gap: var(--tl-s4); }
    .tl-hero-icon { width: 56px; height: 56px; border-radius: 13px; }
    .tl-hero-lead { font-size: 17px; }
    .tl-hero-action { margin-top: var(--tl-s3); }
    .tl-btn { display: flex; width: 100%; }
    .tl-hero-shot { width: 220px; margin: 0 auto; }
    .tl-chooser { padding: var(--tl-s2) 0 var(--tl-s4); }
    .tl-chooser-grid { grid-template-columns: 1fr; gap: 12px; }
    .tl-choice { padding: 18px 20px; }
    .tl-band { padding: 80px 0; }
    .tl-chapter-head { margin-bottom: var(--tl-s5); }
    .tl-chapter-head h2 { font-size: 16px; margin-bottom: var(--tl-s2); }
    .tl-chapter-lead { font-size: 16px; }
    .tl-features { grid-template-columns: 1fr; gap: var(--tl-s3); }
    /* スマホの手順：小さめの写真を左、文を右に置いて縦の長さを抑える */
    .tl-steps { grid-template-columns: 1fr; gap: var(--tl-s3); }
    .tl-steps li { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: var(--tl-s2); align-items: start; }
    .tl-steps .tl-shot { max-width: none; margin: 0; }
    .tl-steps .tl-shot img { border-radius: 12px; }
    .tl-steps p { grid-template-columns: 1fr; row-gap: 6px; }
    .tl-extras { grid-template-columns: 1fr; gap: var(--tl-s5); }
    .tl-extras { gap: var(--tl-s4); }
    .tl-extra { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: var(--tl-s2); align-items: start; }
    .tl-extra .tl-shot { max-width: none; margin: 0; }
    .tl-extra .tl-shot img { border-radius: 12px; }
    .tl-guides { gap: var(--tl-s5); }
    .tl-guide,
    .tl-guide:nth-child(even) { display: block; }
    .tl-guide .tl-guide-title { padding-top: 0; }
    .tl-guide .tl-shot { max-width: 180px; margin: 0 auto var(--tl-s3); }
    .tl-home { padding: 20px; }
    .tl-faq-title { font-size: var(--tl-h2); }
}


/* 「使う」「作る」の見出しに、アプリの扉と同じうさぎ（使う＝女性・作る＝男性。アプリの rabbit.ts から書き出し） */
.tl-door { display: block; flex: none; width: 48px; height: 48px; border-radius: 11px; }
.tl-chapter-head h2.tl-door-head { display: flex; align-items: center; gap: 12px; }
.tl-choice-title { display: flex; align-items: center; gap: 12px; }
.tl-choice-title .tl-door { width: 44px; height: 44px; border-radius: 10px; }
@media (max-width: 600px) {
    .tl-door { width: 40px; height: 40px; border-radius: 9px; }
    .tl-choice-title .tl-door { width: 40px; height: 40px; }
}
/* 包みの span は親の「（生徒の方）」用の小さい灰色を受けない */
.tl-choice-title > span:not(.tl-door) { font-size: inherit; color: inherit; }
.tl-chapter-head h2 .tl-door-label { font-weight: 700; color: inherit; }
.tl-chapter-head h2 .tl-door-label span, .tl-choice-title > span > span { font-weight: 400; color: var(--tl-muted); }
.tl-choice-title > span > span { font-size: 16px; }
/* 手順 3 の補足（声の切り替え）。手順の文の下に小さく、写真と同じ段に置く */
.tl-step-note { display: block; margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--tl-muted); }
/* ヘッダーとメインの境に紺の帯（#1A2A48）。太さは生徒と先生の章の間の地色の帯と同じ 16px（ひとみうさ指定） */
.site-header { border-bottom: 16px solid #1A2A48; }
/* 手順の文は「番号｜文」の格子。補足は文の列に入れる（スマホの 1 列でも同じ指定で 1 列目） */
.tl-steps p .tl-step-note { grid-column: -2 / -1; margin-top: 0; }
/* 画面写真のタップで拡大（dialog） */
.tl-zoom { position: relative; display: block; cursor: zoom-in; border-radius: 16px; }
.tl-zoom:focus-visible { outline: 3px solid var(--tl-navy); outline-offset: 3px; }
.tl-zoom::after { /* 右下の小さな虫めがね：押せることの目印 */
    content: ''; position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%;
    background: rgba(27, 42, 74, 0.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5'/%3E%3C/svg%3E") center/16px no-repeat;
    pointer-events: none;
}
.tl-lightbox { padding: 0; border: none; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.tl-lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.tl-lightbox::backdrop { background: rgba(20, 24, 34, 0.86); }
.tl-lightbox img { display: block; max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); width: auto; height: auto; border-radius: 16px; background: #fff; cursor: zoom-out; }
.tl-lightbox-close { min-height: 44px; padding: 0 24px; border: 1px solid rgba(255,255,255,0.6); border-radius: 22px; background: transparent; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.tl-lightbox-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* 「できること」の見出し（特長・使い方と同じ太い線）がつくので、3 列の上の細い線と余白は外す */
.tl-block-title + .tl-extras { margin-top: 0; padding-top: 0; border-top: none; }
/* 虫めがねは写真の右下の角に半分かかる位置へ（写真の中の「再生」などのボタンに重ねない）。白い縁で地から浮かせる */
.tl-zoom::after { right: -10px; bottom: -10px; width: 32px; height: 32px; border: 2px solid #fff; box-sizing: border-box; background-color: #1B2A4A; }

/* =========================================
   Dance Count の概要（事実の表）・最終更新
   ========================================= */
.tl-facts {
    margin-bottom: var(--tl-s5);
}
.tl-facts h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 var(--tl-s3) 0;
}
.tl-facts-list {
    margin: 0;
    border-top: 2px solid var(--tl-text);
}
.tl-facts-list > div {
    display: grid;
    grid-template-columns: 9em minmax(0, 1fr);
    column-gap: var(--tl-s3);
    padding: 12px 0;
    border-bottom: 1px solid var(--tl-line);
    font-size: 15px;
    line-height: 1.75;
}
.tl-facts-list dt {
    font-weight: 700;
}
.tl-facts-list dd {
    margin: 0;
    color: var(--tl-muted);
}
.tl-updated {
    margin-top: var(--tl-s4) !important;
    font-size: 13px;
    color: var(--tl-muted);
    text-align: right;
}
@media (max-width: 767px) {
    .tl-facts-list > div { grid-template-columns: 1fr; row-gap: 2px; }
    .tl-facts h2 { font-size: 20px; }
    .tl-updated { text-align: left; }
}
/* 特長の下の注意書き（日本語の標準の声のアップデート予定）。本文より濃い色の太字 */
.tl-features p.tl-feature-note { margin-top: 8px; color: var(--tl-text); }
