/* AIかつよ pages — shared design system.
   Used by ai-katsuyo.html / ai-katsuyo-start.html / ai-katsuyo-apps.html.
   Palette matches the Kadence theme globals. */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    line-height: 1.9;
    color: #1A202C;
    background: #F7FAFC;
    -webkit-font-smoothing: antialiased;
}

/* ---------- hero ---------- */
.hero {
    background: linear-gradient(135deg, #2B6CB0 0%, #215387 100%);
    color: white;
    padding: 5rem 2rem 4rem;
    text-align: center;
}
.hero .eyebrow {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 1.1rem;
}
.hero h1 {
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    /* explicit: on the front page Kadence's `h1{color:…}` beats inheritance
       from .hero, which left the title near-black on the blue */
    color: #F6AD55;
}
.hero .lead {
    font-size: 1.375rem;
    font-weight: 600;
    max-width: 680px;
    margin: 0 auto 0.75rem;
}
.hero .sub {
    font-size: 1rem;
    opacity: 0.88;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---------- layout ---------- */
.container { max-width: 920px; margin: 0 auto; padding: 4rem 2rem 5rem; }

.section { margin-bottom: 4.5rem; }

.section-num {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #2B6CB0;
    background: #EBF4FA;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1A202C;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2D3748;
    margin: 2rem 0 0.75rem;
}
.section p { color: #4A5568; margin-bottom: 1.25rem; font-size: 1.0625rem; }
.section p strong { color: #1A202C; font-weight: 700; }
.section .em {
    color: #2B6CB0;
    font-weight: 700;
    border-bottom: 2px solid #BEE3F8;
    padding-bottom: 1px;
}

/* ---------- app cards ---------- */
.app-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 2.5rem;
}
.app-card {
    background: white;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 3px solid #2B6CB0;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.app-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.app-card.cyan { border-top-color: #06B6D4; }
.app-card.orange { border-top-color: #F59E0B; }
.app-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.app-card h3 { font-size: 1.25rem; margin: 0 0 0.5rem; color: #1A202C; }
.app-card p { font-size: 0.9375rem; line-height: 1.75; margin-bottom: 1.25rem; flex-grow: 1; }
.app-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2B6CB0;
    text-decoration: none;
    align-self: flex-start;
}
.app-link:hover { text-decoration: underline; }

/* ---------- checklist ---------- */
.checklist { list-style: none; margin: 1.5rem 0 2rem; }
.checklist li {
    position: relative;
    padding: 0.625rem 0 0.625rem 2.25rem;
    color: #2D3748;
    font-size: 1.0625rem;
    border-bottom: 1px solid #EDF2F7;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0.25rem;
    top: 0.625rem;
    color: #2B6CB0;
    font-weight: 700;
}

.note-box {
    background: #EDF2F7;
    border-radius: 6px;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}
.note-box p { margin-bottom: 0.5rem; }
.note-box p:last-child { margin-bottom: 0; }
.note-box .note-label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #718096;
    margin-bottom: 0.5rem;
}

/* ---------- points ---------- */
.points { list-style: none; margin: 1.5rem 0 2rem; }
.points li {
    position: relative;
    padding: 0 0 1.25rem 1.75rem;
    color: #4A5568;
    font-size: 1.0625rem;
}
.points li::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 0.85rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2B6CB0;
}
.points li strong { color: #1A202C; }

/* ---------- faq ---------- */
.faq { margin-top: 2rem; }
.faq details {
    background: white;
    border-radius: 8px;
    margin-bottom: 0.875rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.0625rem;
    color: #1A202C;
    position: relative;
    line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "＋";
    position: absolute;
    right: 1.5rem;
    top: 1.25rem;
    color: #2B6CB0;
    font-weight: 700;
    transition: transform 0.2s;
}
.faq details[open] summary::after { content: "－"; }
.faq summary:hover { background: #F7FAFC; }
.faq .answer { padding: 0 1.5rem 1.5rem; color: #4A5568; font-size: 1rem; }
.faq .answer p { margin-bottom: 0.75rem; font-size: 1rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- cta ---------- */
.cta-band {
    background: linear-gradient(135deg, #2B6CB0 0%, #215387 100%);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    margin: 3.5rem 0;
}
.cta-band h3 { font-size: 1.625rem; color: white; margin: 0 0 0.75rem; line-height: 1.5; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 1.75rem; font-size: 1rem; }
.cta-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: white;
    color: #2B6CB0;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.2); }

/* ---------- language divider ---------- */
.lang-divider { height: 2px; background: linear-gradient(90deg, transparent, #2B6CB0, transparent); margin: 4.5rem 0 3rem; }
.lang-label {
    font-size: 0.8125rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #718096;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* ---------- pull quote ---------- */
.pull {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2D3748;
    line-height: 2.05;
    border-left: 2px solid #2B6CB0;
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin: 2.5rem 0;
}
.pull strong { font-weight: 700; color: #1A202C; }
.pull.amber { border-left-color: #F59E0B; }

.choice {
    text-align: center;
    line-height: 1.8;
    background: linear-gradient(135deg, #EBF4FA 0%, #F7FAFC 60%, #FEF6E7 100%);
    border: 1px solid #BEE3F8;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 18px rgba(43, 108, 176, 0.10);
}
.choice .small {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #4A5568;
}
/* short amber rule between the English line and its Japanese */
.choice .small::before {
    content: "";
    display: block;
    width: 2.75rem;
    height: 3px;
    background: #F59E0B;
    border-radius: 2px;
    margin: 1.1rem auto 1rem;
}

@media (max-width: 768px) {
    .hero { padding: 3.5rem 1.5rem 3rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero .eyebrow { font-size: 0.875rem; letter-spacing: 0.12em; }
    .hero .lead { font-size: 1.125rem; }
    .container { padding: 3rem 1.5rem 4rem; }
    .section h2 { font-size: 1.5rem; }
        .pull { font-size: 1.0625rem; padding-left: 1rem; }
    .choice { font-size: 1.1875rem; padding: 1.75rem 1.25rem; }
    .cta-band { padding: 2.5rem 1.5rem; }
    .cta-band h3 { font-size: 1.375rem; }
}

/* ---------- numbered steps (start page) ---------- */
.steps { counter-reset: step; margin: 2rem 0 2.5rem; }
.step {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 1.5rem 1.75rem 1.5rem 4.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #2B6CB0;
    color: white;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step h3 { margin: 0 0 0.375rem; font-size: 1.0625rem; color: #1A202C; }
.step p { margin: 0; font-size: 0.9375rem; }

@media (max-width: 768px) {
    .step { padding: 1.25rem 1.25rem 1.25rem 3.75rem; }
    .step::before { left: 1rem; top: 1.25rem; }
}

/* ================= single-page LP components ================= */
:root { --jjc-nav-h: 72px; --lp-nav-h: 52px; }

/* sticky in-page section nav, sits directly under the site header */
.lp-nav {
    position: sticky;
    top: var(--jjc-nav-h);
    z-index: 9990;
    background: rgba(255,255,255,0.97);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid #E2E8F0;
}
.lp-nav-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.lp-nav-inner::-webkit-scrollbar { display: none; }
.lp-nav a {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: var(--lp-nav-h);
    padding: 0 0.9rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4A5568;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.lp-nav a:hover { color: #2B6CB0; border-bottom-color: #BEE3F8; }
.lp-nav a.is-active { color: #2B6CB0; border-bottom-color: #2B6CB0; }
.lp-nav a.lang { margin-left: auto; color: #718096; font-weight: 700; letter-spacing: 0.08em; }

/* anything with an id must clear both sticky bars when jumped to */
[id] { scroll-margin-top: calc(var(--jjc-nav-h) + var(--lp-nav-h) + 8px); }
html { scroll-behavior: smooth; }

/* chapter divider */
.chapter {
    margin: 5.5rem 0 3rem;
    padding-top: 3rem;
    border-top: 3px solid #2B6CB0;
}
.chapter:first-of-type { border-top: none; padding-top: 0; margin-top: 0.5rem; }
.chapter .ch-label {
    display: inline-block;
    background: #2B6CB0;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.chapter h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1A202C;
    line-height: 1.45;
    margin-bottom: 1rem;
}
.chapter .ch-lead { color: #4A5568; font-size: 1.125rem; margin: 0; }

@media (max-width: 768px) {
    :root { --lp-nav-h: 46px; }
    .lp-nav a { font-size: 0.875rem; padding: 0 0.7rem; }
    .chapter { margin: 4rem 0 2.5rem; padding-top: 2.25rem; }
    .chapter h2 { font-size: 1.625rem; }
    .chapter .ch-lead { font-size: 1rem; }
}

/* ================= かつよ度 self-test ================= */
.quiz {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    margin: 2.5rem 0;
}
.quiz-toggle {
    display: block;
    width: 100%;
    text-align: left;
    background: #EBF4FA;
    border: 0;
    cursor: pointer;
    padding: 1.5rem 1.75rem;
    font-family: inherit;
    transition: background 0.2s;
}
.quiz-toggle:hover { background: #DCEBF7; }
.quiz-toggle-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #fff;
    background: #2B6CB0;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.quiz-toggle-title { display: block; font-size: 1.375rem; font-weight: 700; color: #1A202C; line-height: 1.5; }
.quiz-toggle-cue { display: block; margin-top: 0.6rem; font-size: 0.9375rem; font-weight: 600; color: #2B6CB0; }

.quiz-body { padding: 1.75rem; }
.quiz-q { font-size: 1.0625rem; font-weight: 700; color: #1A202C; margin: 0; line-height: 1.75; }
.quiz-note { display: block; font-size: 0.9375rem; font-weight: 400; color: #718096; margin-top: 0.6rem; line-height: 1.75; }

.quiz-options { margin: 1.5rem 0; }
.quiz-opt {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    margin-bottom: 0.625rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.quiz-opt:hover { border-color: #BEE3F8; background: #F7FAFC; }
.quiz-opt.is-checked { border-color: #2B6CB0; background: #EBF4FA; }
.quiz-opt input { accent-color: #2B6CB0; width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
.quiz-key { flex: 0 0 1.25rem; font-weight: 700; color: #2B6CB0; }
.quiz-text { color: #2D3748; }

.quiz-submit {
    display: inline-block;
    padding: 0.8rem 2.25rem;
    background: #2B6CB0;
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.quiz-submit:hover:not(:disabled) { background: #215387; transform: translateY(-1px); }
.quiz-submit:disabled { background: #CBD5E0; cursor: not-allowed; }

.quiz-results { margin-top: 1.75rem; border-top: 1px solid #E2E8F0; padding-top: 1.5rem; }
.quiz-results-head { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; color: #718096; margin-bottom: 1rem; }
.quiz-result {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-radius: 8px;
    border-left: 4px solid transparent;
    margin-bottom: 0.5rem;
}
.quiz-result h4 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; color: #4A5568; }
.quiz-result p { margin: 0; font-size: 0.9375rem; color: #718096; line-height: 1.75; }
.quiz-result.is-you { background: #EBF4FA; border-left-color: #2B6CB0; }
.quiz-result.is-you h4 { color: #1A202C; }
.quiz-result.is-you p { color: #1A202C; font-weight: 700; }
.quiz-badge {
    display: inline-block;
    margin-left: 0.6rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: #2B6CB0;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    vertical-align: 0.1em;
}
.quiz-close-note {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #E2E8F0;
    font-size: 0.9375rem;
    color: #4A5568;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .quiz-toggle { padding: 1.25rem 1.25rem; }
    .quiz-toggle-title { font-size: 1.125rem; }
    .quiz-body { padding: 1.25rem; }
    .quiz-submit { width: 100%; }
}

/* ================= inline term with hover/focus note ================= */
.term {
    position: relative;
    border-bottom: 2px dotted #2B6CB0;
    cursor: help;
    outline-offset: 4px;
}
.term-pop {
    position: absolute;
    left: 0;
    top: calc(100% + 0.7rem);
    z-index: 60;
    width: max-content;
    max-width: min(32rem, 86vw);
    background: #1A202C;
    color: #E2E8F0;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0;
    text-align: left;
    padding: 1.1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    pointer-events: none;
}
.term-pop strong { color: #fff; font-weight: 700; }
.term-pop .term-pop-head {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #90CDF4;
    margin-bottom: 0.5rem;
}
.term:hover .term-pop,
.term:focus .term-pop,
.term:focus-within .term-pop { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 900px) {
    .term-pop { left: auto; right: 0; }
}

/* choice box: English carries the line, Japanese sits under it */
.choice-main {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: #2B6CB0;
    line-height: 1.35;
    letter-spacing: 0.01em;
}
@media (max-width: 768px) {
    .choice-main { font-size: 1.625rem; }
}

/* share-of-users badge on each result */
.quiz-pct {
    display: inline-block;
    margin-left: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #2B6CB0;
    background: #EBF4FA;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    vertical-align: 0.12em;
    white-space: nowrap;
}
.quiz-result.is-you .quiz-pct { background: #2B6CB0; color: #fff; }

/* ================= statement → click for the answer ================= */
.stmt-set { margin: 3.5rem 0; }
.stmt-intro { font-size: 1.0625rem; color: #4A5568; margin-bottom: 1.25rem; }
.stmt {
    background: white;
    border: 1px solid #E2E8F0;
    border-left: 3px solid #F59E0B;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.stmt summary {
    cursor: pointer;
    list-style: none;
    padding: 1.35rem 3.25rem 1.35rem 1.5rem;
    position: relative;
}
.stmt summary::-webkit-details-marker { display: none; }
.stmt summary:hover { background: #FFFCF5; }
.stmt summary::after {
    content: "＋";
    position: absolute;
    right: 1.5rem;
    top: 1.35rem;
    color: #B7791F;
    font-weight: 700;
}
.stmt[open] summary::after { content: "－"; }
.stmt-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #B7791F;
    margin-bottom: 0.45rem;
}
.stmt-q { display: block; font-size: 1.125rem; font-weight: 700; color: #1A202C; line-height: 1.75; }
.stmt-cue { display: block; margin-top: 0.55rem; font-size: 0.875rem; font-weight: 600; color: #2B6CB0; }
.stmt[open] .stmt-cue { display: none; }

.stmt-a { padding: 0 1.5rem 1.6rem; }
.stmt-verdict { font-size: 1.0625rem; font-weight: 700; color: #1A202C; margin-bottom: 1rem; }
.stmt-a p { font-size: 1rem; color: #4A5568; margin-bottom: 0.9rem; line-height: 1.9; }
.stmt-a ol { margin: 1.1rem 0 0 1.35rem; }
.stmt-a li { font-size: 1rem; color: #4A5568; line-height: 1.9; margin-bottom: 1rem; }
.stmt-a li:last-child { margin-bottom: 0; }
.stmt-a li strong { color: #1A202C; }
.stmt-cmd {
    display: block;
    background: #1A202C;
    color: #E2E8F0;
    border-radius: 6px;
    padding: 0.9rem 1.15rem;
    margin-top: 0.7rem;
    font-size: 0.9375rem;
    line-height: 1.85;
}

@media (max-width: 768px) {
    .stmt summary { padding: 1.15rem 2.75rem 1.15rem 1.15rem; }
    .stmt-q { font-size: 1.0625rem; }
    .stmt-a { padding: 0 1.15rem 1.25rem; }
}

/* ================= front-page teaser ================= */
.katsuyo-teaser {
    background: #F7FAFC;
    border-top: 1px solid #E2E8F0;
    padding: 0 0 5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #1A202C;
}
.katsuyo-teaser .container { padding: 4rem 2rem 0; }
.katsuyo-teaser .chapter:first-of-type { margin-top: 0; }
.katsuyo-teaser .section:last-of-type { margin-bottom: 0; }
.katsuyo-more { text-align: center; margin-top: 3.5rem; }
.katsuyo-more a {
    display: inline-block;
    padding: 0.95rem 2.75rem;
    background: #2B6CB0;
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.katsuyo-more a:hover {
    background: #215387;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(43,108,176,0.28);
}
.katsuyo-more .katsuyo-more-note {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.9375rem;
    color: #718096;
}
@media (max-width: 768px) {
    .katsuyo-teaser { padding: 0 0 3.5rem; }
    .katsuyo-teaser .container { padding: 2.5rem 1.25rem 0; }
    .katsuyo-more a { width: 100%; }
}
