/* ============================================================
   共通スタイル（全ページ）

   目次
    1. 変数（色・余白など）
    2. ベース
    3. 共通パーツ（ボタン・タグ・アイコン・表示アニメーション）
    4. ヘッダー
    5. 検索パネル
    6. トップページ：ヒーロー
    7. トップページ：お悩みリスト
    8. トップページ：人気のテーマ
    9. トップページ：新着記事／おすすめ特集
   10. 相談エリア（全ページ共通）
   11. フッター・ページトップボタン
   12. レスポンシブ（1100px / 820px / 520px / 400px 以下）
   13. 環境別の調整（動きを減らす設定・PCでの電話リンク）
   ============================================================ */

/* ------------------------------------------------------------
   1. 変数（色を変えたいときはここを編集）
   ------------------------------------------------------------ */
:root {
  --green: #155829; /* メインカラー */
  --green-2: #2d7435; /* サブカラー */
  --ink: #17211a; /* 基本の文字色 */
  --muted: #33443a; /* 補足テキストの文字色 */
  --line: #dbe3dc; /* 罫線 */
  --cream: #f7f8f2; /* 薄い背景 */
  --white: #fff;
  --shadow: 0 14px 38px rgba(23, 50, 31, 0.1);
  --radius: 12px; /* 角丸 */
  --container: min(1160px, calc(100% - 48px)); /* コンテンツ幅 */
}

/* ------------------------------------------------------------
   2. ベース
   ------------------------------------------------------------ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.75;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

/* 画面には表示せず、読み上げソフト向けにだけ残すテキスト */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 「本文へ移動」リンク（キーボード操作時のみ表示） */
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 999;
  background: #fff;
  padding: 10px 16px;
}
.skip-link:focus {
  top: 12px;
}

/* SVGアイコン集（template-parts/svg-sprite.php）は非表示 */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ------------------------------------------------------------
   3. 共通パーツ
   ------------------------------------------------------------ */

/* ボタン */
.button {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s,
    color 0.25s,
    background 0.25s;
}

.button-primary {
  background: linear-gradient(135deg, #387b32, #135522);
  color: #fff;
  box-shadow: 0 8px 20px rgba(21, 88, 41, 0.2);
}
.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(21, 88, 41, 0.3);
}

.button-light {
  background: #fff;
  border: 1px solid var(--line);
  min-width: 205px;
}
.button-light:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(21, 88, 41, 0.14);
}

/* 虫めがねアイコン */
.button-search-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* カテゴリータグ */
.tag {
  display: inline-flex;
  background: #478448;
  color: #fff;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
}

/* 英字の小見出し */
.eyebrow {
  font-family: Outfit, sans-serif;
  color: var(--green-2);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin: 0 0 12px;
}

/* スクロールでふわっと表示（js/main.js で .is-visible を付与） */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   4. ヘッダー
   ------------------------------------------------------------ */
.site-header {
  height: 88px;
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(20, 65, 34, 0.08);
  transition: 0.3s;
}
/* スクロール後はヘッダーを低くする */
.site-header.is-scrolled {
  height: 72px;
  box-shadow: 0 8px 30px rgba(15, 55, 25, 0.09);
}
/* ログイン中（管理バー表示時）の位置調整 */
.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  height: 100%;
  max-width: 1360px;
  margin: auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 36px;
}

/* ロゴ */
.logo {
  width: 180px;
  margin-right: auto;
}
.logo img {
  width: 100%;
  height: auto;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}
.logo:hover img,
.logo:focus-visible img {
  opacity: 0.68;
  transform: scale(1.06);
}

/* グローバルナビ（PC） */
.global-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 700;
}
.global-nav > a,
.global-nav > .nav-item > a {
  position: relative;
  transition: color 0.2s;
}
.global-nav > a:hover,
.global-nav > .nav-item > a:hover {
  color: var(--green);
}
/* ホバー時の下線 */
.global-nav > a:after,
.global-nav > .nav-item > a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--green);
  transition: 0.25s;
}
.global-nav > a:hover:after,
.global-nav > .nav-item > a:hover:after {
  right: 0;
}

/* 「カテゴリ」のドロップダウン */
.nav-item {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: -18px;
}
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: 0.2s;
}
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret {
  transform: translateY(1px) rotate(225deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  min-width: 300px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #26382c;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.dropdown-menu a:hover {
  background: #eef5ef;
  color: var(--green);
  transform: translateX(5px);
}

/* 検索ボタン（虫めがね） */
.search-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f4f7f3;
  cursor: pointer;
}
.search-button span {
  position: absolute;
  left: 13px;
  top: 11px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--green);
  border-radius: 50%;
}
.search-button span:after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  background: var(--green);
  transform: rotate(45deg);
}

/* 相談ボタン（ヘッダー右上・フッターで共通） */
.header-cta {
  background: linear-gradient(135deg, #397c31, #145523);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 7px 16px rgba(23, 88, 41, 0.18);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.header-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(23, 88, 41, 0.26);
}
.header-cta small {
  display: block;
  font-size: 12px;
}
.header-cta strong {
  font-size: 15px;
}

/* スマホ用（820px 以下で表示。「12. レスポンシブ」参照） */
.menu-button,
.mobile-menu {
  display: none;
}

/* ------------------------------------------------------------
   5. 検索パネル
   ------------------------------------------------------------ */
.search-panel {
  position: absolute;
  z-index: 90;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 30px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-130%);
  transition: 0.35s;
  visibility: hidden;
}
.search-panel.is-open {
  transform: none;
  visibility: visible;
}
.search-panel form {
  max-width: 700px;
  margin: auto;
}
.search-panel label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.search-panel form div {
  display: flex;
}
.search-panel input {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px 0 0 7px;
  font: inherit;
}
.search-panel form button {
  border: 0;
  background: var(--green);
  color: #fff;
  padding: 0 28px;
  border-radius: 0 7px 7px 0;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.25s,
    box-shadow 0.25s,
    letter-spacing 0.25s;
}
.search-panel form button:hover {
  background: var(--green-2);
  box-shadow: 0 6px 16px rgba(21, 88, 41, 0.3);
  letter-spacing: 0.03em;
}
.search-panel form button:active {
  background: #0f3f1a;
}

/* 閉じるボタン（×） */
.search-panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f4f7f3;
  cursor: pointer;
  transition: 0.2s;
}
.search-panel-close:hover,
.search-panel-close:focus-visible {
  background: #e5ece4;
}
.search-panel-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transform-origin: center;
}
.search-panel-close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.search-panel-close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ------------------------------------------------------------
   6. トップページ：ヒーロー
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  background: #eef4ef;
}
/* 左側の文字を読みやすくするグラデーション */
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #f2f7f4 0 53%, rgba(242, 247, 244, 0) 72%);
}

/* 右側の写真 */
.hero-media {
  position: absolute;
  inset: 0 0 0 48%;
}
.hero-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #eef4ef 0%, rgba(238, 244, 239, 0.82) 12%, rgba(238, 244, 239, 0.08) 55%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 610px;
}
.hero-copy {
  width: min(780px, 72%);
  padding: 54px 0;
}
.hero h1 {
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.55;
  letter-spacing: 0.025em;
  margin: 0 0 16px;
  font-weight: 800;
}
.hero h1 span {
  display: block;
  white-space: nowrap;
}
.hero-lead {
  font-size: 16px;
  font-weight: 500;
  color: #22322a;
  margin: 0 0 24px;
}

/* 取扱分野（アイコン6つ） */
.service-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-height: 91px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(25, 62, 34, 0.08);
}
.service-list li {
  padding: 17px 7px 15px;
  border-right: 1px solid #e7ece8;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #12291a;
  white-space: nowrap;
}
.service-list li:last-child {
  border: 0;
}
.service-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* ------------------------------------------------------------
   7. トップページ：お悩みリスト
   ------------------------------------------------------------ */
.concerns {
  background: var(--cream);
  padding: 28px 0 30px;
}
.concerns h2 {
  margin: 0 0 16px;
  font-size: 23px;
  color: #12291a;
}
.concern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.concern-grid .concern-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e1e7df;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(26, 54, 31, 0.04);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
  color: #16241a;
}
/* ✓マーク */
.concern-grid .concern-item span {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--green);
  background: #eef5ef;
  transition:
    background 0.6s ease,
    color 0.6s ease;
}
.concern-grid .concern-item:hover span {
  background: var(--green);
  color: #fff;
}

/* ------------------------------------------------------------
   8. トップページ：人気のテーマ
   ------------------------------------------------------------ */
.section {
  padding: 70px 0;
}

/* セクション見出し（※ article.css にも記事本文用の .section-heading があります） */
.section-heading {
  display: flex;
  align-items: end;
  gap: 36px;
  margin-bottom: 26px;
}
.section-heading p {
  margin: 0 0 2px;
  font-size: 14px;
  color: #2d3f34;
}

/* 英字の小見出し＋見出し（人気のテーマ・新着記事・相談エリアで共通） */
.section-heading span,
.block-title span,
.consult-copy > span {
  font-family: Outfit, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--green-2);
  font-weight: 700;
}
.section-heading h2,
.block-title h2 {
  font-size: 27px;
  line-height: 1.35;
  margin: 2px 0 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.topic-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.topic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 26px rgba(23, 50, 31, 0.15);
}
.topic-card .topic-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1.42;
  overflow: hidden;
  background: #eef2ee;
}
.topic-card .topic-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s;
}
.topic-card:hover .topic-media img {
  transform: scale(1.08);
}
.topic-card > a > span.tag {
  position: relative;
  z-index: 2;
  margin: -12px 16px 0;
  vertical-align: top;
}
.topic-card div {
  position: relative;
  padding: 12px 16px 20px;
}
.topic-card time {
  display: block;
  margin: 0 0 6px;
  font-family: Outfit, sans-serif;
  font-size: 12px;
  color: #526158;
}
.topic-card h3 {
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 8px;
}
.topic-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: #2d3f34;
}
.card-arrow {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: var(--green);
}

/* ------------------------------------------------------------
   9. トップページ：新着記事／おすすめ特集
   ------------------------------------------------------------ */
.article-feature {
  background: linear-gradient(120deg, #f9f6f2, #f7faf6);
}
.two-column {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 34px;
}

/* 白い枠（新着記事・おすすめ特集 共通） */
.latest,
.feature-list {
  height: 100%;
  padding: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #e6e9e2;
  border-radius: 14px;
}

.block-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
  scroll-margin-top: 96px; /* ヘッダーに隠れないようにする */
}
.admin-bar .block-title {
  scroll-margin-top: 128px;
}
.block-title > a {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

/* 新着記事 */
.latest-list > a {
  display: grid;
  grid-template-columns: 105px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #e6eae5;
  transition: 0.2s;
}
.latest-list > a:hover {
  padding-left: 12px;
  background: #eef6f0;
}
.latest-list > a:hover h3 {
  color: var(--green);
}
.latest-list img {
  width: 105px;
  height: 58px;
  object-fit: cover;
  border-radius: 5px;
}
.latest-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 10px;
}
.latest-list time {
  justify-self: end;
  font-family: Outfit, sans-serif;
  font-size: 12.5px;
  color: #3c4a41;
}
.latest-list h3 {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #182a1e;
}

/* おすすめ特集 */
.feature-list {
  display: flex;
  flex-direction: column;
}
.feature-list > a:not(.feature-more) {
  flex: 1;
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 13px 0;
  border-top: 1px solid #e6eae5;
  transition:
    background 0.25s,
    padding-left 0.25s;
}
.feature-list > a:not(.feature-more):hover {
  padding-left: 8px;
  background: #eef6f0;
}
.feature-list > a:not(.feature-more):hover h3 {
  color: var(--green);
}
.feature-list img {
  width: 112px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
}
.feature-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.feature-list time {
  font-family: Outfit, sans-serif;
  font-size: 12px;
  color: #526158;
}
.feature-list h3 {
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.5;
  color: #182a1e;
  transition: 0.2s;
}
.feature-list p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #2d3f34;
}
.feature-list > a > span {
  font-size: 24px;
  color: var(--green);
}

/* 「特集一覧へ」ボタン */
.feature-more {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 36px;
  min-height: 40px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s,
    color 0.25s;
}
.feature-more:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 14px rgba(21, 88, 41, 0.24);
}

/* ------------------------------------------------------------
   10. 相談エリア（template-parts/consultation.php）
   ------------------------------------------------------------ */
.consultation {
  padding: 48px 0;
  background: #f1f4ed;
}
.consultation-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  align-items: center;
  gap: 50px;
}
.consult-copy h2 {
  margin: 4px 0 10px;
  font-size: 27px;
  line-height: 1.55;
}
.consult-copy p {
  margin: 0 0 18px;
  font-size: 14px;
  color: #2d3f34;
}
.consult-copy .button {
  min-height: 44px;
  padding-inline: 20px;
  gap: 17px;
  font-size: 12px;
}

/* 強み（4つのアイコン） */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(31, 66, 37, 0.07);
}
.strength-grid div {
  padding: 12px 9px;
  border-right: 1px solid #e4e8e3;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.65;
  color: #16241a;
}
.strength-grid div:last-child {
  border: 0;
}
.strength-grid i {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #f2f7f2;
  color: var(--green);
}
.strength-grid i svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.strength-grid strong {
  font-size: 22px;
  color: var(--green);
}

/* ------------------------------------------------------------
   11. フッター・ページトップボタン
   ------------------------------------------------------------ */
.site-footer {
  padding-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 0.8fr;
  gap: 46px;
  padding-bottom: 42px;
}

/* ロゴ・紹介文 */
.footer-brand img {
  width: 190px;
  margin-bottom: 20px;
  cursor: pointer;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}
.footer-brand img:hover {
  opacity: 0.68;
  transform: scale(1.06);
}
.footer-brand p {
  font-size: 13px;
  color: #33453a;
}

/* リンク一覧 */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.footer-nav div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: #293b30;
}
.footer-nav a {
  display: inline-block;
  transition:
    transform 0.2s,
    color 0.2s;
}
.footer-nav a:hover {
  color: var(--green);
  text-decoration: underline;
  transform: translateX(5px);
}

/* 相談ボタン・電話番号 */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  min-width: 0;
  width: 100%;
  justify-self: center;
  text-align: center;
}
.footer-contact .header-cta {
  width: 100%;
  max-width: 100%;
  margin-bottom: 5px;
  white-space: normal;
}
.footer-contact .header-cta:hover,
.footer-contact .header-cta:focus-visible {
  background: #2d7435;
}
.footer-contact > small {
  font-size: 13px;
  color: #33453a;
}
.footer-contact .footer-company {
  font-size: 11.75px;
  font-weight: 600;
  color: #1a5b25;
}
.phone {
  font-family: Outfit, sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--green);
}

.copyright {
  border-top: 1px solid #e5e9e5;
  padding: 12px 0;
}
.copyright .container {
  text-align: center;
  font:
    12.5px/1.7 Outfit,
    sans-serif;
  color: #5d695f;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ページトップへ戻るボタン（スクロールすると表示） */
.page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #111;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.25s;
}
.page-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.page-top:hover,
.page-top:focus-visible {
  background: #333;
  transform: translateY(-5px) scale(1.08);
}
/* 矢印（∧） */
.page-top::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(45deg) translate(2px, 2px);
}

/* ------------------------------------------------------------
   12. レスポンシブ
   ------------------------------------------------------------ */

/* ===== 1100px 以下（小さめのPC・タブレット横） ===== */
@media (max-width: 1100px) {
  .header-inner {
    padding: 0 22px;
    gap: 22px;
  }
  .logo {
    width: 158px;
  }
  .global-nav {
    gap: 20px;
  }
  .header-cta {
    padding: 10px 16px;
  }

  .topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1.6fr;
  }
  .footer-contact {
    grid-column: 1 / -1;
    max-width: 340px;
    margin-inline: auto;
  }
}

/* ===== 820px 以下（タブレット縦・スマホ） ===== */
@media (max-width: 820px) {
  :root {
    --container: min(calc(100% - 36px), 700px);
  }

  /* ヘッダー：PCナビを隠してハンバーガーメニューに切り替え */
  .site-header,
  .site-header.is-scrolled {
    height: 68px;
  }
  .header-inner {
    padding: 0 18px;
  }
  .global-nav,
  .header-inner > .header-cta {
    display: none;
  }

  /* ハンバーガーボタン */
  .menu-button {
    display: grid;
    align-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: none;
    border: 0;
    z-index: 2;
  }
  .menu-button span {
    height: 2px;
    background: var(--green);
    transition: 0.3s;
  }
  .menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-button.is-open span:nth-child(2) {
    opacity: 0;
  }
  .menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* スマホメニュー（右からスライド） */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0;
    padding: 32px 24px;
    background: #f7faf7;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: 0.35s;
  }
  .mobile-menu.is-open {
    transform: none;
    visibility: visible;
  }
  .admin-bar .mobile-menu {
    top: calc(68px + 32px);
  }
  .mobile-search {
    margin-bottom: 22px;
  }
  .mobile-search div {
    display: flex;
  }
  .mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px 0 0 8px;
    font: inherit;
    font-size: 15px;
    background: #fff;
    color: var(--ink);
  }
  .mobile-search button {
    display: grid;
    place-items: center;
    padding: 0 18px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: var(--green);
    color: #fff;
    cursor: pointer;
  }
  .mobile-search .button-search-icon {
    width: 20px;
    height: 20px;
  }
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
  }
  .mobile-menu nav a {
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
  }

  .search-panel {
    padding: 24px 20px 20px;
  }
  .search-panel-close {
    top: 10px;
    right: 10px;
  }

  /* ヒーロー：写真を上、文章を下に */
  .hero {
    min-height: auto;
    padding-top: 330px;
  }
  .hero:before {
    background: linear-gradient(0deg, #f2f7f4 0 6%, rgba(242, 247, 244, 0) 38%);
  }
  .hero-media {
    inset: 0 0 auto;
    height: 355px;
  }
  .hero-media:after {
    background: none;
  }
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    min-height: auto;
  }
  .hero-copy {
    width: 100%;
    padding: 38px 0 42px;
  }
  .hero h1 {
    font-size: clamp(22px, 4.7vw, 29px);
    color: #12211a;
  }
  .hero h1 span {
    white-space: normal;
  }
  .hero h1 br,
  .hero-lead br {
    display: none;
  }
  .hero-lead {
    margin-bottom: 20px;
  }
  .service-list {
    grid-template-columns: repeat(3, 1fr);
    min-height: 0;
    margin-bottom: 22px;
  }
  .service-list li {
    padding: 15px 7px;
    font-size: 12.5px;
  }
  .service-list li:nth-child(3) {
    border: 0;
  }
  .service-list li:nth-child(-n + 3) {
    border-bottom: 1px solid #e7ece8;
  }
  .service-icon {
    width: 33px;
    height: 33px;
  }

  .concerns {
    padding: 24px 0 26px;
  }
  .concern-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 50px 0;
  }
  .section-heading {
    align-items: start;
    gap: 20px;
    margin-bottom: 22px;
  }
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .latest,
  .feature-list {
    padding: 22px;
  }
  .block-title {
    scroll-margin-top: 84px;
  }
  .admin-bar .block-title {
    scroll-margin-top: 130px;
  }

  .consultation {
    padding: 40px 0;
  }
  .consultation-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* フッター：1カラムに */
  .site-footer {
    padding-top: 38px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 32px;
  }
  .footer-brand {
    order: 1;
  }
  .footer-brand img {
    margin-bottom: 14px;
  }
  .footer-nav {
    order: 2;
  }
  .footer-contact {
    order: 3;
  }

  .page-top {
    right: 14px;
    bottom: max(68px, calc(58px + env(safe-area-inset-bottom)));
  }
}

/* ===== 782px 以下：管理バーが高くなる幅（ログイン中のみ） ===== */
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
  .admin-bar .mobile-menu {
    top: calc(68px + 46px);
  }
}

/* ===== 520px 以下（スマホ） ===== */
@media (max-width: 520px) {
  :root {
    --container: calc(100% - 32px);
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .hero {
    padding-top: 238px;
  }
  .hero-media {
    height: 258px;
  }
  .hero-copy {
    padding: 30px 0 36px;
  }
  .hero h1 {
    font-size: clamp(13px, 4.1vw, 19px);
    margin-bottom: 12px;
  }
  .hero-lead {
    font-size: clamp(12px, calc(2.25vw + 5px), 17px);
    margin-bottom: 18px;
  }
  .service-list {
    margin-bottom: 19px;
  }
  .service-list li {
    padding: 13px 5px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 9px;
  }

  .concerns {
    padding: 22px 0 24px;
  }
  .concerns h2 {
    margin-bottom: 13px;
  }
  .concern-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .concern-grid .concern-item br {
    display: none;
  }

  .section {
    padding: 40px 0;
  }
  .section-heading {
    display: block;
    margin-bottom: 18px;
  }
  .section-heading p {
    margin-top: 7px;
  }
  .section-heading h2,
  .block-title h2 {
    font-size: 23px;
  }
  .topic-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .topic-card .topic-media {
    aspect-ratio: 1.8;
  }

  .article-feature {
    padding-block: 38px;
  }
  .two-column {
    width: 100%;
  }
  .latest,
  .feature-list {
    padding: 20px 15px;
    border-radius: 11px;
  }
  .block-title {
    margin-bottom: 12px;
  }
  .latest-list > a {
    grid-template-columns: 90px 1fr;
    gap: 11px;
    padding: 10px 0;
  }
  .latest-list img {
    width: 90px;
    height: 64px;
  }
  .latest-list div {
    display: block;
  }
  .latest-list time {
    float: right;
    margin-top: 3px;
  }
  .feature-list > a:not(.feature-more) {
    grid-template-columns: 100px 1fr auto;
    min-height: 96px;
    padding: 10px 0;
  }
  .feature-list img {
    width: 100px;
    height: 78px;
  }

  .consultation {
    padding: 34px 0;
  }
  .consultation-grid {
    gap: 20px;
  }
  .consult-copy h2 {
    font-size: 20px;
  }
  .consult-copy p {
    font-size: clamp(10.5px, 5.7px + 1.5vw, 13.5px);
    margin-bottom: 15px;
  }
  .strength-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 8px;
  }
  .strength-grid div:nth-child(2) {
    border-right: 0;
  }
  .strength-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid #e4e8e3;
  }
  .strength-grid i {
    width: 58px;
    height: 58px;
  }

  .site-footer {
    padding-top: 32px;
  }
  .footer-grid {
    gap: 24px;
    padding-bottom: 26px;
  }
  .footer-brand img {
    margin-bottom: 12px;
  }
  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
  .footer-nav div:last-child {
    grid-column: 1 / -1;
  }
  .footer-contact {
    max-width: 100%;
    padding-inline: 0;
  }
  .footer-contact .header-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 14px;
    line-height: 1.45;
  }

  .page-top {
    right: 12px;
    bottom: max(64px, calc(54px + env(safe-area-inset-bottom)));
    width: 46px;
    height: 46px;
  }
  .page-top::before {
    width: 10px;
    height: 10px;
  }
}

/* ===== 400px 以下（小さいスマホ） ===== */
@media (max-width: 400px) {
  .consult-copy h2 {
    font-size: 17px;
  }
}

/* ------------------------------------------------------------
   13. 環境別の調整
   ------------------------------------------------------------ */

/* OSで「視差効果を減らす」が有効な場合はアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* マウス操作のPCでは電話番号リンクを押せないようにする（スマホではタップで発信） */
@media (hover: hover) and (pointer: fine) {
  .phone {
    pointer-events: none;
    cursor: default;
  }
}
