/* オクレルナ！ 共通スタイル（トップ 74 言語・規約・サポート）。左右は論理プロパティで書き、RTL（ar / he / fa / ur）でも崩れないようにする */
:root {
    --brand: #e44124;
    --brand-strong: #c8321a;
    --brand-soft: #fff1ec;
    --warn: #f08a24;
    --bg: #fffaf6;
    --surface: #ffffff;
    --surface-2: #f6f1ed;
    --text: #1d1b1a;
    --muted: #6b6560;
    --line: #ebe3dc;
    --shadow: 0 1px 2px rgb(60 20 0 / 6%), 0 12px 32px rgb(60 20 0 / 8%);
    --radius: 20px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans", "Noto Sans JP", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand: #ff6a4d;
        --brand-strong: #ff8a73;
        --brand-soft: #3a1d16;
        --bg: #141211;
        --surface: #1e1b1a;
        --surface-2: #272321;
        --text: #f3efec;
        --muted: #aaa29c;
        --line: #36302d;
        --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 35%);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --brand: #ff6a4d;
    --brand-strong: #ff8a73;
    --brand-soft: #3a1d16;
    --bg: #141211;
    --surface: #1e1b1a;
    --surface-2: #272321;
    --text: #f3efec;
    --muted: #aaa29c;
    --line: #36302d;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 35%);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.75;
    overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(zh) h1, :lang(zh) h2 { word-break: auto-phrase; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ヘッダー */
.topbar {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.topnav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.topnav > a { color: var(--muted); text-decoration: none; font-size: .92rem; padding: 6px 10px; border-radius: 999px; }
.topnav > a:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 560px) { .topnav > a.hide-sm { display: none; } }

/* 言語メニュー（details で JS なしに開閉） */
.lang { position: relative; }
.lang summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
    font-size: .9rem; color: var(--text); background: var(--surface);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang-list {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
    width: min(560px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    padding: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px;
}
.lang-list a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .9rem; }
.lang-list a:hover { background: var(--surface-2); }
.lang-list a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 700; }

/* 別の言語の案内 */
.suggest { background: var(--brand-soft); color: var(--text); font-size: .92rem; }
.suggest .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; padding-block: 10px; }
.suggest a { font-weight: 700; }
.suggest button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 2px 6px; }

/* トップ: ヒーロー */
.hero { position: relative; overflow: hidden; padding-block: 56px 72px; }
.hero::before {
    content: ""; position: absolute; inset-block-start: -30%; inset-inline-end: -18%;
    width: min(760px, 110vw); aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #f25634, var(--brand) 70%);
    opacity: .95; z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.hero-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.15; margin: 20px 0 14px; letter-spacing: -.01em; }
.hero h1 .name { display: block; color: var(--brand); font-size: .5em; letter-spacing: .02em; margin-bottom: 10px; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badges a { display: inline-flex; border-radius: 10px; }
.badges img { height: 52px; width: auto; display: block; }
/* Google Play のバッジは画像の周りに余白があるので一回り大きく */
.badges img.play { height: 76px; margin-block: -12px; margin-inline: -8px; }

/* 端末の見本（スクリーンショットではなく HTML。各言語の文言で描く） */
.device {
    justify-self: center; width: min(300px, 78vw); aspect-ratio: 9 / 19.2;
    background: #18181b; border-radius: 46px; padding: 11px; box-shadow: 0 30px 60px rgb(80 10 0 / 30%);
    transform: rotate(-3deg);
}
.screen {
    height: 100%; border-radius: 36px; overflow: hidden; background: #fff; color: #1d1b1a;
    display: flex; flex-direction: column;
}
.screen .status { height: 34px; }
.screen .urgent {
    background: linear-gradient(#ffe7d6, #fff3ea); padding: 18px 14px 20px; text-align: center;
}
.pill { display: inline-flex; align-items: center; gap: 5px; background: #ffd9bf; color: #e8730f; font-weight: 800; font-size: .74rem; padding: 4px 12px; border-radius: 999px; }
.pill svg { width: 13px; height: 13px; }
.screen .ev { font-weight: 800; font-size: .92rem; margin: 10px 0 2px; }
.screen .rem { font-size: .7rem; color: #8a837d; }
.screen .count { font-size: 3.1rem; font-weight: 900; color: var(--warn); letter-spacing: .02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.screen .starts { font-size: .72rem; color: #8a837d; }
.screen .list { padding: 12px; display: grid; gap: 8px; }
.screen .row { display: flex; align-items: center; gap: 10px; background: #f4f4f5; border-radius: 12px; padding: 10px 12px; }
.screen .bar { width: 4px; align-self: stretch; border-radius: 4px; }
.screen .lines { flex: 1; display: grid; gap: 5px; }
.screen .lines i { display: block; height: 7px; border-radius: 4px; background: #d9d6d3; }
.screen .lines i + i { width: 55%; background: #e7e4e1; }
.screen .stop {
    margin: auto 12px 14px; background: #e44124; color: #fff; text-align: center; font-weight: 800; font-size: .9rem;
    border-radius: 14px; padding: 12px; animation: buzz 1.6s ease-in-out infinite;
}
@keyframes buzz {
    0%, 70%, 100% { transform: translateX(0); }
    74% { transform: translateX(-2px); } 78% { transform: translateX(2px); }
    82% { transform: translateX(-2px); } 86% { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) { .screen .stop { animation: none; } html { scroll-behavior: auto; } }

/* セクション */
.section { padding-block: 72px; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; text-align: center; margin: 0 0 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.08rem; margin: 14px 0 6px; line-height: 1.4; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.ic {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand);
}
.ic svg { width: 24px; height: 24px; }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 30px; }
.steps .card::before {
    counter-increment: step; content: counter(step);
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand); color: #fff; font-weight: 800;
}
.alt { background: var(--surface-2); }
.cta { text-align: center; }
.cta .badges { justify-content: center; }

/* フッター */
.footer { border-top: 1px solid var(--line); padding-block: 36px 44px; font-size: .88rem; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 12px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--brand); text-decoration: underline; }
.footer p { text-align: center; margin: 6px 0 0; }

/* 規約・サポートなどの文書ページ */
.doc-head { padding-block: 48px 8px; }
.doc-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.3; margin: 0 0 8px; }
.doc { width: min(820px, 100% - 32px); margin-inline: auto; padding-block: 8px 72px; }
.doc.wide { width: min(980px, 100% - 32px); }
.doc h2 { font-size: 1.3rem; line-height: 1.45; margin: 44px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--brand); }
.doc h3 { font-size: 1.05rem; margin: 28px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-inline-start: 1.4em; }
.doc li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: .88rem; margin-bottom: 28px; }
.note { color: var(--muted); font-size: .92rem; }
.lang-sep { margin: 56px 0 8px; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.doc table { width: 100%; border-collapse: collapse; font-size: .88rem; line-height: 1.6; }
.table-wrap table { min-width: 720px; }
.doc > table { display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 12px 0 18px; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.doc th { background: var(--surface-2); white-space: nowrap; font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }
.doc td + td, .doc th + th { border-inline-start: 1px solid var(--line); }
.doc details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.doc details[open] { box-shadow: var(--shadow); }
.doc summary { font-weight: 700; cursor: pointer; }
.doc details > :not(summary) { margin-top: 12px; }
.doc details > :last-child { margin-bottom: 0; }
.contact-box { background: var(--brand-soft); border-radius: var(--radius); padding: 28px 24px; margin: 20px 0 28px; text-align: center; }
.contact-box p { margin: 0 0 14px; }
.button {
    display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 800;
    padding: 12px 28px; border-radius: 999px;
}
.button:hover { background: var(--brand-strong); color: #fff; }

@media (max-width: 860px) {
    .hero { padding-block: 32px 56px; }
    .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
    .hero::before { inset-block-start: auto; inset-block-end: -8%; inset-inline-end: -40%; width: 130vw; }
    .device { transform: none; }
}
.topnav > a.lang-link { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.lang-link svg { width: 16px; height: 16px; }

/* 文字の上下に記号が付く言語は見出しの行間を広げる（.hero h1 より後に書く） */
:is(:lang(my), :lang(km), :lang(lo), :lang(si), :lang(th), :lang(ta), :lang(te), :lang(kn), :lang(ml), :lang(or), :lang(bn), :lang(gu), :lang(pa), :lang(hi), :lang(mr), :lang(ne), :lang(am), :lang(ar), :lang(fa), :lang(ur)) :is(h1, h2, h3), :is(:lang(my), :lang(km), :lang(lo), :lang(si), :lang(th), :lang(ta), :lang(te), :lang(kn), :lang(ml), :lang(or), :lang(bn), :lang(gu), :lang(pa), :lang(hi), :lang(mr), :lang(ne), :lang(am), :lang(ar), :lang(fa), :lang(ur)) .hero h1 { line-height: 1.5; }
