/* ===== Design tokens ===== */
:root {
  --color-brand: #1a7a4c;
  --color-brand-dark: #125836;
  --color-brand-light: #e8f5ee;
  --color-accent: #d64545;
  --color-accent-dark: #b23636;
  --color-ink: #1f2933;
  --color-ink-soft: #52606d;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7f6;
  --color-border: #e0e5e3;
  --color-gold: #b8934a;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 6px 20px rgba(184, 147, 74, 0.12), 0 2px 8px rgba(20, 40, 30, 0.05);
  --shadow-lg: 0 18px 38px rgba(184, 147, 74, 0.18), 0 6px 16px rgba(18, 40, 30, 0.08);
  --container-width: 1120px;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-heading: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.5; margin: 0 0 0.6em; font-weight: 700; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* カードが順番に波のように現れるスタッガー効果 */
.service-grid > .reveal:nth-child(1), .reason-grid > .reveal:nth-child(1),
.support-grid > .reveal:nth-child(1), .guarantee-grid > .reveal:nth-child(1),
.pricing-grid > .reveal:nth-child(1), .steps > .reveal:nth-child(1) { transition-delay: 0s; }
.service-grid > .reveal:nth-child(2), .reason-grid > .reveal:nth-child(2),
.support-grid > .reveal:nth-child(2), .guarantee-grid > .reveal:nth-child(2),
.pricing-grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: 0.1s; }
.service-grid > .reveal:nth-child(3), .reason-grid > .reveal:nth-child(3),
.support-grid > .reveal:nth-child(3), .guarantee-grid > .reveal:nth-child(3),
.pricing-grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: 0.2s; }
.service-grid > .reveal:nth-child(4), .support-grid > .reveal:nth-child(4),
.steps > .reveal:nth-child(4) { transition-delay: 0.3s; }
.service-grid > .reveal:nth-child(5), .steps > .reveal:nth-child(5) { transition-delay: 0.4s; }
.steps > .reveal:nth-child(6) { transition-delay: 0.5s; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
/* WordPress管理者バー表示時、固定ヘッダーが管理バーの下に隠れないよう調整 */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 700;
}
/* logo-full.pngは横長（約10:1）のロゴのため、flexコンテナ内で意図せず横に潰れて
   間延びして見えないよう、flex-shrinkだけを止めます（幅の上限は設けず、高さに応じた
   自然な幅で表示します）。 */
.site-header__logo { height: 34px; width: auto; display: block; flex-shrink: 0; }
@media (max-width: 480px) {
  .site-header__logo { height: 28px; }
}

.site-nav__list {
  display: flex;
  gap: 24px;
}
.site-nav__list a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav__list a:hover { color: var(--color-brand); }
.site-nav__lang {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 14px !important;
  font-weight: 700 !important;
}
.site-nav__lang:hover { border-color: var(--color-brand); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-ink);
}

@media (max-width: 840px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .site-nav__list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-toggle { display: block; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn .material-symbols-outlined { font-size: 1.15em; }
.btn-line__icon { width: 1.3em; height: 1.3em; flex-shrink: 0; border-radius: 22%; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); }
.hero__ctas .btn-primary {
  animation: ctaPulse 2.6s ease-in-out infinite;
}
.hero__ctas .btn-primary:hover { animation-play-state: paused; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 69, 69, 0.55); }
  50% { box-shadow: 0 0 0 10px rgba(214, 69, 69, 0); }
}
.btn-line { background: #06c755; color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent); color: #fff; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 88px 0 96px;
  background: linear-gradient(160deg, var(--color-brand-dark), var(--color-brand));
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
@media (min-width: 841px) {
  .hero { min-height: min(82vh, 760px); }
}
@media (max-width: 840px) {
  /* 841px未満ではmin-heightの指定が無く、文章量（見出し・リード文の長さ）によって
     写真の高さがページごとにバラついていました（例：トップページと他のページで
     文字量が違うため、写真の縦幅が違って見える）。最低の高さを揃えることで、
     どのページでも写真の縦幅が同じくらいになるようにします。 */
  .hero { min-height: min(78vh, 640px); }
}
/* サービスページはヒーローの直前にパンくずリスト（.breadcrumb、高さ約52px）があり、
   トップページには無いため、ヒーロー自体の高さが同じでも、ヒーローの下端（波形の位置）が
   パンくずリストの分だけ下にずれて見えていました。パンくずリストがある場合はヒーローの
   最低高さをその分だけ差し引き、どのページでも波形の位置が揃うようにします。 */
@media (min-width: 841px) {
  .breadcrumb + .hero { min-height: calc(min(82vh, 760px) - 52px); }
}
@media (max-width: 840px) {
  .breadcrumb + .hero { min-height: calc(min(78vh, 640px) - 52px); }
}
.hero--photo {
  background-image: linear-gradient(120deg, rgba(11, 36, 25, 0.92) 0%, rgba(12, 40, 28, 0.62) 55%, rgba(12, 40, 28, 0.4) 100%), var(--hero-image);
  background-position: var(--hero-position, center);
  background-size: var(--hero-size, cover);
}
@media (min-width: 701px) and (max-width: 1024px) {
  .hero--photo { background-position: var(--hero-position-tablet, var(--hero-position, center)); }
}
@media (max-width: 700px) {
  .hero--photo { background-position: var(--hero-position-mobile, var(--hero-position, center)); }
}
.hero::after {
  content: "";
  position: absolute;
  left: -10%; right: -10%; bottom: -1px;
  height: 70px;
  background: var(--color-bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  /* 下部の波形（.hero::after）が視覚的にスペースを取るため、単純な上下中央配置だと
     文字が実際より低く見えます。paddingで余白を広げる方式は「余白が増えて間延びする」
     副作用があったため、代わりにtransformで文字自体を直接持ち上げます
     （.heroの高さ・余白には影響しません）。 */
  transform: translateY(-30px);
}
@media (min-width: 701px) and (max-height: 760px) {
  .hero__inner { transform: translateY(-14px); }
}
@media (min-width: 701px) and (max-height: 640px) {
  .hero__inner { transform: translateY(-6px); }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__inner > * {
  animation: heroRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero__eyebrow { animation-delay: 0.05s; }
.hero__inner > h1 { animation-delay: 0.16s; }
.hero__tagline { animation-delay: 0.22s; }
.hero__lead { animation-delay: 0.28s; }
.hero__ctas { animation-delay: 0.4s; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.4em;
  position: relative;
  padding-bottom: 0.3em;
  text-wrap: balance;
}
@media (min-width: 841px) {
  .hero h1 { font-size: clamp(2.6rem, 1.6rem + 3vw, 3.75rem); }
}
.hero-break { display: none; }
@media (min-width: 841px) {
  .hero-break { display: initial; }
}
.hero-break-mobile { display: initial; }
@media (min-width: 701px) {
  .hero-break-mobile { display: none; }
}
.hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: var(--color-gold);
}
.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 0.7em;
}
.hero__lead {
  font-size: 1.05rem;
  margin-bottom: 1.6em;
  opacity: 0.95;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__ctas .btn { min-width: 220px; }
@media (min-width: 701px) and (max-height: 760px) {
  .hero { padding: 40px 0 56px; }
  .hero__eyebrow { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3rem); margin-bottom: 0.2em; padding-bottom: 0.2em; }
  .hero__tagline { margin-bottom: 0.35em; }
  .hero__lead { margin-bottom: 0.8em; font-size: 0.95rem; line-height: 1.45; }
}
@media (min-width: 701px) and (max-height: 640px) {
  .hero { padding: 28px 0 44px; }
  .hero__eyebrow { margin-bottom: 8px; }
  .hero__lead { margin-bottom: 0.5em; }
}

/* ===== Section shell ===== */
.section { padding: 64px 0; }
.section--soft { background: var(--color-bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-brand-light);
  color: var(--color-brand);
  margin-bottom: 14px;
  animation: iconFloat 3.2s ease-in-out infinite;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.section__title { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); }
@media (min-width: 841px) {
  .section__title { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); }
}
.section__lead { color: var(--color-ink-soft); }

/* ===== Pain points ===== */
.pain-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.pain-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 500;
  font-size: 1.1rem;
}

.misconception {
  max-width: 760px;
  margin: 32px auto 0;
  background: var(--color-brand-light);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.misconception__label { font-weight: 700; color: var(--color-brand-dark); margin-bottom: 6px; font-size: 1.75rem; }
.misconception__myth { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.misconception p { font-size: 1.1rem; line-height: 1.8; }

/* ===== 診断セルフチェック ===== */
.diagnostic-quiz__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}
.diagnostic-quiz__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease);
}
.diagnostic-quiz__item:hover { box-shadow: var(--shadow); }
.diagnostic-quiz__item input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--color-brand); }
.diagnostic-quiz__result {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
}
.diagnostic-quiz__result-lead { font-weight: 700; color: var(--color-brand-dark); margin-bottom: 10px; font-size: 1.1rem; }

/* ===== Why-chosen ===== */
.reason-grid {
  display: grid;
  gap: 32px;
}
.reason-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: start;
}
.reason-card__num {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(184, 147, 74, 0.25);
}
.reason-card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
@media (max-width: 600px) {
  .reason-card { grid-template-columns: 56px 1fr; }
  .reason-card__num { width: 56px; height: 56px; font-size: 1.1rem; }
}
.reason-card--photo {
  grid-template-columns: 220px 1fr;
}
.reason-card--photo .reason-card__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.reason-card--photo .reason-card__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.reason-card--photo:hover .reason-card__photo img { transform: scale(1.06); }
.reason-card--photo .reason-card__num {
  width: 40px; height: 40px; font-size: 0.95rem; margin-bottom: 10px;
}
@media (max-width: 700px) {
  .reason-card--photo { grid-template-columns: 1fr; }
}

/* ===== Support content cards ===== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.support-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.support-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.support-card__icon { color: var(--color-brand); margin-bottom: 10px; }
.support-card h3 { font-size: 1.05rem; }

/* ===== Service grid (flex-based, avoids empty trailing cell) ===== */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.service-card {
  flex: 1 1 300px;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card__media {
  aspect-ratio: 4 / 3;
  background: var(--color-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  overflow: hidden;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.08); }
.service-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0; }
.service-card__tagline { color: var(--color-brand-dark); font-weight: 500; font-size: 1rem; }
.service-card ul { margin: 4px 0; }
.service-card li { font-size: 1rem; color: var(--color-ink-soft); padding-left: 1.1em; position: relative; }
.service-card li::before { content: "・"; position: absolute; left: 0; }
.service-card__note { font-size: 0.95rem; color: var(--color-ink-soft); flex: 1; }
.service-card .btn {
  margin-top: auto;
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 12px 10px;
  gap: 6px;
}

/* ===== Placeholder media ===== */
.media-placeholder {
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 32px 16px;
  text-align: center;
  font-size: 0.85rem;
  min-height: 180px;
}
.media-placeholder .material-symbols-outlined { font-size: 2.4rem; }

/* ===== Pricing ===== */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.pricing-card {
  flex: 1 1 300px;
  max-width: 360px;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card--featured {
  border-color: var(--color-accent);
  position: relative;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 700px) {
  .pricing-card--featured { transform: scale(1.04); }
  .pricing-card--featured:hover { transform: scale(1.04) translateY(-6px); }
}
.pricing-card__badge {
  align-self: flex-start;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.pricing-card--featured .pricing-card__badge { background: var(--color-accent); }
.pricing-card h3 { font-size: 1.15rem; }
.pricing-card__desc { color: var(--color-ink-soft); font-size: 0.9rem; margin-bottom: 16px; }
.pricing-card__list { margin-bottom: 20px; }
.pricing-card__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--color-border);
}
.pricing-card__list .material-symbols-outlined { color: var(--color-brand); font-size: 1.1rem; }
.pricing-card__price { font-size: 1.45rem; font-weight: 700; color: var(--color-accent); margin-top: auto; }
.pricing-card__price small { font-size: 0.95rem; font-weight: 500; color: var(--color-ink-soft); }

/* ===== Guarantee ===== */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.guarantee-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 24px;
}
.guarantee-card__num { color: var(--color-brand); font-weight: 700; margin-bottom: 6px; font-size: 1.2rem; }

/* ===== Process steps ===== */
.steps {
  display: grid;
  gap: 20px;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}
.step__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-brand-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.step h3 { font-size: 1.05rem; }
.step__highlight { color: var(--color-brand-dark); font-weight: 700; margin-top: 8px; font-size: 1.05rem; }

/* ===== CTA block ===== */
.cta-block {
  background: var(--color-brand-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.cta-block h2 { color: #fff; font-size: 1.8rem; }
.cta-block__steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
}
.cta-block__step { font-size: 0.9rem; opacity: 0.9; }
.cta-block__step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--color-brand-dark);
  margin-right: 8px;
}
.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}
/* 2つのボタンはテキストの長さが違うため、そのままだと横並び時に大きさが揃いません。
   同じ幅で揃うようにします。スマホは縦積み（flex-direction:column）になり、
   その場合flex-basisは幅ではなく高さとして扱われてボタンが縦に巨大化してしまうため、
   横並びになる701px以上のみに限定します（スマホは別途100%幅にしています）。 */
@media (min-width: 701px) {
  .cta-block__actions .btn {
    flex: 1 1 240px;
    max-width: 300px;
  }
}
.cta-block__phone {
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cta-block__hours { font-size: 0.85rem; opacity: 0.85; margin-top: 4px; }

/* ===== FAQ accordion ===== */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.faq-item:hover { box-shadow: var(--shadow); border-color: var(--color-brand); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-mark {
  color: var(--color-brand);
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item summary::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  margin-left: auto;
  color: var(--color-ink-soft);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item__answer {
  padding: 0 20px 20px 52px;
  color: var(--color-ink-soft);
  overflow: hidden;
  height: 0;
  transition: height 0.28s var(--ease);
}
/* Fallback for no-JS: native <details> toggling still works. */
.faq-item[open] .faq-item__answer { height: auto; }

/* ===== Office info table ===== */
.office-table { width: 100%; border-collapse: collapse; max-width: 640px; margin: 0 auto; }
.office-table th, .office-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.office-table th { width: 35%; color: var(--color-ink-soft); font-weight: 500; }

/* ===== ごあいさつ ===== */
.greeting {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
  align-items: start;
}
.greeting__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}
.greeting__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .greeting { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .greeting__photo { width: 130px; }
  .greeting__body p { font-size: 0.92rem; line-height: 1.7; }
}

/* ===== スマホ画面でのフォントサイズ調整 =====
   デスクトップ基準のサイズだと、幅の狭いスマホ画面では見出し以外の本文・数字などが
   相対的に大きく見えすぎるため、該当箇所のみ縮小します（見出し・強調文字は対象外）。 */
@media (max-width: 700px) {
  /* 各セクションはアイコンのマークで区切りが分かるため、スマホでは余白を詰めます */
  .section { padding: 24px 0; }
  .section__head { margin-bottom: 18px; }
  .section__icon { width: 40px; height: 40px; margin-bottom: 8px; }

  /* ご依頼までの流れ：番号の丸と本文 */
  .step { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; }
  .step__num { width: 44px; height: 44px; font-size: 1rem; }
  .step p { font-size: 0.9rem; line-height: 1.7; }
  .step__highlight { font-size: 0.92rem; }

  /* 各セクションの見出し（「このようなお悩みありませんか？」「私たちが選ばれる理由」等） */
  .section__title { font-size: 1.3rem; }

  /* このようなお悩みありませんか */
  .pain-list li { font-size: 0.92rem; padding: 12px 14px; }

  /* かんたんセルフチェックのチェック項目 */
  .diagnostic-quiz__item { font-size: 0.88rem; padding: 10px 14px; }

  /* FAQ */
  .faq-item summary { padding: 12px 14px; font-size: 0.85rem; gap: 8px; }
  .faq-item__answer { padding: 0 14px 14px 36px; font-size: 0.82rem; }

  /* 事務所紹介テーブル */
  .office-table th, .office-table td { font-size: 0.85rem; padding: 10px 8px; }

  /* よくある誤解：太字の見出し部分（ラベル・誤解の一文）以外の本文 */
  .misconception > div p { font-size: 0.92rem; line-height: 1.7; }

  /* お気軽にご相談ください（CTAブロック） */
  .cta-block h2 { font-size: 1.35rem; }
  .cta-block__phone { font-size: 1.15rem; gap: 6px; }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  padding: 14px 0;
}
.breadcrumb a { color: var(--color-ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-brand); }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-ink);
  color: #fff;
  padding: 40px 0 24px;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.site-footer__nav a { color: #fff; text-decoration: none; font-size: 0.9rem; opacity: 0.85; }
.site-footer__nav a:hover { opacity: 1; }
.site-footer__copy { font-size: 0.8rem; opacity: 0.6; }

/* ===== Form ===== */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 8px;
}
.badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.badge--required { background: #fde8e8; color: var(--color-accent-dark); }
.badge--optional { background: var(--color-bg-soft); color: var(--color-ink-soft); }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="file"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; }
.form-checkbox input { margin-top: 4px; }

@media (max-width: 600px) {
  .section { padding: 44px 0; }
  .cta-block { padding: 28px 20px; }
  .cta-block__steps { flex-direction: column; align-items: center; gap: 10px; }
  .cta-block__step {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 300px;
    text-align: left;
  }
  .hero__ctas, .cta-block__actions { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn, .cta-block__actions .btn {
    width: 100%;
    min-width: 0;
    padding: 9px 14px;
    font-size: 0.8rem;
    gap: 5px;
  }
}

/* ===== コラム記事本文 ===== */
.page-content h1, .column-content h1 { font-size: 1.7rem; margin-top: 2.8em; margin-bottom: 0.6em; color: var(--color-brand-dark); }
.page-content h2, .column-content h2 { font-size: 1.5rem; margin-top: 2.6em; margin-bottom: 0.5em; color: var(--color-brand-dark); }
.page-content h3, .column-content h3 { font-size: 1.1rem; margin-top: 2em; margin-bottom: 0.4em; }
.page-content hr, .column-content hr { border: none; border-top: 1px solid var(--color-border); margin: 2.5em 0; }
.page-content ul, .column-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.page-content ul li, .column-content ul li { margin-bottom: 0.3em; }
.page-content a, .column-content a { color: var(--color-brand-dark); text-decoration: underline; }
.page-content strong, .column-content strong { color: var(--color-ink); }
.page-content p, .column-content p { margin-bottom: 1em; }

/* ===== コラム一覧（サービスページ埋め込み・カテゴリー一覧） ===== */
.column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.column-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 14px 30px -22px rgba(12, 43, 28, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.column-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.column-card__photo {
  position: relative;
  aspect-ratio: 3 / 2;
  background-image: linear-gradient(180deg, rgba(9, 28, 19, 0) 55%, rgba(9, 28, 19, 0.55) 100%), var(--column-thumb);
  background-size: cover;
  background-position: center;
}
.column-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-brand-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
}
.column-card__body { padding: 16px 18px 18px; }
.column-card h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.5; }
.column-card p {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.column-card__more { font-size: 0.8rem; font-weight: 700; color: var(--color-brand); }

.column-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0 4px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.column-pagination a.page-numbers:hover { background: var(--color-brand-light); border-color: var(--color-brand); }
.column-pagination .page-numbers.current { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.column-pagination .page-numbers.dots { border: none; }

/* ===== H3見出し拡大（PC版） ===== */
@media (min-width: 841px) {
  .reason-card h3 { font-size: 1.35rem; }
  .support-card h3 { font-size: 1.25rem; }
  .service-card h3 { font-size: 1.35rem; }
  .pricing-card h3 { font-size: 1.35rem; }
  .step h3 { font-size: 1.25rem; }
}

/* ===== スマホ常時表示の問い合わせバー ===== */
.sticky-cta { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 60px; }
  /* 下に常時表示のフォーム/LINEバーがあるため、ヒーロー内のボタンは非表示にして重複を避ける */
  .hero__ctas { display: none; }
  .sticky-cta {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }
  .sticky-cta__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
  }
  .sticky-cta__btn img { width: 22px; height: 22px; }
  .sticky-cta__btn .material-symbols-outlined { font-size: 22px; }
  .sticky-cta__btn--form { background: var(--color-accent); }
  .sticky-cta__btn--line { background: #06c755; }
}

