:root {
  --ink: #1d211d;
  --muted: #5d655d;
  --line: #e1e5de;
  --bg: #ffffff;
  --bg-alt: #f4f6f2;
  --card: #ffffff;
  --body: #2a2f2a;
  --lcd: #c8cfbd;
  --accent: #d26b40;
  --link: #2f6d5a;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7ebe4;
    --muted: #a5ada3;
    --line: #333a33;
    --bg: #161916;
    --bg-alt: #1d211d;
    --card: #232823;
    --link: #8fd0b8;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.8;
  -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.8rem); text-align: center; margin-bottom: 1.2em; }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1em; }
section { padding: 64px 0; }
section:nth-of-type(even) { background: var(--bg-alt); }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.small { font-size: .88rem; color: var(--muted); }
.tiny { font-size: .75rem; opacity: .75; }
.nb { display: inline-block; }

/* ヘッダ */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(42, 47, 42, .94);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); }
.bar-in { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; }
.bar-nav { display: flex; gap: 14px; margin-left: auto; overflow-x: auto; }
.bar-nav a { color: #dfe5dc; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.lang { color: #dfe5dc; font-size: .85rem; text-decoration: none; border: 1px solid #5c665c; border-radius: 999px;
  padding: 2px 10px; white-space: nowrap; }

/* 最初の画面 */
.hero { background: var(--body); color: #f1f4ef; padding: 56px 0 64px; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--lcd); font-weight: 700; letter-spacing: .04em; margin-bottom: .4em; }
.hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
.lead { color: #d6dcd2; }
.hero-phone img { max-width: 300px; margin: 0 auto; border-radius: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #111; text-decoration: none;
  font-weight: 700; padding: 12px 20px; border-radius: 999px; }
.btn.soon { background: transparent; color: #f1f4ef; border: 1px solid #77806f; cursor: default; }
.cta-note { font-size: .85rem; color: #b9c1b4; }

/* できること */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin-bottom: .4em; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* 画面の並び */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.shots figure { margin: 0; }
.shots img { border-radius: 22px; border: 1px solid var(--line); margin: 0 auto; max-width: 280px; }
.shots figcaption { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 10px; }
.ipad { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.ipad img { border-radius: 18px; border: 1px solid var(--line); max-width: 420px; margin: 0 auto; }

/* 対応する電卓 */
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
th { background: var(--bg-alt); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* 注意 */
.notice { border-left: 4px solid var(--accent); background: var(--card); padding: 16px 20px; border-radius: 8px; }

/* 質問 */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: .8em 0 0; color: var(--muted); }

/* 文書のページ */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
.doc h2 { text-align: left; font-size: 1.2rem; margin: 2em 0 .6em; }
.doc li { margin-bottom: .4em; }
kbd { display: inline-block; min-width: 1.6em; text-align: center; font-family: var(--font); font-size: .9em;
  background: #5c645c; color: #fff; border-radius: 5px; padding: 0 .4em; margin: 0 .1em; }
.answer { font-family: ui-monospace, Menlo, monospace; background: var(--lcd); color: #111; border-radius: 5px; padding: 0 .4em; }

/* フッタ */
.foot { background: var(--body); color: #c9d0c5; padding: 32px 0; font-size: .9rem; }
.foot a { color: #e3eadf; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }

@media (max-width: 820px) {
  .hero-in, .ipad { grid-template-columns: 1fr; }
  .features, .shots { grid-template-columns: 1fr; }
  .bar-nav { display: none; }
  .lang { margin-left: auto; }
  section { padding: 48px 0; }
}
