/*
Theme Name: WP守る
Theme URI: https://wp-mamoru.com/
Description: WordPress 保守・安全診断サービス「WP守る」の LP・コラム用テーマ。コンセプト「点検盤」：機械色の盤面に白い点検票を下げる。見出し（h1・h2）は Noto Serif JP、ほかは Noto Sans JP。
Author: WP守る
Version: 3.1.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: wp-mamoru
*/

/* ==========================================================
   状態色（問題なし／注意／危険）は点検結果の意味にだけ使う
   ========================================================== */

:root {
  --panel: #a9beb6;        /* 機械色（盤面） */
  --panel-deep: #91a89f;
  --panel-light: #c3d3cc;
  --seam-dark: rgba(16, 36, 28, 0.16);
  --seam-light: rgba(255, 255, 255, 0.32);
  --tag: #fafbf7;          /* 点検票 */
  --tag-tint: #edf2ef;
  --ink: #10241c;
  --ink-soft: #2c4239;     /* 盤面上の補助テキスト */
  --ink-mute: #4a5e55;     /* 点検票上の補助テキスト */
  --line: rgba(16, 36, 28, 0.13);
  --line-strong: rgba(16, 36, 28, 0.3);
  --field: #dce5dd;
  --pass: #1e9e5a;
  --pass-text: #137042;
  --warn: #e0a526;
  --fail: #d2412f;
  --fail-deep: #a82e1f;
  --hazard: #f5c400;
  --lamp-green: #45e68a;
  --lamp-red: #ff5d47;

  --font-display: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;  /* h1・h2 だけ */
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;  /* 小さい文字はゴシック */
  --font-number: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-label: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --container: 1200px;
  --gutter: 32px;
  --header-height: 72px;
  --section-space: 120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-tag: 0 2px 0 var(--panel-deep), 0 22px 32px -22px rgba(16, 36, 28, 0.55);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  /* 盤面のヘアライン仕上げ */
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px),
    var(--panel);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1, "lnum" 1;
  font-variant-numeric: lining-nums;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
/* 日本語を文節で折り返す（対応ブラウザのみ） */
h1, h2, h3, h4, p, li, dt, dd, th, td, span { word-break: auto-phrase; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.only-narrow { display: none; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--tag);
  text-decoration: none;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- ボタン（点検開始スイッチ） ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--tag);
  box-shadow: 0 3px 0 #000, 0 10px 18px -10px rgba(0, 0, 0, 0.6);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), background-color 0.2s var(--ease);
}
.button:hover { background: #1d3a2f; }
.button:active { transform: translateY(3px); box-shadow: 0 0 0 #000, 0 4px 8px -6px rgba(0, 0, 0, 0.6); }
.button-small { min-height: 44px; padding: 0 18px; font-size: 14px; gap: 10px; }
.button-large { min-height: 64px; padding: 0 34px; font-size: 17px; }

.lamp {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lamp-green);
  box-shadow: 0 0 0 3px rgba(69, 230, 138, 0.18), 0 0 10px rgba(69, 230, 138, 0.7);
  transition: box-shadow 0.2s var(--ease);
}
.button:hover .lamp { box-shadow: 0 0 0 4px rgba(69, 230, 138, 0.28), 0 0 16px rgba(69, 230, 138, 1); }
.lamp-red { background: var(--lamp-red); box-shadow: 0 0 0 3px rgba(255, 93, 71, 0.2), 0 0 10px rgba(255, 93, 71, 0.8); }
.button:hover .lamp-red { box-shadow: 0 0 0 4px rgba(255, 93, 71, 0.3), 0 0 16px rgba(255, 93, 71, 1); }

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  white-space: nowrap;
}
.text-link:hover { color: var(--pass-text); }

/* ==========================================================
   ヘッダー
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(169, 190, 182, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--seam-dark), 0 2px 0 var(--seam-light); }

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-height);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-logo { display: block; flex-shrink: 0; }
.site-logo-image { width: 172px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav-list { display: flex; gap: 24px; }
.site-nav-list a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
  transition: background-size 0.25s var(--ease);
}
.site-nav-list a:hover { background-size: 100% 2px; }
.site-nav-list .site-nav-emergency { color: var(--fail-deep); }
.nav-toggle { display: none; }

/* ==========================================================
   ヒーロー
   ========================================================== */
.hero { padding: 56px 0 120px; overflow-x: clip; }

.hero-question {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-soft);
}
.hero-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 6vw, 86px);
  line-height: 1.22;
  letter-spacing: 0.01em;
}
.hero-title-line { display: block; }

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  margin-top: 64px;
}

.hero-side { padding-top: 8px; max-width: 520px; }
.hero-lead { font-size: 18px; line-height: 2; }
.hero-form {
  display: grid;
  gap: 12px;
  margin-top: 40px;
  padding: 28px;
  background: var(--panel-light);
  border-radius: 14px;
  box-shadow: inset 0 2px 0 var(--seam-light), inset 0 -2px 0 var(--seam-dark);
}
.hero-form-label { font-size: 14px; font-weight: 700; }
.hero-form input {
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--tag);
  font-family: var(--font-number);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: inset 0 3px 0 rgba(16, 36, 28, 0.08);
}
.hero-form input:focus { outline: none; box-shadow: inset 0 3px 0 rgba(16, 36, 28, 0.08), 0 0 0 4px rgba(30, 158, 90, 0.35); }
.hero-form input::placeholder { color: #85958d; }
.hero-form .button { width: 100%; }
.hero-note { font-size: 13px; color: var(--ink-soft); }

/* ---------- 点検ボード ---------- */
.board { position: relative; isolation: isolate; width: 100%; }

.board-sheet {
  position: relative;
  padding: 30px 30px 28px;
  background: var(--tag);
  border-radius: 12px;
  box-shadow: var(--shadow-tag);
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.board-target { display: grid; line-height: 1.4; min-width: 0; }
.board-target-label { font-size: 12px; color: var(--ink-mute); }
.board-domain {
  font-family: var(--font-number);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tag-tint);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  transition: opacity 0.2s var(--ease);
}
.board-status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pass);
}
.board:not(.is-scanning) .board-status { opacity: 0; }
.board.is-scanning .board-status::before {
  background: var(--warn);
  animation: pulse 0.9s ease-in-out infinite;
}

/* 検印 */
.board-stamp {
  position: absolute;
  top: -30px; right: -26px;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  width: 108px; height: 108px;
  border: 3px solid var(--fail);
  border-radius: 50%;
  color: var(--fail);
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.board-stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px solid var(--fail);
  border-radius: 50%;
}
.board-stamp-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 25px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.board-stamp-date {
  padding-top: 5px;
  border-top: 1.5px solid var(--fail);
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.board.is-scanning .board-stamp { opacity: 0; }
.board.is-stamped .board-stamp { animation: stamp 0.42s cubic-bezier(0.3, 0.6, 0.35, 1.2) both; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-22deg) scale(1.9); }
  55% { opacity: 1; transform: rotate(-14deg) scale(0.92); }
  100% { opacity: 1; transform: rotate(-14deg) scale(1); }
}
.board.is-stamped .board-sheet { animation: thump 0.42s ease-out both; }
@keyframes thump {
  55% { transform: translateY(0); }
  65% { transform: translateY(2px); }
  100% { transform: none; }
}

.board-groups { display: grid; gap: 14px; padding: 22px 0 6px; }
.board-group {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
}
.board-group-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.board-group-name span { display: block; font-size: 11px; font-weight: 400; color: var(--ink-mute); }

.board-cells {
  --cell: 40px;
  display: grid;
  grid-template-columns: repeat(7, var(--cell));
  gap: 6px;
}
.board-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--field);
  cursor: default;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.2s;
}
.board-cell[data-state="pass"] { background: var(--pass); }
.board-cell[data-state="warn"] { background: var(--warn); }
.board-cell[data-state="fail"] { background: var(--fail); }
.board-cell.is-revealed { animation: reveal 0.32s var(--ease); }
@keyframes reveal {
  from { transform: scale(0.55); }
  to { transform: scale(1); }
}
.board-cell.is-checking,
.board-cell:hover { box-shadow: 0 0 0 2px var(--tag), 0 0 0 4px var(--ink); }
.board-cell:hover { transform: scale(1.1); }

.board-readout {
  min-height: 1.6em;
  margin: 10px 0 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}
.board-readout b { color: var(--ink); }
.board-readout .is-pass { color: var(--pass-text); }
.board-readout .is-warn { color: #8a6000; }
.board-readout .is-fail { color: var(--fail-deep); }

.board-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  transition: opacity 0.4s var(--ease);
}
.board.is-scanning .board-result { opacity: 0.25; }
.board-score { font-family: var(--font-number); line-height: 0.85; }
.board-score-number { font-size: 84px; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.board-score-unit { font-size: 22px; font-weight: 600; color: var(--ink-mute); margin-left: 2px; }
.board-fixes-title { font-size: 12px; font-weight: 700; color: var(--ink-mute); line-height: 1.6; }
.board-fixes-list { counter-reset: fix; margin-top: 4px; }
.board-fixes-list li {
  counter-increment: fix;
  display: flex;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}
.board-fixes-list li::before {
  content: counter(fix);
  flex-shrink: 0;
  font-family: var(--font-number);
  font-size: 16px;
  color: var(--fail-deep);
}

.board-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 18px;
  padding-left: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}
.board-legend { display: inline-flex; align-items: center; gap: 6px; }
.board-legend i { width: 10px; height: 10px; border-radius: 2px; }
.board-legend i[data-state="pass"] { background: var(--pass); }
.board-legend i[data-state="warn"] { background: var(--warn); }
.board-legend i[data-state="fail"] { background: var(--fail); }
.board-caption-note { margin-left: auto; }

/* ==========================================================
   セクション共通（盤面の継ぎ目で区切る）
   ========================================================== */
.section { padding: var(--section-space) 0; }
.section,
.emergency-band,
.site-footer { box-shadow: inset 0 1px 0 var(--seam-dark), inset 0 2px 0 var(--seam-light); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.3vw, 42px);
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.section-lead { max-width: 40em; margin-top: 20px; color: var(--ink-soft); }
.section-head-center .section-lead { margin-inline: auto; }

/* 点検票の共通 */
.strip,
.sheet,
.card,
.ticket,
.slip,
.faq-card,
.tag {
  background: var(--tag);
  border-radius: 12px;
  box-shadow: var(--shadow-tag);
}

/* ==========================================================
   課題：放置のタイムライン
   ========================================================== */
.strip { padding: 44px 48px 52px; }
.strip-title { margin-bottom: 36px; font-size: 16px; font-weight: 700; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr);
  gap: 40px;
  padding-top: 44px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 9px; left: 0; right: 0;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pass) 0%, var(--warn) 45%, var(--fail) 80%);
}
.timeline-step { position: relative; }
.timeline-step::before {
  content: "";
  position: absolute;
  top: -44px; left: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--tag);
  border: 4px solid var(--pass);
}
.timeline-step[data-level="2"]::before { border-color: #a7a63a; }
.timeline-step[data-level="3"]::before { border-color: #e07a2a; }
.timeline-step[data-level="4"]::before { border-color: var(--fail); background: var(--fail); }
.timeline-when { font-size: 14px; font-weight: 700; color: var(--ink-mute); }
.timeline-event { margin: 6px 0 12px; font-size: 19px; font-weight: 700; line-height: 1.55; }
.timeline-text { font-size: 14px; line-height: 1.85; color: var(--ink-mute); }

.alert-card {
  margin: 10px 0 16px;
  padding: 18px 20px;
  background: #fbefec;
  border-left: 4px solid var(--fail);
  border-radius: 4px;
}
.alert-card-from { font-size: 12px; font-weight: 700; color: var(--fail-deep); }
.alert-card-message { margin-top: 6px; font-size: 16px; line-height: 1.75; }
.alert-card-message strong { color: var(--fail-deep); }

/* ==========================================================
   無料点検：吊り下げた点検票
   ========================================================== */
.tags {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 64px;
}
.tags::before {
  /* 票を掛けるバー */
  content: "";
  position: absolute;
  top: 0; left: -12px; right: -12px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(180deg, #d4ddd9 0%, var(--panel-deep) 100%);
  box-shadow: 0 3px 0 var(--seam-dark), 0 8px 12px -6px rgba(16, 36, 28, 0.4);
}
.tag {
  position: relative;
  padding: 64px 30px 32px;
  transform-origin: 50% -54px;
  transition: transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tag:nth-child(1) { transform: rotate(-1.4deg); }
.tag:nth-child(2) { transform: rotate(0.9deg); }
.tag:nth-child(3) { transform: rotate(-0.5deg); }
.tag:hover { transform: rotate(0deg); }
.tag::before {
  /* ひも */
  content: "";
  position: absolute;
  top: -58px; left: 50%;
  width: 2px; height: 86px;
  margin-left: -1px;
  background: var(--ink-soft);
  border-radius: 1px;
}
.tag::after {
  /* はと目 */
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  width: 20px; height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--panel);
  border: 4px solid #c9d1cc;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.3);
}
.tag-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
}
.tag-title span { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--ink-mute); }
.tag-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  line-height: 1.6;
}
.tag-list li::before {
  /* 点検ボードの1マスと同じ形 */
  content: "";
  flex-shrink: 0;
  width: 12px; height: 12px;
  margin-top: 0.42em;
  background: var(--field);
  border-radius: 3px;
}

.diagnosis-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 64px;
}
.diagnosis-action-text { font-size: 18px; font-weight: 700; }

/* ==========================================================
   保守内容：月のマスに穴を開ける作業票
   ========================================================== */
.card { --label: 360px; padding: 40px 44px 36px; }
.card-head,
.card-row {
  display: grid;
  grid-template-columns: var(--label) minmax(0, 1fr);
  column-gap: 48px;
}
.card-head { align-items: end; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.5; }

.card-axis,
.card-track {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  column-gap: 3px;
}
.card-axis li {
  grid-column: var(--day);
  justify-self: center;
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mute);
}

.card-row { padding: 26px 0; border-bottom: 1px solid var(--line); align-items: center; }
.card-label { grid-row: span 2; }
.card-row-title { font-size: 19px; font-weight: 700; line-height: 1.5; }
.card-row-text { margin-top: 6px; font-size: 14px; line-height: 1.85; color: var(--ink-mute); }
.card-track { align-self: end; }
.card-note {
  align-self: start;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mute);
}
.card-note-alert { color: var(--fail-deep); }

/* マス（未記入は輪郭だけ、作業日は穴を開ける） */
.hole {
  justify-self: center;
  width: 100%;
  max-width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
}
.hole.is-on { border-color: transparent; box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.35); }
[data-kind="setup"] .hole.is-on,
[data-kind="update"] .hole.is-on { background: var(--ink); }
[data-kind="backup"] .hole.is-on { background: var(--tag); border: 5px solid var(--ink); box-shadow: none; }
[data-kind="watch"] .hole.is-on { background: var(--pass); }
[data-kind="watch"] .hole.is-alert,
[data-kind="fix"] .hole.is-on { background: var(--fail); }

.card-foot {
  padding-top: 22px;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

/* ==========================================================
   流れ：ミシン目で区切った受付票
   ========================================================== */
.ticket {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.ticket-stub { position: relative; padding: 36px 28px 40px; }
.ticket-stub + .ticket-stub { border-left: 2px dashed var(--line-strong); }
.ticket-stub + .ticket-stub::before,
.ticket-stub + .ticket-stub::after {
  /* ミシン目の切り欠き */
  content: "";
  position: absolute;
  left: -12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--panel);
}
.ticket-stub + .ticket-stub::before { top: -11px; box-shadow: inset 0 -2px 0 var(--seam-dark); }
.ticket-stub + .ticket-stub::after { bottom: -11px; box-shadow: inset 0 2px 0 var(--seam-dark); }
.ticket-number {
  font-family: var(--font-number);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}
.ticket-title { margin-top: 18px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.ticket-text { margin-top: 8px; font-size: 14px; line-height: 1.85; color: var(--ink-mute); }

/* ==========================================================
   緊急：トラロープ柄の帯
   ========================================================== */
.emergency-band {
  position: relative;
  background: var(--hazard);
  color: var(--ink);
}
.emergency-band::before,
.emergency-band::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 16px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 16px, var(--hazard) 16px 32px);
}
.emergency-band::before { top: 0; }
.emergency-band::after { bottom: 0; }
.emergency-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: center;
  padding-block: 88px;
}
.emergency-band-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.9vw, 38px);
  line-height: 1.5;
}
.emergency-band-action { display: grid; gap: 20px; justify-items: start; }
.emergency-band-sub { font-size: 15px; font-weight: 700; }

/* ==========================================================
   料金：比較表
   ========================================================== */
.sheet { padding: 12px 40px 8px; }
.plan-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.plan-col-feature { width: 34%; }
.plan-table th,
.plan-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  font-size: 15px;
  line-height: 1.6;
}
.plan-table tbody th { text-align: left; font-weight: 400; padding-left: 0; }
.plan-table tbody td { font-weight: 700; }

/* スタンダード列 */
.plan-table tr > :nth-child(3) { background: var(--tag-tint); }
.plan-table thead tr > :nth-child(3) { box-shadow: inset 0 6px 0 var(--ink); border-radius: 8px 8px 0 0; }
.plan-table tfoot tr > :nth-child(3) { border-radius: 0 0 8px 8px; }

.plan-head { padding-top: 36px !important; padding-bottom: 22px !important; vertical-align: bottom !important; border-bottom: 2px solid var(--ink) !important; }
.plan-name { display: block; font-size: 17px; font-weight: 700; }
.plan-price { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-mute); }
.plan-price b {
  margin-right: 2px;
  font-family: var(--font-number);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.plan-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--tag);
  font-size: 12px;
  font-weight: 700;
}

.plan-yes,
.plan-no { position: relative; display: inline-block; vertical-align: middle; }
.plan-yes { width: 22px; height: 22px; border-radius: 50%; background: var(--pass); }
.plan-yes::after {
  content: "";
  position: absolute;
  left: 7px; top: 4px;
  width: 6px; height: 11px;
  border: solid var(--tag);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.plan-no { width: 14px; height: 2px; background: var(--line-strong); }

.plan-table tfoot td { border-bottom: 0; padding-top: 24px; padding-bottom: 28px; }
.plan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.plan-button:hover,
.plan-button-featured { background: var(--ink); color: var(--tag); }
.plan-button-featured:hover { background: #1d3a2f; }

.plan-note { max-width: 52em; margin-top: 28px; font-size: 14px; color: var(--ink-soft); }
.plan-note a { font-weight: 700; color: var(--fail-deep); }

/* ==========================================================
   コラム
   ========================================================== */
.news-sheet { padding: 8px 40px 28px; }
.news-item {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 28px;
  row-gap: 4px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.news-image { grid-row: span 2; width: 176px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: end;
  font-family: var(--font-number);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-mute);
}
.news-tag {
  padding: 1px 10px;
  border: 1px solid var(--fail);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--fail-deep);
  white-space: nowrap;
}
.news-title {
  align-self: start;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s var(--ease);
}
.news-item:hover .news-title { text-decoration-color: var(--ink); }
.news-more { margin-top: 24px; text-align: right; }

/* ==========================================================
   FAQ：開いたままの2列
   ========================================================== */
.faq-grid { columns: 2; column-gap: 28px; }
.faq-card {
  break-inside: avoid;
  margin-bottom: 28px;
  padding: 30px 32px 32px;
}
.faq-question {
  display: flex;
  gap: 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.faq-question::before {
  content: "";
  flex-shrink: 0;
  width: 12px; height: 12px;
  margin-top: 0.55em;
  border-radius: 3px;
  background: var(--warn);
}
.faq-answer {
  margin-top: 12px;
  padding-left: 26px;
  color: var(--ink-mute);
  font-size: 15px;
}

/* ==========================================================
   相談：ミシン目つきの相談票
   ========================================================== */
.slip {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  max-width: 1040px;
  margin-inline: auto;
}
.slip-stub {
  padding: 48px 40px;
  background: var(--tag-tint);
  border-radius: 12px 0 0 12px;
}
.slip-stub-title { font-size: 15px; font-weight: 700; }
.slip-tel {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-number);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-decoration: none;
}
.slip-tel:hover { color: var(--pass-text); }
.slip-hours { margin-top: 10px; font-size: 14px; color: var(--ink-mute); }
.slip-promise {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.slip-form {
  position: relative;
  padding: 48px 48px 40px;
  border-left: 2px dashed var(--line-strong);
}
.slip-form::before,
.slip-form::after {
  content: "";
  position: absolute;
  left: -13px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--panel);
}
.slip-form::before { top: -12px; box-shadow: inset 0 -2px 0 var(--seam-dark); }
.slip-form::after { bottom: -12px; box-shadow: inset 0 2px 0 var(--seam-dark); }
.slip-form-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 24px; }

.contact-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.contact-form-honeypot { position: absolute; left: -9999px; }
.form-row { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.form-row-wide { grid-column: 1 / -1; }
.form-row small { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--ink-mute); }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 6px 6px 0 0;
  background: var(--tag-tint);
  font-size: 16px;
  font-weight: 400;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-row textarea { resize: vertical; min-height: 112px; line-height: 1.7; }
.form-row input:focus,
.form-row textarea:focus { outline: none; background: #e2ebe6; box-shadow: 0 2px 0 var(--pass); }
.form-row input.is-invalid { border-bottom-color: var(--fail); background: #fbefec; }
.form-row input::placeholder,
.form-row textarea::placeholder { color: #85958d; }
.contact-form-submit { width: 100%; margin-top: 32px; }
.contact-form-submit:disabled { opacity: 0.6; cursor: default; }
.contact-form-note { margin-top: 12px; font-size: 13px; text-align: center; color: var(--ink-mute); }
.contact-form-done {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 4px solid var(--pass);
  background: #e6f3eb;
  border-radius: 4px;
  font-size: 14px;
}
.contact-form-done-title { font-weight: 700; color: var(--pass-text); }

/* ==========================================================
   フッター
   ========================================================== */
.site-footer { background: var(--panel-deep); font-size: 14px; }
.site-footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 48px;
  padding-block: 64px 48px;
}
.site-footer-logo { width: 168px; }
.site-footer-description { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.site-footer-operator { display: grid; gap: 6px; align-content: start; }
.site-footer-operator div { display: grid; grid-template-columns: 4.5em 1fr; }
.site-footer-operator dt { color: var(--ink-soft); }
.site-footer-operator a,
.site-footer-nav a { text-decoration: none; }
.site-footer-nav { display: grid; gap: 6px; align-content: start; }
.site-footer-nav a:hover,
.site-footer-operator a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer-copyright {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--container);
  margin-inline: auto;
  padding: 20px 0 32px;
  border-top: 1px solid var(--seam-dark);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ==========================================================
   動き
   ========================================================== */
@keyframes pulse { 50% { opacity: 0.35; } }

.js .hero-title-line {
  opacity: 0;
  transform: translateY(0.3em);
  animation: line-in 0.8s var(--ease) forwards;
}
.js .hero-title-line:nth-child(2) { animation-delay: 0.1s; }
@keyframes line-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   タブレット
   ========================================================== */
@media (max-width: 1080px) {
  .site-nav-list { gap: 16px; }
  .site-nav-list li:nth-child(5),
  .site-nav-list li:nth-child(6) { display: none; }
  .hero-body { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; }
  .board-sheet { padding: 24px 22px 22px; }
  .board-cells { --cell: 34px; gap: 5px; }
  .board-group { grid-template-columns: 84px 1fr; }
  .board-score-number { font-size: 76px; }
  .tags { gap: 24px; }
  .tag { padding-inline: 22px; }
  .card { --label: 260px; padding-inline: 32px; }
  .card-head, .card-row { column-gap: 32px; }
  .slip { grid-template-columns: 280px minmax(0, 1fr); }
  .slip-stub { padding: 40px 28px; }
  .slip-tel { font-size: 36px; }
}

@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; gap: 56px; }
  .board { max-width: 520px; }
  .hero-side { max-width: 560px; }
  .tags { grid-template-columns: 1fr; gap: 72px; max-width: 520px; margin-inline: auto; }
  .tags::before { display: none; }
  .tag::before { top: -40px; height: 68px; }
  /* 受付票：縦 */
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 24px 20px; }
  .ticket-stub + .ticket-stub { border-left: 0; border-top: 2px dashed var(--line-strong); }
  .ticket-stub + .ticket-stub::before,
  .ticket-stub + .ticket-stub::after { top: -12px; bottom: auto; }
  .ticket-stub + .ticket-stub::before { left: -12px; }
  .ticket-stub + .ticket-stub::after { left: auto; right: -12px; }
  .ticket-number { grid-row: span 2; font-size: 48px; }
  .ticket-title { margin-top: 2px; font-size: 17px; }
}

/* ==========================================================
   SP（768px 未満）
   ========================================================== */
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --header-height: 60px;
    --section-space: 80px;
  }
  body { font-size: 15px; line-height: 1.85; }

  /* ナビ */
  .site-logo-image { width: 140px; }
  .nav-toggle {
    position: relative;
    display: block;
    width: 44px; height: 44px;
    margin-right: -10px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .nav-toggle span {
    position: absolute;
    left: 11px;
    width: 22px; height: 2px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
  }
  .nav-toggle span:nth-child(1) { top: 17px; }
  .nav-toggle span:nth-child(2) { top: 25px; }
  .site-header.is-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
  .site-nav {
    position: fixed;
    top: var(--header-height); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 8px var(--gutter) 32px;
    background: var(--panel);
    box-shadow: 0 1px 0 var(--seam-dark), 0 18px 24px -18px rgba(16, 36, 28, 0.5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-header.is-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .site-nav-list { flex-direction: column; gap: 0; }
  .site-nav-list li { display: block !important; border-bottom: 1px solid var(--seam-dark); }
  .site-nav-list a { padding: 14px 0; font-size: 16px; background: none; }
  .site-nav .button { min-height: 56px; font-size: 16px; }

  /* ヒーロー */
  .hero { padding: 32px 0 80px; }
  .hero-question { font-size: 14px; }
  .hero-title { margin-top: 12px; font-size: clamp(30px, 8.6vw, 40px); line-height: 1.32; }
  .hero-body { margin-top: 40px; gap: 40px; }
  .board { margin-right: 6px; }
  .board-sheet { padding: 20px 16px; }
  .board-stamp { top: -38px; right: -4px; width: 88px; height: 88px; }
  .board-stamp-text { font-size: 20px; }
  .board-stamp-date { font-size: 11px; }
  .board-group { grid-template-columns: 70px 1fr; gap: 10px; }
  .board-cells { --cell: minmax(0, 1fr); gap: 5px; }
  .board-domain { font-size: 20px; }
  .board-result { gap: 16px; }
  .board-score-number { font-size: 60px; }
  .board-fixes-list li { font-size: 12px; }
  .board-caption-note { margin-left: 0; width: 100%; }
  .hero-lead { font-size: 16px; }
  .hero-form { margin-top: 28px; padding: 18px; }
  .hero-form input { min-height: 56px; font-size: 19px; }

  /* 見出し */
  .section-head { margin-bottom: 40px; }
  .section-title { font-size: clamp(22px, 6.4vw, 28px); }
  .section-lead { margin-top: 14px; }

  /* タイムライン：縦 */
  .strip { padding: 28px 20px 32px; }
  .strip-title { margin-bottom: 28px; }
  .timeline { grid-template-columns: 1fr; gap: 32px; padding: 0 0 0 40px; }
  .timeline::before {
    top: 4px; bottom: 4px; left: 9px; right: auto;
    width: 4px; height: auto;
    background: linear-gradient(180deg, var(--pass) 0%, var(--warn) 45%, var(--fail) 80%);
  }
  .timeline-step::before { top: 4px; left: -40px; }
  .timeline-event { font-size: 17px; }

  /* 点検票 */
  .tags { padding-top: 48px; gap: 64px; }
  .tag { padding: 58px 20px 24px; }
  .tag-title { font-size: 19px; }
  .tag-list li { font-size: 14px; }
  .diagnosis-action { flex-direction: column; gap: 16px; margin-top: 48px; text-align: center; }
  .diagnosis-action-text { font-size: 16px; }
  .diagnosis-action .button { width: 100%; }

  /* 作業票 */
  .card { padding: 24px 16px 20px; }
  .card-head,
  .card-row { grid-template-columns: 1fr; row-gap: 8px; }
  .card-head { position: sticky; top: var(--header-height); z-index: 2; background: var(--tag); padding-top: 8px; }
  .card-title { font-size: 15px; }
  .card-label { grid-row: auto; margin-bottom: 8px; }
  .card-row { padding: 22px 0; }
  .card-row-title { font-size: 17px; }
  .card-axis, .card-track { column-gap: 2px; }
  .card-axis li { font-size: 12px; }
  .hole { border-width: 1px; }
  [data-kind="backup"] .hole.is-on { border-width: 3px; }
  .card-note { margin-top: 6px; font-size: 12px; }
  .card-foot { text-align: left; font-size: 13px; }


  /* 緊急 */
  .emergency-band-inner { grid-template-columns: 1fr; padding-block: 64px; gap: 24px; }
  .emergency-band-text { font-size: 22px; }
  .emergency-band-action .button { width: 100%; }

  /* 料金表 */
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .sheet { padding: 4px 10px 4px; }
  .plan-col-feature { width: 34%; }
  .plan-table th,
  .plan-table td { padding: 12px 3px; font-size: 13px; }
  .plan-table tbody th { font-size: 12px; padding-right: 8px; }
  .plan-table tbody td { font-size: 12px; line-height: 1.4; }
  .plan-head { padding-top: 22px !important; padding-bottom: 14px !important; }
  .plan-name { font-size: 12px; letter-spacing: 0; white-space: nowrap; }
  .plan-price { font-size: 10px; }
  .plan-price b { display: block; margin: 0; font-size: 19px; }
  .plan-badge { margin: -6px 0 8px; padding: 1px 8px; font-size: 10px; }
  .plan-yes { width: 18px; height: 18px; }
  .plan-yes::after { left: 6px; top: 3px; width: 5px; height: 9px; border-width: 0 2px 2px 0; }
  .plan-table tfoot td { padding: 16px 3px 18px; }
  .plan-button { min-height: 44px; padding: 0 2px; font-size: 12px; }

  /* コラム */
  .news-sheet { padding: 4px 16px 20px; }
  .news-item { grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; padding: 18px 0; }
  .news-image { width: 96px; grid-row: span 2; align-self: start; }
  .news-meta { gap: 8px; font-size: 14px; }
  .news-title { font-size: 15px; }

  /* FAQ */
  .faq-grid { columns: 1; }
  .faq-card { margin-bottom: 16px; padding: 22px 20px 24px; }
  .faq-question { font-size: 16px; }
  .faq-answer { padding-left: 0; font-size: 14px; }

  /* 相談票：控えを上に */
  .slip { grid-template-columns: 1fr; }
  .slip-stub { padding: 28px 20px; border-radius: 12px 12px 0 0; }
  .slip-tel { font-size: 38px; }
  .slip-promise { margin-top: 18px; padding-top: 14px; }
  .slip-form { padding: 32px 20px 28px; border-left: 0; border-top: 2px dashed var(--line-strong); }
  .slip-form::before { top: -13px; left: -12px; }
  .slip-form::after { top: -13px; bottom: auto; left: auto; right: -12px; }
  .contact-form-fields { grid-template-columns: 1fr; }

  /* フッター */
  .site-footer-inner { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 32px; }
}

/* ==========================================================
   下層ページ（記事・固定ページ・一覧・緊急相談・404）
   ========================================================== */
.container-narrow {
  width: 100%;
  max-width: calc(860px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.article-header { padding: 56px 0 40px; }
.article-breadcrumb { font-size: 13px; color: var(--ink-soft); }
.article-breadcrumb a { text-underline-offset: 3px; }
.article-breadcrumb a:hover { color: var(--ink); }
.article-header .news-meta { margin-top: 20px; }
.article-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.article-excerpt { margin-top: 18px; font-size: 17px; color: var(--ink-soft); }
.article-updated { font-family: var(--font-body); font-size: 12px; font-weight: 400; }
a.news-tag { text-decoration: none; }
a.news-tag:hover { background: #fbefec; }

.article-thumbnail { margin-bottom: 32px; }
.article-thumbnail img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-tag); }

.article-body { padding-bottom: 96px; }
.entry-content {
  padding: 56px 64px 64px;
  background: var(--tag);
  border-radius: 12px;
  box-shadow: var(--shadow-tag);
  font-size: 16px;
  line-height: 2;
}
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
  margin-top: 2.6em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.55;
}
.entry-content > h2:first-child { margin-top: 0; }
.entry-content h3 {
  display: flex;
  gap: 12px;
  margin-top: 2.2em;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
}
.entry-content h3::before {
  content: "";
  flex-shrink: 0;
  width: 12px; height: 12px;
  margin-top: 0.5em;
  border-radius: 3px;
  background: var(--ink);
}
.entry-content a { color: var(--pass-text); font-weight: 700; text-underline-offset: 4px; }
.entry-content a:hover { color: var(--ink); }
.entry-content strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(224, 165, 38, 0.35) 62%); }
.entry-content ul,
.entry-content ol { padding-left: 0; }
.entry-content li + li { margin-top: 0.5em; }
.entry-content ul > li { position: relative; padding-left: 24px; }
.entry-content ul > li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.72em;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--field);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.entry-content ol { counter-reset: entry; }
.entry-content ol > li { position: relative; padding-left: 36px; counter-increment: entry; }
.entry-content ol > li::before {
  content: counter(entry);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-number);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}
.entry-content blockquote {
  margin-inline: 0;
  padding: 18px 24px;
  border-left: 4px solid var(--panel-deep);
  background: var(--tag-tint);
  border-radius: 4px;
  color: var(--ink-mute);
}
.entry-content img { border-radius: 8px; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-mute); }
.entry-content code { padding: 2px 6px; border-radius: 4px; background: var(--tag-tint); font-size: 0.92em; }
.entry-content pre { overflow-x: auto; padding: 18px 20px; border-radius: 8px; background: var(--ink); color: var(--tag); font-size: 14px; line-height: 1.7; }
.entry-content pre code { padding: 0; background: none; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.75; }
.entry-content th,
.entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content thead th { border-bottom: 2px solid var(--ink); background: none; }
.entry-content tbody th { width: 30%; background: var(--tag-tint); font-weight: 700; }
.entry-content .info-table th { width: 28%; }
.entry-content p.article-lead { font-size: 17px; font-weight: 700; }
.entry-content .article-meta { font-size: 13px; color: var(--ink-mute); }
.entry-content .article-sources {
  margin-top: 2.6em;
  padding-top: 1.4em;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  color: var(--ink-mute);
}

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.article-tags a {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--panel-light);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.article-tags a:hover { background: var(--tag); }

.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 32px; }
.article-share-label { font-size: 14px; font-weight: 700; margin-right: 4px; }
.article-share-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.article-share-button:hover { background: var(--ink); color: var(--tag); }

.article-author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--panel-light);
  border-radius: 12px;
  box-shadow: inset 0 2px 0 var(--seam-light), inset 0 -2px 0 var(--seam-dark);
}
.article-author-mark { flex-shrink: 0; width: 48px; height: 48px; }
.article-author-name { font-weight: 700; }
.article-author-text { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }

/* 一覧 */
.section-archive .news-sheet,
.section-related .news-sheet { margin-top: 0; }
.archive-empty { padding: 32px 0; color: var(--ink-mute); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--tag);
  box-shadow: 0 2px 0 var(--panel-deep);
  font-family: var(--font-number);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.pagination a.page-numbers:hover { background: var(--panel-light); }
.pagination .page-numbers.current { background: var(--ink); color: var(--tag); box-shadow: 0 2px 0 #000; }
.pagination .dots { background: none; box-shadow: none; }
.pagination .prev,
.pagination .next { font-family: var(--font-body); font-size: 14px; font-weight: 700; }

/* 中間の誘導帯（記事・一覧・緊急相談の下） */
.cta-band { padding: 0 0 96px; }
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
  padding: 32px 40px;
  background: var(--tag);
  border-radius: 12px;
  box-shadow: var(--shadow-tag);
}
.cta-band-text { font-size: 18px; font-weight: 700; line-height: 1.7; }
.cta-band-text small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--ink-mute); }

/* 緊急相談 */
.emergency-header { position: relative; padding-top: 72px; }
.emergency-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 16px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 16px, var(--hazard) 16px 32px);
}
.emergency-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fail-deep);
}
.emergency-contact {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 32px;
  padding: 28px 32px 32px;
  background: var(--hazard);
  border-radius: 12px;
  box-shadow: var(--shadow-tag);
}
.emergency-contact-label { font-size: 14px; font-weight: 700; }
.emergency-tel {
  font-family: var(--font-number);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
}
.emergency-hours { font-size: 14px; font-weight: 700; }
.emergency-contact .button { margin-top: 12px; }

/* 404 */
.not-found { padding: 96px 0 120px; text-align: center; }
.not-found-code {
  font-family: var(--font-number);
  font-size: clamp(96px, 16vw, 180px);
  font-weight: 700;
  line-height: 1;
}
.not-found .section-title { margin-top: 12px; }
.not-found .section-lead { margin: 16px auto 0; }
.archive-actions { margin-top: 40px; }

/* ==========================================================
   Contact Form 7（テーマのフォームデザインを当てる）
   ========================================================== */
.contact-form-cf7 .wpcf7-form { display: block; }
.contact-form-cf7 .contact-form-fields { grid-template-columns: 1fr; }
.contact-form-cf7 .wpcf7-form-control-wrap { display: block; width: 100%; }
.contact-form-cf7 .wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--fail-deep); }
.contact-form-cf7 .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--line-strong);
  border-radius: 4px;
  background: var(--tag-tint);
  font-size: 14px;
  line-height: 1.8;
}
.contact-form-cf7 .wpcf7-form.sent .wpcf7-response-output { border-left-color: var(--pass); background: #e6f3eb; color: var(--pass-text); font-weight: 700; }
.contact-form-cf7 .wpcf7-form.invalid .wpcf7-response-output,
.contact-form-cf7 .wpcf7-form.failed .wpcf7-response-output { border-left-color: var(--fail); background: #fbefec; color: var(--fail-deep); }
.contact-form-cf7 .wpcf7-form.sent .contact-form-fields,
.contact-form-cf7 .wpcf7-form.sent .contact-form-submit { display: none; }
.contact-form-cf7 .hidden-fields-container,
.contact-form-cf7 .wpcf7-form.init .wpcf7-response-output,
.contact-form-cf7 .wpcf7-response-output:empty,
.contact-form-cf7 .wpcf7-spinner { display: none; }
.contact-form-cf7 .screen-reader-response {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.contact-form-cf7 .wpcf7-form.submitting .contact-form-submit { opacity: 0.6; }

@media (max-width: 767px) {
  .article-header { padding: 36px 0 28px; }
  .article-excerpt { font-size: 15px; }
  .article-body { padding-bottom: 64px; }
  .entry-content { padding: 32px 20px 40px; font-size: 15px; line-height: 1.95; }
  .entry-content h2 { font-size: 20px; }
  .entry-content h3 { font-size: 17px; }
  .entry-content table { display: block; overflow-x: auto; font-size: 14px; }
  .entry-content tbody th { width: auto; min-width: 7em; }
  .article-author { padding: 20px; }
  .cta-band { padding-bottom: 64px; }
  .cta-band-inner { flex-direction: column; align-items: stretch; padding: 24px 20px; text-align: center; }
  .cta-band-text { font-size: 16px; }
  .emergency-header { padding-top: 52px; }
  .emergency-contact { padding: 22px 20px 24px; justify-items: stretch; text-align: center; }
  .emergency-contact .button { width: 100%; }
  .not-found { padding: 64px 0 80px; }
}

/* ==========================================================
   小さいラベル：締まったゴシック（明朝の本文と役割を分ける）
   ========================================================== */
.hero-question,
.hero-form-label,
.hero-note,
.board-target-label,
.board-group-name span,
.board-status,
.board-readout,
.board-fixes-title,
.board-caption,
.timeline-when,
.strip-title,
.tag-title span,
.card-title,
.card-note,
.news-tag,
.plan-badge,
.plan-price,
.form-row,
.contact-form-note,
.slip-stub-title,
.site-nav-list a,
.button,
.plan-button,
.text-link,
.site-footer { font-family: var(--font-label); letter-spacing: 0.06em; }
.form-row input,
.form-row textarea { font-family: var(--font-body); }
.plan-price b,
.slip-tel { font-family: var(--font-number); letter-spacing: 0; }
.slip-tel { font-size: 32px; white-space: nowrap; }
@media (max-width: 1080px) {
  .slip-tel { font-size: 28px; }
}
@media (max-width: 767px) {
  .slip-tel { font-size: 34px; }
}

/* ==========================================================
   明朝を残すところ：見出しと、大きめのリード文・項目名
   それ以外の小さい文字（説明文・表・フォーム・注記）は本文のゴシック
   ========================================================== */
.hero-lead,
.section-lead,
.timeline-event,
.alert-card-message,
.card-row-title,
.ticket-title,
.faq-question,
.news-title,
.plan-name,
.diagnosis-action-text,
.emergency-band-sub,
.cta-band-text,
.board-domain,
.board-group-name { font-family: var(--font-display); }
.board-group-name span { font-family: var(--font-label); }
.cta-band-text small { font-family: var(--font-body); }

/* ==========================================================
   明朝は h1・h2 だけ。それ以外はすべてゴシック
   ========================================================== */
h1,
h2,
.hero-title,
.section-title,
.article-title,
.entry-content h2 { font-family: var(--font-serif); }
