/* ねたまパッドの紹介ページ。夜のベッドサイドの色（紺の夜空とオレンジの常夜灯）でそろえる。 */
:root {
  --night-0: #070b1d;
  --night-1: #0d1430;
  --night-2: #16204a;
  --lamp: #ff8a1f;
  --lamp-soft: #ffb35c;
  --moon: #fff3dd;
  --text: #eef1fb;
  --text-muted: #aab3d1;
  --line: rgba(170, 179, 209, 0.18);
  --card: rgba(22, 32, 74, 0.55);

  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", -apple-system, sans-serif;

  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lead: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --text-h2: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  --text-hero: clamp(2.2rem, 1.4rem + 4vw, 4rem);

  --space-section: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --radius-card: 22px;
  --radius-small: 12px;
  --duration: 200ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 138, 31, 0.16), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(80, 100, 220, 0.18), transparent 60%),
    linear-gradient(180deg, var(--night-1), var(--night-0) 60%);
  background-color: var(--night-0);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lamp-soft); text-underline-offset: 3px; }
a:hover { color: var(--moon); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--lamp-soft); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }

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

/* 上の帯 */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-family: var(--font-display); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.lang { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }
.lang:hover { color: var(--text); border-color: var(--lamp); }

/* いちばん上 */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 56px) 0 var(--space-section); }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 18px 50px rgba(255, 138, 31, 0.35); margin-bottom: 22px; }
.hero h1 { font-family: var(--font-display); font-size: var(--text-hero); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--lamp); }
.lead { font-size: var(--text-lead); color: var(--text-muted); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.button.primary { background: linear-gradient(180deg, var(--lamp-soft), var(--lamp)); color: #2a1300; box-shadow: 0 10px 30px rgba(255, 138, 31, 0.35); }
.button.secondary { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.button:hover { transform: translateY(-2px); color: inherit; }
.button.primary:hover { color: #2a1300; box-shadow: 0 14px 36px rgba(255, 138, 31, 0.45); }
.button small { display: block; font-weight: 500; font-size: 0.78rem; opacity: 0.8; }
.note { color: var(--text-muted); font-size: 0.88rem; margin-top: 14px; }

/* 画面の見本（重ねて奥行きを出す） */
.phones { position: relative; min-height: 520px; }
.phone { position: absolute; width: 58%; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.phone.back { left: 0; top: 40px; transform: rotate(-6deg); opacity: 0.85; }
.phone.front { right: 0; top: 0; transform: rotate(4deg); }

/* 節 */
section { padding-bottom: var(--space-section); }
h2 { font-family: var(--font-display); font-size: var(--text-h2); line-height: 1.3; margin: 0 0 8px; }
.kicker { color: var(--lamp); font-weight: 700; letter-spacing: 0.08em; font-size: 0.82rem; text-transform: uppercase; margin: 0 0 6px; }
.section-lead { color: var(--text-muted); margin: 0 0 28px; max-width: 40em; }

/* できること（大小をつけたタイル） */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.tile h3 { margin: 0 0 6px; font-size: 1.1rem; font-family: var(--font-display); }
.tile p { margin: 0; color: var(--text-muted); }
.tile .glyph { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.tile.wide { grid-column: span 4; }
.tile.half { grid-column: span 3; }
.tile.narrow { grid-column: span 2; }
.tile.lamp { background: linear-gradient(160deg, rgba(255, 138, 31, 0.22), rgba(22, 32, 74, 0.55)); border-color: rgba(255, 138, 31, 0.35); }
.tile ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--text-muted); }

/* つなぎ方（大きな数字） */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 20px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--lamp); font-weight: 800; }
.steps h3 { margin: 0 0 4px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--text-muted); }

/* 表 */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--text-muted); margin: 10px 0 0; }

/* プライバシーなど、読む文書のページ */
.doc { width: min(760px, 100% - 32px); margin-inline: auto; padding-bottom: var(--space-section); }
.doc h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); margin: 12px 0 6px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--text-muted); font-size: 0.9rem; }
.doc .summary { background: linear-gradient(160deg, rgba(255, 138, 31, 0.18), rgba(22, 32, 74, 0.55)); border: 1px solid rgba(255, 138, 31, 0.35); border-radius: var(--radius-card); padding: 18px 22px; margin: 22px 0; }
.doc .summary p { margin: 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--text-muted); font-size: 0.86rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; }
footer a { color: var(--text-muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .phones { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .phone { position: static; width: 100%; transform: none; }
  .phone.back { opacity: 1; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide, .tile.half, .tile.narrow { grid-column: auto; }
  .specs { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 44px 1fr; }
  .steps li::before { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}
