/* astralzone.net /tools/ — 手書き1ファイル。外部フォント・外部CDNなし */

:root {
  /* ブランド */
  --navy-900: #0A101E;
  --navy-800: #121E36;
  --accent: #FF7A45;     /* 装飾専用（本文テキストには使わない） */
  --bg: #EFEAE0;
  --cta: #D2551F;        /* CTA・価格 */
  --cta-hover: #B8461A;

  /* 補助色 */
  --surface: #FBF9F4;
  --text: var(--navy-900);
  --muted: #4A5468;
  --line: #D6CDBA;

  --font: "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Meiryo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --container: 960px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0 0 1em; }

a { color: var(--navy-800); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--navy-900); outline-offset: 2px; }

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

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 10;
  background: var(--navy-900); color: var(--bg); padding: 8px 16px;
}
.skip-link:focus { top: 8px; outline-color: var(--bg); }

/* ---------- header / footer ---------- */
.site-header { background: var(--navy-900); color: var(--bg); }
.site-header a, .site-footer a { color: var(--bg); text-decoration: none; }
.site-header a:hover, .site-footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .cta :focus-visible { outline-color: var(--bg); }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; }
.brand__sub { margin-left: 0.4em; font-size: 0.8125rem; font-weight: 400; opacity: 0.85; }
.site-nav { display: flex; gap: 20px; font-size: 0.9375rem; }

.site-footer { background: var(--navy-800); color: var(--bg); margin-top: 64px; padding-block: 32px; font-size: 0.9375rem; }
.site-footer__inner { display: grid; gap: 8px; }
.site-footer__inner nav { display: flex; gap: 20px; }
.site-footer p { margin: 0; }
.site-footer__name { font-weight: 700; }
.site-footer__copy { opacity: 0.8; font-size: 0.8125rem; }

/* ---------- breadcrumb ---------- */
.breadcrumb { padding-block: 16px 8px; font-size: 0.875rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ---------- hero ---------- */
.hero { background: var(--navy-900); color: var(--bg); padding-block: 40px 44px; border-bottom: 4px solid var(--accent); }
.hero h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.hero__category { margin: 0 0 8px; font-size: 0.875rem; letter-spacing: 0.04em; color: var(--accent); font-weight: 700; }
.hero__tagline { margin: 12px 0 0; font-size: 1.125rem; }
.hero__traits { margin: 8px 0 0; opacity: 0.85; font-size: 0.9375rem; }
.hero--index { padding-block: 40px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; margin: 28px 0 0; }
.facts div { border-left: 3px solid var(--accent); padding-left: 12px; }
.facts dt { font-size: 0.8125rem; opacity: 0.8; }
.facts dd { margin: 0; font-weight: 700; }
.facts__price { color: var(--cta); font-size: 1.75rem; line-height: 1.3; }

/* ---------- summary（概要本文。300〜500字程度の読み物） ---------- */
.summary { padding-top: 40px; }
.summary p { max-width: 42em; line-height: 1.9; }
.summary p:last-child { margin-bottom: 0; }

/* ---------- sections ---------- */
.section { padding-top: 48px; }
.section h2 { font-size: 1.5rem; margin-bottom: 20px; padding-left: 12px; border-left: 5px solid var(--accent); }
.section h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.section p:last-child { margin-bottom: 0; }

/* 枚数に依存しない配置: 左寄せで折り返し、実寸より大きくは表示しない（縦長は760px、横長は960pxまで） */
.shots { display: flex; flex-wrap: wrap; gap: 24px; }
.shot { --cap: 760px; margin: 0; min-width: 0; flex: 0 1 var(--cap); max-width: min(var(--cap), var(--natural, var(--cap))); }
.shot--wide { --cap: 960px; }
.shot img { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.shot figcaption { margin-top: 6px; font-size: 0.875rem; color: var(--muted); }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.features p { margin: 0; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 4px 56px; min-height: 40px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--navy-900);
  display: grid; place-items: center; font-weight: 700; font-size: 1.125rem;
}
.steps p { margin: 0; color: var(--muted); }

.spec { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.spec div { display: grid; grid-template-columns: minmax(7em, 12em) 1fr; gap: 16px; padding: 12px 20px; }
.spec div + div { border-top: 1px solid var(--line); }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; }

/* ---------- CTA ---------- */
.cta { background: var(--navy-800); color: var(--bg); margin-top: 56px; padding-block: 40px 44px; text-align: center; border-top: 4px solid var(--accent); }
.cta h2 { font-size: 1.5rem; }
.cta__price { margin: 8px 0 20px; font-size: 2rem; font-weight: 700; color: var(--accent); }
.cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta__note { margin: 16px 0 0; font-size: 0.875rem; opacity: 0.85; }

/* CTA背景色(#D2551F)は白文字で約4.1:1。大きい太字（20px/700）で使うこと */
.btn {
  display: inline-block; min-width: 240px; padding: 14px 32px;
  background: var(--cta); color: #fff; border: 2px solid var(--cta); border-radius: var(--radius);
  font-size: 1.25rem; font-weight: 700; line-height: 1.4; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn--secondary { background: transparent; color: var(--bg); border-color: var(--bg); }
.btn--secondary:hover { background: var(--bg); color: var(--navy-900); border-color: var(--bg); }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; padding: 14px 20px; font-weight: 700; }
.faq details p { margin: 0; padding: 0 20px 16px; color: var(--muted); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.card p { margin: 0; }
.card__category { font-size: 0.8125rem; color: var(--muted); }
.card__title { font-size: 1.25rem; margin: 4px 0 8px; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* カード全体をクリック可能に */
.card { position: relative; }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.card__tagline { color: var(--muted); flex: 1; }
.card__price { margin-top: 12px; font-size: 1.5rem; font-weight: 700; color: var(--cta); }

/* ---------- related posts ---------- */
.post-list { margin: 0; padding-left: 1.4em; }
.post-list li + li { margin-top: 6px; }

@media (max-width: 480px) {
  .btn { min-width: 0; width: 100%; }
  .spec div { grid-template-columns: 1fr; gap: 0; }
}
