/* ============================================
   LP人間ドック｜福岡 — style.css
   Theme: 医療×エディトリアル / 白×ネイビー×血赤
   ============================================ */

:root {
  --bg: #f6f3ec;        /* クリーム白 */
  --bg-alt: #ffffff;
  --ink: #0e1a35;       /* ネイビー */
  --ink-2: #1a2a4a;
  --line: #d8d2c2;
  --accent: #c8332b;    /* 血赤（問診票の赤線） */
  --accent-2: #e8b94a;  /* 黄（注意） */
  --ok: #2f8f6a;
  --warn: #d97a2c;
  --bad: #c8332b;
  --muted: #6a6a6a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-feature-settings: "palt";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: 0.22s cubic-bezier(.25,.46,.45,.94); }
a:hover { color: var(--ink); }

.sm { font-size: 0.78em; }

em { font-style: normal; color: var(--accent); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============================================ NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 18px;
}
.brand-loc { color: var(--muted); font-weight: 500; font-size: 0.85em; }
.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav-cta:hover { background: var(--accent); color: #fff; }

/* ============================================ HERO */
.hero {
  position: relative;
  padding: 70px 24px 100px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 119px,
      rgba(14, 26, 53, 0.04) 119px,
      rgba(14, 26, 53, 0.04) 120px
    ),
    var(--bg);
}
.hero-bg-text {
  position: absolute;
  top: 12%;
  right: -3%;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(120px, 20vw, 280px);
  color: rgba(14, 26, 53, 0.045);
  letter-spacing: -0.04em;
  pointer-events: none;
  white-space: nowrap;
  font-weight: 400;
}
.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: 28px;
  padding: 8px 16px;
  background: rgba(200, 51, 43, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(200, 51, 43, 0.18);
}
.tag-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.hero-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}
.hero-title em {
  color: var(--accent);
  border-bottom: 6px solid var(--accent-2);
  padding: 0 4px;
}
.hero-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--ink-2);
  margin-bottom: 36px;
}
.hero-lead strong { color: var(--accent); font-weight: 700; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 18px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(200, 51, 43, 0.28);
  transition: 0.22s cubic-bezier(.25,.46,.45,.94);
}
.btn-primary:hover { background: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14,26,53,0.3); }
.btn-primary .arrow { transition: transform 0.3s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 18px 24px;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hero-meta .dot { color: var(--line); }

/* HERO chart */
.hero-right { position: relative; }
.chart-card {
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 28px 24px 24px;
  position: relative;
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-1.2deg);
  transition: 0.4s cubic-bezier(.25,.46,.45,.94);
}
.chart-card:hover { transform: rotate(0); box-shadow: 16px 16px 0 var(--accent); }
.chart-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.chart-row {
  display: grid;
  grid-template-columns: 100px 1fr 36px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px dotted rgba(14,26,53,0.1);
}
.chart-row:last-of-type { border-bottom: none; }
.row-name { color: var(--ink-2); font-weight: 500; }
.bar { height: 8px; background: rgba(14,26,53,0.06); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--ok); border-radius: 4px; transition: width 1.2s; }
.bar-fill.warn { background: var(--warn); }
.bar-fill.bad { background: var(--bad); }
.row-score { font-family: 'DM Serif Display', serif; font-size: 16px; color: var(--ink); text-align: right; }
.chart-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.total-label { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.total-grade {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  color: var(--accent);
  line-height: 1;
}
.total-note { font-size: 12px; color: var(--accent); margin-left: auto; }
.stamp {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 110px; height: 110px;
  border: 2.5px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.4;
  transform: rotate(-12deg);
  background: rgba(255,255,255,0.7);
}

/* ============================================ Section common */
.sect-head { margin-bottom: 56px; }
.sect-no {
  display: inline-block;
  font-family: 'DM Serif Display', serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
}
.sect-no.light { color: var(--accent-2); border-color: var(--accent-2); }
.sect-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.sect-title.light { color: #fff; }
.sect-lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
}

/* ============================================ Symptoms */
.symptoms { padding: 110px 24px; background: var(--bg-alt); }
.sym-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sym-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 36px 28px;
  position: relative;
  transition: 0.48s cubic-bezier(.25,.46,.45,.94);
}
.sym-card:nth-child(1) { transform: translateY(20px); }
.sym-card:nth-child(3) { transform: translateY(-12px); }
.sym-card:nth-child(5) { transform: translateY(8px); }
.sym-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 8px 8px 0 var(--ink); }
.sym-card.alt { background: #fff; border-color: var(--ink); }
.sym-card.final {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sym-card.final .sym-title { color: #fff; }
.sym-card.final p { color: rgba(255,255,255,0.78); }
.sym-icon { font-size: 32px; margin-bottom: 14px; }
.sym-no {
  font-family: 'DM Serif Display', serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 8px;
}
.sym-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 21px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.sym-card p { font-size: 14px; line-height: 1.85; color: var(--muted); }

/* ============================================ About */
.about {
  padding: 130px 24px;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(to right, var(--accent) 0 12px, transparent 12px 24px);
}
.about-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-lead {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.9;
  margin-bottom: 32px;
  color: #fff;
}
.about-body {
  font-size: 15px;
  line-height: 2.1;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.78);
}
.about-body strong { color: var(--accent-2); font-weight: 700; }
.about-quote {
  margin-top: 40px;
  padding: 28px 32px 28px 60px;
  border-left: 3px solid var(--accent-2);
  position: relative;
  background: rgba(255,255,255,0.04);
}
.quote-mark {
  position: absolute;
  left: 18px;
  top: 8px;
  font-family: 'DM Serif Display', serif;
  font-size: 56px;
  color: var(--accent-2);
  line-height: 1;
}
.about-quote p {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  letter-spacing: 0.06em;
}
.quote-author {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

/* ============================================ Items */
.items { padding: 130px 24px; background: var(--bg); }
.items-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--ink);
  border-left: 1.5px solid var(--ink);
}
.item {
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 28px 22px;
  background: #fff;
  position: relative;
  transition: 0.3s ease;
}
.item:hover { background: var(--ink); color: #fff; }
.item:hover .item-no { color: var(--accent-2); }
.item:hover p { color: rgba(255,255,255,0.7); }
.item-no {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.item h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
}
.item p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.items-foot {
  margin-top: 36px;
  padding: 24px;
  background: #fff;
  border-left: 4px solid var(--accent);
  font-size: 14px;
  line-height: 2;
  color: var(--ink-2);
}
.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 4px;
  margin-right: 12px;
}

/* ============================================ Pricing */
.pricing { padding: 130px 24px; background: #fff; }
.stairs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: end;
}
.step {
  background: var(--bg);
  border: 1.5px solid var(--ink);
  padding: 28px 20px 32px;
  position: relative;
  transition: 0.4s cubic-bezier(.25,.46,.45,.94);
  display: flex;
  flex-direction: column;
}
.step-0 { padding-top: 28px; min-height: 320px; }
.step-1 { padding-top: 36px; min-height: 360px; background: var(--ink); color: #fff; border-color: var(--ink); }
.step-2 { padding-top: 44px; min-height: 400px; }
.step-3 { padding-top: 52px; min-height: 440px; }
.step-4 { padding-top: 60px; min-height: 480px; background: var(--accent); color: #fff; border-color: var(--accent); }
.step:hover { transform: translateY(-6px); }
.step-1:hover { box-shadow: 8px 8px 0 var(--accent); }
.step-rank {
  font-family: 'DM Serif Display', serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 10px;
}
.step-1 .step-rank, .step-4 .step-rank { color: var(--accent-2); }
.step-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.4;
}
.step-price {
  font-family: 'DM Serif Display', serif;
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed currentColor;
}
.step-price .yen { font-size: 18px; opacity: 0.7; }
.step-price .num { font-size: 32px; line-height: 1; }
.step-price .from { font-size: 14px; opacity: 0.7; margin-left: 4px; }
.step-feat {
  list-style: none;
  margin-bottom: 22px;
  flex-grow: 1;
}
.step-feat li {
  font-size: 12.5px;
  padding: 6px 0 6px 18px;
  position: relative;
  line-height: 1.6;
  opacity: 0.85;
}
.step-feat li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.step-1 .step-feat li::before, .step-4 .step-feat li::before { color: var(--accent-2); }
.step-cta {
  display: inline-block;
  text-align: center;
  padding: 12px;
  background: transparent;
  border: 1.5px solid currentColor;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: 0.22s ease;
}
.step-cta:hover { background: currentColor; }
.step-0 .step-cta:hover { color: var(--bg); }
.step-1 .step-cta:hover, .step-4 .step-cta:hover { color: var(--ink); }
.step-2 .step-cta:hover, .step-3 .step-cta:hover { color: var(--bg); }
.step-badge {
  position: absolute;
  top: -14px;
  right: 12px;
  background: var(--accent-2);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}
.pricing-note {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ============================================ Flow */
.flow { padding: 110px 24px; background: var(--bg); }
.flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.flow-step {
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  min-height: 200px;
}
.flow-num {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  color: var(--accent);
  width: 60px; height: 60px;
  margin: -50px auto 12px;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}
.flow-step h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.flow-step .opt { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.flow-step p { font-size: 13px; line-height: 1.85; color: var(--muted); }
.flow-arrow {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--accent);
}

/* ============================================ Works */
.works { padding: 130px 24px; background: #fff; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  display: block;
  background: var(--bg);
  padding: 32px 28px;
  border: 1.5px solid var(--line);
  color: var(--ink);
  transition: 0.4s cubic-bezier(.25,.46,.45,.94);
  position: relative;
}
.work-card:hover { background: var(--ink); color: #fff; transform: translateY(-4px); border-color: var(--ink); }
.work-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.work-card:hover .work-meta { color: var(--accent-2); }
.work-card h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  margin-bottom: 12px;
}
.work-card p { font-size: 13.5px; line-height: 1.85; opacity: 0.85; margin-bottom: 18px; }
.work-link { font-size: 13px; font-weight: 700; color: var(--accent); }
.work-card:hover .work-link { color: var(--accent-2); }
.works-more {
  display: inline-block;
  margin-top: 36px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.works-more:hover { color: var(--accent); }

/* ============================================ FAQ */
.faq { padding: 110px 24px; background: var(--bg); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  padding: 0;
  transition: 0.3s ease;
}
.faq-list details[open] { border-color: var(--accent); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 28px 22px 56px;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  line-height: 1.6;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: 'Q';
  position: absolute;
  left: 24px;
  top: 22px;
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 24px;
  transition: transform 0.3s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 28px 24px 56px;
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}

/* ============================================ Apply */
.apply {
  padding: 130px 24px;
  background: var(--ink);
  color: #fff;
  position: relative;
}
.apply::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(to right, var(--accent-2) 0 12px, transparent 12px 24px);
}
.apply-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.apply-head .sect-no { display: inline-block; }
.apply-lead {
  font-size: 16px;
  line-height: 2.1;
  color: rgba(255,255,255,0.85);
  margin-top: 18px;
}
.apply-lead strong { color: var(--accent-2); }
.apply-frame {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid var(--accent-2);
  padding: 8px;
}
.apply-frame iframe { display: block; border: none; }
.apply-fallback {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.apply-fallback a { color: var(--accent-2); border-bottom: 1px solid var(--accent-2); }
.apply-fallback a:hover { color: #fff; border-color: #fff; }

/* ============================================ Final CTA */
.final-cta {
  padding: 140px 24px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fcta-eyebrow {
  font-family: 'DM Serif Display', serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 20px;
}
.fcta-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.4;
  margin-bottom: 28px;
}
.fcta-title em {
  color: var(--accent);
  border-bottom: 8px solid var(--accent-2);
  padding: 0 8px;
}
.fcta-lead {
  font-size: 15px;
  line-height: 2.1;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto 40px;
}
.fcta-btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 22px 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(14,26,53,0.25);
}
.fcta-btn:hover { background: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: 0 18px 36px rgba(200,51,43,0.35); }

/* ============================================ Footer */
.footer {
  padding: 70px 24px 40px;
  background: var(--ink);
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 13px; line-height: 1.9; margin-top: 14px; max-width: 380px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}
.footer-logo .brand-mark { border-color: var(--accent-2); color: var(--accent-2); }
.footer-logo .brand-loc { color: rgba(255,255,255,0.5); font-weight: 500; font-size: 0.85em; }
.footer-links h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.footer-links ul { list-style: none; }
.footer-links li { font-size: 13px; padding: 4px 0; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--accent-2); }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.footer-tag { color: var(--accent-2); font-family: 'Shippori Mincho', serif; }

/* ============================================ Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-right { max-width: 480px; margin: 0 auto; }
  .sym-grid { grid-template-columns: repeat(2, 1fr); }
  .sym-card { transform: none !important; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .items-grid { grid-template-columns: repeat(2, 1fr); }
  .stairs { grid-template-columns: repeat(2, 1fr); }
  .step { min-height: auto !important; padding-top: 32px !important; }
  .flow-grid { grid-template-columns: 1fr; gap: 32px; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .works-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .nav-cta { padding: 8px 14px; font-size: 12px; }
  .hero { padding: 50px 20px 80px; }
  .hero-title { font-size: 36px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .symptoms, .about, .items, .pricing, .flow, .works, .faq, .apply, .final-cta { padding-left: 20px; padding-right: 20px; }
  .symptoms, .flow, .faq { padding-top: 80px; padding-bottom: 80px; }
  .about, .items, .pricing, .works, .apply, .final-cta { padding-top: 90px; padding-bottom: 90px; }
  .sym-grid { grid-template-columns: 1fr; }
  .items-grid { grid-template-columns: 1fr; }
  .stairs { grid-template-columns: 1fr; }
  .footer-copy { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================================
   無料セルフチェック（PSI連携）
   ============================================ */
.check {
  padding: 110px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.check::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,26,53,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,26,53,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.check .container { position: relative; z-index: 1; }

.check-form {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 36px 32px 28px;
  box-shadow: 10px 10px 0 var(--ink);
  position: relative;
}
.check-form::before {
  content: "URL";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Serif Display', serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  padding: 4px 14px;
  border-radius: 2px;
}
.check-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  font-weight: 700;
  margin-bottom: 12px;
}
.check-input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.check-input-row input[type="url"] {
  flex: 1;
  min-width: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: 0.2s;
}
.check-input-row input[type="url"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,51,43,0.15);
}
.check-input-row input[type="url"]::placeholder {
  color: #a8a8a8;
}
.check-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.22s cubic-bezier(.25,.46,.45,.94);
  white-space: nowrap;
}
.check-btn:hover:not(:disabled) {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(14,26,53,0.28);
}
.check-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.check-btn.is-loading .check-btn-arrow {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.check-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.check-error {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(200,51,43,0.08);
  border-left: 3px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.7;
  border-radius: 2px;
}
.check-error.show { display: block; }

/* ローディング */
.check-loading {
  display: none;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 40px 32px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  text-align: center;
}
.check-loading.show {
  display: block;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.loading-ekg {
  max-width: 480px;
  margin: 0 auto 18px;
  height: 80px;
}
.loading-ekg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.loading-ekg svg polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: ekg 2.4s cubic-bezier(.65,.05,.36,1) infinite;
}
@keyframes ekg {
  0% { stroke-dashoffset: 1200; }
  60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1200; }
}
.loading-text {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.loading-text .dots span {
  display: inline-block;
  animation: dots 1.4s infinite;
}
.loading-text .dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-text .dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dots {
  0%, 20% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
  100% { opacity: 0.2; transform: translateY(0); }
}
.loading-sub {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: opacity 0.22s;
}

/* 結果 */
.check-result {
  display: none;
  max-width: 920px;
  margin: 50px auto 0;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 40px 36px 36px;
  box-shadow: 14px 14px 0 var(--accent);
  position: relative;
}
.check-result.show {
  display: block;
  animation: fadeIn 0.5s ease;
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 2px dashed var(--line);
  margin-bottom: 28px;
}
.result-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-label {
  font-family: 'DM Serif Display', serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
  align-self: flex-start;
}
.result-no {
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
}
.result-url {
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  color: var(--ink-2);
  word-break: break-all;
  max-width: 60%;
  text-align: right;
  letter-spacing: 0.02em;
}

.gauges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.gauge {
  text-align: center;
  padding: 14px 8px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  transition: 0.25s;
}
.gauge:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(14,26,53,0.1);
}
.gauge-svg-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 12px;
}
.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.gauge-track {
  fill: none;
  stroke: #ece7da;
  stroke-width: 9;
}
.gauge-bar {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(.25,.46,.45,.94);
}
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-score {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
}
.gauge-grade {
  font-family: 'DM Serif Display', serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
  margin-top: 2px;
}
.gauge-label-ja {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.gauge-label-en {
  font-family: 'DM Serif Display', serif;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.16em;
}

.hints {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 24px 26px;
  margin-bottom: 32px;
}
.hints-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.hint-block { margin-bottom: 18px; }
.hint-block:last-child { margin-bottom: 0; }
.hint-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--ink);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.hint-block ul {
  list-style: none;
  padding-left: 0;
}
.hint-block li {
  padding: 10px 0 10px 22px;
  position: relative;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.7;
}
.hint-block li:last-child { border-bottom: none; }
.hint-block li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  top: 10px;
  color: var(--accent);
  font-size: 13px;
}
.hint-title {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 3px;
}
.hint-desc {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.hint-empty {
  color: var(--ok);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 14px;
}

.result-cta {
  background: var(--ink);
  color: #fff;
  padding: 32px 28px;
  border-radius: 3px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.result-cta::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.15;
}
.result-cta-lead {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.result-cta-lead strong {
  color: var(--accent-2);
  font-weight: 700;
}
.result-cta-price {
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  margin-bottom: 22px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.result-cta-price em {
  font-style: normal;
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  color: var(--accent-2);
  margin: 0 4px;
}
.result-cta-btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  transition: 0.22s;
}
.result-cta-btn:hover {
  background: var(--accent-2);
  color: var(--ink);
  transform: translateY(-2px);
}
.result-cta-sub {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  position: relative;
  z-index: 1;
}
.result-cta-sub:hover { color: #fff; }

.result-redo {
  display: block;
  margin: 24px auto 0;
  padding: 10px 20px;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  border-radius: 3px;
  cursor: pointer;
  transition: 0.2s;
}
.result-redo:hover {
  border-color: var(--ink);
  color: var(--ink);
}

@media (max-width: 720px) {
  .check { padding: 80px 18px; }
  .check-form { padding: 28px 20px 22px; box-shadow: 6px 6px 0 var(--ink); }
  .check-input-row { flex-direction: column; }
  .check-btn { width: 100%; justify-content: center; padding: 14px 16px; }
  .check-result { padding: 28px 20px 24px; box-shadow: 8px 8px 0 var(--accent); }
  .result-header { flex-direction: column; }
  .result-url { max-width: 100%; text-align: left; font-size: 12px; }
  .gauges {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .gauge-svg-wrap { width: 96px; height: 96px; }
  .gauge-score { font-size: 28px; }
  .hints { padding: 18px 18px; }
  .result-cta { padding: 24px 18px; }
  .result-cta-price { font-size: 17px; }
  .result-cta-price em { font-size: 26px; }
  .loading-ekg { max-width: 320px; height: 60px; }
  .loading-text { font-size: 18px; }
}
