/* ==========================================================================
   M3CLEAN 見た目の作り直し（2026-10-21）
   - 問い合わせ導線（電話・写真・フォーム・LINE）を全ページで同じ形に
   - 料金表・解決事例・問い合わせページの部品
   - PC のメニュー、スマホ下部の相談バー
   全ページ（トップの index.html を含む）で最後に読み込む。
   ========================================================================== */

:root {
  --m3-ink: #1f2937;
  --m3-sub: #4b5563;
  --m3-muted: #6b7280;
  --m3-navy: #183153;
  --m3-navy-soft: #eef2f7;
  --m3-accent: #c93c27;
  --m3-accent-dark: #a8301f;
  --m3-accent-soft: #fdf1ee;
  --m3-green: #0f766e;
  --m3-green-soft: #e8f5f3;
  --m3-line-green: #06c755;
  --m3-paper: #ffffff;
  --m3-warm: #f7efec;
  --m3-border: #e6e1dc;
  --m3-radius: 12px;
  --m3-shadow: 0 6px 24px rgba(24, 49, 83, 0.08);
}

/* ---- ボタン ------------------------------------------------------------ */
.m3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.m3-btn:hover { transform: translateY(-1px); }
.m3-btn:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }

.m3-btn--primary {
  background: var(--m3-accent);
  color: #fff;
  box-shadow: 0 4px 0 var(--m3-accent-dark);
}

.m3-btn--primary:hover { background: var(--m3-accent-dark); color: #fff; }

.m3-btn--outline {
  background: #fff;
  color: var(--m3-navy);
  border-color: var(--m3-navy);
}

.m3-btn--outline:hover { background: var(--m3-navy-soft); color: var(--m3-navy); }

.m3-btn--line {
  background: var(--m3-line-green);
  color: #fff;
}

.m3-btn--sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

.m3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 8px;
}

.m3-link {
  color: var(--m3-navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.m3-ico svg,
.m3-mbar svg,
.m3-hdr-tel svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.m3-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--m3-navy-soft);
  color: var(--m3-navy);
  flex-shrink: 0;
}

/* ---- 文字 -------------------------------------------------------------- */
.m3-page { background: var(--m3-warm); }

.m3-text {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--m3-ink);
}

.m3-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--m3-sub);
}

.m3-section { margin: 56px 0; }

.m3-h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.45;
  color: var(--m3-ink);
}

.m3-h2__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--m3-navy);
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

/* ---- ページの見出し ---------------------------------------------------- */
.m3-pagehead {
  margin: 8px 0 32px;
  padding: 32px;
  border-radius: var(--m3-radius);
  background: #fff;
  box-shadow: var(--m3-shadow);
}

.m3-pagehead__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--m3-accent-soft);
  color: var(--m3-accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.m3-pagehead__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.4;
  color: var(--m3-ink);
}

.m3-pagehead__lead {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--m3-navy);
}

.m3-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.m3-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--m3-border);
  border-radius: 999px;
  background: var(--m3-warm);
  color: var(--m3-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* ---- 相談ブロック（電話・写真・フォーム） ------------------------------ */
.m3-contact { padding: 56px 0; background: var(--m3-warm); }

.m3-contact__box {
  padding: 40px 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--m3-shadow);
  border-top: 6px solid var(--m3-accent);
}

.m3-contact__eyebrow {
  margin: 0 0 8px;
  color: var(--m3-accent-dark);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.m3-contact__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  color: var(--m3-ink);
}

.m3-contact__lead {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  color: var(--m3-sub);
}

.m3-contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.m3-contact__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px;
  border: 1px solid var(--m3-border);
  border-radius: var(--m3-radius);
  background: #fff;
}

.m3-contact__card .m3-btn { margin-top: auto; width: 100%; }

.m3-contact__card--tel {
  border: 2px solid var(--m3-accent);
  background: var(--m3-accent-soft);
}

.m3-contact__card-title {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--m3-ink);
}

.m3-contact__card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--m3-sub);
}

.m3-contact__tel {
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: 40px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--m3-accent-dark);
  text-decoration: none;
}

.m3-contact__sublink {
  font-size: 14px;
  color: var(--m3-navy);
  text-align: center;
  text-decoration: underline;
}

.m3-contact__biz {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
  color: var(--m3-sub);
}

.m3-contact__biz a { color: var(--m3-navy); font-weight: 700; }

.m3-contact__more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin: 12px 0 0;
}

.m3-contact__more a {
  color: var(--m3-navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.m3-contact__grid--page { margin-bottom: 8px; }

/* compact（記事の途中） */
.m3-ctaline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: var(--m3-radius);
  background: #fff;
  border-left: 6px solid var(--m3-accent);
  box-shadow: var(--m3-shadow);
}

.m3-ctaline__text { margin: 0; font-size: 16px; line-height: 1.7; color: var(--m3-ink); }
.m3-ctaline__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- 料金表・解決事例への案内 ------------------------------------------ */
.m3-pclinks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.m3-pclinks__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-radius: var(--m3-radius);
  background: #fff;
  border: 1px solid var(--m3-border);
  box-shadow: var(--m3-shadow);
  color: var(--m3-ink);
  text-decoration: none;
  transition: transform 0.12s ease;
}

.m3-pclinks__card:hover { transform: translateY(-2px); }
.m3-pclinks__eyebrow { color: var(--m3-accent-dark); font-size: 14px; font-weight: 700; }
.m3-pclinks__title { font-size: 20px; font-weight: 900; line-height: 1.5; }
.m3-pclinks__text { font-size: 15px; line-height: 1.75; color: var(--m3-sub); }
.m3-pclinks__go { margin-top: 6px; color: var(--m3-navy); font-weight: 700; }
.m3-pclinks__go::after { content: " →"; }

/* ---- 料金表ページ ------------------------------------------------------ */
.m3-factors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.m3-factors li {
  padding: 16px;
  border-radius: var(--m3-radius);
  background: #fff;
  border: 1px solid var(--m3-border);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--m3-ink);
}

.m3-factors span { color: var(--m3-accent-dark); margin-right: 4px; }
.m3-factors small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--m3-sub); }

.m3-ptable {
  overflow: hidden;
  border-radius: var(--m3-radius);
  background: #fff;
  border: 1px solid var(--m3-border);
  box-shadow: var(--m3-shadow);
}

.m3-ptable__head,
.m3-ptable__row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr 1.4fr;
  align-items: center;
}

.m3-ptable__head span {
  padding: 14px 16px;
  background: var(--m3-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.m3-ptable__row > span {
  padding: 16px;
  border-top: 1px solid var(--m3-border);
  font-size: 16px;
  color: var(--m3-ink);
}

.m3-ptable__row:nth-child(odd) { background: #fbfaf9; }
.m3-ptable__row > span { align-self: stretch; display: flex; align-items: center; }
.m3-ptable__plan { font-weight: 900; font-size: 18px !important; }
.m3-ptable__price { font-weight: 900; font-size: 20px !important; color: var(--m3-accent-dark) !important; }
.m3-ptable__label { display: none; }
.m3-ptable__cases { display: flex; flex-wrap: wrap; gap: 6px; }

.m3-ptable__cases a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--m3-navy-soft);
  color: var(--m3-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.m3-itemgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.m3-itemcard {
  padding: 20px;
  border-radius: var(--m3-radius);
  background: #fff;
  border: 1px solid var(--m3-border);
}

.m3-itemcard__name { margin: 0 0 8px; font-size: 17px; font-weight: 900; line-height: 1.5; color: var(--m3-ink); }
.m3-itemcard__price { margin: 0 0 8px; font-size: 20px; font-weight: 900; color: var(--m3-accent-dark); }
.m3-itemcard__detail { margin: 0; font-size: 15px; line-height: 1.75; color: var(--m3-sub); }

.m3-scheme {
  padding: 32px;
  border-radius: 16px;
  background: var(--m3-green-soft);
  border: 2px solid var(--m3-green);
}

.m3-scheme .m3-h2__num { background: var(--m3-green); }

.m3-scheme__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 20px;
}

.m3-scheme__card { padding: 20px; border-radius: var(--m3-radius); background: #fff; }
.m3-scheme__title { margin: 0 0 8px; font-size: 18px; font-weight: 900; color: var(--m3-green); }
.m3-scheme__text { margin: 0; font-size: 16px; line-height: 1.8; color: var(--m3-ink); }

.m3-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: m3flow;
}

.m3-flow li {
  position: relative;
  padding: 16px;
  border-radius: var(--m3-radius);
  background: #fff;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  color: var(--m3-ink);
}

.m3-flow li small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--m3-sub); }

.m3-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -22px;
  transform: translateY(-50%);
  color: var(--m3-green);
  font-size: 20px;
}

.m3-faq { display: grid; gap: 10px; }

.m3-faq__item {
  border-radius: var(--m3-radius);
  background: #fff;
  border: 1px solid var(--m3-border);
}

.m3-faq__q {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 48px 12px 20px;
  position: relative;
  font-size: 17px;
  font-weight: 700;
  color: var(--m3-ink);
  cursor: pointer;
  list-style: none;
}

.m3-faq__q::-webkit-details-marker { display: none; }
.m3-faq__q::after { content: "＋"; position: absolute; right: 20px; color: var(--m3-accent-dark); }
.m3-faq__item[open] .m3-faq__q::after { content: "－"; }
.m3-faq__a { margin: 0; padding: 0 20px 20px; font-size: 16px; line-height: 1.9; color: var(--m3-ink); }

/* ---- 解決事例 ---------------------------------------------------------- */
.m3-filter {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.m3-filter__btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--m3-border);
  border-radius: 999px;
  background: #fff;
  color: var(--m3-navy);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.m3-filter__btn.is-active { background: var(--m3-navy); border-color: var(--m3-navy); color: #fff; }

.m3-casecat { margin: 0 0 48px; scroll-margin-top: 120px; }

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

.m3-case {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--m3-radius);
  background: #fff;
  border: 1px solid var(--m3-border);
  box-shadow: var(--m3-shadow);
  scroll-margin-top: 120px;
}

.m3-case:target { outline: 3px solid var(--m3-accent); }

.m3-case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }

.m3-case__no {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--m3-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.m3-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--m3-accent-soft);
  color: var(--m3-accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.m3-case__title { margin: 0 0 12px; font-size: 19px; font-weight: 900; line-height: 1.55; color: var(--m3-ink); }

.m3-case__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
}

.m3-case__meta dt { color: var(--m3-muted); font-weight: 700; white-space: nowrap; }
.m3-case__meta dd { margin: 0; color: var(--m3-ink); }

.m3-case__price {
  margin: 0 0 12px;
  padding: 16px;
  border-radius: 10px;
  background: var(--m3-warm);
}

.m3-case__total { margin: 0 0 8px; font-size: 22px; font-weight: 900; line-height: 1.4; color: var(--m3-accent-dark); }

.m3-case__items { margin: 0; padding: 0; list-style: none; }

.m3-case__items li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--m3-ink);
}

.m3-case__items li::before { content: "＋"; position: absolute; left: 0; color: var(--m3-muted); }
.m3-case__items li:first-child::before { content: "・"; }
.m3-case__items li.is-minus { color: var(--m3-green); font-weight: 700; }
.m3-case__items li.is-minus::before { content: ""; }

.m3-case__pnote { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--m3-sub); }

.m3-case__settle {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--m3-green-soft);
  color: #0b5d57;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.m3-case__settle span {
  display: inline-block;
  margin-right: 8px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--m3-green);
  color: #fff;
  font-size: 13px;
}

.m3-case__more { margin: 0 0 12px; }

.m3-case__more summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--m3-navy);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.m3-case__more p { margin: 4px 0 0; font-size: 16px; line-height: 1.9; color: var(--m3-ink); }
.m3-case__cta { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; }

.m3-casegrid--mini { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }

.m3-minicase {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--m3-radius);
  background: #fff;
  border: 1px solid var(--m3-border);
  color: var(--m3-ink);
  text-decoration: none;
}

.m3-minicase__no { color: var(--m3-muted); font-size: 13px; font-weight: 700; }
.m3-minicase__title { font-size: 15px; font-weight: 700; line-height: 1.6; }
.m3-minicase__prop { font-size: 14px; color: var(--m3-sub); }
.m3-minicase__price { font-size: 18px; font-weight: 900; color: var(--m3-accent-dark); }
.m3-minicase__settle { font-size: 13px; font-weight: 700; color: #0b5d57; }

.m3-exit {
  padding: 32px;
  border-radius: 16px;
  background: var(--m3-navy);
  color: #fff;
}

.m3-exit .m3-h2,
.m3-exit .m3-text { color: #fff; }
.m3-exit .m3-note { color: #d6dde8; }
.m3-exit__eyebrow { margin: 0 0 8px; color: #ffd2c9; font-size: 15px; font-weight: 700; }

.m3-exit__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
}

.m3-exit__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--m3-radius);
  background: #fff;
  color: var(--m3-ink);
  text-decoration: none;
}

.m3-exit__card strong { font-size: 17px; color: var(--m3-navy); }
.m3-exit__card strong::after { content: " →"; }
.m3-exit__card span { font-size: 14px; line-height: 1.7; color: var(--m3-sub); }

.m3-legacy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.m3-legacy {
  padding: 20px;
  border-radius: var(--m3-radius);
  background: #fff;
  border: 1px solid var(--m3-border);
  scroll-margin-top: 120px;
}

.m3-legacy__cat { margin: 0 0 6px; color: var(--m3-muted); font-size: 14px; font-weight: 700; }
.m3-legacy__title { margin: 0 0 8px; font-size: 17px; font-weight: 900; line-height: 1.6; color: var(--m3-ink); }
.m3-legacy .m3-text { font-size: 15px; line-height: 1.8; }
.m3-legacy__more summary { display: flex; align-items: center; min-height: 44px; color: var(--m3-navy); font-weight: 700; cursor: pointer; }
.m3-legacy__dl { margin: 8px 0; font-size: 15px; line-height: 1.8; }
.m3-legacy__dl dt { margin-top: 10px; color: var(--m3-muted); font-weight: 700; }
.m3-legacy__dl dd { margin: 0; color: var(--m3-ink); }
.m3-legacy__h { margin: 12px 0 4px; font-weight: 700; }

/* ---- 問い合わせページ -------------------------------------------------- */
.m3-steps { margin: 0 0 8px; padding: 0; list-style: none; counter-reset: m3step; display: grid; gap: 12px; }

.m3-steps li {
  position: relative;
  padding: 16px 16px 16px 64px;
  border-radius: var(--m3-radius);
  background: #fff;
  border: 1px solid var(--m3-border);
  font-size: 16px;
  line-height: 1.8;
  color: var(--m3-ink);
  counter-increment: m3step;
}

.m3-steps li::before {
  content: counter(m3step);
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--m3-navy);
  color: #fff;
  font-weight: 900;
}

.m3-form { margin-top: 16px; padding: 24px; border-radius: var(--m3-radius); background: #fff; box-shadow: var(--m3-shadow); }
.m3-form input:not([type="checkbox"]),
.m3-form textarea { font-size: 16px; }
.m3-optional { margin-left: 8px; padding: 2px 8px; border-radius: 4px; background: #e5e7eb; color: var(--m3-sub); font-size: 13px; }
.m3-form .p-form__agree { display: flex; align-items: center; gap: 8px; margin: 16px 0; font-size: 15px; }
.m3-form .p-form__agree input { width: 22px; height: 22px; }

/* ---- PC のメニュー ----------------------------------------------------- */
.m3-gnav { display: none; }

@media screen and (min-width: 769px) {
  .m3-gnav {
    display: block;
    position: sticky;
    top: 3.625rem;
    z-index: 1;
    background: #fff;
    border-top: 1px solid var(--m3-border);
    border-bottom: 1px solid var(--m3-border);
  }

  .m3-gnav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    list-style: none;
  }

  .m3-gnav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    color: var(--m3-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 3px solid transparent;
  }

  .m3-gnav__list a:hover { border-bottom-color: var(--m3-accent); }

  .m3-gnav__list a.m3-gnav__contact {
    margin: 6px 0 6px 8px;
    min-height: 36px;
    border-radius: 999px;
    border: 2px solid var(--m3-accent);
    color: var(--m3-accent-dark);
  }

  .m3-hdr-tel { display: none; }
}

/* ---- スマホ ------------------------------------------------------------ */
.m3-mbar { display: none; }

@media screen and (max-width: 768px) {
  .m3-hdr-tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--m3-accent);
    color: #fff;
  }

  .m3-mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 6px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }

  .m3-mbar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 52px;
    border-radius: 10px;
    border: 2px solid var(--m3-navy);
    background: #fff;
    color: var(--m3-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
  }

  .m3-mbar__btn span { display: flex; flex-direction: column; align-items: flex-start; }
  .m3-mbar__btn:not(.m3-mbar__btn--tel) { flex-direction: column; gap: 2px; font-size: 13px; }
  .m3-mbar__btn:not(.m3-mbar__btn--tel) span { align-items: center; }
  .m3-mbar__btn small { font-size: 11px; font-weight: 400; }

  .m3-mbar__btn--tel {
    border-color: var(--m3-accent);
    background: var(--m3-accent);
    color: #fff;
    font-size: 16px;
  }

  .m3-mbar__btn--line { border-color: var(--m3-line-green); background: var(--m3-line-green); color: #fff; }

  /* 下部の相談バーに一本化したので、旧バー・浮いている「いまの状況から選ぶ」はスマホでは出さない */
  .l-bottom-info,
  .p-intent-sticky { display: none !important; }

  .l-footer,
  .body--subpage .l-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

  .m3-section { margin: 40px 0; }
  .m3-text { font-size: 16px; }
  .m3-pagehead { padding: 22px 18px; }
  .m3-pagehead__lead { font-size: 16px; }
  .m3-contact { padding: 40px 0; }
  .m3-contact__box { padding: 28px 16px; }
  .m3-contact__grid,
  .m3-pclinks,
  .m3-factors,
  .m3-itemgrid,
  .m3-scheme__grid,
  .m3-casegrid,
  .m3-legacy-list { grid-template-columns: 1fr; }
  .m3-casegrid--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m3-exit__grid { grid-template-columns: 1fr; }
  .m3-exit,
  .m3-scheme { padding: 22px 16px; }
  .m3-case { padding: 18px; }
  .m3-contact__tel { font-size: 36px; }
  .m3-btn { width: 100%; }
  .m3-case__cta .m3-btn,
  .m3-ctaline__actions .m3-btn { width: auto; flex: 1 1 auto; }

  .m3-ptable__head { display: none; }

  .m3-ptable__row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "plan price" "time time" "cases cases";
    padding: 12px 16px;
    border-top: 1px solid var(--m3-border);
  }

  .m3-ptable__row > span { padding: 4px 0; border-top: 0; background: transparent !important; }
  .m3-ptable__plan { grid-area: plan; }
  .m3-ptable__price { grid-area: price; text-align: right; font-size: 18px !important; }
  .m3-ptable__time { grid-area: time; font-size: 14px !important; color: var(--m3-sub) !important; }
  .m3-ptable__label { display: inline; margin-right: 6px; }
  .m3-ptable__cases { grid-area: cases; }
  .m3-ptable__row > span { display: block; }

  .m3-flow { grid-template-columns: 1fr; gap: 24px; }
  .m3-flow li:not(:last-child)::after { content: "↓"; top: auto; bottom: -24px; right: 50%; transform: translateX(50%); }
}

@media screen and (min-width: 769px) and (max-width: 1100px) {
  .m3-contact__grid { grid-template-columns: 1fr 1fr; }
  .m3-contact__card--tel { grid-column: 1 / -1; }
  .m3-itemgrid { grid-template-columns: 1fr 1fr; }
  .m3-exit__grid,
  .m3-casegrid--mini { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   トップページ（index.html）
   ========================================================================== */
.m3-hero {
  background: linear-gradient(180deg, #fff 0%, var(--m3-warm) 100%);
  padding: 40px 0 48px;
}

.m3-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.m3-hero__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--m3-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.m3-hero__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 900;
  line-height: 1.38;
  color: var(--m3-ink);
}

.m3-hero__title em { font-style: normal; color: var(--m3-accent-dark); }

.m3-hero__lead {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--m3-sub);
}

.m3-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }

.m3-hero__chips li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--m3-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--m3-ink);
}

.m3-hero__chips li::before { content: "✓"; margin-right: 6px; color: var(--m3-green); font-weight: 900; }

.m3-hero__cta { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }
.m3-hero__cta .m3-btn { width: 100%; padding: 0 12px; }

.m3-hero__telbtn { flex-direction: column; gap: 0 !important; min-height: 64px !important; }
.m3-hero__telbtn b { font-family: "Bebas Neue", "Roboto", sans-serif; font-size: 28px; font-weight: 400; letter-spacing: 0.02em; line-height: 1; }
.m3-hero__telbtn small { font-size: 12px; font-weight: 400; }

.m3-hero__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; }
.m3-hero__links a { color: var(--m3-navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.m3-hero__photo { position: relative; }
.m3-hero__photo img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--m3-shadow); }

.m3-hero__badge {
  position: absolute;
  left: -16px;
  bottom: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--m3-shadow);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--m3-ink);
}

.m3-hero__badge strong { display: block; font-size: 22px; color: var(--m3-accent-dark); }

.m3-home-section { padding: 64px 0; background: var(--m3-warm); }
.m3-home-section--white { background: #fff; }
.m3-home-section .m3-h2 { justify-content: center; text-align: center; }
.m3-home-section__lead { max-width: 760px; margin: 0 auto 28px; font-size: 17px; line-height: 1.9; text-align: center; color: var(--m3-sub); }
.m3-home-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.m3-center { text-align: center; }

@media screen and (max-width: 768px) {
  .m3-hero { padding: 20px 0 32px; }
  .m3-hero__inner { grid-template-columns: 1fr; gap: 20px; padding: 0 16px; }
  .m3-hero__photo { display: none; }
  .m3-hero__title { font-size: 27px; }
  .m3-hero__lead { font-size: 16px; }
  .m3-hero__cta { grid-template-columns: 1fr 1fr; }
  .m3-hero__cta .m3-hero__telbtn { grid-column: 1 / -1; }
  .m3-home-section { padding: 44px 0; }
  .m3-home-wrap { padding: 0 16px; }
}

/* 上部メニューと相談ブロックがあるので、本文に重なる「いまの状況から選ぶ」は横幅に余裕がある画面（1600px 以上）だけ表示 */
@media screen and (max-width: 1599px) {
  .p-intent-sticky { display: none !important; }
}

/* フォームの入力欄の枠を見えるように */
.m3-form input:not([type="checkbox"]):not([type="hidden"]),
.m3-form textarea {
  border: 1px solid #b8c0ca !important;
  border-radius: 8px;
  background: #fff !important;
}

.m3-form input:focus,
.m3-form textarea:focus { outline: 3px solid #93c5fd; border-color: var(--m3-navy) !important; }
.m3-form ::placeholder { color: #8a929c; }

/* トップのお問い合わせ欄の前の写真相談 */
.m3-home-photo {
  margin: 0 0 24px;
  padding: 20px 24px;
  border-radius: var(--m3-radius);
  background: var(--m3-green-soft);
  border: 2px solid var(--m3-green);
}

.m3-home-photo__title { margin: 0 0 6px; font-size: 18px; font-weight: 900; color: #0b5d57; }
.m3-home-photo__text { margin: 0; font-size: 16px; line-height: 1.8; color: var(--m3-ink); }
.m3-home-price { text-align: left; }
.m3-home-price .m3-ptable__head span:last-child,
.m3-home-price .m3-ptable__cases { display: none; }
@media screen and (min-width: 769px) { .m3-home-price .m3-ptable__head,
.m3-home-price .m3-ptable__row { grid-template-columns: 1fr 1.8fr 1fr; } }

/* トップの上部メニュー：項目が増えたので文字を折り返さず、間隔を詰める */
@media screen and (min-width: 769px) {
  .p-global-nav__list { font-size: 15px; letter-spacing: 0.02em; white-space: nowrap; }
  .p-global-nav__list + .p-global-nav__list { margin-left: 1.6%; }
  .p-global-nav__list a::before { padding-right: 6px; border-width: 5px 0 5px 8px; }
}

@media screen and (min-width: 769px) and (max-width: 1180px) {
  .p-global-nav__list { font-size: 13px; }
  .p-global-nav__list + .p-global-nav__list { margin-left: 1%; }
}

/* スマホでは料金の早見表は通常の2段表示（PC だけ3列に） */
@media screen and (max-width: 768px) {
  .m3-home-price .m3-ptable__row { grid-template-columns: 1fr auto; }
}

/* 相談ブロックが本文の枠の中に置かれたとき、余白が二重にならないように */
.l-inner .l-inner { padding-left: 0; padding-right: 0; max-width: none; }
.p-sub-page .m3-contact { padding-left: 0; padding-right: 0; background: transparent; }
@media screen and (max-width: 768px) {
  .p-sub-page .l-inner .l-inner { padding-inline: 0; }
}

/* 小さい文字・小さい押す所の手直し（全ページ計測の結果から） */
.m3-contact__sublink { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; }
.m3-hero__links a { display: inline-flex; align-items: center; min-height: 32px; }
.m3-hero__telbtn small { font-size: 13px; }
.m3-form .p-form__agree input { flex-shrink: 0; width: 24px; height: 24px; }
@media screen and (max-width: 768px) {
  .m3-mbar__btn small { font-size: 13px; }
}

/* ---- 第3回：税込の併記・不動産の費用・脱臭後のフォロー ---- */
.m3-ptable__inc {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--m3-ink);
}

.m3-itemcard__price .m3-ptable__inc { font-size: 15px; }

.m3-case__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.m3-case__ex small { font-size: 14px; font-weight: 700; color: var(--m3-sub); }

.m3-case__inc {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--m3-border);
  font-size: 17px;
  color: var(--m3-ink);
}

.m3-case__items small,
.m3-minicase__price small { font-size: 13px; font-weight: 700; color: var(--m3-sub); }

.m3-estate {
  margin: 0 0 12px;
  border-radius: var(--m3-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--m3-border);
  box-shadow: var(--m3-shadow);
}

.m3-estate__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  border-top: 1px solid var(--m3-border);
}

.m3-estate__row:first-child { border-top: 0; }
.m3-estate__row dt { padding: 16px; background: var(--m3-navy-soft); font-weight: 700; color: var(--m3-navy); }
.m3-estate__row dd { margin: 0; padding: 16px; font-size: 18px; font-weight: 900; color: var(--m3-accent-dark); }

.m3-aftercare {
  margin: 16px 0 0;
  padding: 16px 20px;
  border-radius: var(--m3-radius);
  background: var(--m3-green-soft);
  border-left: 6px solid var(--m3-green);
  font-size: 16px;
  line-height: 1.8;
  color: var(--m3-ink);
}

.m3-aftercare strong { display: block; margin-bottom: 4px; color: #0b5d57; }

.p-cta__list-note { display: block; font-size: 13px; font-weight: 400; line-height: 1.4; }

@media screen and (max-width: 768px) {
  .m3-estate__row { grid-template-columns: 1fr; }
  .m3-estate__row dt { padding: 10px 16px; }
  .m3-estate__row dd { padding: 12px 16px; font-size: 17px; }
  .m3-ptable__price { text-align: right; }
}

.m3-area-note { display: block; margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--m3-sub); }

/* ==========================================================================
   第3回の2（2026-10-21）：線のアイコン一式・見た目の作り込み・読みやすさ
   ========================================================================== */

/* ---- 線のアイコン（includes/icons.php のスプライト） ---- */
.m3-i {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  vertical-align: -0.22em;
  fill: none;
  stroke: currentColor;
}

.m3-ico svg.m3-i,
.m3-mbar svg.m3-i,
.m3-hdr-tel svg.m3-i { fill: none; }
.m3-btn .m3-i { width: 22px; height: 22px; }
.m3-btn--sm .m3-i { width: 19px; height: 19px; }
.m3-ico .m3-i { width: 22px; height: 22px; }
.m3-pagehead__eyebrow .m3-i,
.m3-contact__eyebrow .m3-i { margin-right: 6px; }

.m3-contact__hours { display: flex; align-items: center; gap: 6px; }
.m3-contact__biz .m3-i { margin-right: 6px; color: var(--m3-navy); }
.m3-contact__more a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.m3-hdr-tel .m3-i { width: 22px; height: 22px; }

/* 見出しのアイコン */
.m3-h2__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--m3-navy-soft);
  color: var(--m3-navy);
  flex-shrink: 0;
}

.m3-h2__icon .m3-i { width: 24px; height: 24px; }
.m3-h2 { margin-bottom: 24px; }

/* ---- 段落のまとまり：本文の区切りを白いパネルにする ---- */
.m3-page .m3-section:not(.m3-scheme):not(.m3-exit) {
  padding: 36px 40px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--m3-shadow);
}

.m3-page .m3-section .m3-ptable,
.m3-page .m3-section .m3-estate { box-shadow: none; }

/* ---- 読みやすさ：1行 約40字・行間 1.8〜1.85・強調は太字 ---- */
.m3-page .m3-text,
.m3-page .m3-note,
.m3-case__point p,
.m3-faq__a,
.m3-contact__lead,
.p-sub-page .c-normal-text,
.p-sub-page .p-sub-section__text {
  max-width: 40em;
  line-height: 1.85;
}

.m3-contact__lead { margin-left: auto; margin-right: auto; }
.m3-text strong,
.m3-note strong { font-weight: 900; color: inherit; }
.p-sub-page .p-sub-section__title { margin-bottom: 1em; }

/* 数字を大きく */
.m3-num {
  font-family: "Roboto", "Zen Kaku Gothic New", sans-serif;
  font-size: 1.5em;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--m3-accent-dark);
}

/* ---- 料金表・解決事例への案内 ---- */
.m3-pclinks__card { position: relative; padding-top: 28px; }

.m3-pclinks__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--m3-accent-soft);
  color: var(--m3-accent-dark);
}

.m3-pclinks__icon .m3-i { width: 28px; height: 28px; }
.m3-pclinks__title small { display: block; font-size: 15px; font-weight: 700; color: var(--m3-sub); }
.m3-pclinks__go { display: inline-flex; align-items: center; gap: 6px; }
.m3-pclinks__go::after { content: none; }

/* ---- 記事途中の短い相談 ---- */
.m3-ctaline__body { flex: 1 1 320px; }
.m3-ctaline__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 8px 0 0; }
.m3-ctaline__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }

/* ---- 料金表 ---- */
.m3-ptable__time { display: flex; align-items: center; gap: 6px; }
.m3-ptable__time .m3-i { color: var(--m3-navy); }
.m3-ptable__price { font-size: 22px !important; }
.m3-estate__row dt { display: flex; align-items: center; gap: 8px; }
.m3-estate__row dt .m3-i { width: 22px; height: 22px; }
.m3-itemcard { border-top: 4px solid var(--m3-accent); }
.m3-itemcard__name { display: flex; align-items: flex-start; gap: 8px; }
.m3-itemcard__name .m3-i { margin-top: 2px; color: var(--m3-green); }
.m3-itemcard__price { font-size: 22px; }
.m3-flow li .m3-i { display: block; width: 30px; height: 30px; margin: 0 auto 8px; color: var(--m3-green); }

/* ---- ご相談の流れ（5つの手順） ---- */
.m3-flowsec {
  margin: 56px 0;
  padding: 36px 40px;
  border-radius: 16px;
  background: var(--m3-navy);
  color: #fff;
}

.m3-flowsec .m3-h2 { color: #fff; }
.m3-flowsec .m3-h2__icon { background: rgba(255, 255, 255, 0.14); color: #fff; }

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

.m3-steps5__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--m3-ink);
}

.m3-steps5__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -14px;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
}

.m3-steps5__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--m3-accent-soft);
  color: var(--m3-accent-dark);
}

.m3-steps5__icon .m3-i { width: 28px; height: 28px; }
.m3-steps5__no { color: var(--m3-muted); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.m3-steps5__title { font-size: 18px; line-height: 1.45; }
.m3-steps5__text { font-size: 15px; line-height: 1.75; color: var(--m3-sub); }

/* ---- 事例カード：経路タグ → 物件・作業 → 料金 → 解決のポイント ---- */
.m3-badge .m3-i { width: 14px; height: 14px; margin-right: 4px; }
.m3-case__meta { display: block; margin: 0 0 16px; }
.m3-case__metarow { display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 10px; padding: 6px 0; border-bottom: 1px dashed var(--m3-border); }
.m3-case__metarow:last-child { border-bottom: 0; }
.m3-case__meta dt { display: flex; align-items: center; gap: 6px; }
.m3-case__meta dt .m3-i { color: var(--m3-navy); }

.m3-case__sec {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--m3-navy);
}

.m3-case__total { font-size: 26px; }
.m3-case__point {
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 10px;
  background: var(--m3-navy-soft);
}

.m3-case__point p { margin: 0 0 8px; font-size: 16px; color: var(--m3-ink); }
.m3-case__point p:last-child { margin-bottom: 0; }
.m3-case__point .m3-case__sec .m3-i { color: #b45309; }

/* ---- 事例ページの出口案内 ---- */
.m3-exit__icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: var(--m3-navy-soft); color: var(--m3-navy); }
.m3-exit__icon .m3-i { width: 22px; height: 22px; }

/* ---- 問い合わせページ ---- */
.m3-submit { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; }
.m3-submit .m3-i { width: 22px; height: 22px; }

/* ---- スマホ ---- */
@media screen and (max-width: 768px) {
  .m3-page .m3-section:not(.m3-scheme):not(.m3-exit) { padding: 24px 18px; }
  .m3-flowsec { padding: 24px 16px; }
  .m3-steps5 { grid-template-columns: 1fr; gap: 14px; }
  .m3-steps5__item { display: grid; grid-template-columns: 52px 1fr; gap: 2px 14px; align-items: start; }
  .m3-steps5__icon { grid-row: 1 / span 3; }
  .m3-steps5__item:not(:last-child)::after { top: auto; right: auto; left: 40px; bottom: -11px; transform: rotate(135deg); }
  .m3-case__metarow { grid-template-columns: 1fr; }
  .m3-case__meta,
  .m3-case__items li,
  .m3-contact__card-text,
  .m3-pclinks__text,
  .m3-itemcard__detail,
  .m3-steps5__text,
  .m3-legacy .m3-text { font-size: 16px; }
  .m3-case__total { font-size: 22px; }
}

/* トップのアイコン */
.m3-hero__eyebrow .m3-i { margin-right: 6px; }
.m3-hero__telbtn { position: relative; padding-left: 52px !important; }
.m3-hero__telbtn .m3-hero__telicon { position: absolute; left: 18px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); }
.m3-hero__links a { gap: 6px; }
.m3-home-photo__title { display: flex; align-items: center; gap: 8px; }
.m3-home-section .m3-flowsec { margin: 0; }

/* スマホのヘッダー：背景を完全な白にして、スクロールした本文が透けないようにする（2026-10-21） */
@media screen and (max-width: 768px) {
  .l-header {
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--m3-border);
    box-shadow: 0 2px 10px rgba(24, 49, 83, 0.08);
  }
}
@media screen and (max-width: 768px) {
  /* ページ内リンクで飛んだ先が、固定ヘッダーに隠れないように */
  .m3-section[id],
  .m3-casecat,
  .m3-case,
  .m3-legacy,
  #contact,
  #price,
  #photo,
  #form { scroll-margin-top: 64px; }
}
