/* STE:CUE ランディングページの見た目。文章は index.html にあります。 */

:root {
  --ink: #080b0e;
  --ink-2: #0f161b;
  --ink-line: #27333b;
  --on-ink: #ecf7f5;
  --on-ink-muted: #a3b3b9;
  --paper: #f6f3ec;
  --paper-tint: #ece8dd;
  --card: #ffffff;
  --paper-line: #d5cfbf;
  --text: #161c20;
  --text-muted: #4d5a61;
  --amber: #ffb020;
  --cyan: #00d8ff;
  --teal: #006d83;
  --header-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  font-feature-settings: "palt";
  overflow-wrap: anywhere;
  line-break: strict;
}

img, video { display: block; max-width: 100%; height: auto; }
p, ul, ol, h1, h2, h3, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

/* 見出しを、切りのよいところで折り返す */
h1 span, h2 span { display: inline-block; }

/* 短い文は、行の長さをそろえ、言葉の途中で折り返しにくくする（対応している端末だけ） */
h1, h2, h3, .troubles li, .steps li, .people p, .plan-note, .faq summary { text-wrap: balance; word-break: auto-phrase; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

/* ---------- 上の帯 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 12px 0 20px;
  background: rgba(8, 11, 14, 0.94);
  border-bottom: 1px solid var(--ink-line);
}
.logo {
  color: var(--on-ink); text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 20px; font-weight: 800; letter-spacing: 0.22em; line-height: 1;
}
.logo span { color: var(--cyan); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 6px;
  font-size: 17px; font-weight: 800; line-height: 1.3; text-align: center; text-decoration: none;
}
.btn small { font-size: 0.82em; font-weight: 700; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-secondary { border-color: #7d8f97; color: var(--on-ink); }
.btn-small { min-height: 40px; padding: 6px 14px; font-size: 14px; background: var(--amber); color: var(--ink); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@media (hover: hover) {
  .btn-primary:hover, .btn-small:hover { background: #ffc24f; }
  .btn-secondary:hover { border-color: var(--on-ink); }
}
.actions { display: grid; gap: 12px; }

/* ---------- 区切りごとの地の色 ---------- */
section { padding: 64px 0; }
.dark { background: var(--ink); color: var(--on-ink); }
.paper { background: var(--paper); }
.paper.tint { background: var(--paper-tint); }

.eyebrow {
  margin-bottom: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.4;
  color: var(--teal);
}
.dark .eyebrow { color: var(--cyan); }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 10px; vertical-align: middle; background: currentColor; }

h1 { font-size: clamp(28px, 8.4vw, 54px); font-weight: 800; line-height: 1.32; letter-spacing: 0.01em; }
h2 { margin-bottom: 28px; font-size: clamp(24px, 6.6vw, 38px); font-weight: 800; line-height: 1.4; }
h3 { font-size: 19px; font-weight: 800; line-height: 1.5; }

/* ---------- 1. ヒーロー ---------- */
.hero { padding: 36px 0 56px; background: radial-gradient(120% 70% at 80% 0%, #12202a 0%, var(--ink) 60%); }
.hero-grid { display: grid; gap: 32px; }
.hero .lead { margin: 18px 0 26px; color: #d3e0e2; }

/* ---------- 写真の枠（どんな大きさの写真を入れても、枠の形に合わせて切り抜く） ---------- */
.photo { overflow: hidden; border: 1px solid var(--ink-line); border-radius: 8px; background: var(--ink-2); }
.photo img, .photo video { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-photo img, .hero-photo video { aspect-ratio: 3 / 2; }

/* 写真を隠してあるあいだ（index.html で hidden を付けた枠）は、文章だけで並べる */
[hidden] { display: none !important; }
.hero-grid:has(> .photo[hidden]), .story:has(> .photo[hidden]) { grid-template-columns: minmax(0, 780px); }
.feature:has(> .photo[hidden]) { border-top: 2px solid var(--cyan); }

/* ---------- 2. 困りごと ---------- */
.troubles { border-top: 2px solid var(--text); background: var(--card); }
.troubles li {
  position: relative; padding: 16px 16px 16px 46px;
  border-bottom: 1px solid var(--paper-line);
  font-weight: 600; line-height: 1.7;
}
.troubles li::before {
  content: ""; position: absolute; left: 16px; top: 22px;
  width: 16px; height: 16px; border: 2px solid var(--text-muted);
}

/* ---------- 3. できること ---------- */
.features { display: grid; gap: 40px; }
.feature h3 { margin: 18px 0 8px; font-size: 21px; }
.feature p { color: #d3e0e2; }

/* ---------- 4. 使い方 ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 52px 1fr; align-items: center; column-gap: 16px;
  padding: 18px 18px; background: var(--card); border: 1px solid var(--paper-line); border-radius: 8px;
  font-size: 18px; font-weight: 800; line-height: 1.6;
}
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: grid; place-items: center; width: 52px; height: 52px;
  background: var(--ink); color: var(--cyan); border-radius: 6px;
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 28px; font-weight: 800; line-height: 1;
}
.steps .sub { grid-column: 2; font-size: 15px; font-weight: 600; color: var(--text-muted); }

/* ---------- 5. 使う人 ---------- */
.people { display: grid; gap: 14px; }
.people article { padding: 20px; background: var(--card); border-left: 5px solid var(--amber); border-radius: 0 8px 8px 0; }
.people h3 { margin-bottom: 6px; }
.people p { color: var(--text-muted); line-height: 1.75; }

/* ---------- 6. 現場から ---------- */
.story { display: grid; gap: 32px; }
.story p { color: #d3e0e2; }
.story h3 { margin: 28px 0 8px; padding-top: 20px; border-top: 1px solid var(--ink-line); font-size: 16px; color: var(--cyan); letter-spacing: 0.06em; }
.story blockquote { margin: 0 0 12px; padding: 14px 16px; border-left: 4px solid var(--amber); background: var(--ink-2); color: #d3e0e2; }

/* ---------- 7. 料金 ---------- */
.plans { display: grid; gap: 14px; }
.plan { padding: 22px 20px; background: var(--card); border: 1px solid var(--paper-line); border-radius: 8px; }
.plan-beta { border: 3px solid var(--amber); }
.plan-name { font-weight: 800; line-height: 1.5; }
.plan-price { margin: 4px 0 8px; font-size: 20px; font-weight: 800; line-height: 1.3; }
.plan-price strong { margin-right: 2px; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 46px; letter-spacing: -0.01em; }
.plan-price small { margin-left: 6px; font-size: 15px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.plan-note { font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.notes { margin-top: 24px; }
.notes li { position: relative; padding: 6px 0 6px 20px; line-height: 1.75; }
.notes li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 2px; background: var(--teal); }

/* ---------- 8. よくある質問 ---------- */
.faq { border-top: 1px solid var(--paper-line); }
.faq details { border-bottom: 1px solid var(--paper-line); }
.faq summary {
  position: relative; display: block; cursor: pointer;
  padding: 18px 44px 18px 34px; font-weight: 800; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 2px; top: 16px; color: var(--teal); font-family: "Helvetica Neue", Arial, sans-serif; font-size: 20px; }
.faq summary::after {
  content: ""; position: absolute; right: 12px; top: 26px; width: 10px; height: 10px;
  border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); transform-origin: 70% 70%;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 8px 20px 34px; }
.paper a { color: var(--teal); font-weight: 600; }

/* ---------- 9. 最後の呼びかけ ---------- */
.closing { padding: 72px 0; text-align: center; background: radial-gradient(90% 80% at 50% 100%, #12202a 0%, var(--ink) 70%); border-top: 1px solid var(--ink-line); }
.closing .contact { margin-top: 28px; font-size: 15px; color: var(--on-ink-muted); }
.closing .contact a { color: var(--on-ink); font-weight: 700; }

/* ---------- フッター ---------- */
.site-footer { padding: 36px 0 44px; background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid var(--ink-line); font-size: 14px; }
.site-footer .logo { margin-bottom: 14px; font-size: 16px; }
.site-footer nav { display: grid; gap: 4px; margin-top: 10px; }
.site-footer nav a { display: inline-block; padding: 8px 0; }

/* ---------- 【】の箇所（公開前に埋める。埋めたら <span class="todo"> ごと書き換える） ---------- */
.todo { padding: 2px 4px; background: #ffe9b8; color: #5a3b00; outline: 2px dashed #c98500; font-weight: 700; }

/* ---------- 画面が広いとき（タブレット・パソコン） ---------- */
@media (min-width: 720px) {
  body { font-size: 18px; }
  section { padding: 96px 0; }
  .wrap { padding: 0 32px; }
  .site-header { padding: 0 24px 0 32px; }
  .actions { display: flex; flex-wrap: wrap; }
  .closing .actions { justify-content: center; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .people { grid-template-columns: repeat(3, 1fr); }
  .people article { border-left: 0; border-top: 5px solid var(--amber); border-radius: 0 0 8px 8px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
}

@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  h1 { font-size: 46px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; align-items: start; align-content: start; padding: 24px; }
  .steps li::before { grid-row: auto; margin-bottom: 14px; }
  .steps .sub { grid-column: 1; }
  .story { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 56px; }
}

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