:root {
    --primary: #087f73;
    --primary-deep: #075c55;
    --primary-soft: #e1f4f0;
    --accent: #f3b64d;
    --ink: #153a36;
    --muted: #667c78;
    --surface: #ffffff;
    --background: #f5f8f6;
    --line: #d7e4e0;
    --max-width: 1080px;
    --reading-width: 760px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--background);
    color: var(--ink);
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Segoe UI", sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
img { display: block; max-width: 100%; }

.header {
    align-items: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(247, 250, 248, .92);
    border-bottom: 1px solid rgba(21, 58, 54, .08);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    left: 0;
    padding: 12px 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10;
}

.back-link,
.header-nav a {
    color: var(--muted);
    font-size: .86rem;
    text-decoration: none;
}

.header-logo {
    color: var(--primary-deep);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-decoration: none;
}

.header-nav {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
}

.back-link:hover,
.header-nav a:hover { color: var(--primary); }

.hero {
    background:
        radial-gradient(circle at 82% 28%, rgba(243, 182, 77, .18), transparent 22%),
        radial-gradient(circle at 18% 75%, rgba(255, 255, 255, .16), transparent 24%),
        linear-gradient(145deg, #0c8b7d 0%, var(--primary-deep) 100%);
    color: #fff;
    overflow: hidden;
    padding: 136px 24px 86px;
}

.hero-inner {
    align-items: center;
    display: grid;
    gap: 64px;
    grid-template-columns: 1.2fr .8fr;
    margin: 0 auto;
    max-width: var(--max-width);
}

.eyebrow {
    align-items: center;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 20px;
    padding: 6px 14px;
}

.hero h1 {
    font-size: clamp(2.35rem, 6vw, 4.25rem);
    letter-spacing: .08em;
    line-height: 1.14;
    margin-bottom: 18px;
}

.hero-lead {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 12px;
}

.hero-description {
    color: rgba(255, 255, 255, .78);
    font-size: .98rem;
    max-width: 560px;
}

.hero-actions { display: flex; gap: 12px; margin-top: 28px; }

.button {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 14px;
    color: var(--primary-deep);
    display: inline-flex;
    font-size: .92rem;
    font-weight: 700;
    padding: 12px 22px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
    box-shadow: 0 10px 28px rgba(3, 56, 50, .22);
    transform: translateY(-2px);
}

.button--ghost { background: transparent; color: #fff; }

.hero-visual {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 330px;
    position: relative;
}

.hero-orbit {
    border: 12px solid rgba(255, 255, 255, .9);
    border-radius: 48% 52% 45% 55%;
    height: 250px;
    position: absolute;
    transform: rotate(-9deg);
    width: 280px;
}

.hero-orbit::before,
.hero-orbit::after {
    background: #fff;
    border: 5px solid var(--primary);
    border-radius: 50%;
    content: "";
    height: 22px;
    position: absolute;
    width: 22px;
}

.hero-orbit::before { bottom: 8px; left: 18px; }
.hero-orbit::after { background: var(--accent); bottom: -3px; left: 52px; }

.app-icon {
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(3, 56, 50, .34);
    bottom: 26px;
    height: 92px;
    left: 20px;
    position: absolute;
    width: 92px;
    z-index: 3;
}

.hero-phone {
    transform: rotate(5deg);
    width: 218px;
    z-index: 2;
}

.screenshots { padding: 76px 24px 90px; }
.screenshots-inner { margin: 0 auto; max-width: var(--max-width); }

.section-title {
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    letter-spacing: .02em;
    line-height: 1.45;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    color: var(--muted);
    font-size: .96rem;
    margin-bottom: 40px;
    text-align: center;
}

.screenshot-grid {
    align-items: flex-start;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.phone-shell {
    background: #111317;
    border: 2px solid #555b62;
    border-radius: 32px;
    box-shadow: 0 18px 44px rgba(21, 58, 54, .18);
    padding: 7px;
    position: relative;
}

.phone-shell::before {
    background: #08090b;
    border-radius: 0 0 12px 12px;
    content: "";
    height: 16px;
    left: 50%;
    position: absolute;
    top: 6px;
    transform: translateX(-50%);
    width: 38%;
    z-index: 2;
}

.phone-shell::after {
    background: #343940;
    border-radius: 0 4px 4px 0;
    content: "";
    height: 11%;
    position: absolute;
    right: -6px;
    top: 27%;
    width: 5px;
}

.phone-shell img {
    border-radius: 24px;
    width: 100%;
}

.screenshot-card:nth-child(even) { margin-top: 24px; }
.screenshot-card figcaption { color: var(--muted); font-size: .82rem; margin-top: 12px; text-align: center; }

.features { background: var(--surface); padding: 86px 24px; }
.features-inner { margin: 0 auto; max-width: var(--max-width); }
.features-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }

.feature-card {
    background: var(--background);
    border: 1px solid var(--line);
    border-radius: 20px;
    min-height: 210px;
    padding: 26px;
}

.feature-icon {
    align-items: center;
    background: var(--primary-soft);
    border-radius: 14px;
    color: var(--primary);
    display: flex;
    font-size: 1.2rem;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    margin-bottom: 18px;
    width: 48px;
}

.feature-card h3 { font-size: 1.04rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .88rem; }

.data-section { padding: 86px 24px; }
.data-card {
    background: linear-gradient(145deg, var(--primary-deep), #0a756b);
    border-radius: 28px;
    color: #fff;
    display: grid;
    gap: 44px;
    grid-template-columns: .8fr 1.2fr;
    margin: 0 auto;
    max-width: 940px;
    overflow: hidden;
    padding: 44px;
}

.data-card h2 { font-size: 1.65rem; line-height: 1.5; }
.data-card p { color: rgba(255, 255, 255, .8); font-size: .9rem; margin-top: 12px; }
.data-list { display: grid; gap: 12px; }
.data-list li {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    font-size: .88rem;
    list-style: none;
    padding: 13px 16px;
}

.contact { background: var(--surface); padding: 64px 24px; text-align: center; }
.contact h2 { font-size: 1.35rem; margin-bottom: 8px; }
.contact p { color: var(--muted); font-size: .92rem; }

.footer {
    background: #123632;
    color: rgba(255, 255, 255, .68);
    padding: 38px 24px;
    text-align: center;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-bottom: 14px; }
.footer-links a { color: rgba(255, 255, 255, .86); font-size: .84rem; text-decoration: none; }
.footer-copy { font-size: .78rem; }

.page-title {
    background: linear-gradient(145deg, #0c8b7d, var(--primary-deep));
    color: #fff;
    padding: 116px 24px 44px;
    text-align: center;
}

.page-title h1 { font-size: clamp(1.7rem, 5vw, 2.15rem); }

.legal-content {
    margin: 0 auto;
    max-width: var(--reading-width);
    padding: 48px 24px 84px;
}

.legal-content .updated { color: var(--muted); font-size: .84rem; margin-bottom: 30px; text-align: center; }
.legal-content h2 { color: var(--primary-deep); font-size: 1.16rem; margin: 38px 0 12px; }
.legal-content h3 { font-size: 1rem; margin: 22px 0 8px; }
.legal-content p,
.legal-content li { font-size: .94rem; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 0 0 18px 1.3rem; }
.legal-content li { margin-bottom: 7px; padding-left: 3px; }
.legal-content a { overflow-wrap: anywhere; }
.legal-note {
    background: var(--primary-soft);
    border: 1px solid #c3e7df;
    border-radius: 16px;
    margin-top: 32px;
    padding: 18px 20px;
}

@media (max-width: 820px) {
    .hero-inner { gap: 26px; grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { min-height: 250px; }
    .hero-orbit { height: 190px; width: 220px; }
    .hero-phone { width: 190px; }
    .app-icon { border-radius: 20px; bottom: 16px; height: 72px; left: calc(50% - 145px); width: 72px; }
    .screenshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .data-card { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .header { grid-template-columns: auto 1fr; padding: 11px 16px; }
    .back-link { display: none; }
    .header-logo { justify-self: start; }
    .header-nav { gap: 12px; }
    .header-nav a { font-size: .78rem; }
    .hero { padding: 108px 20px 56px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .button { justify-content: center; }
    .hero-visual { min-height: 220px; }
    .screenshots { padding: 54px 14px 66px; overflow: hidden; }
    .screenshot-grid {
        display: flex;
        gap: 16px;
        margin: 0 -14px;
        overflow-x: auto;
        padding: 4px 20px 22px;
        scroll-snap-type: x mandatory;
    }
    .screenshot-card { flex: 0 0 218px; scroll-snap-align: center; }
    .phone-shell { border-radius: 29px; }
    .phone-shell img { border-radius: 21px; }
    .screenshot-card:nth-child(even) { margin-top: 0; }
    .screenshot-card figcaption { display: block; }
    .features { padding: 58px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 0; }
    .data-section { padding: 54px 18px; }
    .data-card { border-radius: 22px; padding: 28px 22px; }
    .page-title { padding: 94px 20px 34px; }
    .legal-content { padding: 36px 20px 64px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
