/* SpeakJapaneseNative 2.0 product story */
.story-page {
    --story-ink: #101b2d;
    --story-navy: #0d2d5b;
    --story-blue: #1e4f91;
    --story-green: #2d8b72;
    --story-yellow: #ffd35f;
    --story-cream: #f6f3eb;
    --story-paper: #fcfbf8;
    --story-line: #dfe4eb;
    color: var(--story-ink);
    background: var(--story-paper);
}

.story-page .site-header {
    background: rgba(252, 251, 248, 0.94);
}

.story-page .header-download {
    background: var(--story-navy);
}

.story-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(45, 139, 114, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(45, 139, 114, 0.07) 1px, transparent 1px),
        var(--story-cream);
    background-size: 64px 64px;
}

.story-hero::before {
    position: absolute;
    top: -260px;
    right: -180px;
    width: 760px;
    height: 760px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 139, 114, 0.2), rgba(45, 139, 114, 0) 68%);
    content: "";
}

.story-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 760px;
    align-items: center;
    grid-template-columns: minmax(0, 1.02fr) minmax(460px, 0.98fr);
    gap: 60px;
    padding-block: 82px 70px;
}

.story-hero-copy {
    max-width: 670px;
}

.story-category {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--story-green);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.story-category::before {
    width: 38px;
    height: 5px;
    border-radius: 99px;
    background: var(--story-yellow);
    content: "";
}

.story-hero h1 {
    max-width: 660px;
    margin: 0;
    color: var(--story-ink);
    font-size: clamp(50px, 5.7vw, 76px);
    font-weight: 850;
    letter-spacing: -0.055em;
    line-height: 1.08;
    text-wrap: balance;
}

.story-hero h1.story-hero-title-ja {
    font-size: clamp(44px, 4.7vw, 66px);
}

.story-hero h1 em {
    position: relative;
    color: inherit;
    font-style: normal;
    white-space: nowrap;
}

.story-hero h1 em::after {
    position: absolute;
    z-index: -1;
    right: -4px;
    bottom: 3px;
    left: -4px;
    height: 15px;
    border-radius: 3px;
    background: var(--story-yellow);
    content: "";
    transform: rotate(-1deg);
}

.story-hero-lead {
    max-width: 650px;
    margin: 28px 0 0;
    color: #334157;
    font-size: 20px;
    font-weight: 620;
    line-height: 1.65;
}

.story-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.story-page .button-primary {
    color: #0d2343;
    background: var(--story-yellow);
}

.story-page .button-secondary {
    border-color: #b9c2ce;
    color: var(--story-navy);
    background: rgba(255, 255, 255, 0.62);
}

.story-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 30px;
    color: #5a6675;
    font-size: 14px;
}

.story-hero-facts span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.story-hero-facts span::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--story-green);
    content: "";
}

.story-hero-visual {
    position: relative;
    min-height: 620px;
}

.story-device {
    position: absolute;
    overflow: hidden;
    border: 8px solid #fff;
    border-radius: 42px;
    background: #f4f5f9;
    box-shadow: 0 32px 80px rgba(13, 45, 91, 0.24);
}

.story-device img {
    width: 100%;
    height: auto;
}

.story-hero-device-main {
    z-index: 3;
    top: 4px;
    right: 10px;
    width: 326px;
    transform: rotate(2deg);
}

.story-hero-device-back {
    z-index: 2;
    bottom: 8px;
    left: 2px;
    width: 236px;
    transform: rotate(-5deg);
}

.story-route {
    position: absolute;
    z-index: 5;
    top: 84px;
    left: 16px;
    width: 220px;
    padding: 17px 18px;
    border-radius: 18px;
    color: #233753;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 36px rgba(17, 38, 71, 0.13);
}

.story-route small {
    display: block;
    color: var(--story-green);
    font-size: 12px;
    font-weight: 800;
}

.story-route strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.4;
}

.story-route::after {
    position: absolute;
    right: -72px;
    bottom: -24px;
    width: 94px;
    height: 58px;
    border-right: 3px solid var(--story-yellow);
    border-bottom: 3px solid var(--story-yellow);
    border-radius: 0 0 28px;
    content: "";
    transform: rotate(-8deg);
}

.story-proof-line {
    border-top: 1px solid rgba(13, 45, 91, 0.1);
    border-bottom: 1px solid rgba(13, 45, 91, 0.1);
    background: rgba(255, 255, 255, 0.82);
}

.story-proof-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.story-proof-item {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    padding: 24px 20px;
}

.story-proof-item + .story-proof-item {
    border-left: 1px solid var(--story-line);
}

.story-proof-item strong {
    color: var(--story-navy);
    font-size: 30px;
    line-height: 1;
}

.story-proof-item span {
    color: #617084;
    font-size: 14px;
}

.story-problem {
    color: #fff;
    background: var(--story-navy);
}

.story-problem-grid {
    display: grid;
    min-height: 620px;
    align-items: center;
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
    gap: 76px;
    padding-block: 108px;
}

.story-problem h2 {
    margin: 0;
    font-size: clamp(42px, 5vw, 62px);
    letter-spacing: -0.045em;
    line-height: 1.14;
}

.story-problem-copy p {
    max-width: 580px;
    margin: 24px 0 0;
    color: #cfdaea;
    font-size: 18px;
}

.story-conversation {
    position: relative;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.07);
}

.story-conversation-label {
    color: #95d2c1;
    font-size: 13px;
    font-weight: 800;
}

.story-first-line {
    margin: 16px 0 0;
    padding: 18px 20px;
    border-radius: 16px;
    color: var(--story-ink);
    background: #fff;
    font-size: 20px;
    font-weight: 760;
}

.story-followups {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.story-followups span {
    display: block;
    padding: 13px 16px;
    border-left: 3px solid var(--story-yellow);
    color: #e8eef8;
    background: rgba(255, 255, 255, 0.06);
}

.story-difference {
    margin: 18px 0 0;
    color: var(--story-yellow);
    font-size: 15px;
    font-weight: 760;
}

.story-section {
    padding-block: 118px;
}

.story-section-white {
    background: #fff;
}

.story-section-cream {
    background: var(--story-cream);
}

.story-section-head {
    max-width: 760px;
    margin-bottom: 58px;
}

.story-section-head.center {
    margin-inline: auto;
    text-align: center;
}

.story-step {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--story-green);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.story-step::before {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--story-green);
    content: attr(data-number);
    font-size: 12px;
}

.story-section h2 {
    margin: 0;
    color: var(--story-ink);
    font-size: clamp(38px, 4.8vw, 58px);
    font-weight: 840;
    letter-spacing: -0.045em;
    line-height: 1.15;
    text-wrap: balance;
}

.story-section-head p,
.story-copy > p {
    max-width: 660px;
    margin: 20px 0 0;
    color: #5c6879;
    font-size: 18px;
}

.story-scenes-layout,
.story-dialogue-layout,
.story-sentence-layout,
.story-free-layout {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(440px, 1.08fr) minmax(0, 0.92fr);
    gap: 80px;
}

.story-scenes-stage,
.story-sentence-stage,
.story-free-stage {
    position: relative;
    min-height: 650px;
}

.story-scenes-stage::before,
.story-sentence-stage::before,
.story-free-stage::before {
    position: absolute;
    inset: 56px 40px 14px 0;
    border-radius: 34px;
    background: #eaf0f7;
    content: "";
}

.story-scenes-device {
    z-index: 2;
    top: 0;
    right: 68px;
    width: 320px;
    transform: rotate(1deg);
}

.story-scene-note {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 54px;
    width: 260px;
    padding: 20px;
    border-radius: 18px;
    color: #fff;
    background: var(--story-navy);
    box-shadow: 0 18px 42px rgba(13, 45, 91, 0.22);
}

.story-scene-note strong {
    display: block;
    font-size: 17px;
}

.story-scene-note span {
    display: block;
    margin-top: 5px;
    color: #cfdaea;
    font-size: 13px;
}

.story-domain-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 22px;
    margin-top: 32px;
    padding: 0;
    list-style: none;
}

.story-domain-list li {
    position: relative;
    padding-left: 18px;
    color: #31405a;
    font-weight: 650;
}

.story-domain-list li::before {
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--story-yellow);
    content: "";
}

.story-dialogue-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
}

.story-dialogue-stage {
    position: relative;
    min-height: 690px;
}

.story-dialogue-stage::before {
    position: absolute;
    inset: 70px 8px 18px 44px;
    border-radius: 38px;
    background: linear-gradient(145deg, #e4ecf5, #f6f8fb);
    content: "";
}

.story-overview-device {
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 245px;
    transform: rotate(-4deg);
}

.story-dialogue-device {
    z-index: 3;
    top: 0;
    right: 10px;
    width: 320px;
    transform: rotate(2deg);
}

.story-flow {
    display: grid;
    gap: 18px;
    margin-top: 34px;
    padding: 0;
    list-style: none;
}

.story-flow li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    color: #344157;
}

.story-flow li span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--story-green);
    font-size: 12px;
    font-weight: 800;
}

.story-sentence-layout {
    grid-template-columns: minmax(460px, 1fr) minmax(0, 1fr);
}

.story-sentence-device {
    z-index: 2;
    top: 0;
    left: 80px;
    width: 320px;
    transform: rotate(-1deg);
}

.story-detail-list {
    display: grid;
    gap: 0;
    margin-top: 34px;
    padding: 0;
    list-style: none;
    border-top: 1px solid #d8dee7;
}

.story-detail-list li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #d8dee7;
}

.story-detail-list b {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--story-navy);
    background: #fff;
}

.story-detail-list strong {
    display: block;
    color: #25364f;
    font-size: 17px;
}

.story-detail-list p {
    margin: 3px 0 0;
    color: #667286;
}

.story-ai {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--story-navy);
}

.story-ai::after {
    position: absolute;
    top: -180px;
    right: -160px;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.story-ai .story-section-head {
    position: relative;
    z-index: 1;
}

.story-ai .story-step {
    color: #a9ddcf;
}

.story-ai .story-section h2,
.story-ai h2 {
    color: #fff;
}

.story-ai .story-section-head p {
    color: #cbd8e9;
}

.story-ai-evidence {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.story-ai-panel {
    display: grid;
    grid-template-rows: minmax(210px, auto) auto;
    gap: 28px;
    padding: 10px 58px 0 0;
}

.story-ai-panel + .story-ai-panel {
    padding-right: 0;
    padding-left: 58px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.story-ai-panel h3 {
    margin: 0;
    max-width: 430px;
    font-size: 30px;
    line-height: 1.25;
}

.story-ai-panel p {
    max-width: 430px;
    margin: 12px 0 0;
    color: #cbd8e9;
}

.story-ai-preview {
    position: relative;
    width: min(100%, 430px);
    margin-inline: auto;
    border: 6px solid rgba(255, 255, 255, 0.96);
    border-radius: 26px;
    background: #f4f5f9;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.22);
}

.story-ai-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.story-ai-result {
    display: inline-flex;
    margin-top: 18px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #0d2d5b;
    background: var(--story-yellow);
    font-size: 12px;
    font-weight: 800;
}

.story-free-layout {
    grid-template-columns: minmax(420px, 0.92fr) minmax(0, 1.08fr);
}

.story-free-device {
    z-index: 2;
    top: 0;
    left: 70px;
    width: 320px;
    transform: rotate(-1deg);
}

.story-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.story-inputs span {
    padding: 9px 14px;
    border: 1px solid #d9e0e9;
    border-radius: 999px;
    color: #34445d;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
}

.story-buy {
    background: #fff;
}

.story-free-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
    padding: 24px 28px;
    border: 1px solid #dbe2eb;
    border-radius: 20px;
    background: var(--story-cream);
}

.story-free-strip strong {
    display: block;
    font-size: 20px;
}

.story-free-strip p {
    margin: 4px 0 0;
    color: #647084;
}

.story-free-strip span {
    flex: 0 0 auto;
    color: var(--story-green);
    font-weight: 800;
}

.story-purchase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.story-purchase {
    padding: 34px;
    border: 1px solid #dbe2eb;
    border-radius: 24px;
    background: #fff;
}

.story-purchase.primary {
    color: #fff;
    border-color: transparent;
    background: var(--story-navy);
}

.story-purchase-label {
    color: var(--story-green);
    font-size: 13px;
    font-weight: 850;
}

.story-purchase.primary .story-purchase-label {
    color: #9cd5c6;
}

.story-purchase h3 {
    margin: 12px 0 0;
    font-size: 28px;
}

.story-price {
    margin-top: 22px;
    color: var(--story-navy);
    font-size: 42px;
    font-weight: 860;
    line-height: 1;
}

.story-purchase.primary .story-price {
    color: var(--story-yellow);
}

.story-purchase p {
    margin: 12px 0 0;
    color: #667286;
}

.story-purchase.primary p {
    color: #cbd8e9;
}

.story-purchase ul {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.story-purchase li {
    position: relative;
    padding-left: 22px;
    color: #47566b;
}

.story-purchase.primary li {
    color: #edf3fb;
}

.story-purchase li::before {
    position: absolute;
    left: 0;
    color: var(--story-green);
    font-weight: 900;
    content: "✓";
}

.story-purchase.primary li::before {
    color: var(--story-yellow);
}

.story-faq {
    margin-top: 70px;
}

.story-faq h3 {
    margin: 0 0 18px;
    font-size: 27px;
}

.story-faq .faq-list {
    max-width: none;
}

.story-final {
    padding-block: 100px;
    color: #fff;
    background: var(--story-green);
}

.story-final-inner {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 42px;
}

.story-final h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(40px, 5vw, 62px);
    letter-spacing: -0.045em;
    line-height: 1.14;
}

.story-final p {
    margin: 16px 0 0;
    color: #e3f1ed;
    font-size: 18px;
}

@media (max-width: 1080px) {
    .story-hero-grid {
        grid-template-columns: minmax(0, 1fr) 420px;
        gap: 30px;
    }

    .story-hero-device-main {
        width: 292px;
    }

    .story-hero-device-back {
        width: 210px;
    }

    .story-route {
        width: 196px;
    }

    .story-problem-grid,
    .story-scenes-layout,
    .story-dialogue-layout,
    .story-sentence-layout,
    .story-free-layout {
        gap: 48px;
    }

    .story-ai-evidence {
        grid-template-columns: 1fr;
    }

    .story-ai-panel {
        grid-template-rows: auto auto;
        padding: 0;
    }

    .story-ai-panel + .story-ai-panel {
        margin-top: 70px;
        padding: 70px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        border-left: 0;
    }
}

@media (max-width: 820px) {
    .story-hero-grid,
    .story-problem-grid,
    .story-scenes-layout,
    .story-dialogue-layout,
    .story-sentence-layout,
    .story-free-layout {
        grid-template-columns: 1fr;
    }

    .story-hero-grid {
        min-height: 0;
        padding-block: 72px 58px;
    }

    .story-hero-visual,
    .story-scenes-stage,
    .story-dialogue-stage,
    .story-sentence-stage,
    .story-free-stage {
        width: min(100%, 560px);
        margin-inline: auto;
    }

    .story-problem-grid {
        min-height: 0;
        padding-block: 84px;
    }

    .story-scenes-layout .story-copy,
    .story-sentence-layout .story-copy,
    .story-free-layout .story-copy {
        order: -1;
    }

    .story-section {
        padding-block: 88px;
    }

    .story-purchase-grid {
        grid-template-columns: 1fr;
    }

    .story-final-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .story-hero h1 {
        font-size: clamp(43px, 12vw, 54px);
    }

    .story-hero h1 em {
        white-space: normal;
    }

    .story-hero h1,
    .story-problem h2,
    .story-section h2,
    .story-ai-panel h3 {
        max-width: 100%;
        overflow-wrap: anywhere;
        text-wrap: wrap;
    }

    .story-hero-lead {
        font-size: 18px;
    }

    .story-hero-actions {
        display: grid;
    }

    .story-hero-facts {
        display: grid;
        gap: 9px;
    }

    .story-hero-visual {
        min-height: 500px;
    }

    .story-hero-device-main {
        right: -4px;
        width: 238px;
        border-width: 7px;
        border-radius: 32px;
    }

    .story-hero-device-back {
        bottom: 0;
        left: -2px;
        width: 172px;
        border-width: 7px;
        border-radius: 29px;
    }

    .story-route {
        top: 52px;
        left: 0;
        width: 184px;
        padding: 13px 14px;
    }

    .story-route::after {
        display: none;
    }

    .story-proof-inner {
        grid-template-columns: 1fr;
    }

    .story-proof-item {
        padding: 18px;
    }

    .story-proof-item + .story-proof-item {
        border-top: 1px solid var(--story-line);
        border-left: 0;
    }

    .story-problem h2,
    .story-section h2,
    .story-final h2 {
        font-size: clamp(36px, 10.5vw, 44px);
    }

    .story-conversation {
        padding: 22px;
    }

    .story-section-head {
        margin-bottom: 38px;
    }

    .story-scenes-stage,
    .story-sentence-stage,
    .story-free-stage {
        min-height: 510px;
    }

    .story-scenes-device {
        right: 16px;
        width: 238px;
        border-width: 7px;
        border-radius: 32px;
    }

    .story-scene-note {
        right: 0;
        bottom: 36px;
        width: 226px;
    }

    .story-domain-list {
        grid-template-columns: 1fr;
    }

    .story-dialogue-stage {
        min-height: 560px;
    }

    .story-overview-device {
        width: 182px;
        border-width: 7px;
        border-radius: 30px;
    }

    .story-dialogue-device {
        right: 0;
        width: 236px;
        border-width: 7px;
        border-radius: 32px;
    }

    .story-sentence-device,
    .story-free-device {
        left: 50%;
        width: 245px;
        border-width: 7px;
        border-radius: 32px;
        transform: translateX(-50%);
    }

    .story-ai-panel {
        grid-template-rows: auto auto;
        gap: 24px;
    }

    .story-ai-preview {
        width: min(100%, 340px);
    }

    .story-free-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .story-purchase {
        padding: 26px;
    }

    .story-final {
        padding-block: 76px;
    }
}
