/* ===========================================================================
   ID期限リマインダー — site styles

   The palette, spacing and elevation here are the app's design tokens, not a
   separate web theme. The point of the site is to make the app recognisable
   before it is installed, so a screenshot on this page and the real screen have
   to be the same object.
   =========================================================================== */

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

:root {
    /* Surfaces: the canvas sits a step below the cards, so a card separates by
       elevation instead of a border. */
    --canvas: #F4F4F2;
    --card: #FFFFFF;
    --fill: rgba(23, 25, 28, 0.05);
    --hairline: rgba(23, 25, 28, 0.07);

    /* Ink */
    --ink: #17191C;
    --ink-2: #6B7078;
    --ink-3: #9DA2AA;

    /* Brand — interactive affordances only, never mixed into the urgency scale */
    --primary: #2563EB;
    --primary-hover: #1D4ED8;

    /* Urgency. Fills carry rails, rings and large numbers; the -text pairs are
       for anything at body size, where #EA580C (3.6:1) and #CA8A04 (2.9:1) fall
       short of the 4.5:1 small type needs on white. */
    --critical: #DC2626;
    --critical-text: #B91C1C;
    --high: #EA580C;
    --high-text: #C2410C;
    --medium: #CA8A04;
    --medium-text: #A16207;
    --low: #64748B;
    --safe: #16A34A;
    --safe-text: #15803D;

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 22px;
    --radius-hero: 24px;

    --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.05), 0 14px 36px -22px rgba(16, 24, 40, 0.22);
    --shadow-device: 0 40px 80px -34px rgba(16, 24, 40, 0.55);

    --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
            "Noto Sans JP", "Segoe UI", Meiryo, sans-serif;
    --rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

.num {
    font-family: var(--rounded);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header ------------------------------------------------------------- */

header {
    background: rgba(244, 244, 242, 0.88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.logo-text {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 26px;
    margin-left: auto;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--ink-2);
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-links .nav-cta a,
a.nav-cta {
    background: var(--ink);
    color: #fff;
    padding: 10px 18px;
    border-radius: 11px;
    font-weight: 600;
}

.nav-links .nav-cta a:hover,
a.nav-cta:hover { background: #000; color: #fff; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    font-size: 1.0625rem;
    font-weight: 600;
    background: var(--ink);
    color: #fff;
}

.btn:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #fff; color: #000; }

.btn-note {
    font-family: var(--rounded);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink-2);
}

/* --- Sections ----------------------------------------------------------- */

section { padding: 88px 0; }
section.on-card { background: var(--card); }

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    margin-bottom: 14px;
}

h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.375rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.32;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .lead { margin-top: 14px; }

.lead {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink-2);
}

.lead strong { color: var(--ink); font-weight: 600; }

/* --- Hero --------------------------------------------------------------- */

.hero { padding: 88px 0 80px; }

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5.2vw, 3.875rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.22;
}

.hero-subtitle {
    margin-top: 22px;
    font-size: 1.1875rem;
    line-height: 1.72;
    color: var(--ink-2);
    max-width: 30em;
}

.hero-subtitle strong { color: var(--ink); font-weight: 600; }

.hero-actions {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-features {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    list-style: none;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    color: var(--ink-2);
}

.hero-feature svg { flex: none; color: var(--safe); }

/* --- Device mockups ----------------------------------------------------- */

.devices {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 22px;
}

.device {
    width: 264px;
    flex: none;
    border-radius: 38px;
    background: #1B1D22;
    padding: 9px;
    box-shadow: var(--shadow-device);
}

.device:first-child { transform: translateY(38px); }

.device-screen {
    border-radius: 30px;
    background: var(--canvas);
    padding: 26px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.device-title {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.device-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 8px 22px -14px rgba(16, 24, 40, 0.3);
    padding: 15px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.device-hero::before {
    content: "";
    position: absolute;
    inset: -40% 40% 30% -30%;
    background: radial-gradient(circle at 30% 40%, var(--tint, rgba(234, 88, 12, 0.18)), transparent 68%);
}

.device-hero > * { position: relative; }

.device-hero-label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.38;
    letter-spacing: -0.02em;
}

.device-hero-date {
    font-family: var(--rounded);
    font-size: 0.6875rem;
    color: var(--ink-2);
    margin-top: 3px;
}

.ring { position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); }

.ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--rounded);
    font-weight: 700;
    line-height: 1;
}

.ring-value span { font-size: 0.5625rem; font-weight: 600; color: var(--ink-3); margin-top: 2px; }

.check-badge {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--safe);
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-rows { display: flex; flex-direction: column; gap: 7px; }

.device-row {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 6px 16px -12px rgba(16, 24, 40, 0.3);
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* One urgency signal per row: a rail, not a border round the whole card. */
.device-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--rail, var(--low));
}

.device-row-main { flex-grow: 1; min-width: 0; }

/* Labels are user-supplied and can be long; a wrapped row breaks the card rhythm. */
.device-row-title {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-row-date {
    font-family: var(--rounded);
    font-size: 0.625rem;
    color: var(--ink-3);
    margin-top: 2px;
}

.device-row-days {
    font-family: var(--rounded);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--days, var(--low));
    white-space: nowrap;
}

.device-row-days.big { font-size: 1.0625rem; font-weight: 700; }

/* --- Card grids --------------------------------------------------------- */

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

.q-card,
.use-card {
    background: var(--canvas);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

section.on-card .q-card,
section.on-card .use-card { background: var(--canvas); }

section:not(.on-card) .q-card,
section:not(.on-card) .use-card {
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.q-card h3,
.use-card h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.45;
}

.q-card p,
.use-card p {
    font-size: 0.875rem;
    line-height: 1.72;
    color: var(--ink-2);
}

.q-card p strong,
.use-card p strong { color: var(--ink); font-weight: 600; }

.use-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--card);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

section.on-card .use-icon { background: var(--card); }

/* The proof panel inside a question card: what the form saves, and what it has
   no field for. */
.field-proof {
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
}

.field-row svg { flex: none; }
.field-row .name { font-weight: 600; flex-grow: 1; }
.field-row .state { font-size: 0.6875rem; color: var(--ink-2); }

.field-row.absent .name {
    color: var(--ink-3);
    text-decoration: line-through;
    font-weight: 400;
}

.field-row.absent .state { color: var(--ink-3); }
.field-row.present svg { color: var(--safe); }
.field-row.absent svg { color: #B6BAC1; }
.field-divider { height: 1px; background: var(--hairline); }

.no-egress {
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 26px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #C9CDD3;
}

.no-egress .node {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--fill);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-egress .node.on { color: var(--ink); }
.no-egress .blocked { display: flex; align-items: center; gap: 5px; }
.no-egress .blocked .x { color: var(--critical); }

.no-account {
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.no-account .ghost-field {
    height: 38px;
    border-radius: 10px;
    background: rgba(23, 25, 28, 0.04);
    display: flex;
    align-items: center;
    padding: 0 13px;
    font-size: 0.8125rem;
    color: #C9CDD3;
    text-decoration: line-through;
}

.no-account .real-action {
    height: 38px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* --- Steps -------------------------------------------------------------- */

.step-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.step-head { display: flex; align-items: center; gap: 13px; }

.step-num {
    font-family: var(--rounded);
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h3 { font-size: 1.25rem; font-weight: 700; }

.step-card p {
    font-size: 0.875rem;
    line-height: 1.72;
    color: var(--ink-2);
}

.step-card p strong { color: var(--ink); font-weight: 600; }

.step-visual {
    background: var(--canvas);
    border-radius: var(--radius-sm);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.template-tile {
    height: 52px;
    border-radius: 11px;
    background: var(--card);
    color: var(--ink-3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-tile.selected {
    background: rgba(37, 99, 235, 0.09);
    box-shadow: inset 0 0 0 1.5px var(--primary);
    color: var(--primary);
}

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--card);
    font-size: 0.75rem;
    color: var(--ink-2);
}

.chip.selected { background: var(--primary); color: #fff; font-weight: 600; }

.date-field {
    height: 44px;
    border-radius: 11px;
    background: var(--card);
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-family: var(--rounded);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.notice {
    background: var(--card);
    border-radius: 14px;
    padding: 13px 14px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.notice-icon {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-title { font-size: 0.75rem; font-weight: 600; }
.notice-body { font-size: 0.75rem; color: var(--ink-2); }

.lead-track {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}

.lead-track span {
    font-family: var(--rounded);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-3);
}

.lead-track span.now { color: var(--high-text); font-weight: 700; font-family: var(--sans); }
.lead-track i { height: 2px; flex-grow: 1; background: rgba(23, 25, 28, 0.1); }

.lock-visual {
    border-radius: var(--radius-sm);
    background: linear-gradient(160deg, #2A2F3A, #14161A 70%);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lock-clock {
    font-family: var(--rounded);
    font-size: 2.125rem;
    font-weight: 300;
    color: #fff;
    text-align: center;
    letter-spacing: -0.03em;
}

.lock-row { display: flex; align-items: center; gap: 11px; }

.lock-card {
    flex-grow: 1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    padding: 10px 12px;
}

.lock-card-title { font-size: 0.75rem; font-weight: 600; color: #fff; }

.lock-card-sub {
    font-family: var(--rounded);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 3px;
}

/* --- Pricing ------------------------------------------------------------ */

.pricing .container {
    display: flex;
    align-items: center;
    gap: 56px;
    flex-wrap: wrap;
}

.pricing-copy { flex: 1 1 420px; }

.price-card {
    flex: 0 0 320px;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.price-card h3 { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.price-amount { display: flex; align-items: baseline; gap: 8px; }

.price-amount .num {
    font-size: 2.875rem;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.price-amount .period { font-size: 0.9375rem; color: var(--ink-2); }
.price-rule { height: 1px; background: var(--hairline); }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.price-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.875rem;
    color: var(--ink-2);
}

.price-list svg { flex: none; color: var(--safe); }

/* --- Closing ------------------------------------------------------------ */

.closing {
    background: var(--ink);
    text-align: center;
}

.closing h2 { color: #fff; }

.closing .lead {
    color: rgba(255, 255, 255, 0.62);
    margin: 22px auto 30px;
    max-width: 34em;
}

.closing .btn-note { color: rgba(255, 255, 255, 0.42); margin-top: 18px; }

/* --- Footer ------------------------------------------------------------- */

footer {
    background: #0F1012;
    color: rgba(255, 255, 255, 0.72);
    padding: 52px 0 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 72px;
    align-items: flex-start;
}

.footer-section:first-child { width: 280px; }

.footer-section h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 12px;
}

.footer-section:first-child h4 {
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 8px;
}

.footer-section p { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.42); }
.footer-section ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-section a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
}

.footer-section a:hover { color: #fff; }

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-family: var(--rounded);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.32);
}

/* --- Document pages (privacy / contact) --------------------------------- */

.privacy-page,
.contact-page {
    padding: 64px 0 88px;
}

.privacy-page .container,
.contact-page .container { max-width: 760px; }

.privacy-page h1,
.contact-page h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.last-updated {
    font-family: var(--rounded);
    font-size: 0.875rem;
    color: var(--ink-3);
    margin-top: 10px;
}

.contact-intro {
    margin-top: 14px;
    font-size: 1.0625rem;
    color: var(--ink-2);
}

.privacy-section,
.contact-section,
.support-section,
.faq-section {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 28px 30px;
    margin-top: 22px;
}

.privacy-section h2,
.contact-section h2,
.support-section h2,
.faq-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.privacy-section p,
.contact-section p,
.support-section p {
    color: var(--ink-2);
    font-size: 0.9375rem;
}

.privacy-section p + p,
.privacy-section p + ul,
.contact-section p + p { margin-top: 12px; }

.privacy-section ul,
.support-section ul {
    margin: 12px 0 0 1.1em;
    color: var(--ink-2);
    font-size: 0.9375rem;
}

.privacy-section li,
.support-section li { margin-bottom: 8px; }

.privacy-section strong,
.contact-section strong { color: var(--ink); font-weight: 600; }

.privacy-summary,
.highlight {
    background: rgba(37, 99, 235, 0.07);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    margin-top: 22px;
}

.privacy-summary p,
.highlight p { color: var(--ink); }

.form-container {
    margin-top: 18px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--canvas);
}

.form-container iframe {
    display: block;
    width: 100%;
    border: 0;
    min-height: 900px;
}

.faq-list { display: flex; flex-direction: column; gap: 20px; margin-top: 6px; }

.faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.faq-item p { color: var(--ink-2); font-size: 0.9375rem; }

.support-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.support-card {
    background: var(--canvas);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.support-icon { color: var(--primary); margin-bottom: 10px; }
.support-link { font-weight: 600; }
.contact-info { margin-top: 14px; font-size: 0.9375rem; color: var(--ink-2); }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 980px) {
    section { padding: 68px 0; }

    .hero { padding: 60px 0 64px; }
    .hero .container { grid-template-columns: 1fr; gap: 44px; }

    .grid-3 { grid-template-columns: 1fr; }

    .devices { gap: 16px; }
    .device:first-child { display: none; }

    .pricing .container { gap: 36px; }
    .price-card { flex: 1 1 100%; }
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }

    nav .container { gap: 16px; min-height: 60px; }
    .nav-links { gap: 14px; }
    .nav-links li:not(.nav-cta) { display: none; }

    section { padding: 56px 0; }
    .hero-actions .btn { width: 100%; }
    .btn-note { width: 100%; text-align: center; }

    .q-card, .use-card, .step-card { padding: 24px; }
    .privacy-section, .contact-section, .support-section, .faq-section { padding: 22px; }

    .footer-content { gap: 28px; }
    .footer-section:first-child { width: 100%; }
}
