:root {
  --brand: #c95029;
  --brand-dark: #531b09;
  --cream: #f1e8d7;
  --cream-soft: #faf7ef;
  --gold: #dbb82e;
  --blue: #1f5489;
  --ink: #333333;
  --muted: #6b625a;
  --line: #ded7cc;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

/* 追従ヘッダー分だけアンカー位置を下げ、ジャンプ先の見出しがヘッダー裏に隠れないようにする */
html {
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

code {
  border: 1px solid #e7ded1;
  border-radius: 4px;
  background: #fffaf2;
  padding: 0.1em 0.35em;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(241, 232, 215, 0.96);
  border-bottom: 1px solid rgba(201, 80, 41, 0.18);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img {
  width: 150px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
}

.nav a {
  border-radius: 999px;
  padding: 8px 12px;
}

.nav a:hover {
  background: rgba(201, 80, 41, 0.12);
  color: var(--brand-dark);
}

/* ハンバーガーボタン（モバイル・タブレット用。既定＝非表示、JS有効時に幅の狭い画面でのみ表示） */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 80, 41, 0.35);
  border-radius: 10px;
  background: var(--white);
  color: var(--brand);
  padding: 0;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    transition: none;
  }
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

/* 開いているときは×印に変形 */
.site-header.is-open .nav-toggle__bars {
  background: transparent;
}

.site-header.is-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
}

.hero__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 58px;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--brand);
  font-size: 3.2rem;
  line-height: 1.25;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.1rem;
  line-height: 1.35;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  line-height: 1.45;
}

.lead {
  color: #51483f;
  font-size: 1.08rem;
}

.hero-problem {
  margin-bottom: 16px;
  border-left: 5px solid var(--brand);
  background: #fff7ea;
  padding: 14px 16px;
  color: var(--brand-dark);
  font-weight: 800;
  line-height: 1.7;
}

.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.audience span {
  border: 1px solid rgba(201, 80, 41, 0.24);
  border-radius: 999px;
  background: var(--white);
  padding: 6px 11px;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  line-height: 1.2;
}

.button--primary {
  background: var(--gold);
  color: var(--brand-dark);
}

.button--primary:hover {
  background: var(--brand);
}

.button--ghost {
  border: 1px solid rgba(201, 80, 41, 0.35);
  background: var(--white);
  color: var(--brand);
}

.button--ghost:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.hero__visual {
  margin: 0;
}

.hero__visual img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(66, 42, 28, 0.16);
}

.hero__visual figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.trust-strip {
  background: var(--blue);
  color: var(--white);
}

.trust-strip__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px 0;
}

.trust-strip span {
  display: block;
  color: #d8e4ef;
  font-size: 0.86rem;
}

.trust-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.45;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.section--soft {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100% - 1120px) / 2));
  padding-left: max(16px, calc((100% - 1120px) / 2));
  background: var(--cream-soft);
}

.section--blue {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100% - 1120px) / 2));
  padding-left: max(16px, calc((100% - 1120px) / 2));
  background: #eef5fb;
}

.section--terms {
  border-top: 1px solid var(--line);
}

.section__head {
  max-width: 760px;
}

.section__head p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 34px;
  align-items: start;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li,
.note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px 18px;
}

.check-list li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.feature-grid,
.policy-grid,
.mode-grid,
.terms-grid,
.pain-grid,
.outcome-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.policy-grid,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature,
.policy-grid article,
.mode-grid article,
.terms-grid article,
.pain-grid article,
.outcome-grid article,
.faq-grid article,
.support-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
}

.pain-grid article {
  border-left: 5px solid var(--brand);
}

.outcome-grid article {
  background: #fffdf8;
}

.outcome-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #f1af99;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.feature__num {
  display: block;
  margin-bottom: 10px;
  color: #f1af99;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.feature p,
.policy-grid p,
.mode-grid p,
.terms-grid p,
.pain-grid p,
.outcome-grid p,
.faq-grid p,
.support-box p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.mid-cta {
  margin-top: 28px;
  border: 1px solid rgba(201, 80, 41, 0.22);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.mid-cta h3 {
  margin-bottom: 6px;
  color: var(--brand);
}

.mid-cta p {
  margin-bottom: 0;
  color: var(--muted);
}

.policy-grid ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.95rem;
}

.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.flow li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
}

.flow span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
}

.flow p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.comparison > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.comparison > div:first-child {
  background: #fffaf2;
}

.comparison ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.comparison li + li {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  width: 220px;
  background: #fffaf2;
  color: var(--brand);
}

.support-box {
  background: #fffaf2;
}

.support-box__tel {
  margin-top: 18px;
  color: var(--brand);
  font-size: 1.28rem;
  font-weight: 800;
}

.cta {
  background: var(--brand);
  color: var(--white);
}

.cta__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta h2,
.cta p {
  margin-bottom: 0;
}

.cta p {
  color: #ffe6d8;
}

.footer {
  background: var(--cream);
  color: var(--brand);
}

.footer__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.footer p {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-content: start;
  justify-content: flex-end;
  font-weight: 700;
}

.footer__links a:hover {
  color: var(--brand-dark);
}

.copyright {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(201, 80, 41, 0.24);
  padding: 14px 0 20px;
  text-align: center;
}

/* ヘッダー: 横並びナビが1行に収まらなくなる幅（実測 約980px）でハンバーガーへ切り替える。
   ヒーロー等のレイアウト折返しは 900px のままで別管理する。 */
@media (max-width: 980px) {
  .site-header__inner {
    min-height: 0;
    padding: 12px 0;
    flex-wrap: wrap;
    align-items: center;
  }

  /* JS有効時のみハンバーガーを表示し、ナビを折りたたむ（無効時はナビをそのまま表示） */
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(201, 80, 41, 0.18);
  }

  .js .site-header.is-open .nav {
    display: flex;
    /* 画面高が低いとき（横向きスマホ等）はメニュー内をスクロールできるようにする */
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav a {
    padding: 11px 14px;
  }

  .nav .nav-download {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .hero__inner,
  .split,
  .cta__inner,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    padding-top: 48px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .trust-strip__inner,
  .feature-grid,
  .policy-grid,
  .mode-grid,
  .terms-grid,
  .pain-grid,
  .outcome-grid,
  .faq-grid,
  .comparison,
  .flow {
    grid-template-columns: 1fr;
  }

  .mid-cta {
    grid-template-columns: 1fr;
  }

  .footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .section,
  .section--soft,
  .section--blue {
    padding-top: 54px;
    padding-bottom: 54px;
  }
}

/* ============ 画面紹介 ( screens ) ============ */
.screen-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-top: 44px;
}

/* screens の子は 1 番目が section__head のため、3・5 番目の子 ( 機器一覧・TOP20 )
   だけ画像を右に寄せると、画像の左右が自然に交互になる */
.screen-row:nth-child(odd) .screen-media {
  order: 2;
}

.screen-media {
  margin: 0;
}

.screen-media img,
.screen-media video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(66, 42, 28, 0.15);
}

.screen-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.screen-text h3 {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 1.3rem;
}

.screen-text > p {
  margin-bottom: 14px;
  color: var(--muted);
}

/* ============ ダウンロード ============ */
.download-card {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid rgba(201, 80, 41, 0.24);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(66, 42, 28, 0.12);
  padding: 34px 28px;
  text-align: center;
}

.badge-win,
.badge-free {
  display: inline-block;
  margin: 0 0 12px;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 800;
}

.badge-win {
  background: #eef5fb;
  color: var(--blue);
}

.badge-free {
  background: #e8f5ea;
  color: #1e7a3d;
}

.download-caution {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
  text-align: left;
}

.download-card h3 {
  margin-bottom: 20px;
  font-size: 1.35rem;
}

.button--download {
  min-height: 56px;
  padding: 15px 32px;
  font-size: 1.05rem;
}

.download-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.download-note {
  margin: 10px 0 0;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
}

/* ナビの「ダウンロード」を強調 */
.nav .nav-download {
  background: var(--gold);
  color: var(--brand-dark);
}

.nav .nav-download:hover {
  background: var(--brand);
  color: var(--white);
}

@media (max-width: 900px) {
  .screen-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 34px;
  }

  .screen-row:nth-child(odd) .screen-media {
    order: 0;
  }
}

/* ============ 価格表 ============ */
.price-table-wrap {
  max-width: 640px;
  margin: 28px auto 0;
}

.price-title {
  margin-bottom: 6px;
  text-align: center;
  font-size: 1.15rem;
}

.price-note {
  margin-bottom: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-table {
  min-width: 0;
}

.price-table th,
.price-table td {
  text-align: center;
}

.price-table th {
  width: auto;
}

.price-table td strong {
  color: #1e7a3d;
  font-size: 1.05rem;
}

.price-forecast {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

/* ============ 操作動画マニュアル ============ */
.screen-note {
  margin-top: 12px;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.video-card {
  margin: 0;
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(66, 42, 28, 0.14);
}

.video-card figcaption {
  margin-top: 10px;
  color: var(--brand-dark);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 700px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ ダウンロード前 LINE誘導モーダル ============ */
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dl-modal[hidden] {
  display: none;
}

.dl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(51, 51, 51, 0.55);
}

.dl-modal__panel {
  position: relative;
  max-width: 480px;
  width: 100%;
  border-radius: 16px;
  background: var(--white);
  padding: 28px 24px 24px;
  box-shadow: 0 18px 48px rgba(83, 27, 9, 0.28);
  outline: none;
}

/* キーボード操作時のフォーカスは可視化する（outline除去はJSフォーカス用） */
.dl-modal__panel :focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.dl-modal__panel h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 1.2rem;
}

.dl-modal__panel p {
  margin: 0 0 18px;
  font-size: 0.94rem;
  line-height: 1.8;
  word-break: auto-phrase;
}

.dl-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
}

.dl-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.button--line {
  background: #06c755;
  color: var(--white);
}

.button--line:hover {
  background: #05a847;
  color: var(--white);
}

.dl-modal__skip {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: underline;
}

body.dl-modal-open {
  overflow: hidden;
}
