:root {
    --orange: #ff8c00;
    --red: #d83a2e;
    --blue: #1778b8;
    --green: #2f9e64;
    --yellow: #ffd44d;
    --ink: #263238;
    --muted: #667085;
    --line: #e5e8ef;
    --soft: #f6f9fc;
    --paper: #ffffff;
    --progress: 0%;
    --hero-drift: 0px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
    line-height: 1.7;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: var(--progress);
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--red));
    transform-origin: left center;
}

a { color: var(--blue); }

img { max-width: 100%; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.header-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo { width: 152px; display: block; }

.header-note {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    text-align: right;
}

.hero {
    min-height: 650px;
    color: #fff;
    background: #0f2838;
    position: relative;
    overflow: hidden;
    display: grid;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 40, 56, 0.92), rgba(15, 40, 56, 0.54)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 18px),
        #6faac8;
    transform: translateY(var(--hero-drift));
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 76px;
    background: linear-gradient(180deg, transparent, rgba(246,249,252,0.96));
}

.hero-inner {
    position: relative;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 86px;
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.84fr);
    gap: 40px;
    align-items: center;
}

.hero-copy-block {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: #ffe1b8;
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 224, 180, 0.45);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.84rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2.6rem, 8vw, 6rem);
    line-height: 1.02;
    letter-spacing: 0;
    margin: 0 0 16px;
    max-width: 780px;
}

.hero h1::after {
    content: "";
    display: block;
    width: min(280px, 54vw);
    height: 8px;
    margin-top: 18px;
    background: repeating-linear-gradient(90deg, var(--yellow) 0 28px, var(--red) 28px 56px);
}

.hero-copy {
    font-size: clamp(1.04rem, 2.4vw, 1.32rem);
    margin: 0 0 24px;
    max-width: 740px;
    color: rgba(255,255,255,0.92);
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--orange);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    border: 1px solid var(--orange);
    cursor: pointer;
}

.button.secondary {
    background: #fff;
    color: var(--ink);
    border-color: #cfd6e2;
}

.button.ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.36);
}

.hero-visual {
    position: relative;
    z-index: 2;
    min-height: 430px;
}

.hero-photo-slot {
    min-height: 380px;
    border: 2px dashed rgba(255,255,255,0.58);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 22px);
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 26px 50px rgba(0,0,0,0.18);
}

.hero-photo-slot span {
    display: block;
    font-size: 1.25rem;
}

.hero-photo-slot small {
    display: block;
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
    margin-top: 6px;
}

.signal-card {
    position: absolute;
    left: -34px;
    bottom: 30px;
    width: min(360px, calc(100% + 12px));
    background: rgba(255,255,255,0.94);
    color: var(--ink);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

.signal-step {
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.signal-line {
    flex: 1;
    height: 2px;
    min-width: 20px;
    background: linear-gradient(90deg, var(--orange), var(--blue));
}

main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 58px;
}

.section { margin-top: 42px; }
.section:first-child { margin-top: 0; }

.lp-page main {
    position: relative;
}

.lp-page main::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 40px;
    left: max(-34px, calc((100vw - 1120px) / -2 + 20px));
    width: 8px;
    background: repeating-linear-gradient(180deg, var(--yellow) 0 34px, var(--red) 34px 68px);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.28;
    letter-spacing: 0;
    margin: 0;
}

.section-lead {
    color: var(--muted);
    margin: 8px 0 0;
    max-width: 780px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card,
.screen-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.lp-page .screen-card,
.lp-page .value-card,
.lp-page .cta-panel,
.lp-page .notice,
.lp-page .flow-result {
    box-shadow: 0 16px 34px rgba(38, 50, 56, 0.07);
}

.lp-page .screen-card {
    position: relative;
    overflow: hidden;
}

.lp-page .screen-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--yellow), var(--orange), var(--red));
}

.lp-page .value-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.lp-page .value-card h3,
.lp-page .value-card p {
    grid-column: 2;
}

.lp-page .value-card .number {
    grid-row: 1 / span 2;
    margin: 0;
}

.card h3,
.screen-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.45;
}

.card p,
.screen-card p {
    margin: 0;
    color: #4b5563;
}

.number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-weight: 900;
    margin-bottom: 12px;
}

.media-slot {
    min-height: 220px;
    border: 2px dashed #b8c7d8;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(23,120,184,0.08), rgba(255,140,0,0.08)),
        #fff;
    display: grid;
    place-items: center;
    text-align: center;
    color: #53657a;
    font-weight: 900;
    padding: 18px;
    margin-bottom: 14px;
}

.lp-page .media-slot {
    background:
        linear-gradient(135deg, rgba(255, 212, 77, 0.22), rgba(216, 58, 46, 0.08)),
        repeating-linear-gradient(135deg, rgba(23,120,184,0.11) 0 1px, transparent 1px 18px),
        #fff;
}

.media-slot small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
}

.phone-frame {
    width: min(320px, 100%);
    min-height: 520px;
    margin: 0 auto;
    background: #17212b;
    border-radius: 30px;
    padding: 14px;
    box-shadow: 0 18px 40px rgba(38, 50, 56, 0.16);
}

.phone-screen {
    min-height: 492px;
    border-radius: 22px;
    background: #f8fafc;
    padding: 16px;
    overflow: hidden;
}

.mock-logo {
    height: 34px;
    width: 132px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 auto 14px;
}

.mock-title {
    color: var(--orange);
    font-weight: 900;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 12px;
}

.mock-field,
.mock-row,
.mock-button {
    border-radius: 8px;
    margin-top: 10px;
}

.mock-field {
    height: 42px;
    background: #fff;
    border: 1px solid #d8e0ea;
}

.mock-map {
    height: 210px;
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent 48%, rgba(23, 120, 184, 0.16) 48% 51%, transparent 51%),
        linear-gradient(0deg, transparent 46%, rgba(255, 140, 0, 0.18) 46% 49%, transparent 49%),
        #e9f6fb;
    position: relative;
    border: 1px solid #d3e4ef;
}

.mock-pin {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.mock-pin.child { left: 58%; top: 37%; background: var(--orange); }
.mock-pin.parent { left: 28%; top: 62%; background: var(--blue); }

.mock-button {
    min-height: 48px;
    background: var(--orange);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.mock-row {
    min-height: 44px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 10px;
    font-weight: 800;
}

.flow-app {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
    gap: 18px;
    align-items: start;
}

.lp-page .flow-app {
    align-items: stretch;
}

.lp-page .flow-tabs {
    position: sticky;
    top: 92px;
}

.flow-tabs {
    display: grid;
    gap: 10px;
}

.flow-tab {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 6px solid transparent;
    border-radius: 8px;
    padding: 16px;
    color: var(--ink);
    cursor: pointer;
}

.lp-page .flow-tab {
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.lp-page .flow-tab:hover {
    transform: translateX(4px);
}

.flow-tab strong {
    display: block;
    font-size: 1.04rem;
    margin-bottom: 4px;
}

.flow-tab span {
    color: var(--muted);
    font-size: 0.9rem;
}

.flow-tab.active {
    border-left-color: var(--orange);
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.14);
}

.flow-result {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.lp-page .flow-result {
    position: relative;
    overflow: hidden;
}

.lp-page .flow-result::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 96px;
    height: 96px;
    background: repeating-linear-gradient(135deg, rgba(255,140,0,0.18) 0 8px, transparent 8px 16px);
}

.flow-result h3 { margin: 0 0 8px; }
.flow-result p { color: #4b5563; margin: 0 0 16px; }

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: #374151;
    font-weight: 900;
    font-size: 0.84rem;
}

.notice {
    background: #fffaf0;
    border: 1px solid #ffe4b5;
    border-radius: 8px;
    padding: 18px;
}

.lp-page .notice {
    border-left: 8px solid var(--orange);
}

.cta-panel {
    background:
        linear-gradient(135deg, rgba(255, 140, 0, 0.12), rgba(23, 120, 184, 0.08)),
        #fff;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.lp-page .screen-card.reveal:nth-child(2),
.lp-page .value-card.reveal:nth-child(2) {
    transition-delay: 90ms;
}

.lp-page .screen-card.reveal:nth-child(3),
.lp-page .value-card.reveal:nth-child(3) {
    transition-delay: 160ms;
}

.lp-page .value-card.reveal:nth-child(4) {
    transition-delay: 230ms;
}

.notice strong { color: #9a5b00; }

.manual-hero {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.manual-hero-inner {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 34px;
}

.manual-hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.14;
    margin: 0 0 14px;
}

.manual-hero .hero-copy {
    color: #4b5563;
    max-width: 780px;
}

.manual-actions {
    margin-top: 22px;
}

.manual-main { width: min(980px, calc(100% - 32px)); }

.quick-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.quick-strip.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-item {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    font-weight: 900;
}

.quick-item.ok { border-color: rgba(47, 158, 100, 0.45); }
.quick-item.warn { border-color: rgba(216, 58, 46, 0.35); }

.manual-note {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid #bee3f8;
    border-left: 6px solid var(--blue);
    border-radius: 8px;
    background: #ebf8ff;
    color: #2c5282;
    font-size: 0.94rem;
    font-weight: 700;
}

.manual-note strong {
    color: #174f7a;
}

.step-list { display: grid; gap: 14px; }

.step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.step strong {
    display: block;
    font-size: 1.16rem;
    margin-bottom: 4px;
}

.step p {
    margin: 0;
    color: #4b5563;
}

.screen-shot {
    border: 2px dashed #b8c7d8;
    border-radius: 8px;
    min-height: 180px;
    background: #f8fbff;
    padding: 14px;
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 900;
    color: #53657a;
}



.screen-shot.has-image {
    min-height: 0;
    padding: 0;
    border: 1px solid var(--line);
    background: #fff;
    display: block;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 28px rgba(38, 50, 56, 0.08);
}

.screen-shot.has-image img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: top center;
}

.screen-shot.has-image.large img {
    height: 420px;
}

.screen-shot.has-image.short img {
    height: 260px;
}

.screen-shot.has-image.wide {
    background: #f8fafc;
}

.screen-shot.has-image.wide img {
    height: 300px;
    object-fit: contain;
    background: #f8fafc;
}

.screen-shot.has-image span {
    position: static;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: none;
}

.screen-shot small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
}

.screen-shot.text-shot {
    min-height: 180px;
    padding: 18px;
    border: 1px solid #d9e2ec;
    background:
        linear-gradient(135deg, rgba(23, 120, 184, 0.08), rgba(255, 140, 0, 0.1)),
        #fff;
    color: var(--ink);
    align-content: center;
    gap: 8px;
}

.screen-shot.text-shot strong {
    color: var(--orange);
    font-size: 1.08rem;
}

.screen-shot.text-shot span {
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.55;
}

.priority-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.priority-list li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    color: #4b5563;
}

.priority-list strong {
    color: var(--ink);
}

.do-dont {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.do-dont .card:first-child { border-color: rgba(47, 158, 100, 0.45); }
.do-dont .card:last-child,
.do-dont .card.security { border-color: rgba(216, 58, 46, 0.35); background: #fffafa; }

.status-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.status-table th,
.status-table td {
    border-bottom: 1px solid var(--line);
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
}

.status-table th {
    background: #f8fafc;
    font-size: 0.9rem;
    width: 32%;
}

.status-table tr:last-child th,
.status-table tr:last-child td { border-bottom: 0; }

.footer {
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 0.86rem;
}

.footer-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 48px;
    }

    .hero-visual {
        min-height: 340px;
    }

    .hero-photo-slot {
        min-height: 310px;
    }

    .signal-card {
        left: 16px;
        right: 16px;
        bottom: 18px;
        width: auto;
    }

    .lp-page main::before {
        display: none;
    }

    .lp-page .flow-tabs {
        position: static;
    }

    .flow-app,
    .step {
        grid-template-columns: 1fr;
    }

    .grid,
    .grid.two,
    .grid.three,
    .quick-strip,
    .quick-strip.four,
    .do-dont {
        grid-template-columns: 1fr;
    }

    .section-head { display: block; }
}

@media (max-width: 560px) {

    .screen-shot.has-image img,
    .screen-shot.has-image.large img,
    .screen-shot.has-image.short img,
    .screen-shot.has-image.wide img {
        height: min(72vw, 420px);
        max-height: 420px;
    }

    .header-note { display: none; }
    .logo { width: 136px; }
    .hero { min-height: 600px; }
    .hero h1 {
        font-size: clamp(2.05rem, 10.5vw, 3.2rem);
    }
    .hero-visual {
        min-height: 280px;
    }
    .hero-photo-slot {
        min-height: 250px;
    }
    .signal-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
    .signal-line {
        width: 100%;
        flex: none;
    }
    .lp-page .value-card {
        display: block;
    }
    .lp-page .value-card .number {
        margin-bottom: 12px;
    }
    .hero-actions .button,
    .action-row .button { width: 100%; }
    .phone-frame { min-height: 470px; }
    .phone-screen { min-height: 442px; }
    .status-table,
    .status-table tbody,
    .status-table tr,
    .status-table th,
    .status-table td {
        display: block;
        width: 100%;
    }
    .status-table th {
        border-bottom: 0;
        padding-bottom: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .lp-page .flow-tab,
    .hero::before {
        transition: none;
        transform: none;
    }
}
