@charset "UTF-8";
/* ==================================================
   style.css
   構成：01. :root 変数 / 02. ベース / 03. レイアウト（l-）
         04. 共通コンポーネント（c-） / 05. 各セクション（p-）
   ※ メディアクエリは各ブロックの中に記述（末尾に一括でまとめない）
   ※ ブレイクポイント：1200px（ヘッダー切替・ご利用の流れ）/ 960px（タブレット）/ 767px（SP）
   ※ 文字サイズは rem で指定（1rem = 10px。html に font-size: 62.5% を設定）
   ================================================== */

/* ==================================================
   01. :root 変数
   ================================================== */
:root {
  /* 背景色 */
  --bg-base: #ffffff;
  --bg-sub: #eef8ec; /* 薄いグリーン（交互セクション背景） */
  --bg-main: #3aae36; /* メイングリーン（MV・フッター） */
  --bg-pale: #f6fbf5; /* カード内の薄い背景 */
  --bg-accent-pale: #fff4cf; /* 丸背景・強調の淡い黄色 */
  --bg-input: #ffffff;

  /* テキスト色 */
  --text-main: #111111;
  --text-sub: #444444;
  --text-white: #ffffff;
  --text-accent: #2b8f28; /* 緑文字（白背景上でも読める濃さ） */
  --text-error: #e60012;

  /* アクセント色 */
  --accent-main: #3aae36; /* メイングリーン */
  --accent-line: #06c755; /* LINEボタン */
  --accent-yellow: #ffc627; /* ボタン・STEP */
  --accent-orange: #f39800; /* お悩みラベル */

  /* 線 */
  --line-main: #111111;
  --line-sub: #d9d9d9;

  /* フォント */
  --ff-base: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --ff-en: "Jost", "Century Gothic", sans-serif;

  /* レイアウト */
  --inner-width: 1200px;
  --inner-narrow: 960px;
  --header-height: 80px;
  --fixed-cta-height: 0px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-hard: 5px 5px 0 var(--line-main);

  /* アニメーション */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1200px) {
  :root {
    --header-height: 64px;
  }
}

@media (max-width: 767px) {
  :root {
    --fixed-cta-height: 64px;
    --radius: 16px;
    --shadow-hard: 4px 4px 0 var(--line-main);
  }
}

/* ==================================================
   02. ベース
   ================================================== */
/* 1rem = 10px 基準（ブラウザ標準16px × 62.5%）。
   %指定のため、利用者がブラウザの文字サイズを変えた場合も比率を保って拡大縮小する */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--ff-base);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text-main);
  background: var(--bg-base);
  padding-bottom: var(--fixed-cta-height);
  overflow-wrap: anywhere;
}

/* SPメニュー展開中の背面スクロールロック（JSで html に is-menu-open を付与）
   ※ body には overflow を付けない。body が独自のスクロール領域になり、
     sticky ヘッダーがスクロール済みの画面外へ外れてしまうため */
html.is-menu-open {
  overflow: hidden;
}

a {
  transition: opacity 0.2s;
}

:focus-visible {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* 表示切替ユーティリティ */
.u-sp {
  display: none;
}

@media (max-width: 767px) {
  body {
    font-size: 1.6rem;
  }

  .u-sp {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ==================================================
   03. レイアウト（l-）
   ================================================== */

/* ---------- l-header ---------- */
.l-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-base);
  border-bottom: 2px solid var(--line-main);
}

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

.l-header .logo {
  flex-shrink: 0;
  width: 200px;
}

.l-header .nav {
  margin-left: auto;
}

.l-header .nav .list {
  display: flex;
  gap: 4px 20px;
  font-size: 1.5rem;
  font-weight: 700;
}

.l-header .nav .list a {
  position: relative;
  display: block;
  padding: 4px 0;
  white-space: nowrap;
}

.l-header .nav .list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.l-header .nav .list a:hover::after,
.l-header .nav .list a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* SPメニュー専用の要素（PCでは非表示） */
.l-header .nav .sp-btns,
.l-header .nav .sp-info,
.l-header .overlay {
  display: none;
}

.l-header .contact {
  flex-shrink: 0;
}

.l-header .menu-btn {
  display: none;
}

@media (max-width: 1280px) {
  .l-header .inner {
    gap: 16px;
  }

  .l-header .logo {
    width: 170px;
  }

  .l-header .nav .list {
    gap: 4px 14px;
    font-size: 1.4rem;
  }
}

/* ===== 1200px以下：ハンバーガー＋ドロワーメニュー ===== */
@media (max-width: 1200px) {
  .l-header {
    --menu-ease: cubic-bezier(0.32, 0.72, 0, 1); /* 減速の強い、なめらかなイージング */
    --menu-duration: 0.55s;
  }

  .l-header .inner {
    padding: 0 16px;
  }

  .l-header .logo {
    width: 160px;
  }

  .l-header .contact {
    margin-left: auto;
  }

  /* --- ハンバーガー／閉じるアイコン --- */
  .l-header .menu-btn {
    position: relative;
    z-index: 2;
    display: block;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent-main);
    border: 2px solid var(--line-main);
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s var(--menu-ease);
  }

  .l-header .menu-btn:active {
    transform: scale(0.92);
  }

  .l-header .menu-btn[aria-expanded="true"] {
    background: var(--line-main);
  }

  .l-header .menu-btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    margin: -1px 0 0 -9px;
    background: var(--text-white);
    border-radius: 2px;
    transition: transform 0.45s var(--menu-ease), opacity 0.25s;
  }

  .l-header .menu-btn span:nth-child(1) {
    transform: translateY(-6px);
  }

  .l-header .menu-btn span:nth-child(3) {
    transform: translateY(6px);
  }

  /* 上下の線が中央に寄りながら回転して×になる */
  .l-header .menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
  }

  .l-header .menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .l-header .menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
  }

  /* --- 背景オーバーレイ（フェード＋ブラー） --- */
  .l-header .overlay {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    display: block;
    background: rgb(17 17 17 / 0.4);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  }

  .l-header .overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s;
  }

  /* --- メニューパネル（右からスライドイン） --- */
  .l-header .nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: min(100%, 460px);
    height: calc(100dvh - var(--header-height));
    margin: 0;
    padding: 24px 20px calc(32px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain; /* 内部スクロールが背面へ伝わらないように */
    background: var(--bg-sub);
    border-left: 2px solid var(--line-main);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform var(--menu-duration) var(--menu-ease), visibility 0s linear var(--menu-duration);
  }

  .l-header .nav.is-open {
    visibility: visible;
    transform: translateX(0);
    transition: transform var(--menu-duration) var(--menu-ease), visibility 0s;
  }

  /* --- メイン項目：2列（6分割グリッドで「特徴」と長い項目を1行に並べる） --- */
  .l-header .nav .list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    font-size: 1.6rem;
  }

  .l-header .nav .list li {
    grid-column: span 3;
  }

  .l-header .nav .list li.is-short {
    grid-column: span 2;
  }

  .l-header .nav .list li.is-wide {
    grid-column: span 4;
  }

  .l-header .nav .list a {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 56px; /* タップ領域を確保 */
    padding: 10px 30px 10px 14px;
    line-height: 1.4;
    white-space: normal;
    background: var(--bg-base);
    border: 2px solid var(--line-main);
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.2s;
  }

  .l-header .nav .list a:active {
    transform: scale(0.97);
  }

  .l-header .nav .list a[aria-current="page"] {
    background: var(--bg-accent-pale);
  }

  /* 項目右端の矢印（PC用の下線を流用） */
  .l-header .nav .list a::after {
    left: auto;
    right: 14px;
    bottom: auto;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    background: none;
    border-top: 2px solid var(--accent-main);
    border-right: 2px solid var(--accent-main);
    transform: rotate(45deg);
    transition: none;
  }

  .l-header .nav .list a:hover::after,
  .l-header .nav .list a[aria-current="page"]::after {
    transform: rotate(45deg);
  }

  /* --- CTAボタン：全幅で縦に並べる --- */
  .l-header .nav .sp-btns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 24px;
    border-top: 2px dashed var(--line-sub);
  }

  .l-header .nav .sp-btns .c-btn {
    min-height: 56px;
    padding: 10px 12px;
    font-size: 1.6rem;
  }

  /* --- 補足情報：全幅 --- */
  .l-header .nav .sp-info {
    display: block;
    margin-top: auto; /* 余白があるときはパネル下端に寄せる */
    padding: 16px;
    text-align: center;
    background: var(--bg-base);
    border-radius: var(--radius-sm);
  }

  .l-header .nav .sp-info .tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px; /* タップ領域を確保 */
    padding: 0 8px;
    font-family: var(--ff-en);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.4;
  }

  .l-header .nav .sp-info .label {
    padding: 0 8px;
    font-size: 1.3rem;
    color: var(--text-white);
    background: var(--accent-main);
    border-radius: 4px;
  }

  .l-header .nav .sp-info .hours {
    margin-top: 4px;
    font-size: 1.4rem;
    color: var(--text-sub);
  }

  /* --- 各項目のスタガー（時差）フェード＆スライドイン --- */
  .l-header .nav .list > li,
  .l-header .nav .sp-btns > *,
  .l-header .nav .sp-info {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .l-header .nav.is-open .list > li,
  .l-header .nav.is-open .sp-btns > *,
  .l-header .nav.is-open .sp-info {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.5s ease calc(0.12s + var(--stagger, 0) * 0.04s),
      transform 0.6s var(--menu-ease) calc(0.12s + var(--stagger, 0) * 0.04s);
  }
}

@media (max-width: 767px) {
  .l-header .logo {
    width: 140px;
  }

  .l-header .contact {
    display: none;
  }

  .l-header .menu-btn {
    margin-left: auto;
  }

  .l-header .nav {
    border-left: none;
  }
}

/* 極小幅（320px前後）：項目の余白と文字を少し詰める */
@media (max-width: 374px) {
  .l-header .nav {
    gap: 20px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .l-header .nav .list {
    gap: 8px;
    font-size: 1.5rem;
  }

  .l-header .nav .list a {
    padding: 8px 24px 8px 10px;
  }

  .l-header .nav .list a::after {
    right: 10px;
  }
}

/* 動きを減らす設定：移動・ブラーをなくし、短いフェードのみ */
@media (prefers-reduced-motion: reduce) {
  .l-header .nav,
  .l-header .nav.is-open,
  .l-header .nav .list > li,
  .l-header .nav .sp-btns > *,
  .l-header .nav .sp-info,
  .l-header .menu-btn span {
    transform: none !important;
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }

  .l-header .overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- l-header（WordPress管理バー表示時の位置調整） ----------
   ログイン中のみ body に .admin-bar が付く。600px以下は管理バーがスクロールで消えるため 0 */
.admin-bar {
  --admin-bar-height: 32px;
}

.admin-bar .l-header {
  top: var(--admin-bar-height);
}

@media (max-width: 1200px) {
  .admin-bar .l-header .nav,
  .admin-bar .l-header .overlay {
    top: calc(var(--header-height) + var(--admin-bar-height));
  }
}

@media (max-width: 782px) {
  .admin-bar {
    --admin-bar-height: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar {
    --admin-bar-height: 0px;
  }
}

/* ---------- l-footer ---------- */
.l-footer {
  padding-top: 64px;
  color: var(--text-white);
  background: var(--bg-main);
}

.l-footer .c-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.l-footer .logo {
  width: 220px;
}

.l-footer .address {
  margin-top: 16px;
  font-size: 1.5rem;
}

.l-footer .nav .list {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px 32px;
  font-size: 1.5rem;
}

.l-footer .nav .list a:hover {
  opacity: 0.7;
}

.l-footer .copy {
  margin-top: 48px;
  padding: 16px;
  text-align: center;
  font-family: var(--ff-en);
  font-size: 1.3rem;
  border-top: 1px solid rgb(255 255 255 / 0.4);
}

@media (max-width: 960px) {
  .l-footer .c-inner {
    flex-direction: column;
  }

  .l-footer .nav .list {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }
}

@media (max-width: 767px) {
  .l-footer {
    padding-top: 48px;
  }

  .l-footer .logo {
    width: 180px;
  }

  .l-footer .nav .list {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 1.4rem;
  }

  .l-footer .copy {
    margin-top: 32px;
  }
}

/* ==================================================
   04. 共通コンポーネント（c-）
   ================================================== */

/* ---------- c-inner ---------- */
.c-inner {
  width: 100%;
  max-width: calc(var(--inner-width) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.c-inner.is-narrow {
  max-width: calc(var(--inner-narrow) + 48px);
}

@media (max-width: 767px) {
  .c-inner {
    padding: 0 16px;
  }
}

/* ---------- c-section ---------- */
.c-section {
  padding: 100px 0;
}

.c-section.is-sub {
  background: var(--bg-sub);
}

@media (max-width: 767px) {
  .c-section {
    padding: 64px 0;
  }
}

/* ---------- c-heading ---------- */
.c-heading {
  margin-bottom: 56px;
  text-align: center;
}

.c-heading .title {
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.5;
}

/* 見出し下の吹き出し風アクセント */
.c-heading .title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 6px;
  margin-left: -28px;
  background: var(--accent-main);
  border-radius: 999px;
}

.c-heading .lead {
  margin-top: 24px;
  color: var(--text-sub);
}

@media (max-width: 767px) {
  .c-heading {
    margin-bottom: 36px;
  }

  .c-heading .title {
    padding-bottom: 16px;
    font-size: 2.6rem;
  }

  .c-heading .title::after {
    width: 44px;
    height: 5px;
    margin-left: -22px;
  }

  .c-heading .lead {
    margin-top: 16px;
    text-align: left;
  }
}

/* ---------- c-card ---------- */
.c-card {
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

/* ---------- c-btn ---------- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 60px;
  padding: 12px 40px;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: var(--text-main);
  background: var(--accent-yellow);
  border: 2px solid var(--line-main);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--line-main);
  transition: transform 0.2s, box-shadow 0.2s;
}

.c-btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--line-main);
}

/* LINEボタン（吹き出しアイコン付き） */
.c-btn.is-line {
  color: var(--text-white);
  background: var(--accent-line);
}

.c-btn.is-line::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 20px;
  background: var(--text-white);
  /* 吹き出し形（楕円＋左下のしっぽ）をSVGマスクで切り抜き。色は background で指定 */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cellipse cx='11' cy='8.5' rx='11' ry='8.5'/%3E%3Cpath d='M5.5 14 4 20l7.5-3.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cellipse cx='11' cy='8.5' rx='11' ry='8.5'/%3E%3Cpath d='M5.5 14 4 20l7.5-3.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.c-btn.is-outline {
  background: var(--bg-base);
}

.c-btn.is-small {
  min-height: 44px;
  padding: 8px 24px;
  font-size: 1.5rem;
  box-shadow: 3px 3px 0 var(--line-main);
}

.c-btn.is-small:hover {
  transform: translate(3px, 3px);
}

.c-btn.is-large {
  min-width: 360px;
  min-height: 72px;
  font-size: 2rem;
}

.c-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.c-btn-group .c-btn {
  min-width: 300px;
}

@media (max-width: 767px) {
  .c-btn {
    min-height: 56px;
    padding: 10px 24px;
    font-size: 1.7rem;
  }

  .c-btn.is-large {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    font-size: 1.8rem;
  }

  .c-btn-group {
    flex-direction: column;
  }

  .c-btn-group .c-btn {
    width: 100%;
    min-width: 0;
  }
}

/* ---------- c-badge（フォーム必須・任意） ---------- */
.c-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--text-white);
  background: var(--text-error);
  border-radius: 4px;
  vertical-align: 2px;
}

.c-badge.is-optional {
  background: #888888;
}

/* ---------- c-breadcrumb（下層ページ用） ---------- */
.c-breadcrumb {
  margin-bottom: 40px;
  font-size: 1.4rem;
}

.c-breadcrumb .list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.c-breadcrumb .item + .item::before {
  content: "＞";
  margin-right: 4px;
  color: var(--text-sub);
}

.c-breadcrumb a {
  color: var(--text-accent);
  text-decoration: underline;
}

/* ---------- c-fixed-cta（SP下部固定） ---------- */
.c-fixed-cta {
  display: none;
}

@media (max-width: 767px) {
  .c-fixed-cta {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    height: var(--fixed-cta-height);
    padding: 8px;
    background: var(--bg-base);
    border-top: 2px solid var(--line-main);
  }

  .c-fixed-cta .c-btn {
    min-height: 0;
    padding: 4px 8px;
    font-size: 1.4rem;
    box-shadow: none;
  }

  .c-fixed-cta .c-btn:hover {
    transform: none;
  }
}

/* 狭い幅（389px以下）：1文字だけ改行されないよう、文字を詰めてアイコンを省略 */
@media (max-width: 389px) {
  .c-fixed-cta .c-btn {
    padding: 4px;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .c-fixed-cta .c-btn.is-line::before {
    display: none;
  }
}

/* ---------- c-news-list / c-news-card（お知らせカード） ---------- */
.c-news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.c-news-card {
  height: 100%;
}

.c-news-card .link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s, box-shadow 0.2s;
}

.c-news-card .link:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--line-main);
}

.c-news-card .thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 2px solid var(--line-main);
}

.c-news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.c-news-card .link:hover .thumb img {
  transform: scale(1.05);
}

.c-news-card .body {
  padding: 20px 24px 24px;
}

.c-news-card .date {
  font-family: var(--ff-en);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-accent);
}

.c-news-card .title {
  margin-top: 6px;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .c-news-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .c-news-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .c-news-card .body {
    padding: 16px 20px 20px;
  }

  .c-news-card .title {
    font-size: 1.7rem;
  }
}

/* ---------- c-empty（記事が0件のときのメッセージ） ---------- */
.c-empty {
  padding: 40px 0;
  font-weight: 700;
  text-align: center;
  color: var(--text-sub);
}

/* ---------- c-pagination（ページ送り） ---------- */
.c-pagination {
  margin-top: 56px;
}

.c-pagination .list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.c-pagination .link {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  font-family: var(--ff-en);
  font-size: 1.6rem;
  font-weight: 600;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: 999px;
}

.c-pagination .is-prev .link,
.c-pagination .is-next .link {
  font-family: var(--ff-base);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0 20px;
}

.c-pagination a.link:hover {
  background: var(--bg-accent-pale);
}

.c-pagination .link.is-current {
  color: var(--text-white);
  background: var(--accent-main);
}

.c-pagination .link.is-disabled {
  color: #aaaaaa;
  border-color: var(--line-sub);
}

@media (max-width: 767px) {
  .c-pagination {
    margin-top: 40px;
  }

  .c-pagination .list {
    gap: 8px;
  }

  .c-pagination .link {
    min-width: 44px;
    height: 44px;
  }
}

/* ---------- c-post-nav（前後の記事） ---------- */
.c-post-nav {
  margin-top: 48px;
}

.c-post-nav .list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.c-post-nav .link {
  position: relative;
  display: block;
  height: 100%;
  padding: 20px 24px 20px 48px;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.c-post-nav .is-next .link {
  padding: 20px 48px 20px 24px;
  text-align: right;
}

.c-post-nav .link:hover {
  background: var(--bg-pale);
}

/* 矢印 */
.c-post-nav .link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 22px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-left: 2px solid var(--accent-main);
  border-bottom: 2px solid var(--accent-main);
  transform: rotate(45deg);
}

.c-post-nav .is-next .link::before {
  left: auto;
  right: 22px;
  transform: rotate(-135deg);
}

.c-post-nav .label {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-accent);
}

.c-post-nav .title {
  display: block;
  margin-top: 4px;
  font-size: 1.6rem;
  font-weight: 700;
}

@media (max-width: 767px) {
  .c-post-nav {
    margin-top: 36px;
  }

  .c-post-nav .list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .c-post-nav .link {
    padding: 16px 20px 16px 44px;
  }

  .c-post-nav .is-next .link {
    padding: 16px 44px 16px 20px;
  }

  .c-post-nav .link::before {
    left: 20px;
  }

  .c-post-nav .is-next .link::before {
    right: 20px;
  }
}

/* ---------- スクロール表示アニメーション（data-reveal） ---------- */
/* JS有効時のみ非表示にする（JS無効・エラー時は常に表示） */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--reveal-order, 0) * 0.1s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==================================================
   05. 各セクション（p-）
   ================================================== */

/* ---------- p-hero（メインビジュアル） ---------- */
.p-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 2px solid var(--line-main); /* イラストの接地線（次のセクションとの区切り） */
  /* 白地にごく薄いドット柄 */
  background:
    radial-gradient(circle, rgb(58 174 54 / 0.12) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
    var(--bg-base);
}

/* 背景のやわらかい光（ゆっくり漂う） */
.p-hero::before,
.p-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.p-hero::before {
  top: -200px;
  left: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgb(58 174 54 / 0.18) 0%, rgb(58 174 54 / 0) 70%);
}

.p-hero::after {
  right: -180px;
  bottom: -240px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgb(255 198 39 / 0.28) 0%, rgb(255 198 39 / 0) 70%);
}

.p-hero .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: calc(var(--inner-width) + 48px);
  margin: 0 auto;
  padding: 56px 24px 0; /* 下余白はテキスト側で確保（イラストは下端に接地） */
}

.p-hero .body {
  padding-bottom: 64px;
}

/* --- テキスト --- */
.p-hero .title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.p-hero .title .line {
  display: block;
  white-space: nowrap;
}

/* 「LINE公式アカウント」：白枠＋ハードシャドウのボックス */
.p-hero .title .is-box {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.6em 0.3em 0.4em;
  font-size: clamp(2.2rem, 3.6vw, 4.6rem);
  letter-spacing: 0.02em;
  color: var(--text-main);
  background: var(--bg-base);
  border: 3px solid var(--line-main);
  border-radius: 0.4em;
  box-shadow: 6px 6px 0 var(--line-main);
}

.p-hero .title .icon {
  flex-shrink: 0;
  width: 1.5em;
  height: 1.5em;
}

/* 「はじめませんか？」 */
.p-hero .title .is-catch {
  font-size: clamp(3.6rem, 6vw, 7.6rem);
  letter-spacing: 0.04em;
  color: var(--text-accent);
}

.p-hero .lead {
  margin-top: 28px;
  font-size: clamp(1.7rem, 1.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.7;
}

.p-hero .c-btn-group {
  justify-content: flex-start;
  margin-top: 36px;
}

.p-hero .c-btn-group .c-btn {
  min-width: 260px;
}

/* --- イラスト --- */
.p-hero .visual {
  position: relative;
  align-self: end; /* 腕が下端から伸びるように接地 */
}

/* イラスト背後の緑の円 */
.p-hero .visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 48%;
  left: 50%;
  width: 92%;
  aspect-ratio: 1;
  /* 緑のスマホが沈まないよう、淡いクリーム色＋内側の薄い緑リングでなじませる */
  background: var(--bg-accent-pale);
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgb(58 174 54 / 0.08);
  transform: translate(-50%, -50%);
}

.p-hero .illust {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  transform-origin: center bottom;
}

/* 「＼業種不問／」ステッカー */
.p-hero .badge {
  position: absolute;
  z-index: 1;
  top: 2%;
  left: 0;
  padding: 6px 18px;
  font-size: clamp(1.6rem, 1.6vw, 2rem);
  font-weight: 900;
  white-space: nowrap;
  background: var(--accent-yellow);
  border: 2px solid var(--line-main);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line-main);
  transform: rotate(-8deg);
}

/* --- 登場アニメーション（CSSのみ・読み込み時に1回。data-revealとは別管理） --- */
.p-hero::before {
  animation:
    hero-fade 1.6s ease-out backwards,
    hero-drift 14s ease-in-out 1.6s infinite alternate;
}

.p-hero::after {
  animation:
    hero-fade 1.6s ease-out 0.3s backwards,
    hero-drift 18s ease-in-out 1.9s infinite alternate-reverse;
}

/* ボックス：ふわっと押し付けるように着地 */
.p-hero .title .is-box {
  animation: hero-stamp 0.8s var(--ease-out) 0.15s backwards;
}

/* アイコン：ポップ → 数秒おきに控えめに揺れる */
.p-hero .title .icon {
  animation:
    hero-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s backwards,
    hero-wiggle 6s ease-in-out 2.5s infinite;
}

/* キャッチ・リード・ボタン：時間差でぼかしからフェードアップ */
.p-hero .title .is-catch {
  animation: hero-blur-up 0.8s var(--ease-out) 0.5s backwards;
}

.p-hero .lead {
  animation: hero-blur-up 0.8s var(--ease-out) 0.75s backwards;
}

.p-hero .c-btn-group .c-btn {
  animation: hero-blur-up 0.8s var(--ease-out) 0.95s backwards;
}

.p-hero .c-btn-group .c-btn + .c-btn {
  animation-delay: 1.05s;
}

/* 緑の円：広がるように登場 */
.p-hero .visual::before {
  animation: hero-circle 1s var(--ease-out) 0.3s backwards;
}

/* イラスト：下からせり上がり → ゆっくり浮遊 */
.p-hero .illust {
  animation:
    hero-rise 1s cubic-bezier(0.34, 1.3, 0.64, 1) 0.55s backwards,
    hero-float 6s ease-in-out 1.8s infinite;
}

/* ステッカー：最後にポンと貼られる */
.p-hero .badge {
  animation: hero-sticker 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s backwards;
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
}

@keyframes hero-drift {
  to {
    transform: translate3d(60px, 40px, 0) scale(1.12);
  }
}

@keyframes hero-blur-up {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(24px);
  }
}

@keyframes hero-stamp {
  0% {
    opacity: 0;
    transform: translate(-6px, -20px) scale(1.12) rotate(-3deg);
    box-shadow: 0 0 0 var(--line-main);
  }
  60% {
    opacity: 1;
    transform: translate(3px, 3px) scale(0.98);
    box-shadow: 0 0 0 var(--line-main);
  }
}

@keyframes hero-pop {
  from {
    opacity: 0;
    transform: scale(0.2) rotate(-20deg);
  }
}

@keyframes hero-wiggle {
  0%, 88%, 100% {
    transform: rotate(0);
  }
  91% {
    transform: rotate(-10deg);
  }
  94% {
    transform: rotate(8deg);
  }
  97% {
    transform: rotate(-4deg);
  }
}

@keyframes hero-circle {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
}

/* 下端に隙間が出ないよう、移動ではなく下端基準でわずかに伸び縮み */
@keyframes hero-float {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes hero-sticker {
  from {
    opacity: 0;
    transform: rotate(-30deg) scale(0.3);
  }
}

/* タブレット（768〜960px）：2列を維持して縦幅を抑える */
@media (max-width: 960px) {
  .p-hero .inner {
    gap: 24px;
    padding: 36px 24px 0;
  }

  .p-hero .body {
    padding-bottom: 44px;
  }

  .p-hero .title {
    gap: 14px;
  }

  .p-hero .title .is-box {
    font-size: clamp(2rem, 3.1vw, 3rem);
    border-width: 2px;
    box-shadow: 4px 4px 0 var(--line-main);
  }

  .p-hero .title .is-catch {
    font-size: clamp(3.2rem, 5vw, 4.8rem);
  }

  .p-hero .lead {
    margin-top: 18px;
    font-size: clamp(1.6rem, 2vw, 1.9rem);
  }

  .p-hero .c-btn-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
  }

  .p-hero .c-btn-group .c-btn {
    width: 100%;
    min-width: 0;
    min-height: 54px;
  }

  .p-hero .badge {
    padding: 4px 14px;
    font-size: 1.5rem;
  }
}

/* スマホ（767px以下）：1列。画面の高さに収まるよう余白・文字・イラストを縮小 */
@media (max-width: 767px) {
  .p-hero::before {
    width: 360px;
    height: 360px;
  }

  .p-hero::after {
    width: 420px;
    height: 420px;
  }

  .p-hero .inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 16px 0;
  }

  .p-hero .body {
    padding-bottom: 0;
    text-align: center;
  }

  .p-hero .title {
    align-items: center;
    gap: 10px;
  }

  .p-hero .title .is-box {
    font-size: clamp(1.9rem, 5.8vw, 2.6rem);
    box-shadow: 3px 3px 0 var(--line-main);
  }

  .p-hero .title .is-catch {
    font-size: clamp(3.1rem, 9.6vw, 4.2rem);
  }

  .p-hero .lead {
    margin-top: 12px;
    font-size: clamp(1.5rem, 4.2vw, 1.7rem);
    line-height: 1.6;
  }

  /* SPでは画面下部の固定CTA（同じ2ボタン）が常に表示されるため、MV内のボタンは省略して縦幅を抑える */
  .p-hero .c-btn-group {
    display: none;
  }

  /* イラスト幅は画面の高さから逆算（見出し等の高さ 約230px を除いた残りに収める） */
  .p-hero .visual {
    width: min(100%, clamp(220px, (100svh - var(--header-height) - var(--fixed-cta-height) - 230px) * 1.157, 400px));
    margin: 0 auto;
  }

  .p-hero .badge {
    top: 0;
    padding: 2px 12px;
    font-size: 1.4rem;
  }
}

/* 動きを減らす設定：登場演出・浮遊・揺れをすべて止め、最終状態で表示 */
@media (prefers-reduced-motion: reduce) {
  .p-hero::before,
  .p-hero::after,
  .p-hero .title .is-box,
  .p-hero .title .icon,
  .p-hero .title .is-catch,
  .p-hero .lead,
  .p-hero .c-btn-group .c-btn,
  .p-hero .visual::before,
  .p-hero .illust,
  .p-hero .badge {
    animation: none;
  }
}

/* ---------- p-intro（今すぐお問い合わせ） ---------- */
/* SP（767px以下）のみ表示。768px以上はMV内に同じCTAボタンがあるため非表示 */
.p-intro {
  display: none;
  padding: 56px 0;
  background: var(--bg-sub);
}

.p-intro .box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px 48px;
  padding: 32px 40px;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.p-intro .title {
  font-size: 2.8rem;
  font-weight: 900;
}

@media (max-width: 1200px) {
  .p-intro .box {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .p-intro {
    display: block;
    padding: 40px 0;
  }

  .p-intro .box {
    padding: 24px 20px;
  }

  .p-intro .title {
    font-size: 2.3rem;
  }

  .p-intro .c-btn-group {
    width: 100%;
  }
}

/* ---------- p-feature（特徴） ---------- */
.p-feature .point-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.5;
}

.p-feature .num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  font-family: var(--ff-en);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-white);
  background: var(--accent-main);
  border-radius: 50%;
}

.p-feature .text {
  margin-top: 16px;
}

.p-feature .point.is-main {
  padding: 48px;
  background: var(--bg-pale);
  border-radius: var(--radius);
}

.p-feature .point.is-main .point-title {
  justify-content: center;
  font-size: 3rem;
}

.p-feature .point.is-main > .text {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: center;
}

.p-feature .compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.p-feature .compare .col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius);
}

.p-feature .compare .col.is-official {
  box-shadow: 5px 5px 0 var(--accent-main);
  border-color: var(--accent-main);
}

.p-feature .compare .label {
  font-size: 2rem;
  font-weight: 700;
}

.p-feature .compare .col.is-official .label {
  color: var(--text-accent);
}

.p-feature .compare .img {
  display: grid;
  place-items: center;
  flex-grow: 1;
  width: 100%;
  max-width: 280px;
  margin: 20px auto;
}

.p-feature .compare .caption {
  font-weight: 700;
  text-align: center;
}

.p-feature .points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.p-feature .points .point {
  padding: 36px 40px;
}

@media (max-width: 960px) {
  .p-feature .point.is-main {
    padding: 40px 24px;
  }

  .p-feature .points {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .p-feature .point-title {
    gap: 12px;
    font-size: 2.2rem;
  }

  .p-feature .num {
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .p-feature .point.is-main {
    padding: 32px 16px;
  }

  .p-feature .point.is-main .point-title {
    font-size: 2.4rem;
  }

  .p-feature .point.is-main > .text {
    text-align: left;
  }

  .p-feature .compare {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  .p-feature .compare .img {
    max-width: 200px;
  }

  .p-feature .points .point {
    padding: 28px 20px;
  }
}

/* ---------- p-scene（利用シーン） ---------- */
.p-scene .list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.p-scene .item {
  padding: 40px 32px;
  text-align: center;
}

.p-scene .img {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  padding: 28px;
  background: var(--bg-accent-pale);
  border-radius: 50%;
}

.p-scene .img img {
  max-height: 100%;
  width: auto;
}

/* 統計バッジ（旧 block03_img01.png のコード再現） */
.p-scene .img.is-stat {
  padding: 8px;
}

.p-scene .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-white);
  white-space: nowrap;
  background: var(--bg-main);
  border-radius: 50%;
}

.p-scene .stat .label {
  font-size: 1.6rem;
}

.p-scene .stat .num {
  display: flex;
  align-items: baseline;
  font-size: 2.4rem;
  line-height: 1.1;
}

.p-scene .stat .big {
  margin-right: 2px;
  font-family: var(--ff-en);
  font-size: 5.2rem;
  font-weight: 500;
  line-height: 1;
}

.p-scene .stat .date {
  margin-top: 4px;
  font-size: 1.4rem;
}

.p-scene .item .title {
  margin-top: 24px;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.5;
  color: var(--text-accent);
}

.p-scene .text {
  margin-top: 16px;
  text-align: left;
}

@media (max-width: 960px) {
  .p-scene .list {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .p-scene .item {
    padding: 32px 20px;
  }

  .p-scene .img {
    width: 150px;
    height: 150px;
    padding: 24px;
  }

  .p-scene .img.is-stat {
    padding: 6px;
  }

  .p-scene .stat .label {
    font-size: 1.3rem;
  }

  .p-scene .stat .num {
    font-size: 2rem;
  }

  .p-scene .stat .big {
    font-size: 4.4rem;
  }

  .p-scene .stat .date {
    font-size: 1.2rem;
  }

  .p-scene .item .title {
    font-size: 2.2rem;
  }
}

/* ---------- p-function（主な機能） ---------- */
.p-function .list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.p-function .item {
  padding: 28px 20px;
  text-align: center;
}

.p-function .img {
  display: grid;
  place-items: center;
  height: 80px;
}

.p-function .img img {
  max-height: 80px;
  width: auto;
}

/* 図版が小さく見える画像（block04_img06.png）のみ拡大表示
   ネガティブマージンで増えた高さを相殺し、他カードのタイトル位置を揃える */
.p-function .img.is-large {
  height: 104px;
  margin: -12px 0;
}

.p-function .img.is-large img {
  max-height: 104px;
}

.p-function .item .title {
  margin-top: 16px;
  padding-bottom: 12px;
  font-size: 2rem;
  font-weight: 900;
  border-bottom: 2px dotted var(--accent-main);
}

.p-function .text {
  margin-top: 12px;
  font-size: 1.6rem;
  text-align: left;
}

@media (max-width: 960px) {
  .p-function .list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .p-function .list {
    gap: 16px 12px;
  }

  .p-function .item {
    padding: 20px 12px;
  }

  .p-function .img {
    height: 56px;
  }

  .p-function .img img {
    max-height: 56px;
  }

  .p-function .img.is-large {
    height: 72px;
    margin: -8px 0;
  }

  .p-function .img.is-large img {
    max-height: 72px;
  }

  .p-function .item .title {
    margin-top: 12px;
    padding-bottom: 8px;
    font-size: 1.6rem;
  }

  .p-function .text {
    font-size: 1.4rem;
  }
}

/* ---------- p-worries（お悩み・オススメ） ---------- */
.p-worries .list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.p-worries .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.p-worries .label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 20px;
  font-weight: 700;
  color: var(--text-white);
  background: var(--accent-orange);
  border-radius: 999px;
}

.p-worries .item.is-recommend .label {
  background: var(--accent-main);
}

.p-worries .label .num {
  font-family: var(--ff-en);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}

/* 吹き出し */
.p-worries .text {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 96px;
  margin-top: 16px;
  padding: 16px 20px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.6;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius);
}

.p-worries .text::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  background: var(--bg-base);
  border-right: 2px solid var(--line-main);
  border-bottom: 2px solid var(--line-main);
  transform: rotate(45deg);
}

.p-worries .img {
  width: 200px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 50%;
  aspect-ratio: 1;
  border: 2px solid var(--line-main);
}

.p-worries .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* お悩み → オススメの矢印 */
.p-worries .recommend {
  position: relative;
  margin-top: 120px;
}

.p-worries .recommend::before {
  content: "";
  position: absolute;
  top: -84px;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -40px;
  border-style: solid;
  border-width: 40px 40px 0;
  border-color: var(--accent-main) transparent transparent;
}

@media (max-width: 960px) {
  .p-worries .list {
    gap: 24px 16px;
  }

  .p-worries .text {
    font-size: 1.7rem;
  }

  .p-worries .img {
    width: 160px;
  }
}

@media (max-width: 767px) {
  .p-worries .list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .p-worries .item {
    display: grid;
    grid-template-columns: 110px 1fr;
    grid-template-areas:
      "img label"
      "img text";
    align-items: start;
    gap: 8px 16px;
    text-align: left;
  }

  .p-worries .label {
    grid-area: label;
    justify-self: start;
  }

  .p-worries .text {
    grid-area: text;
    place-items: center start;
    min-height: 0;
    margin-top: 4px;
    padding: 12px 16px;
    font-size: 1.6rem;
  }

  /* SPは吹き出しのしっぽを左向きに */
  .p-worries .text::after {
    left: -8px;
    top: 50%;
    bottom: auto;
    width: 14px;
    height: 14px;
    margin: -7px 0 0;
    border-right: none;
    border-left: 2px solid var(--line-main);
  }

  .p-worries .img {
    grid-area: img;
    width: 110px;
    margin-top: 0;
  }

  .p-worries .recommend {
    margin-top: 96px;
  }

  .p-worries .recommend::before {
    top: -68px;
    margin-left: -30px;
    border-width: 30px 30px 0;
  }
}

/* ---------- p-price（サポート内容） ---------- */
.p-price .plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.p-price .plan {
  overflow: hidden;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.p-price .plan-title {
  padding: 18px 16px;
  font-size: 2.4rem;
  font-weight: 900;
  text-align: center;
  color: var(--text-white);
  background: var(--accent-main);
  border-bottom: 2px solid var(--line-main);
}

.p-price .plan.is-monthly .plan-title {
  color: var(--text-main);
  background: var(--accent-yellow);
}

.p-price .list {
  padding: 28px 32px 0;
}

.p-price .plan > .list:last-child {
  padding-bottom: 32px;
}

.p-price .list li {
  position: relative;
  padding: 10px 0 10px 32px;
  font-weight: 700;
  border-bottom: 1px dashed var(--line-sub);
}

/* チェックアイコン */
.p-price .list li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 4px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--accent-main);
  border-bottom: 3px solid var(--accent-main);
  transform: rotate(-45deg);
}

.p-price .small {
  margin-left: 4px;
  font-size: 1.4rem;
  font-weight: 500;
}

.p-price .note {
  display: block;
  margin-top: 4px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-sub);
}

.p-price .std-service {
  margin: 24px 32px 32px;
  padding: 16px 20px;
  background: var(--bg-accent-pale);
  border-radius: var(--radius-sm);
}

.p-price .std-title {
  font-size: 1.7rem;
  font-weight: 900;
}

.p-price .supplement {
  margin-top: 32px;
  font-size: 1.5rem;
  text-align: center;
  color: var(--text-sub);
}

.p-price .more {
  margin-top: 40px;
  text-align: center;
}

@media (max-width: 767px) {
  .p-price .plans {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .p-price .plan-title {
    font-size: 2rem;
  }

  .p-price .list {
    padding: 20px 20px 0;
  }

  .p-price .plan > .list:last-child {
    padding-bottom: 24px;
  }

  .p-price .std-service {
    margin: 20px 20px 24px;
  }

  .p-price .supplement {
    text-align: left;
  }
}

/* ---------- p-flow（ご利用の流れ） ---------- */
.p-flow .list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  counter-reset: none;
}

.p-flow .item {
  position: relative;
  padding: 0 20px 24px;
  text-align: center;
}

/* 次のSTEPへの矢印 */
.p-flow .item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  width: 0;
  height: 0;
  margin-top: -10px;
  border-style: solid;
  border-width: 10px 0 10px 12px;
  border-color: transparent transparent transparent var(--accent-main);
}

.p-flow .step {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-top: -2px;
  padding: 4px 20px;
  font-family: var(--ff-en);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--accent-yellow);
  border: 2px solid var(--line-main);
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.p-flow .step .num {
  font-size: 2.6rem;
  line-height: 1;
}

.p-flow .item .title {
  margin-top: 16px;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.5;
  color: var(--text-accent);
}

.p-flow .text {
  margin-top: 12px;
  font-size: 1.5rem;
  text-align: left;
}

@media (max-width: 1200px) {
  .p-flow .list {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
    gap: 36px;
  }

  .p-flow .item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "step title"
      "step text";
    gap: 4px 20px;
    align-items: center;
    padding: 20px 24px;
    text-align: left;
  }

  .p-flow .item:not(:last-child)::after {
    top: auto;
    bottom: -28px;
    right: auto;
    left: 50%;
    margin: 0 0 0 -10px;
    border-width: 12px 10px 0;
    border-color: var(--accent-main) transparent transparent;
  }

  .p-flow .step {
    grid-area: step;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 8px 14px;
    border-top: 2px solid var(--line-main);
    border-radius: 12px;
  }

  .p-flow .item .title {
    grid-area: title;
    margin: 0;
  }

  .p-flow .text {
    grid-area: text;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .p-flow .item {
    gap: 4px 16px;
    padding: 16px;
  }

  .p-flow .step {
    font-size: 1.3rem;
    padding: 6px 10px;
  }

  .p-flow .step .num {
    font-size: 2.2rem;
  }

  .p-flow .item .title {
    font-size: 1.8rem;
  }

  .p-flow .text {
    font-size: 1.4rem;
  }
}

/* ---------- p-rich（リッチコンテンツ制作） ---------- */
.p-rich .list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.p-rich .item {
  display: flex;
  flex-direction: column;
  padding: 40px 36px 0;
  overflow: hidden;
}

.p-rich .item .title {
  display: inline-block;
  align-self: center;
  padding: 4px 28px;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-white);
  background: var(--accent-main);
  border-radius: 999px;
}

.p-rich .text {
  margin: 20px 0 24px;
}

/* 画像はカード下端に揃える */
.p-rich .img {
  margin: auto -36px 0;
  padding: 24px 24px 0;
  background: var(--bg-pale);
  border-top: 2px dashed var(--line-sub);
}

@media (max-width: 960px) {
  .p-rich .list {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .p-rich .item {
    padding: 28px 20px 0;
  }

  .p-rich .item .title {
    font-size: 2rem;
  }

  .p-rich .img {
    margin-left: -20px;
    margin-right: -20px;
    padding: 16px 12px 0;
  }
}

/* ---------- p-works（実績） ---------- */
.p-works .list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.p-works .item {
  overflow: hidden;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius-sm);
}

.p-works .item a {
  display: block;
}

.p-works .item img {
  width: 100%;
  transition: transform 0.3s var(--ease-out);
}

.p-works .item a:hover img {
  transform: scale(1.05);
}

@media (max-width: 960px) {
  .p-works .list {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .p-works .list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .p-works .item {
    border-width: 1px;
    border-radius: 8px;
  }
}

/* ---------- p-faq（よくある質問） ---------- */
.p-faq .list {
  display: grid;
  gap: 20px;
}

.p-faq .item {
  overflow: hidden;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius-sm);
}

.p-faq .trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 64px 20px 24px;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: left;
}

/* 開閉アイコン（＋／−） */
.p-faq .trigger::before,
.p-faq .trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 16px;
  height: 3px;
  margin-top: -1.5px;
  background: var(--accent-main);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}

.p-faq .trigger::after {
  transform: rotate(90deg);
}

.p-faq .trigger[aria-expanded="true"]::after {
  transform: rotate(0deg);
}

.p-faq .icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-family: var(--ff-en);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-white);
  background: var(--accent-main);
  border-radius: 50%;
}

.p-faq .answer {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}

/* JS有効時のみ初期状態で閉じる */
.js .p-faq .answer:not(.is-open) {
  grid-template-rows: 0fr;
}

.p-faq .answer-inner {
  display: flex;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
  margin: 0 24px;
}

.p-faq .answer.is-open .answer-inner,
html:not(.js) .p-faq .answer-inner {
  padding: 20px 0 24px;
  border-top: 1px dashed var(--line-sub);
}

.p-faq .answer .icon {
  color: var(--text-main);
  background: var(--accent-yellow);
}

.p-faq .a-text {
  padding-top: 6px;
}

@media (max-width: 767px) {
  .p-faq .list {
    gap: 14px;
  }

  .p-faq .trigger {
    gap: 12px;
    padding: 16px 48px 16px 16px;
    font-size: 1.6rem;
  }

  .p-faq .trigger::before,
  .p-faq .trigger::after {
    right: 16px;
    width: 14px;
  }

  .p-faq .icon {
    width: 34px;
    height: 34px;
    font-size: 1.8rem;
  }

  .p-faq .answer-inner {
    gap: 12px;
    margin: 0 16px;
  }

  .p-faq .a-text {
    padding-top: 4px;
    font-size: 1.5rem;
  }
}

/* ---------- p-news（お知らせ） ---------- */
.p-news .list {
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius);
  overflow: hidden;
}

.p-news .item + .item {
  border-top: 1px dashed var(--line-sub);
}

.p-news .link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 56px 24px 32px;
  transition: background 0.2s;
}

.p-news .link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 28px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-top: 2px solid var(--accent-main);
  border-right: 2px solid var(--accent-main);
  transform: rotate(45deg);
}

.p-news .link:hover {
  background: var(--bg-pale);
}

.p-news .date {
  flex-shrink: 0;
  font-family: var(--ff-en);
  font-weight: 500;
  color: var(--text-accent);
}

.p-news .more {
  margin-top: 40px;
  text-align: center;
}

@media (max-width: 767px) {
  .p-news .link {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 40px 16px 20px;
  }

  .p-news .link::after {
    right: 20px;
  }

  .p-news .date {
    font-size: 1.5rem;
  }

  .p-news .more {
    margin-top: 28px;
  }
}

/* ---------- p-contact（お問い合わせフォーム） ---------- */
.p-contact .form,
.p-contact .wpcf7-form {
  padding: 48px 56px;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.p-contact .fields {
  display: grid;
  gap: 28px;
}

.p-contact .field {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 8px 24px;
  align-items: center;
}

.p-contact .field.is-top {
  align-items: start;
}

.p-contact .field.is-top .label {
  padding-top: 12px;
}

.p-contact .label {
  font-weight: 700;
}

.p-contact .label .small {
  font-size: 1.4rem;
  font-weight: 500;
}

.p-contact .input,
.p-contact .textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.7rem; /* iOSのズーム防止 */
  background: var(--bg-input);
  border: 2px solid var(--line-sub);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.p-contact .input:focus,
.p-contact .textarea:focus {
  border-color: var(--accent-main);
  outline: none;
}

.p-contact .textarea {
  resize: vertical;
}

.p-contact .is-error .input {
  border-color: var(--text-error);
  background: #fff5f5;
}

.p-contact .error {
  margin-top: 4px;
  font-size: 1.4rem;
  color: var(--text-error);
}

.p-contact .error:empty {
  display: none;
}

.p-contact .agree {
  margin-top: 36px;
  text-align: center;
}

.p-contact .checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.p-contact .checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-main);
}

.p-contact .checkbox a {
  color: var(--text-accent);
  text-decoration: underline;
}

.p-contact .submit {
  margin-top: 32px;
  text-align: center;
}

.p-contact .result {
  margin-top: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--text-accent);
}

.p-contact .result:empty {
  display: none;
}

@media (max-width: 767px) {
  .p-contact .form,
  .p-contact .wpcf7-form {
    padding: 28px 16px;
  }

  .p-contact .fields {
    gap: 20px;
  }

  .p-contact .field {
    grid-template-columns: 1fr;
  }

  .p-contact .field.is-top .label {
    padding-top: 0;
  }

  .p-contact .agree {
    margin-top: 28px;
  }
}

/* ---------- p-contact（Contact Form 7 の出力に合わせた調整） ----------
   CF7 のフォーム雛形は テーマ直下の CF7-FORM-TEMPLATE.txt を参照 */
.p-contact .wpcf7-form-control-wrap {
  display: block;
}

/* 入力エラー */
.p-contact .input.wpcf7-not-valid,
.p-contact .textarea.wpcf7-not-valid {
  border-color: var(--text-error);
  background: #fff5f5;
}

.p-contact .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 1.4rem;
  color: var(--text-error);
}

/* 同意チェック（[acceptance] の出力） */
.p-contact .agree .wpcf7-list-item {
  margin: 0;
}

.p-contact .agree label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.p-contact .agree input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--accent-main);
}

.p-contact .agree a {
  color: var(--text-accent);
  text-decoration: underline;
}

/* 送信ボタン（<input type="submit">）・送信中スピナー */
.p-contact .submit .c-btn {
  font-family: inherit;
  cursor: pointer;
}

.p-contact .submit .c-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 4px 4px 0 var(--line-main);
}

.p-contact .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

/* 送信結果メッセージ */
.p-contact .wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  font-weight: 700;
  text-align: center;
  color: var(--text-accent);
  border: 2px solid var(--accent-main);
  border-radius: 8px;
}

.p-contact .wpcf7 form.invalid .wpcf7-response-output,
.p-contact .wpcf7 form.unaccepted .wpcf7-response-output,
.p-contact .wpcf7 form.failed .wpcf7-response-output,
.p-contact .wpcf7 form.aborted .wpcf7-response-output,
.p-contact .wpcf7 form.spam .wpcf7-response-output {
  color: var(--text-error);
  border-color: var(--text-error);
}

/* ショートコード未設定時の案内 */
.p-contact .form.is-placeholder {
  text-align: center;
}

.p-contact .placeholder-text a {
  color: var(--text-accent);
  text-decoration: underline;
}

.p-contact .placeholder-admin {
  margin-top: 16px;
  font-size: 1.4rem;
  color: var(--text-error);
}

@media (max-width: 767px) {
  .p-contact .agree label {
    align-items: flex-start;
    text-align: left;
  }

  .p-contact .agree input[type="checkbox"] {
    margin-top: 4px;
  }
}

/* ---------- p-company（会社概要） ---------- */
.p-company .table {
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius);
  overflow: hidden;
}

.p-company .table .row {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.p-company .table .row + .row {
  border-top: 1px dashed var(--line-sub);
}

.p-company .table dt,
.p-company .table dd {
  padding: 22px 32px;
}

.p-company .table dt {
  font-weight: 700;
  color: var(--text-accent);
  background: var(--bg-pale);
}

.p-company .table dd a {
  color: var(--text-accent);
  text-decoration: underline;
}

.p-company .table dd a:hover {
  opacity: 0.7;
}

/* 事業内容のリスト */
.p-company .table .list li {
  position: relative;
  padding-left: 1.2em;
}

.p-company .table .list li + li {
  margin-top: 4px;
}

.p-company .table .list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 0.5em;
  height: 0.5em;
  background: var(--accent-main);
  border-radius: 50%;
}

/* アクセス（マップ＋所在地情報） */
.p-company .access {
  display: grid;
  grid-template-columns: 3fr 2fr;
  margin-top: 48px;
  overflow: hidden;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.p-company .map {
  position: relative;
  min-height: 360px;
  border-right: 2px solid var(--line-main);
}

.p-company .map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.p-company .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 32px;
}

.p-company .info dt {
  display: inline-block;
  margin-bottom: 8px;
  padding: 0 14px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  background: var(--accent-main);
  border-radius: 999px;
}

@media (max-width: 960px) {
  .p-company .access {
    grid-template-columns: 1fr;
  }

  .p-company .map {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-right: none;
    border-bottom: 2px solid var(--line-main);
  }
}

@media (max-width: 767px) {
  .p-company .table .row {
    grid-template-columns: 1fr;
  }

  .p-company .table dt {
    padding: 12px 20px;
  }

  .p-company .table dd {
    padding: 14px 20px;
  }

  .p-company .access {
    margin-top: 32px;
  }

  .p-company .info {
    gap: 20px;
    padding: 24px 20px;
  }

  .p-company .info dt {
    font-size: 1.4rem;
  }
}

/* ---------- p-cta（下層ページ用お問い合わせ帯） ---------- */
.p-cta {
  padding: 72px 0;
  text-align: center;
  background: var(--bg-sub);
}

.p-cta .title {
  margin-bottom: 32px;
  font-size: 2.8rem;
  font-weight: 900;
}

@media (max-width: 767px) {
  .p-cta {
    padding: 48px 0;
  }

  .p-cta .title {
    margin-bottom: 24px;
    font-size: 2.3rem;
  }
}

/* ---------- p-privacy（プライバシーポリシー） ---------- */
.p-privacy .body {
  padding: 56px;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius);
}

.p-privacy .intro {
  margin-bottom: 40px;
}

.p-privacy .clause + .clause {
  margin-top: 40px;
}

.p-privacy .clause-title {
  margin-bottom: 16px;
  padding: 0 0 8px 16px;
  font-size: 2.2rem;
  font-weight: 900;
  border-left: 6px solid var(--accent-main);
  border-bottom: 1px dashed var(--line-sub);
}

.p-privacy .clause p + p {
  margin-top: 8px;
}

.p-privacy .clause .list {
  margin-top: 12px;
  padding-left: 1.5em;
  list-style: disc;
}

.p-privacy .clause .list li::marker {
  color: var(--accent-main);
}

.p-privacy .contact {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--bg-pale);
  border-radius: var(--radius-sm);
}

.p-privacy .contact .row {
  display: grid;
  grid-template-columns: 100px 1fr;
}

.p-privacy .contact dt {
  font-weight: 700;
}

.p-privacy .date {
  margin-top: 48px;
  text-align: right;
  color: var(--text-sub);
}

@media (max-width: 767px) {
  .p-privacy .body {
    padding: 28px 16px;
  }

  .p-privacy .clause + .clause {
    margin-top: 32px;
  }

  .p-privacy .clause-title {
    font-size: 1.8rem;
  }

  .p-privacy .contact {
    padding: 16px;
  }

  .p-privacy .contact .row {
    grid-template-columns: 1fr;
  }
}

/* ---------- p-news-archive（お知らせ一覧） ---------- */
/* カード・ページ送りは共通コンポーネント（c-news-list / c-news-card / c-pagination）で表示 */

/* ---------- p-news-single（お知らせ個別記事） ---------- */
.p-news-single .post {
  padding: 56px;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius);
}

.p-news-single .head {
  padding-bottom: 24px;
  border-bottom: 2px dashed var(--line-sub);
}

.p-news-single .date {
  font-family: var(--ff-en);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-accent);
}

.p-news-single .head .title {
  margin-top: 8px;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.5;
}

.p-news-single .thumb {
  margin-top: 32px;
  overflow: hidden;
  border: 2px solid var(--line-main);
  border-radius: var(--radius-sm);
}

.p-news-single .thumb img {
  width: 100%;
}

/* 本文エリアの位置 */
.p-news-single .content {
  margin-top: 40px;
}

/* 本文（.c-entry：投稿・固定ページの the_content() 共通の装飾） */
.c-entry > * + * {
  margin-top: 1.4em;
}

.c-entry h2 {
  margin-top: 2em;
  padding: 10px 16px;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.5;
  background: var(--bg-sub);
  border-left: 6px solid var(--accent-main);
  border-radius: 4px;
}

.c-entry h3 {
  margin-top: 1.8em;
  padding-bottom: 8px;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.5;
  border-bottom: 2px dotted var(--accent-main);
}

.c-entry ul {
  padding-left: 1.5em;
  list-style: disc;
}

.c-entry ol {
  padding-left: 1.5em;
  list-style: decimal;
}

.c-entry li::marker {
  color: var(--accent-main);
}

.c-entry a {
  color: var(--text-accent);
  text-decoration: underline;
}

.c-entry img {
  height: auto;
  border-radius: var(--radius-sm);
}

/* 本文内のボタンブロック（.c-btn と同じ黄色ボタンに統一） */
.c-entry .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 12px 40px;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: var(--text-main);
  text-decoration: none;
  background: var(--accent-yellow);
  border: 2px solid var(--line-main);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--line-main);
  transition: transform 0.2s, box-shadow 0.2s;
}

.c-entry .wp-block-button__link:hover {
  color: var(--text-main);
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--line-main);
}

.p-news-single .back {
  margin-top: 48px;
  text-align: center;
}

@media (max-width: 767px) {
  .p-news-single .post {
    padding: 28px 16px;
  }

  .p-news-single .head {
    padding-bottom: 20px;
  }

  .p-news-single .date {
    font-size: 1.5rem;
  }

  .p-news-single .head .title {
    font-size: 2.3rem;
  }

  .p-news-single .thumb {
    margin-top: 24px;
  }

  .p-news-single .content {
    margin-top: 28px;
  }

  .c-entry h2 {
    font-size: 2rem;
  }

  .c-entry h3 {
    font-size: 1.8rem;
  }

  .p-news-single .back {
    margin-top: 36px;
  }
}

/* ---------- p-page（汎用の固定ページ・404） ---------- */
.p-page .body {
  padding: 56px;
  background: var(--bg-base);
  border: 2px solid var(--line-main);
  border-radius: var(--radius);
}

.p-page .back {
  margin-top: 40px;
  text-align: center;
}

@media (max-width: 767px) {
  .p-page .body {
    padding: 28px 16px;
  }

  .p-page .back {
    margin-top: 28px;
  }
}
