/* Logria 公式サイト 共通スタイル */

:root {
  --paper: #faf8f4;
  --paper-2: #f2eee6;
  --card: #ffffff;
  --ink: #1d1b22;
  --ink-2: #4a4652;
  --ink-3: #75707d;
  --line: #e4ded3;
  --red: #e5483d;
  --red-ink: #c23a30;
  --red-soft: #fbe7e4;
  --sage: #4e7a5a;
  --sage-soft: #e6efe7;
  --blue: #2b78ad;
  --amber: #c98a1c;
  --violet: #7350c0;
  --shadow: 0 1px 2px rgba(29, 27, 34, .05), 0 8px 28px rgba(29, 27, 34, .07);
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15141a;
    --paper-2: #1c1b22;
    --card: #211f27;
    --ink: #f1eee8;
    --ink-2: #cbc6cf;
    --ink-3: #9a95a1;
    --line: #34313b;
    --red: #f0625a;
    --red-ink: #ff8a82;
    --red-soft: #3a2020;
    --sage: #7fb48d;
    --sage-soft: #1e2b22;
    --blue: #6aa8d8;
    --amber: #e3ac4a;
    --violet: #a68be6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #15141a;
  --paper-2: #1c1b22;
  --card: #211f27;
  --ink: #f1eee8;
  --ink-2: #cbc6cf;
  --ink-3: #9a95a1;
  --line: #34313b;
  --red: #f0625a;
  --red-ink: #ff8a82;
  --red-soft: #3a2020;
  --sage: #7fb48d;
  --sage-soft: #1e2b22;
  --blue: #6aa8d8;
  --amber: #e3ac4a;
  --violet: #a68be6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(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(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
}

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

a { color: var(--red-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; }

/* ── ヘッダー ───────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: .03em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }

.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }

@media (max-width: 480px) {
  .nav a { padding: 6px 9px; font-size: 13px; }
  .brand span { display: none; }
}

/* ── ボタン ───────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 0; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--red)); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .04em; }
.btn[aria-disabled="true"] { cursor: default; }

/* ── 共通の見出し ───────────────────────────── */

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .18em;
  color: var(--red-ink); text-transform: uppercase; margin-bottom: 12px;
}
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section h2, .doc h2, .doc-hero h1 { word-break: auto-phrase; text-wrap: balance; }
.section h2 {
  font-size: clamp(26px, 4.2vw, 38px); line-height: 1.4; margin: 0 0 16px; letter-spacing: .03em; font-weight: 700;
}
.lead { color: var(--ink-2); font-size: 17px; max-width: 40em; margin: 0; }

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

/* ── ヒーロー ───────────────────────────── */

.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(32px, 5.2vw, 52px); line-height: 1.3; margin: 0 0 22px; letter-spacing: .02em; font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--red); white-space: nowrap; }
.hero .sub { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); margin: 0 0 30px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.badges li {
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px;
}

@media (max-width: 860px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ── iPhone のモック(装飾) ───────────────────────────── */

.phone {
  --pbg: #eef4ee; --pac: #4e7a5a; --ptext: #1d2a21; --pline: rgba(30, 50, 35, .12);
  width: min(320px, 100%); margin-inline: auto; aspect-ratio: 9 / 19.2;
  background: #111; border-radius: 46px; padding: 10px; box-shadow: var(--shadow), 0 30px 60px -20px rgba(0,0,0,.35);
  position: relative;
}
.phone-screen {
  height: 100%; border-radius: 37px; background: var(--pbg); overflow: hidden;
  display: flex; flex-direction: column; color: var(--ptext); position: relative;
}
.phone-island { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #111; z-index: 2; }
.phone-top { padding: 46px 16px 6px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; }
.phone-top span { font-size: 11px; font-weight: 700; color: var(--pac); background: color-mix(in srgb, var(--pac) 14%, transparent); padding: 2px 9px; border-radius: 999px; }
.phone-week { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 9.5px; text-align: center; padding: 0 6px 4px; opacity: .65; font-weight: 700; }
.phone-week b:first-child { color: #d0453a; }
.phone-week b:last-child { color: #2b78ad; }
.phone-grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; padding: 0 6px; }
.phone-grid div {
  border-top: 1px solid var(--pline); font-size: 9.5px; padding: 3px 2px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.phone-grid div > b { font-weight: 700; text-align: center; line-height: 16px; height: 16px; width: 16px; margin: 0 auto 1px; border-radius: 50%; }
.phone-grid .muted > b { opacity: .35; }
.phone-grid .today > b { background: #e5483d; color: #fff; }
.phone-grid .sel { background: color-mix(in srgb, var(--pac) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pac) 45%, transparent); border-radius: 4px; }
.phone-grid i {
  font-style: normal; font-size: 7.5px; line-height: 1.5; border-radius: 3px; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: clip;
  color: #fff; font-weight: 700;
}
.c1 { background: #4e7a5a; } .c2 { background: #2b78ad; } .c3 { background: #c98a1c; } .c4 { background: #b04d66; } .c5 { background: #7350c0; }
.phone-grid i.r { background: transparent; color: var(--ptext); font-weight: 500; padding-left: 0; }
.phone-grid i.r::before { content: "○ "; opacity: .6; }
.phone-grid em { font-style: normal; font-size: 7px; align-self: flex-end; opacity: .55; padding-right: 2px; margin-top: auto; }
.phone-menu {
  margin: 8px auto 14px; display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.72); box-shadow: 0 4px 14px rgba(0,0,0,.08), inset 0 0 0 .5px rgba(255,255,255,.8);
}
.phone-menu span { width: 52px; height: 34px; border-radius: 999px; display: grid; place-items: center; color: rgba(29,42,33,.7); }
.phone-menu span.on { background: color-mix(in srgb, var(--pac) 16%, transparent); color: var(--pac); }
.phone-menu svg { width: 18px; height: 18px; }

/* ── 5つのポイント ───────────────────────────── */

.points { display: grid; gap: 18px; margin-top: 48px; grid-template-columns: repeat(6, 1fr); }
.point {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 26px;
  grid-column: span 2; position: relative;
}
.point:nth-child(4), .point:nth-child(5) { grid-column: span 3; }
.point .num { font-size: 13px; font-weight: 700; color: var(--red-ink); letter-spacing: .12em; }
.point h3 { font-size: 20px; line-height: 1.5; margin: 6px 0 10px; }
.point p { margin: 0; color: var(--ink-2); font-size: 15px; }
.point ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--ink-2); font-size: 15px; }
.point .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.point .ic svg { width: 22px; height: 22px; }
.ic-red { background: var(--red-soft); color: var(--red-ink); }
.ic-sage { background: var(--sage-soft); color: var(--sage); }

@media (max-width: 900px) {
  .points { grid-template-columns: 1fr 1fr; }
  .point, .point:nth-child(4), .point:nth-child(5) { grid-column: span 1; }
  .point:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .points { grid-template-columns: 1fr; }
  .point:nth-child(5) { grid-column: span 1; }
}

/* ── ひとつに集約(機能の並び) ───────────────────────────── */

.unify { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 44px; }
.unify div {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 14px 18px; text-align: center;
}
.unify svg { width: 28px; height: 28px; margin: 0 auto 10px; color: var(--sage); }
.unify b { display: block; font-size: 15px; }
.unify span { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin-top: 4px; }
@media (max-width: 760px) { .unify { grid-template-columns: repeat(2, 1fr); } .unify div:last-child { grid-column: span 2; } }

/* ── プライバシー ───────────────────────────── */

.privacy-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 54px; position: relative; font-size: 15px; color: var(--ink-2);
}
.checks li b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 19px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; gap: 32px; } }

/* ── カスタマイズ ───────────────────────────── */

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 36px; }
.swatch {
  border-radius: 14px; padding: 12px 10px 10px; border: 1px solid rgba(0,0,0,.06); min-height: 86px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.swatch i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.swatch span { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.custom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.custom-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.custom-grid h3 { margin: 0 0 8px; font-size: 17px; }
.custom-grid p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding: 0; list-style: none; }
.tags li { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
@media (max-width: 860px) { .custom-grid { grid-template-columns: 1fr; } }

/* ── ライフログ ───────────────────────────── */

.health { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 36px; }
.health div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 500; }
.health svg { width: 20px; height: 20px; color: var(--red-ink); flex: none; }
@media (max-width: 760px) { .health { grid-template-columns: repeat(2, 1fr); } }

/* ── 料金 ───────────────────────────── */

.price {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 48px clamp(22px, 5vw, 56px);
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; box-shadow: var(--shadow);
}
.price-tag { font-size: clamp(44px, 7vw, 64px); font-weight: 700; line-height: 1; letter-spacing: .02em; }
.price-tag small { display: block; font-size: 14px; color: var(--ink-3); font-weight: 500; margin-top: 10px; letter-spacing: .06em; }
.price h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; }
.price p { margin: 0; color: var(--ink-2); }
@media (max-width: 700px) { .price { grid-template-columns: 1fr; gap: 20px; } }

/* ── CTA ───────────────────────────── */

.cta { text-align: center; }
.cta img { width: 88px; height: 88px; border-radius: 21px; margin: 0 auto 24px; box-shadow: var(--shadow); }
.cta .hero-cta { justify-content: center; margin-top: 28px; }

/* ── 文書ページ(ヘルプ・プライバシーポリシー) ───────────────────────────── */

.doc-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 10px; line-height: 1.35; }
.doc-hero p { margin: 0; color: var(--ink-2); max-width: 42em; }

.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 48px 0 96px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14px; }
.toc p { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.5; }
.toc a:hover { color: var(--ink); border-left-color: var(--red); }

.doc { max-width: 44em; }
.doc h2 { font-size: 24px; margin: 64px 0 16px; padding-top: 8px; line-height: 1.45; scroll-margin-top: 80px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 18px; margin: 34px 0 10px; line-height: 1.5; scroll-margin-top: 80px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--ink); }
.doc .path {
  display: inline-block; font-size: .92em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; color: var(--ink); line-height: 1.7;
}
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.doc td { color: var(--ink-2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 560px; }

.note {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: 12px; padding: 14px 18px; margin: 18px 0; font-size: 15px; color: var(--ink-2);
}
.note.warn { border-left-color: var(--amber); }

.gestures { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.gestures li { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; }
.gestures b { color: var(--ink); font-size: 14.5px; }
@media (max-width: 560px) { .gestures li { grid-template-columns: 1fr; gap: 2px; } }

details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
details.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ink); list-style: none; position: relative; padding-right: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 11px; font-size: 22px; color: var(--ink-3); font-weight: 400; }
details.faq[open] summary::after { content: "−"; }
details.faq > div { padding: 0 18px 14px; }
details.faq > div p { margin: 0 0 8px; }

.meta { font-size: 14px; color: var(--ink-3); margin-top: 40px; }

@media (max-width: 860px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .toc { position: static; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
  .toc ol { columns: 2; column-gap: 18px; border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 420px) { .toc ol { columns: 1; } }

@media (max-width: 600px) {
  .table-scroll table { min-width: 0; }
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
  .doc th, .doc td { border: 0; padding: 2px 0; white-space: normal; }
  .doc th { font-size: 15.5px; margin-bottom: 4px; }
  .doc td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; margin-top: 6px; }
}

/* ── フッター ───────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

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