:root {
  --ink: #2f3032;
  --muted: #74736e;
  --paper: #fffdf9;
  --wash: #f7f3ec;
  --line: #e6ded2;
  --olive: #707b52;
  --olive-dark: #59623f;
  --gold: #bc9360;
  --teal: #78adb7;
  --shadow: 0 14px 34px rgba(51, 49, 44, 0.08);
  color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
}

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

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

button {
  font: inherit;
}

/* =========================================================
   折り返しの最適化（特にスマホ幅）
   ・見出し・本文ともに text-wrap: pretty を使う。
     通常の「行を詰めて折り返す」挙動を保ったまま、行末に
     一文字だけ残る孤立を抑える。
   ・balance は各行の長さを均等化しようとして、日本語では
     語の途中で不自然に改行してしまう（「整／えて」等）ため使わない。
   ・対応していないブラウザでは従来どおり折り返すだけで、害はない。
   ========================================================= */
h1,
h2,
h3,
h4,
p,
li,
dd,
small,
figcaption,
.flow-list span,
.choice-inner small,
.section-head p,
.lead-block {
  text-wrap: pretty;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: 74px;
  padding: 0 38px;
  background: rgba(255, 253, 249, 0.93);
  border-bottom: 1px solid rgba(230, 222, 210, 0.72);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(51, 49, 44, 0.08);
}

.brand img {
  width: 144px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 800;
}

/* デスクトップではメニュー項目を折り返さない（中途半端な画面幅での改行防止） */
.site-nav a {
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--olive);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone {
  display: grid;
  gap: 0;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.phone small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.pill-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.pill-button,
.primary-button {
  background: var(--olive);
  color: #fff;
  box-shadow: 0 12px 24px rgba(89, 98, 63, 0.18);
}

.pill-button:hover,
.primary-button:hover {
  background: var(--olive-dark);
}

.secondary-button {
  border: 1px solid #cfc5b5;
  background: rgba(255, 253, 249, 0.8);
  color: #474943;
}

.secondary-button:hover {
  border-color: var(--olive);
  color: var(--olive-dark);
}

.pill-button svg,
.primary-button svg,
.secondary-button svg {
  width: 17px;
  height: 17px;
}

/* 追従する料金シミュレーターボタン（FAB） */
.sim-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(89, 98, 63, 0.26);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.32s ease, transform 0.32s ease, visibility 0.32s ease, background 0.28s ease;
}

.sim-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sim-fab:hover {
  background: #a87f4f;
  box-shadow: 0 18px 34px rgba(89, 98, 63, 0.32);
}

.sim-fab svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.sim-fab .sim-fab-arrow {
  width: 16px;
  height: 16px;
}

@media (max-width: 820px) {
  .sim-fab {
    right: 14px;
    left: 14px;
    bottom: 14px;
    justify-content: center;
    padding: 14px 18px;
  }

  .sim-fab .sim-fab-text br {
    display: none;
  }
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.nav-toggle:hover {
  border-color: var(--olive);
  box-shadow: 0 6px 16px rgba(89, 98, 63, 0.14);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease, background 0.28s ease;
}

.nav-toggle-bars {
  position: relative;
  display: block;
}

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

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-header.is-open .nav-toggle {
  background: var(--olive);
  border-color: var(--olive);
}

.site-header.is-open .nav-toggle-bars {
  background: transparent;
}

.site-header.is-open .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header.is-open .nav-toggle-bars::before,
.site-header.is-open .nav-toggle-bars::after {
  background: #fff;
}

.hero {
  position: relative;
  min-height: 560px;
  padding-top: 74px;
  overflow: hidden;
  background: #fbfaf6;
}

.hero-bg,
.hero-mask {
  position: absolute;
  inset: 74px 0 0;
}

.hero-bg {
  width: 100%;
  height: calc(100% - 74px);
  object-fit: cover;
  object-position: right center;
}

.hero-mask {
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.98) 0%, rgba(255, 253, 249, 0.82) 34%, rgba(255, 253, 249, 0.34) 62%, rgba(255, 253, 249, 0) 100%),
    linear-gradient(180deg, rgba(255, 253, 249, 0) 0%, rgba(255, 253, 249, 0) 48%, rgba(255, 253, 249, 0.72) 82%, rgba(255, 253, 249, 1) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.58fr);
  gap: 48px;
  align-items: center;
  padding: 78px 0 88px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  /* CJK向けの折り返し制御。keep-all で文中の不自然な改行を抑え、
     <wbr> を入れた語句の区切りでのみ改行する。長い語が幅を超えた場合は
     overflow-wrap で逃がし、画面幅に応じて自然に折り返す。 */
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  text-wrap: pretty;
}

/* CJK見出し用の折り返しユーティリティ。<wbr> の位置でのみ改行し、
   語句の途中では切らない。画面幅を超える長語は overflow-wrap で逃がす。 */
.wbr-wrap {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}

.gold-line {
  display: block;
  width: 84px;
  height: 2px;
  margin: 28px 0 30px;
  background: var(--gold);
}

.hero-copy p {
  width: min(440px, 100%);
  margin: 0;
  color: #50514c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.95;
}

/* CJK向けの折り返し制御。keep-all で文中の不自然な改行を抑え、
   <wbr> を入れた語句の区切りでのみ改行する。長い語が幅を超えた場合は
   overflow-wrap で逃がし、画面幅に応じて自然に折り返す。 */
.hero-lead {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero-actions a {
  min-width: 178px;
}

.hero-mark {
  display: grid;
  place-items: center;
  min-height: 260px;
}

.hero-mark img {
  width: min(360px, 82%);
  opacity: 0.92;
}

.area-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 58px;
  margin-top: -30px;
  padding: 0 22px;
  border: 1px solid #d9cdbd;
  border-radius: 7px;
  background: rgba(255, 253, 249, 0.95);
  box-shadow: var(--shadow);
}

.area-strip span {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 6px;
  background: #fbf5ed;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.area-strip p {
  margin: 0;
  color: #5e5f59;
  font-size: 13px;
  font-weight: 700;
}

.area-strip a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4a8994;
  font-size: 13px;
  font-weight: 900;
}

.area-strip svg {
  width: 15px;
  height: 15px;
}

.section {
  padding: 70px 0;
}

.section-head {
  margin: 0 auto 38px;
  text-align: center;
}

.section-label {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.section h2,
.reasons h2,
.bottom-cta h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.45;
  letter-spacing: 0;
}

.section-head p:last-child {
  max-width: 560px;
  margin: 12px auto 0;
  color: #5d5f59;
  font-size: 14px;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 276px;
  padding: 30px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 24px rgba(51, 49, 44, 0.06);
}

.service-card > svg {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  stroke-width: 1.7;
  color: var(--ink);
}

.service-card > img {
  width: auto;
  height: 84px;
  max-width: 100%;
  margin: 4px 0 18px;
  object-fit: contain;
}

.service-card:nth-child(2) > svg {
  color: var(--gold);
}

.service-card:nth-child(3) > svg {
  color: var(--olive);
}

.service-card:nth-child(4) > svg {
  color: var(--teal);
}

.service-card h3,
.reason-grid h3,
.voice-grid h3 {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.45;
}

.service-card p,
.reason-grid p,
.voice-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.service-card strong {
  align-self: end;
  margin-top: 18px;
  font-size: 15px;
}

.service-card a {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #b9b79d;
  color: #fff;
}

.service-card a svg {
  width: 14px;
  height: 14px;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* =========================================================
   FIRST STEP（お悩み）
   ========================================================= */
.worries {
  background: var(--wash);
  padding-top: 24px;
}

.worry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.worry-grid article {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(51, 49, 44, 0.05);
}

.worry-grid svg {
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--gold);
  stroke-width: 1.8;
}

.worry-grid p {
  margin: 0;
  color: #45474a;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.75;
}

/* =========================================================
   OUR STYLE（私たちの考え方）
   ========================================================= */
.mindset {
  padding: 78px 0;
  background: linear-gradient(135deg, var(--olive-dark), var(--olive));
  color: var(--paper);
}

.mindset-inner {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 50px;
  align-items: start;
}

.mindset-head .section-label {
  color: #ddc59a;
}

.mindset-head h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.mindset-head .gold-line {
  margin: 24px 0 0;
}

.mindset-copy {
  display: grid;
  gap: 20px;
}

.mindset-copy p {
  margin: 0;
  color: rgba(255, 253, 249, 0.92);
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
}

.reasons {
  padding: 70px 0;
  background: #f6f3ed;
}

.reasons h2 {
  margin-bottom: 34px;
  text-align: center;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.reason-grid article {
  display: grid;
  justify-items: center;
  padding: 18px 28px;
  text-align: center;
  border-right: 1px solid #ddd5c8;
}

.reason-grid article:last-child {
  border-right: 0;
}

.reason-grid svg {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  color: var(--olive);
  stroke-width: 1.5;
}

.flow {
  background: #fff;
}

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

.flow-list li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.flow-list li + li::before {
  content: "";
  position: absolute;
  top: 38px;
  left: -22px;
  width: 17px;
  height: 1px;
  background: #cfc8bd;
}

.flow-list li + li::after {
  content: "";
  position: absolute;
  top: 34px;
  left: -8px;
  width: 8px;
  height: 8px;
  border-top: 1px solid #cfc8bd;
  border-right: 1px solid #cfc8bd;
  transform: rotate(45deg);
}

.flow-list svg {
  width: 76px;
  height: 76px;
  padding: 22px;
  border: 1px solid #ded8ce;
  border-radius: 50%;
  /* 円形のクリップ（border-radius + SVG既定の overflow:hidden）で
     四角いアイコンの四隅が切り取られるのを防ぐ */
  overflow: visible;
  color: #343637;
  stroke-width: 1.6;
}

.flow-list strong {
  font-size: 13px;
  line-height: 1.45;
}

.flow-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.price,
.voice {
  background: #faf7f1;
}

.works {
  background: #fff;
}

.price-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.price-list,
.monthly,
.voice-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(51, 49, 44, 0.05);
}

.price-list,
.monthly {
  padding: 34px 40px;
}

.price-list h3,
.monthly h3 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 16px;
}

.price-list dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.price-list dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
  font-weight: 800;
}

.price-list dd {
  margin: 0;
  white-space: nowrap;
}

.price-list p {
  margin: 20px 0 0;
  padding: 12px;
  background: #fbf7ee;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.monthly-plans {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.monthly-plans div {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 20px;
  background: #f8f2e8;
  text-align: center;
}

.monthly-plans span {
  font-weight: 900;
}

.monthly-plans p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.monthly-plans strong {
  font-size: 26px;
}

.monthly a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: #4a8994;
  font-weight: 900;
}

.monthly a svg {
  width: 16px;
  height: 16px;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.voice-grid article,
.works-grid article {
  min-height: 190px;
  padding: 28px;
}

.works-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(51, 49, 44, 0.05);
}

.works-grid span {
  color: #6b6d66;
  font-size: 13px;
  font-weight: 800;
}

.works-grid h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.55;
}

.works-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.works-grid a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: #4a8994;
  font-size: 13px;
  font-weight: 900;
}

.works-grid a svg {
  width: 15px;
  height: 15px;
}

.voice-type {
  margin: 0 0 14px !important;
  color: #62645f !important;
  font-size: 13px !important;
}

.voice-grid h3 {
  font-size: 18px;
}

.voice-note {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.bottom-cta {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: #fff;
}

.bottom-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.06) 0%, rgba(255, 253, 249, 0.86) 44%, rgba(255, 253, 249, 0.98) 100%),
    url("assets/hero-consultation.png") center / cover;
  opacity: 0.9;
}

.bottom-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 42% 0, 33% 100%, 0 100%);
  background: rgba(120, 173, 183, 0.18);
}

.cta-inner {
  position: relative;
  display: grid;
  justify-content: end;
  justify-items: end;
  padding: 54px 0;
}

.cta-inner > div {
  width: min(590px, 100%);
}

.bottom-cta h2 {
  margin-bottom: 14px;
}

.bottom-cta p {
  margin: 0;
  color: #5c5e58;
  font-size: 14px;
  font-weight: 700;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.site-footer {
  padding: 46px 0 24px;
  background: #f8f5ef;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.7fr 0.9fr;
  gap: 44px;
}

.footer-brand img {
  width: 160px;
}

.footer-brand p,
.copyright,
.footer-inner address span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.footer-inner nav,
.footer-inner address {
  display: grid;
  align-content: start;
  gap: 7px;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.footer-inner strong,
.footer-inner address a:first-child {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 900;
}

.copyright {
  width: min(1120px, calc(100% - 40px));
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(89, 98, 63, 0.13);
}

@media (max-width: 1240px) {
  .site-header {
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 16px;
    padding-inline: 22px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav,
  .header-contact {
    display: none;
  }

  .site-header.is-open {
    height: auto;
    grid-template-rows: 66px auto;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 18px;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-contact {
    grid-column: 1 / -1;
    align-self: start;
    display: grid;
    gap: 4px;
    justify-content: stretch;
  }

  .site-header.is-open .site-nav {
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }

  .site-header.is-open .site-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 10px;
    border-radius: 10px;
    font-size: 15px;
    color: var(--ink);
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  }

  .site-header.is-open .site-nav a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
    opacity: 0.55;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-header.is-open .site-nav a:hover,
  .site-header.is-open .site-nav a:active {
    background: var(--wash);
    color: var(--olive-dark);
    padding-left: 16px;
  }

  .site-header.is-open .site-nav a:hover::after {
    opacity: 1;
    transform: rotate(-45deg) translate(2px, 2px);
  }

  .site-header.is-open .header-contact {
    gap: 12px;
    margin-top: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .site-header.is-open .header-contact .phone {
    justify-items: start;
    padding-inline: 10px;
  }

  /* staggered reveal of menu items */
  .site-header.is-open .site-nav a,
  .site-header.is-open .header-contact > * {
    animation: navItemIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .site-header.is-open .site-nav a:nth-child(1) { animation-delay: 0.04s; }
  .site-header.is-open .site-nav a:nth-child(2) { animation-delay: 0.08s; }
  .site-header.is-open .site-nav a:nth-child(3) { animation-delay: 0.12s; }
  .site-header.is-open .site-nav a:nth-child(4) { animation-delay: 0.16s; }
  .site-header.is-open .site-nav a:nth-child(5) { animation-delay: 0.2s; }
  .site-header.is-open .site-nav a:nth-child(6) { animation-delay: 0.24s; }
  .site-header.is-open .header-contact > *:nth-child(1) { animation-delay: 0.26s; }
  .site-header.is-open .header-contact > *:nth-child(2) { animation-delay: 0.3s; }
  .site-header.is-open .header-contact > *:nth-child(3) { animation-delay: 0.34s; }

  /* dimmed backdrop behind the menu */
  body:has(.site-header.is-open)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(40, 37, 32, 0.42);
    backdrop-filter: blur(2px);
    animation: navFade 0.3s ease both;
  }

  body.nav-open {
    overflow: hidden;
  }

}

@media (max-width: 1080px) {
  .service-grid,
  .reason-grid,
  .worry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-grid article:nth-child(2) {
    border-right: 0;
  }

  .reason-grid article {
    border-bottom: 1px solid #ddd5c8;
  }

  .reason-grid article:nth-child(n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 640px);
  }

  .hero {
    min-height: auto;
  }

  .hero-bg,
  .hero-mask {
    inset: 66px 0 0;
  }

  .hero-mask {
    background:
      linear-gradient(180deg, rgba(255, 253, 249, 0.58), rgba(255, 253, 249, 0.34)),
      linear-gradient(90deg, rgba(255, 253, 249, 0.62), rgba(255, 253, 249, 0.18));
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 72px 0 60px;
  }

  /* 写真を見せるためマスクを薄くした分、テキストは白haloで可読性を確保 */
  .hero-copy h1,
  .hero-copy .hero-eyebrow,
  .hero-copy .hero-lead {
    text-shadow:
      0 1px 2px rgba(255, 253, 249, 0.95),
      0 0 14px rgba(255, 253, 249, 0.9);
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-mark {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .area-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: -16px;
    padding: 14px;
  }

  .area-strip span {
    width: 120px;
  }

  .section {
    padding: 66px 0;
  }

  .price-panel,
  .works-grid,
  .voice-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .flow-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mindset {
    padding: 58px 0;
  }

  .mindset-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .flow-list li + li::before,
  .flow-list li + li::after {
    display: none;
  }

  .monthly-plans {
    grid-template-columns: 1fr;
  }

  .monthly-plans b {
    text-align: center;
  }

  .cta-inner {
    justify-content: start;
  }

  .bottom-photo {
    background:
      linear-gradient(180deg, rgba(255, 253, 249, 0.82) 0%, rgba(255, 253, 249, 0.94) 100%),
      url("assets/hero-consultation.png") center / cover;
  }

  .bottom-photo::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 66px;
    padding-inline: 16px;
  }

  .brand img {
    width: 132px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .service-grid,
  .reason-grid,
  .worry-grid {
    grid-template-columns: 1fr;
  }

  .reason-grid article,
  .reason-grid article:nth-child(2),
  .reason-grid article:nth-child(n + 3) {
    border-right: 0;
    border-bottom: 1px solid #ddd5c8;
  }

  .reason-grid article:last-child {
    border-bottom: 0;
  }

  .price-list,
  .monthly {
    padding: 26px 20px;
  }

  .price-list dl div {
    font-size: 13px;
  }

  .cta-actions {
    display: grid;
  }
}

@keyframes navItemIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* リッチ版方針：モバイルメニューの開閉アニメーションも、OSの
   「動きを減らす」設定に関わらず常に再生する（抑制クエリは置かない）。 */

/* =========================================================
   Sub-pages (services / price / works)
   ========================================================= */
.page-hero {
  position: relative;
  padding: 132px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(960px 340px at 82% -12%, rgba(120, 173, 183, 0.18), transparent 62%),
    linear-gradient(180deg, #fbf8f2 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(188, 147, 96, 0.12), transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--olive);
}

.breadcrumb svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.breadcrumb span {
  color: var(--ink);
}

.page-hero h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.4;
  letter-spacing: 0;
}

.page-hero .lead {
  max-width: 660px;
  margin: 16px 0 0;
  color: #50514c;
  font-size: 15px;
  font-weight: 700;
}

.page-hero .gold-line {
  margin: 20px 0 0;
}

/* centered intro lead */
.lead-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: #4d4f4a;
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
}

.lead-block strong {
  color: var(--olive-dark);
}

/* shared feature list with check marks */
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  color: #4f514b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.feature-list svg {
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  color: var(--olive);
  stroke-width: 2.4;
}

/* ---- service detail rows (交互行・リッチ版) ---- */
#lineup .container {
  counter-reset: svc;
}

.service-detail {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
  counter-increment: svc;
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
}

.service-detail:first-of-type {
  padding-top: 40px;
}

.service-detail:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}

.service-detail:nth-child(even) .sd-media {
  order: 2;
}

/* --- media panel ---- */
.sd-media {
  position: relative;
  display: grid;
  place-items: center;
  /* 固定比率にせず、画像の高さに応じて枠が伸びる＝はみ出しが原理的に起きない。
     min-height で最低限の高さを確保しつつ、縦長画像では枠が広がる。 */
  min-height: 300px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(460px 200px at 50% 0%, rgba(112, 123, 82, 0.1), transparent 70%),
    linear-gradient(180deg, #faf8f3, #f2eee5);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

/* gold hairline inset frame */
.sd-media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(188, 147, 96, 0.34);
  border-radius: 13px;
  pointer-events: none;
}

/* large ghosted number watermark */
.sd-media::before {
  content: counter(svc, decimal-leading-zero);
  position: absolute;
  top: 10px;
  right: 22px;
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(89, 98, 63, 0.08);
  pointer-events: none;
}

.sd-media img {
  position: relative;
  z-index: 1;
  /* 4枚とも表示の縦幅を固定して統一。幅はアスペクト比に応じて自動 */
  height: 168px;
  width: auto;
  max-width: 84%;
  filter: drop-shadow(0 12px 22px rgba(51, 49, 44, 0.1));
}

.service-detail:hover .sd-media {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(51, 49, 44, 0.13);
}

/* ---- body ---- */
.sd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.sd-eyebrow::before {
  content: counter(svc, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(188, 147, 96, 0.5);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0;
}

.sd-eyebrow::after {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.sd-body h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
}

.sd-body > p {
  margin: 15px 0 0;
  color: #54564f;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.9;
}

.sd-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5f2e9, #efece1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  color: var(--olive-dark);
  font-weight: 900;
  font-size: 19px;
}

.sd-price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

/* ---- plan cards (3 tiers) ---- */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(51, 49, 44, 0.06);
  overflow: hidden;
}

.plan-card.is-featured {
  border-color: var(--olive);
  box-shadow: 0 24px 50px rgba(89, 98, 63, 0.2);
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: -34px;
  width: 140px;
  padding: 5px 0;
  background: var(--gold);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  transform: rotate(40deg);
}

.plan-card > header {
  padding: 28px 26px 24px;
  background: #faf7f1;
  border-bottom: 1px solid var(--line);
}

.plan-card.is-featured > header {
  background: linear-gradient(150deg, var(--olive) 0%, var(--olive-dark) 100%);
  border-bottom-color: transparent;
  color: #fff;
}

.plan-name {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.plan-target {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.plan-card.is-featured .plan-target {
  color: rgba(255, 255, 255, 0.82);
}

.plan-price {
  margin: 18px 0 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
}

.plan-price small {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.plan-card.is-featured .plan-price small {
  color: rgba(255, 255, 255, 0.82);
}

.plan-card .plan-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 28px;
}

.plan-card .feature-list {
  margin-top: 0;
}

.plan-card .plan-foot {
  margin-top: 24px;
  padding-top: 4px;
}

.plan-card .plan-foot .secondary-button,
.plan-card .plan-foot .primary-button {
  width: 100%;
}

.plan-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* 単独プラン（社外デジタル担当）：横型ヒーロー */
.plan-cards.is-single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

@media (min-width: 1081px) {
  .plan-card.is-hero {
    flex-direction: row;
    align-items: stretch;
  }
  .plan-card.is-hero > header {
    width: 44%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: none;
  }
  .plan-card.is-hero .plan-body {
    width: 56%;
    justify-content: center;
  }
}

/* 制作後の維持・更新サポート（2枚組） */
.plan-cards.is-duo {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-inline: auto;
}

.plans-subhead {
  max-width: 640px;
  margin: 46px auto 22px;
  text-align: center;
}

.plans-subhead h3 {
  margin: 0;
  font-size: 20px;
}

.plans-subhead p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .plan-cards.is-duo {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

/* ---- 社外デジタル担当：横型2パネルカード ---- */
.agent-plan {
  display: grid;
  grid-template-columns: 44% 1fr;
  max-width: 960px;
  margin: 30px auto 0;
  border: 1px solid var(--olive);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(89, 98, 63, 0.2);
  overflow: hidden;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.agent-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 66px rgba(89, 98, 63, 0.28);
}

/* ---- 左：オリーブのプランヘッダー ---- */
.agent-plan-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(150deg, var(--olive) 0%, var(--olive-dark) 100%);
  color: #fff;
}

/* 奥行きを出すソフトな光（斜めに広がる静的なグラデ／フィルター無し） */
.agent-plan-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    122deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 38%,
    rgba(255, 255, 255, 0) 66%
  );
  pointer-events: none;
}

.agent-plan-left::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(220, 176, 114, 0.4) 100%);
}

.agent-plan-left-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 38px 38px 40px;
}

/* おすすめバッジ（ゴールドのピル） */
.agent-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin: 0 0 16px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dcb072 0%, var(--gold) 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow:
    0 8px 18px rgba(89, 98, 63, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.agent-plan-badge svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  fill: rgba(255, 255, 255, 0.55);
}

.agent-plan-label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.8);
}

.agent-plan-name {
  margin: 12px 0 0;
  font-size: 26px;
  line-height: 1.4;
  color: #fff;
}

.agent-plan-target {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.agent-plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.agent-plan-price-label {
  width: 100%;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
}

.agent-plan-price-num {
  font-size: 50px;
  letter-spacing: 0.01em;
}

.agent-plan-price-yen {
  font-size: 25px;
  margin-left: 2px;
}

.agent-plan-price small {
  font-size: 16px;
  font-weight: 800;
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.82);
}

.agent-plan-tax {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.agent-plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin: 24px 0 0;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.agent-plan-chip svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
  color: #fff;
}

/* ---- 右：白い本体 ---- */
.agent-plan-right {
  display: flex;
  flex-direction: column;
  padding: 36px 38px 32px;
  background: #fff;
}

.agent-plan-heading {
  position: relative;
  margin: 0;
  padding-bottom: 12px;
  font-size: 19px;
}

.agent-plan-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

/* アイコン付き対応内容リスト */
.agent-plan-features {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.agent-plan-features li {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
}

.agent-plan-features li + li {
  border-top: 1px solid var(--line);
}

.apf-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(112, 123, 82, 0.12);
  color: var(--olive);
  transition: background 0.24s ease, color 0.24s ease;
}

.agent-plan-features li:hover .apf-icon {
  background: var(--olive);
  color: #fff;
}

.apf-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}

.agent-plan-features strong {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--ink);
}

.agent-plan-features div span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--muted);
}

.agent-plan-right .primary-button {
  width: 100%;
  margin-top: 24px;
  padding-block: 16px;
  /* おすすめバッジと同じゴールド配色 */
  background: linear-gradient(135deg, #dcb072 0%, var(--gold) 100%);
  box-shadow:
    0 12px 24px rgba(89, 98, 63, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.agent-plan-right .primary-button:hover {
  background: linear-gradient(135deg, var(--gold) 0%, #a87f4f 100%);
}

.agent-plan-foot-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.8;
}

.agent-range {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 18px;
  max-width: 960px;
  margin: 22px auto 0;
  padding: 22px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f5ef;
}

.agent-range-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #efe7d6;
}

.agent-range-icon svg {
  width: 26px;
  height: 26px;
  color: var(--muted);
  stroke-width: 1.8;
}

.agent-range h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.agent-range p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

@media (max-width: 560px) {
  .agent-range {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 880px) {
  .agent-plan {
    grid-template-columns: 1fr;
  }
  .agent-plan-left-body {
    padding: 32px 28px;
  }
  .agent-plan-price-num {
    font-size: 44px;
  }
  .agent-plan-right {
    padding: 32px 28px;
  }
}

/* ---- SUPPORT：3カラムの解説ボックス ---- */
.support-box {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 0.9fr;
  gap: 0;
  max-width: 1100px;
  margin: 26px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(51, 49, 44, 0.06);
  overflow: hidden;
}

.support-box + .support-box {
  margin-top: 22px;
}

.support-lead {
  padding: 34px 32px;
}

.support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #f4ecdd;
}

.support-icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  stroke-width: 1.8;
}

.support-lead h3 {
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 1.5;
}

.support-lead p {
  margin: 0 0 10px;
  color: #5c5e58;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.85;
}

.support-lead p:last-child {
  margin-bottom: 0;
}

.support-list {
  padding: 34px 30px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fcfaf6;
}

.support-list-head {
  margin: 0 0 16px;
  padding: 9px 14px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--olive) 0%, var(--olive-dark) 100%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
}

.support-list .feature-list {
  margin: 0;
  gap: 12px;
}

.support-list .feature-list li {
  font-size: 13px;
}

.support-caution {
  padding: 34px 30px;
  background: #faf7f1;
}

.support-caution-head {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.support-caution p:not(.support-caution-head) {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.85;
}

.support-caution p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .support-box {
    grid-template-columns: 1fr;
  }
  .support-list {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
}

/* ---- pricing menu ---- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: start;
}

.menu-card {
  padding: 32px 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(51, 49, 44, 0.05);
}

.menu-card h3 {
  margin: 0 0 20px;
  text-align: center;
  font-size: 16px;
}

.menu-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.menu-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  font-weight: 800;
}

.menu-card dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.menu-card dd {
  margin: 0;
  white-space: nowrap;
  color: var(--olive-dark);
}

.monthly-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.monthly-tier {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 22px 20px;
  border-radius: 10px;
  background: #f8f2e8;
  text-align: center;
}

.monthly-tier span {
  font-weight: 900;
  font-size: 14px;
}

.monthly-tier p {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.monthly-tier strong {
  font-size: 24px;
}

/* ---- categorized full price list (全サービスの料金目安) ---- */
.price-cats {
  display: grid;
  gap: 22px;
}

.price-cat {
  /* カテゴリごとのアクセント色。各 .price-cat--xxx で --cat を差し替えるだけで
     ヘッダー・アイコン・ラベル・価格・行の縞まで一括で色が揃う（統一感）。 */
  --cat: var(--olive);
  --cat-edge: color-mix(in srgb, var(--cat) 72%, #000);
  --cat-stripe: color-mix(in srgb, var(--cat) 6%, #fff);
  --cat-deep: color-mix(in srgb, var(--cat) 82%, #2f3032);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(51, 49, 44, 0.05);
  overflow: hidden;
}

.price-cat-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  /* ベタ塗りのカラーバンドで「パキッと」見せる */
  background: var(--cat);
}

.price-cat-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: var(--cat);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.price-cat-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.9;
}

.price-cat-head .section-label {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.82);
}

.price-cat-head h3 {
  color: #fff;
}

/* カテゴリ別アクセント（中彩度で明度をそろえ、ベタ塗りでも統一感を保つ） */
.price-cat--consult { --cat: #3c93a3; } /* teal      : 相談・診断 */
.price-cat--web     { --cat: #6f7e3c; } /* olive     : Webサイト */
.price-cat--local   { --cat: #c0862c; } /* gold      : Google・店舗 */
.price-cat--line    { --cat: #5a9b54; } /* green     : LINE・チャット */
.price-cat--ai      { --cat: #7c61a6; } /* plum      : AI・自動化 */
.price-cat--design  { --cat: #be6c55; } /* terracotta: 名刺・チラシ・写真 */
.price-cat--pc      { --cat: #4773aa; } /* slate     : PC・IT環境 */

.price-cat-head h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
}

.price-cat-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
}

.price-cat-list li + li {
  border-top: 1px solid var(--line);
}

.price-cat-list li:nth-child(even) {
  background: var(--cat-stripe);
}

.price-cat-list li > div {
  display: grid;
  gap: 3px;
}

.price-cat-list strong {
  font-size: 15px;
  font-weight: 900;
}

.price-cat-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.price-cat-list b {
  flex-shrink: 0;
  color: var(--cat-deep);
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .price-cat-head {
    gap: 12px;
    padding: 18px;
  }

  .price-cat-icon {
    width: 46px;
    height: 46px;
  }

  .price-cat-head h3 {
    font-size: 17px;
  }

  .price-cat-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 18px;
  }
}

/* note / info box */
.note-box {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  max-width: 840px;
  margin: 30px auto 0;
  padding: 24px 28px;
  border: 1px solid #e6dcc6;
  border-radius: 12px;
  background: #fbf7ee;
}

.note-box svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
  stroke-width: 1.8;
}

.note-box h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.note-box p {
  margin: 0;
  color: #5c5e58;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.85;
}

/* comparison strip under plans */
.plan-compare {
  max-width: 840px;
  margin: 36px auto 0;
}

.plan-compare li {
  font-size: 14px;
}

/* ---- works / case detail ---- */
.case {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.case:last-of-type {
  border-bottom: 0;
}

.case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f1efe4;
  color: var(--olive-dark);
  font-size: 12.5px;
  font-weight: 900;
}

.case-head h2 {
  margin: 0;
  font-size: clamp(21px, 2.3vw, 26px);
  line-height: 1.45;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-col {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.case-col.is-before {
  background: #f7f3ec;
}

.case-col.is-after {
  border-color: var(--olive);
  background: #f4f7ef;
}

.case-col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 900;
}

.case-col h3 svg {
  width: 18px;
  height: 18px;
}

.case-col.is-before h3 svg {
  color: #b08a52;
}

.case-col.is-after h3 svg {
  color: var(--olive);
}

.case-col p {
  margin: 0;
  color: #54564f;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.85;
}

.case-col ul {
  margin: 0;
  padding-left: 18px;
  color: #54564f;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.9;
}

.case-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.case-result b {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--olive);
  color: var(--olive-dark);
  font-size: 13px;
  font-weight: 900;
}

.case-voice {
  position: relative;
  margin-top: 22px;
  padding: 22px 26px 22px 56px;
  border-radius: 12px;
  background: #faf7f1;
  border: 1px solid var(--line);
}

.case-voice svg {
  position: absolute;
  left: 22px;
  top: 22px;
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.case-voice p {
  margin: 0;
  color: #4f514b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.85;
}

.case-voice cite {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

/* generic page section background helpers */
.section.tint {
  background: #faf7f1;
}

.section.plain {
  background: #fff;
}

@media (max-width: 1080px) {
  .plan-cards {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .plan-badge {
    display: none;
  }
}

@media (max-width: 820px) {
  .page-hero {
    padding: 116px 0 46px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 42px 0;
  }

  .service-detail:first-of-type {
    padding-top: 30px;
  }

  .service-detail:nth-child(even) .sd-media {
    order: 0;
  }

  .sd-media {
    min-height: 230px;
    padding: 30px;
  }

  .sd-media img {
    height: 150px;
    max-width: 80%;
  }

  .sd-media::before {
    font-size: 64px;
    top: 6px;
    right: 16px;
  }

  .menu-grid,
  .case-grid,
  .monthly-tiers {
    grid-template-columns: 1fr;
  }

  .note-box {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* =========================================================
   Contact page
   ========================================================= */
/* page-hero の下余白とセクション上余白が重なり、見出しとフォームが
   離れすぎるため、フォームセクションの上余白を詰める */
.section.plain:has(.contact-layout) {
  padding-top: 40px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr);
  gap: 30px;
  align-items: start;
}

.contact-form-wrap {
  padding: 38px 40px 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 24px;
}

.form-block {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
}

/* fieldset の legend はグリッドの gap が効かないため、
   他の項目（gap:9px）と揃うよう明示的に余白を付ける */
legend.form-label {
  width: 100%;
  margin-bottom: 9px;
}

.req,
.opt {
  display: inline-grid;
  place-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.req {
  background: #f3e3d6;
  color: #b06a36;
}

.opt {
  background: #eef0ea;
  color: #6f756a;
}

/* selectable type cards */
.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.choice-card {
  position: relative;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.choice-inner {
  display: grid;
  justify-items: start;
  gap: 6px;
  height: 100%;
  padding: 18px 18px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfaf6;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.choice-inner i {
  width: 26px;
  height: 26px;
  color: var(--olive);
  stroke-width: 1.8;
}

.choice-inner strong {
  font-size: 15px;
  line-height: 1.4;
}

.choice-inner small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.choice-card input:checked + .choice-inner {
  border-color: var(--olive);
  background: #f4f7ef;
  box-shadow: 0 10px 24px rgba(89, 98, 63, 0.14);
}

.choice-card input:focus-visible + .choice-inner {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* inputs */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fbfaf6;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form textarea {
  line-height: 1.8;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a9a79c;
  font-weight: 600;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--olive);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(112, 123, 82, 0.14);
}

/* custom select */
.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.select-wrap i,
.select-wrap svg {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.field-hint {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

/* radio pills */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-pill {
  position: relative;
  cursor: pointer;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.radio-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fbfaf6;
  font-size: 13px;
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.radio-pill input:checked + span {
  border-color: var(--olive);
  background: #f4f7ef;
  color: var(--olive-dark);
}

.radio-pill input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* agree checkbox */
.agree {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf7f1;
  cursor: pointer;
}

.agree input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--olive);
  cursor: pointer;
}

.agree span {
  color: #54564f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.agree .req {
  margin-left: 6px;
  vertical-align: middle;
}

/* submit */
.form-foot {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 4px;
}

.form-submit {
  width: min(360px, 100%);
  min-height: 54px;
  font-size: 15px;
}

.form-submit svg {
  width: 18px;
  height: 18px;
}

.form-submit[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.form-foot .field-hint {
  text-align: center;
}

/* status message */
.form-status {
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.form-status.is-success {
  border: 1px solid #b6cda0;
  background: #f1f6ea;
  color: #4c5d33;
}

.form-status.is-error {
  border: 1px solid #e3b9a3;
  background: #fbf0ea;
  color: #a3552f;
}

/* contact side cards */
.contact-side {
  display: grid;
  gap: 18px;
}

.contact-card {
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(51, 49, 44, 0.05);
}

.contact-card.is-area {
  background: #faf7f1;
}

.contact-card h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 900;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  color: var(--olive-dark);
  word-break: break-all;
  font-size: 16px;
}

.contact-mail svg {
  width: 20px;
  height: 20px;
  color: var(--olive);
  flex-shrink: 0;
}

.contact-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.contact-note {
  margin: 12px 0 0;
  color: #5c5e58;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #4a8994;
  font-size: 13px;
  font-weight: 900;
}

.contact-link svg {
  width: 15px;
  height: 15px;
}

/* LINE card */
.line-add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 16px;
  padding: 13px 20px;
  border-radius: 11px;
  background: var(--olive);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 9px 20px rgba(112, 123, 82, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.line-add-button:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
  box-shadow: 0 13px 26px rgba(89, 98, 63, 0.3);
}

.line-add-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.line-qr {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.line-qr img {
  width: 160px;
  height: 160px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.line-qr figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-form-wrap {
    padding: 26px 20px 30px;
  }

  .choice-cards,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .form-submit {
    width: 100%;
  }

  /* スマホ（iOS Safari）でフォーカス時の自動ズームを防ぐため、
     入力欄のフォントサイズを16px以上に保つ */
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form textarea,
  .contact-form select {
    font-size: 16px;
  }
}

/* =========================================================
   Motion — scroll reveal, entrance & hover micro-interactions
   全ページ共通。リッチに見せつつ控えめなアニメーション。
   .reveal クラスは JS（script.js）が付与するため、JS未実行でも
   コンテンツは常に表示されます（FOUC・非表示事故を防止）。
   ========================================================= */

/* --- scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* --- hero / page-hero entrance --- */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes heroPan {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* 動きを減らす設定向け：移動なしの軽いフェードのみ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-bg {
  animation: heroPan 9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > *,
.page-hero .container > * {
  animation: riseIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > :nth-child(1),
.page-hero .container > :nth-child(1) { animation-delay: 0.08s; }
.hero-copy > :nth-child(2),
.page-hero .container > :nth-child(2) { animation-delay: 0.16s; }
.hero-copy > :nth-child(3),
.page-hero .container > :nth-child(3) { animation-delay: 0.24s; }
.hero-copy > :nth-child(4),
.page-hero .container > :nth-child(4) { animation-delay: 0.32s; }
.hero-copy > :nth-child(5),
.page-hero .container > :nth-child(5) { animation-delay: 0.4s; }

/* gold line draws itself from the left */
.hero-copy .gold-line,
.page-hero .gold-line {
  transform-origin: left center;
  animation: lineGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.4s;
}

/* --- hover lift on cards --- */
.service-card,
.works-grid article,
.voice-grid article,
.plan-card,
.menu-card,
.case-col,
.contact-card,
.price-list,
.monthly,
.note-box,
.legend-card,
.area-note-card,
.price-cat,
.map-card {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease;
}

.service-card:hover,
.works-grid article:hover,
.voice-grid article:hover,
.menu-card:hover,
.contact-card:hover,
.price-list:hover,
.monthly:hover,
.legend-card:hover,
.area-note-card:hover,
.map-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(51, 49, 44, 0.13);
}

.price-cat:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--cat) 45%, var(--line));
  box-shadow: 0 22px 42px color-mix(in srgb, var(--cat) 22%, transparent);
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(51, 49, 44, 0.16);
}

.plan-card.is-featured:hover {
  box-shadow: 0 30px 60px rgba(89, 98, 63, 0.26);
}

.case-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(51, 49, 44, 0.1);
}

/* image inside service cards gently zooms */
.service-card > img {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover > img {
  transform: scale(1.07);
}

/* the round arrow chip on service cards */
.service-card a {
  transition: background 0.28s ease, transform 0.28s ease;
}

.service-card:hover a {
  background: var(--olive);
  transform: scale(1.12);
}

/* reason tiles: icon lifts and tints on hover */
.reason-grid article svg,
.flow-list svg {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.reason-grid article:hover svg {
  transform: translateY(-4px) scale(1.06);
  color: var(--olive-dark);
}

.flow-list li:hover svg {
  transform: translateY(-3px);
  border-color: var(--olive);
  color: var(--olive-dark);
}

/* --- button & link micro-interactions --- */
.pill-button,
.primary-button,
.secondary-button {
  transition:
    background 0.26s ease,
    border-color 0.26s ease,
    color 0.26s ease,
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.26s ease;
}

.primary-button:hover,
.pill-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(89, 98, 63, 0.26);
}

.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:active,
.pill-button:active,
.secondary-button:active {
  transform: translateY(0);
}

/* arrows nudge to the right on hover */
.pill-button svg,
.primary-button svg,
.secondary-button svg,
.monthly a svg,
.works-grid a svg,
.contact-link svg,
.area-link svg,
.area-strip a svg {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.primary-button:hover svg,
.secondary-button:hover svg,
.pill-button:hover svg,
.monthly a:hover svg,
.works-grid a:hover svg,
.contact-link:hover svg,
.area-link:hover svg,
.area-strip a:hover svg {
  transform: translateX(4px);
}

/* underlined-style nav link sweep on desktop */
@media (min-width: 1241px) {
  .site-nav a {
    position: relative;
    transition: color 0.24s ease;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--olive);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

/* --- リッチ版方針 ---
   ご要望により、OSの「動きを減らす（prefers-reduced-motion）」設定に
   かかわらず、全ての訪問者にフルアニメーションを再生する。
   そのため、ここでアニメを抑制する @media (prefers-reduced-motion) は
   意図的に置いていない。動きを再び設定尊重に戻す場合は、この位置に
   抑制用のメディアクエリを追加すること。 */

/* --- スマホ・タブレット：ファーストビュー以外のスクロール挙動を無効化 ---
   タッチ端末（hover不可・粗いポインタ）では、スクロールに連動した
   表示アニメーション（.reveal）を止めて、要素は最初からそのまま表示する。
   ヒーロー／ページヒーローの入場演出は「ファーストビュー」の読み込み時
   アニメなので、ここでは止めず残す。 */
@media (hover: none) and (pointer: coarse) {
  .reveal,
  .reveal.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   フッター下部の法務リンク（会社概要・プライバシー・特商法）
   ========================================================= */
.footer-legal-links {
  width: min(1120px, calc(100% - 40px));
  margin: 30px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12px;
  font-weight: 800;
}

.footer-legal-links a {
  color: var(--muted);
}

.footer-legal-links a:hover {
  color: var(--olive);
}

.footer-legal .copyright {
  margin-top: 14px;
}

/* =========================================================
   会社概要（プロフィール表）
   ========================================================= */
.profile {
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(51, 49, 44, 0.05);
}

.profile > div {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.profile > div + div {
  border-top: 1px solid var(--line);
}

.profile dt {
  margin: 0;
  padding: 17px 22px;
  background: #faf7f1;
  font-size: 14px;
  font-weight: 900;
}

.profile dd {
  margin: 0;
  padding: 17px 22px;
  font-size: 14px;
  font-weight: 700;
  color: #4b4d47;
  line-height: 1.85;
}

@media (max-width: 620px) {
  .profile > div {
    grid-template-columns: 1fr;
  }
  .profile dt {
    padding-bottom: 2px;
  }
  .profile dd {
    padding-top: 8px;
  }
}

/* =========================================================
   法務ドキュメント（プライバシーポリシー等の本文）
   ========================================================= */
.legal {
  max-width: 820px;
  margin: 0 auto;
}

.legal h2 {
  margin: 38px 0 12px;
  font-size: 19px;
  font-weight: 900;
}

.legal > :first-child {
  margin-top: 0;
}

.legal p {
  margin: 0 0 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: #45473f;
  line-height: 1.95;
}

.legal ul,
.legal ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.legal li {
  margin-bottom: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #45473f;
  line-height: 1.9;
}

.legal-updated {
  margin-top: 36px !important;
  color: var(--muted);
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* 未入力（要差し替え）のプレースホルダーを目立たせる */
.todo {
  color: #a3552f;
  font-weight: 800;
}

/* === TOP料金セクション：料金シミュレーター導線（追加） === */
.monthly .monthly-cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.monthly .monthly-cta a {
  margin-top: 0;
}
.monthly .monthly-sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(188, 147, 96, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.monthly .monthly-sim-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 24px rgba(188, 147, 96, 0.4);
}
.monthly .monthly-sim-btn svg {
  width: 18px;
  height: 18px;
}
.monthly .monthly-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4a8994;
  font-weight: 900;
  font-size: 14px;
}
.monthly .monthly-detail-link svg {
  width: 16px;
  height: 16px;
}

/* =========================================================
   よくある質問（FAQ）アコーディオン
   <details>/<summary> による軽量実装。JS不要・キーボード操作対応。
   FAQページ本体と、TOP・問い合わせページの要約ブロックで共用する。
   ========================================================= */
.faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(51, 49, 44, 0.05);
  overflow: hidden;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.faq-item[open] {
  border-color: var(--olive);
  box-shadow: 0 16px 32px rgba(89, 98, 63, 0.12);
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  margin: 0;
  cursor: pointer;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  list-style: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q .faq-mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wash);
  color: var(--olive);
  font-weight: 900;
  font-size: 15px;
}

.faq-q .faq-chevron {
  margin-left: auto;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--olive);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] .faq-q .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 22px 22px 66px;
  margin: 0;
  color: #4f514b;
  font-size: 15px;
  line-height: 1.85;
}

.faq-a p {
  margin: 0 0 10px;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

.faq-a a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 開閉時のふわっと表示（リッチ版方針：モーション抑制は無効） */
.faq-item[open] .faq-a {
  animation: faqReveal 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TOP・問い合わせページの要約FAQブロックの末尾リンク */
.faq-mini-foot {
  margin-top: 26px;
  text-align: center;
}

@media (max-width: 720px) {
  .faq-q {
    padding: 16px 16px;
    font-size: 15px;
    gap: 12px;
  }

  .faq-a {
    padding: 0 16px 18px 16px;
  }
}

/* =========================================================
   ブログ / コラム（blog/ 配下で使用）
   ※ ナビ・sitemap 未接続。公開時に各ページの noindex を外すこと。
   ========================================================= */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 8px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.post-tag {
  padding: 3px 10px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--olive-dark);
  font-size: 11px;
  font-weight: 800;
}

.blog-card h2 {
  margin: 2px 0 0;
  font-size: 19px;
  line-height: 1.55;
}

.blog-card p {
  margin: 0;
  color: #50514c;
  font-size: 14px;
}

.blog-card .read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--olive);
  font-weight: 800;
  font-size: 14px;
}

.blog-card .read-more svg {
  width: 16px;
  height: 16px;
}

/* --- 記事本文（エディトリアル） --- */
.post-body {
  max-width: 720px;
  margin-inline: auto;
  font-size: 16.5px;
  line-height: 1.9;
}

.post-body > * + * {
  margin-top: 1.4em;
}

/* 標題（リード文） */
.post-lead {
  margin-top: 0;
  font-size: clamp(17px, 2.2vw, 19px);
  font-weight: 700;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: #34352f;
}

/* 見出し */
.post-body h2 {
  margin-top: 2.6em;
  margin-bottom: 0.1em;
  font-size: clamp(22px, 2.8vw, 27px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink);
  scroll-margin-top: 96px;
}

.post-body h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--olive));
}

.post-body h3 {
  margin-top: 1.9em;
  font-size: 17.5px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--olive-dark);
}

.post-body p {
  color: #44453f;
}

/* 本文中リンク */
.post-body a:not(.read-more):not(.primary-button):not(.secondary-button) {
  color: var(--olive-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(112, 123, 82, 0.42);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

.post-body a:not(.read-more):not(.primary-button):not(.secondary-button):hover {
  text-decoration-color: var(--olive);
}

.post-body strong {
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(188, 147, 96, 0.22) 0);
}

/* リスト（カスタムマーカー） */
.post-body ul,
.post-body ol {
  margin-top: 1.2em;
  padding-left: 0;
  list-style: none;
}

.post-body li {
  position: relative;
  margin-top: 0.75em;
  padding-left: 1.8em;
  color: #44453f;
}

.post-body ul > li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.74em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.post-body ol {
  counter-reset: post-ol;
}

.post-body ol > li {
  counter-increment: post-ol;
}

.post-body ol > li::before {
  content: counter(post-ol);
  position: absolute;
  left: 0;
  top: 0.18em;
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

/* 目次 */
.post-toc {
  margin: 36px auto 48px;
  max-width: 720px;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--olive);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(51, 49, 44, 0.05);
}

.post-toc strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.post-toc strong::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--olive);
}

.post-toc ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: toc;
}

.post-toc li {
  counter-increment: toc;
  position: relative;
  margin-top: 9px;
  padding-left: 28px;
  font-size: 14.5px;
  font-weight: 700;
}

.post-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.post-toc a {
  color: #45463f;
  transition: color 0.15s ease;
}

.post-toc a:hover {
  color: var(--olive);
}

/* メモ / 補足ボックス */
.post-note {
  margin-top: 1.8em;
  padding: 20px 24px 22px;
  background: linear-gradient(180deg, #f5f8f4, #f1f5ef);
  border: 1px solid #e2eadd;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.85;
  color: #3f463c;
}

.post-note::before {
  content: "MEMO";
  display: block;
  width: max-content;
  margin-bottom: 10px;
  padding: 3px 11px;
  background: var(--olive);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

/* 末尾CTA */
.post-cta {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 40px 32px;
  text-align: center;
  background:
    radial-gradient(620px 220px at 50% -30%, rgba(120, 173, 183, 0.16), transparent 62%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.post-cta::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--olive));
}

.post-cta h2 {
  margin: 0 0 10px;
  border: 0;
  padding: 0;
  font-size: clamp(20px, 2.4vw, 23px);
}

.post-cta h2::after {
  display: none;
}

.post-cta p {
  margin: 0 auto 22px;
  max-width: 540px;
  color: #50514c;
  font-size: 15px;
}
