/* ============================================================
   Mimipo 不眠治療 記事型LP  style-sleep-article-v01.css
   Typography-first / CVR-first
   ============================================================ */

:root {
  /* color */
  --ink: #1d2430;
  --ink-2: #46505e;
  --mut: #8b95a3;
  --paper: #ffffff;
  --wash: #f6f8fa;
  --bd: #e3e8ee;
  --navy: #22456b;
  --navy-soft: #eef3f9;
  --green: #06c755;
  --green-deep: #05a648;
  --ok: #0d7d4d;
  --ok-wash: #f1faf5;
  --amber-bg: #fff7e0;
  --amber-bd: #f0c94f;
  --amber-ink: #9a6b00;
  --red: #d64545;
  --marker: #ffefb3;

  /* type */
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", -apple-system, sans-serif;

  /* layout */
  --measure: 680px;
  --pad: 20px;
  --header-h: 56px;
  --fixed-cta-h: 98px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt";
  padding-bottom: calc(var(--fixed-cta-h) + env(safe-area-inset-bottom));
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--navy);
}
ul,
ol {
  list-style: none;
}
table {
  border-collapse: collapse;
}

/* ---------- layout ---------- */
.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--pad);
}
section {
  padding: 40px 0 8px;
}
section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ============================================================
   Header（スクロールアップ時のみ表示）
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow:
    0 1px 0 var(--bd),
    0 6px 18px rgba(29, 36, 48, 0.06);
  transform: translateY(-110%);
  transition: transform 0.28s ease;
}
.site-header.is-visible {
  transform: translateY(0);
}
.site-header .inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo img {
  height: 24px;
  width: auto;
}
.header-spacer {
  flex: 1;
}
.header-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}
.menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 36, 48, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}
.drawer.is-open .drawer-overlay {
  opacity: 1;
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 84vw);
  background: #fff;
  padding: calc(var(--header-h) + 16px) 20px 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.drawer.is-open .drawer-panel {
  transform: translateX(0);
}
.drawer-nav a {
  display: block;
  padding: 11px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--wash);
}
.drawer-cta {
  margin-top: 18px;
}

/* ============================================================
   キャンペーンバナー
   ============================================================ */
.cpn {
  background: linear-gradient(135deg, #fff8e3, #ffedbe);
  border: 2px solid var(--amber-bd);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
  margin: 14px 0;
}
.cpn-top {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  margin: 0;
}
.cpn .l1 {
  font-size: 11px;
  font-weight: 900;
  color: var(--amber-ink);
  letter-spacing: 0.12em;
}
.cpn .l2 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
.cpn .l2 strong {
  color: var(--red);
  font-size: 21px;
}
.cpn .l3 {
  font-size: 10.5px;
  color: var(--amber-ink);
  line-height: 1.6;
  margin-top: 2px;
}

/* ============================================================
   FV
   ============================================================ */
.fv {
  padding-top: 10px;
}
.article-meta {
  font-size: 11.5px;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-meta .cat {
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 8px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(23px, 5.9vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin: 10px 0 12px;
}
.supervisor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.supervisor img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bd);
}
.supervisor p {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.supervisor b {
  color: var(--ink);
}
.hero-img {
  border-radius: 12px;
  overflow: hidden;
  margin: 14px 0;
}

/* 結論ボックス */
.answer {
  border: 2px solid var(--navy);
  border-radius: 14px;
  overflow: hidden;
  margin: 18px 0 14px;
  box-shadow: 0 8px 24px rgba(34, 69, 107, 0.1);
}
.answer .hd {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 6px 14px;
}
.answer .bd {
  padding: 14px 16px 16px;
}
.answer .bd .lead-line {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.75;
}
.answer .price-line {
  margin: 8px 0 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.answer .price-line strong {
  color: var(--ok);
  font-size: 20px;
  font-family: var(--serif);
}

/* 目次 */
.toc {
  border: 1px solid var(--bd);
  border-radius: 10px;
  margin: 14px 0 4px;
  font-size: 13px;
  overflow: hidden;
}
.toc summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 14px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--wash);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary::after {
  content: "＋";
  color: var(--mut);
  font-weight: 400;
}
.toc[open] summary::after {
  content: "－";
}
.toc ol {
  padding: 6px 14px 12px;
}
.toc ol a {
  display: block;
  padding: 7px 2px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--wash);
}

/* ============================================================
   記事本文
   ============================================================ */
h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}
h2 .chap {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.18em;
  margin-bottom: 4px;
}
h2 .drugs {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--mut);
  letter-spacing: 0.02em;
  margin-top: 4px;
}
h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin: 22px 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--navy);
  line-height: 1.5;
}
.article p {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.article p b,
.article p strong {
  color: var(--ink);
}
mark {
  background: linear-gradient(transparent 62%, var(--marker) 62%);
  color: inherit;
  font-weight: 800;
}
.chapter-img {
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 16px;
}

/* POINT */
.point {
  background: var(--ok-wash);
  border: 1px solid #cbe5d4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
  margin: 16px 0;
}
.point::before {
  content: "POINT";
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--ok);
  margin-bottom: 2px;
}

/* tables */
.tbl-wrap {
  border: 1px solid var(--bd);
  border-radius: 10px;
  overflow: hidden;
  margin: 14px 0;
}
table.tbl {
  width: 100%;
  font-size: 12px;
  line-height: 1.55;
}
.tbl th,
.tbl td {
  border: 1px solid var(--bd);
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
}
.tbl thead th {
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 800;
}
.tbl td.l,
.tbl th.l {
  text-align: left;
}
.tbl tbody tr:nth-child(even) td {
  background: #fbfcfd;
}
.tbl .em {
  font-weight: 800;
  color: var(--ink);
}
.tbl-note {
  font-size: 11px;
  color: var(--mut);
  line-height: 1.6;
  margin: -6px 0 14px;
}

/* 料金表 */
.tbl .price {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.tbl .price small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--mut);
}

/* steps */
.steps {
  margin: 14px 0;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--wash);
}
.step .n {
  width: 32px;
  height: 32px;
  flex: none;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
}
.step .tx b {
  font-size: 15px;
  display: block;
  line-height: 1.5;
}
.step .tx small {
  font-size: 12px;
  color: var(--mut);
}
.step .tm {
  margin-left: auto;
  flex: none;
  background: var(--marker);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 9px;
}

/* badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}
.badges.center {
  justify-content: center;
}
.badge {
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 12px;
  background: #fff;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.badge.fill {
  background: var(--navy);
  color: #fff;
}

/* ============================================================
   CTA
   ============================================================ */
.btn-line {
  display: block;
  position: relative;
  background: linear-gradient(180deg, #10d463, #06c755 55%);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 900;
  font-size: 16.5px;
  line-height: 1.4;
  border-radius: 999px;
  padding: 15px 44px 13px;
  box-shadow:
    0 4px 0 var(--green-deep),
    0 10px 22px rgba(6, 199, 85, 0.32);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.btn-line small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.95;
}
.btn-line::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}
.btn-line:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 var(--green-deep),
    0 4px 10px rgba(6, 199, 85, 0.3);
}
.btn-line:focus-visible {
  outline: 3px solid #22456b;
  outline-offset: 3px;
}

.cta-block {
  margin: 20px 0 26px;
}
.cta-box {
  border: 2px solid var(--green);
  background: #f7fffa;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin: 20px 0 26px;
}
.cta-box .t {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.cta-note {
  text-align: center;
  font-size: 11px;
  color: var(--mut);
  margin-top: 8px;
}
.link-sub {
  display: block;
  text-align: center;
  font-size: 12.5px;
  color: var(--mut);
  margin-top: 12px;
}

/* 追従CTA（常時表示） */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--bd);
  padding: 8px var(--pad) calc(8px + env(safe-area-inset-bottom));
}
.fixed-cta .inner {
  max-width: var(--measure);
  margin: 0 auto;
}
.fixed-cta .btn-line {
  font-size: 16.5px;
  padding: 17px 44px 15px;
  box-shadow:
    0 3px 0 var(--green-deep),
    0 8px 18px rgba(6, 199, 85, 0.3);
}
.fixed-cta .mini {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 5px;
}
.fixed-cta .mini span::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 900;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  border: 1px solid var(--bd);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 40px 13px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  position: relative;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: "Q";
  flex: none;
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  margin-top: 1px;
}
.faq-item summary::after {
  content: "＋";
  position: absolute;
  right: 14px;
  top: 13px;
  color: var(--mut);
}
.faq-item[open] summary::after {
  content: "－";
}
.faq-item .a {
  padding: 0 14px 14px 48px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.8;
}
.faq-item .a b {
  color: var(--ok);
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  margin-top: 40px;
  background: var(--wash);
  border-top: 1px solid var(--bd);
  padding: 28px 0 36px;
}
.site-footer h4 {
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}
.legal p {
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 8px;
}
.legal p b {
  color: var(--ink);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 18px 0 10px;
}
.footer-links a {
  font-size: 11.5px;
  color: var(--ink-2);
}
.copyright {
  font-size: 10.5px;
  color: var(--mut);
}

/* ============================================================
   misc
   ============================================================ */
.micro {
  font-size: 11px;
  color: var(--mut);
  line-height: 1.7;
}
.mt-0 {
  margin-top: 0;
}
@media (min-width: 720px) {
  section {
    padding: 52px 0 10px;
  }
  .article p {
    font-size: 15.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .site-header,
  .drawer-panel,
  .btn-line {
    transition: none;
  }
}

/* 料金表タグ */
.tag {
  display: inline-block;
  background: #fdece9;
  color: #c4462e;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: 1px;
  white-space: nowrap;
}

/* ---- v3差分：CPバナー画像 / POINT医師アイコン / 結論CP行 ---- */
.cpn-img {
  display: block;
  margin: 14px 0;
  border-radius: 12px;
  overflow: hidden;
}
.cpn-img img {
  width: 100%;
}
.cpn-img-top {
  margin: 0 auto;
  max-width: var(--measure);
  border-radius: 0;
}

.answer .cp-line {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  margin: 0 0 8px;
}

.point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.point::before {
  content: none;
}
.point .dr {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  margin-top: 2px;
}
.point .tx {
  display: block;
}
.point .tx::before {
  content: "POINT";
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--ok);
  margin-bottom: 2px;
}

/* ---- CTA定期バウンド ---- */
@keyframes cta-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  75% {
    transform: scale(1);
  }
  81% {
    transform: scale(1.05);
  }
  87% {
    transform: scale(0.985);
  }
  93% {
    transform: scale(1.03);
  }
}
.btn-line {
  animation: cta-pulse 3.2s ease-in-out infinite;
  will-change: transform;
}
.btn-line:active {
  animation: none;
}
.header-line-btn {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .btn-line {
    animation: none;
  }
}
