/* ねたまパッドのページ（arklio.jp/netamapad）。
   外まわり（ヘッダー・フッター・本文）は ARKLIO の白・黒・赤。
   いちばん上の帯と目立たせたい 1 枚だけ、アプリの「夜の紺とオレンジの常夜灯」にする。 */
:root {
  --ink: #111111;
  --ink2: #3a3f45;
  --muted: #5a6069;
  --paper: #ffffff;
  --paper2: #f4f5f6;
  --line: #e1e4e8;
  --red: #c0272d;
  --red-soft: #fbedee;

  --night-0: #070b1d;
  --night-1: #0d1430;
  --night-2: #16204a;
  --lamp: #ff8a1f;
  --lamp-soft: #ffb35c;
  --moon: #fff3dd;
  --night-text: #eef1fb;
  --night-muted: #b4bcd8;
  --night-line: rgba(170, 179, 209, 0.22);

  --display: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;

  --text-hero: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
  --text-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --space-section: clamp(56px, 40px + 5vw, 112px);
  --r: 16px;
  --duration: 180ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.85;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.35; text-wrap: balance; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.eyebrow { font: 600 11px/1.6 var(--mono); letter-spacing: 0.22em; color: var(--red); text-transform: uppercase; margin: 0 0 10px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 20; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main:focus { outline: none; }

/* ヘッダー（ARKLIO と同じ） */
.site { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 9px 4px; margin: -9px -4px; flex: none; }
.brand .sym { height: 26px; width: auto; }
.brand .wm { height: 16px; width: auto; }
.crumbs ol { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.crumbs li + li::before { content: "/"; content: "/" / ""; margin-right: 8px; color: #9aa0a8; }
.crumbs a { text-decoration: none; color: var(--ink2); }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.site .lang { margin-left: auto; font-size: 13px; color: var(--ink2); text-decoration: none; padding: 9px 4px; white-space: nowrap; }
.site .lang:hover { color: var(--red); }
.site .cta { background: var(--ink); color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; transition: background var(--duration) var(--ease); }
.site .cta:hover { background: var(--red); }
@media (max-width: 640px) {
  .crumbs li:first-child { display: none; }
  .brand .wm { display: none; }
}
/* 狭い画面では［ダウンロード］をヘッダーから外す（いちばん上の帯に同じボタンがある） */
@media (max-width: 420px) {
  .site .cta { display: none; }
}

/* ボタン */
.button {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 15px; line-height: 1.4;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
}
.button small { font-weight: 500; font-size: 12px; opacity: 0.82; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.primary { background: linear-gradient(180deg, var(--lamp-soft), var(--lamp)); color: #2a1300; box-shadow: 0 10px 28px rgba(255, 138, 31, 0.32); }
.button.primary:hover { box-shadow: 0 14px 34px rgba(255, 138, 31, 0.42); }
.button.dark { background: var(--ink); color: #fff; }
.button.dark:hover { background: var(--red); }
.button.ghost { background: transparent; color: var(--ink); border-color: #767c85; }
.button.ghost:hover { border-color: var(--ink); }
.button[hidden] { display: none; }

/* いちばん上（夜の帯） */
.hero {
  color: var(--night-text);
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(255, 138, 31, 0.2), transparent 62%),
    radial-gradient(760px 460px at -6% 30%, rgba(80, 100, 220, 0.22), transparent 62%),
    linear-gradient(180deg, var(--night-1), var(--night-0));
  background-color: var(--night-0);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(40px, 6vw, 88px); }
.app-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 18px 48px rgba(255, 138, 31, 0.32); margin-bottom: 20px; }
.hero .eyebrow { color: var(--lamp-soft); }
.hero h1 { font-size: var(--text-hero); line-height: 1.16; letter-spacing: -0.01em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--lamp); }
.hero .lead { font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem); color: var(--night-muted); margin: 0 0 26px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button.ghost { color: var(--night-text); border-color: var(--night-muted); }
.hero :focus-visible { outline-color: var(--lamp-soft); }
.hero .button.ghost:hover { border-color: var(--lamp-soft); }
.hero .note { color: var(--night-muted); font-size: 13.5px; margin: 16px 0 0; }
.phones { position: relative; min-height: 500px; }
.phone { position: absolute; width: 58%; border-radius: 26px; border: 1px solid var(--night-line); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.phone.back { left: 2%; top: 44px; transform: rotate(-6deg); opacity: 0.85; }
.phone.front { right: 2%; top: 0; transform: rotate(4deg); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phones { min-height: 0; aspect-ratio: 1 / 1.05; max-width: 440px; width: 100%; margin: 8px auto 0; }
}

/* 節 */
section { scroll-margin-top: 72px; }
.band { padding: var(--space-section) 0; }
.band.alt { background: var(--paper2); border-block: 1px solid var(--line); }
.sec-head { max-width: 40em; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-head h2 { font-size: var(--text-h2); margin-bottom: 10px; }
.sec-head p { margin: 0; color: var(--ink2); }

/* できること（大きさの違う枠を組む） */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { grid-column: span 2; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.tile.wide { grid-column: span 4; }
.tile.half { grid-column: span 3; }
.tile h3 { font-size: 17px; margin-bottom: 6px; }
.tile p, .tile ul { margin: 0; color: var(--ink2); font-size: 14.5px; }
.tile ul { padding-left: 1.2em; }
.tile li + li { margin-top: 4px; }
.glyph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 20px; margin-bottom: 14px; }
.tile.lamp { background: linear-gradient(160deg, var(--night-2), var(--night-0)); color: var(--night-text); border-color: transparent; box-shadow: 0 18px 40px rgba(13, 20, 48, 0.25); }
.tile.lamp p { color: var(--night-muted); }
.tile.lamp .glyph { background: rgba(255, 138, 31, 0.16); color: var(--lamp); }
@media (max-width: 820px) {
  /* 2 列のときは、横長の枠の前に空いた所へ小さい枠を詰める */
  .bento { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
  .tile, .tile.half { grid-column: span 1; }
  .tile.wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.half, .tile.wide { grid-column: span 1; }
}

/* ダウンロード */
.dl-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; align-items: start; }
.dl-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); }
.step-no { font: 600 12px/1 var(--mono); letter-spacing: 0.18em; color: var(--red); margin: 0 0 10px; }
.dl-card h3 { font-size: 19px; margin-bottom: 8px; }
.dl-card h4 { font-size: 16px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-card p { margin: 0 0 14px; color: var(--ink2); font-size: 14.5px; }
.meta { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.meta li { font-size: 12.5px; color: var(--ink2); background: var(--paper2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.dl-card .fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.chip { font: 600 11px/1 var(--mono); letter-spacing: 0.12em; color: var(--red); background: var(--red-soft); border-radius: 999px; padding: 5px 10px; }
.dl-card .on-phone { background: var(--red-soft); color: var(--ink); border-radius: 12px; padding: 10px 14px; margin: 14px 0 10px; }
.os-panel + .os-panel { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line); }
.os-panel .button + .button { margin-top: 10px; }
.os-panel .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* Mac / Windows の切り替え（JS があるときだけ出る） */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper2); border: 1px solid var(--line); border-radius: 999px; margin: 4px 0 20px; }
.seg[hidden] { display: none; }
.seg button {
  font: 700 14px/1 var(--body); color: var(--ink2); background: transparent; border: 0; border-radius: 999px;
  padding: 10px 22px; min-height: 40px; cursor: pointer; transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.is-tabs .os-panel + .os-panel { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 820px) { .dl-grid { grid-template-columns: 1fr; } }

/* はじめかた */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: "0" counter(step); display: block; font: 600 12px/1 var(--mono); letter-spacing: 0.18em; color: var(--red); margin-bottom: 10px; }
.steps h3 { font-size: 16.5px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink2); font-size: 14.5px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* サポート */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.specs .tile { grid-column: auto; }
.specs ul { padding-left: 1.2em; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style-position: inside; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink2); font-size: 14.5px; }
@media (max-width: 640px) { .specs { grid-template-columns: 1fr; } }

/* プライバシーなどの読みもの */
.doc { max-width: 760px; padding-top: clamp(32px, 5vw, 56px); padding-bottom: var(--space-section); }
.doc h1 { font-size: var(--text-h2); margin-bottom: 6px; }
.doc h2 { font-size: 18px; margin: 32px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--ink2); }
.doc ul { padding-left: 1.3em; }
.doc .meta-line { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.summary { background: var(--paper2); border-left: 3px solid var(--red); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0 0 8px; }
.summary p { margin: 0; color: var(--ink); }

/* フッター（ARKLIO と同じ） */
.site-foot { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 12px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; flex-basis: 100%; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.site-foot nav a { text-decoration: none; color: var(--ink2); padding: 6px 0; }
.site-foot nav a:hover { color: var(--red); }
.site-foot .note { flex-basis: 100%; margin: 0; }
.site-foot img { height: 14px; width: auto; opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .button:hover { transform: none; }
}
