/* =========================================================
   components.css — ボタン・カード・見出し等の部品
   ========================================================= */

/* ---- アイコン ---- */
.c-icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

/* =========================================================
   ボタン
   ========================================================= */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.3;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  will-change: transform;
}
.c-btn .c-icon { width: 20px; height: 20px; }
.c-btn:hover { transform: translateY(-2px); }

/* オレンジ（メール・CTA）：縦グラデーション＋角丸8px（デザイン実測） */
.c-btn--mail {
  border-radius: 8px;
  background: linear-gradient(180deg, #f39800 0%, #ee8704 25%, #e76f09 50%, #e15e0d 70%, #e0640c 80%, #df770a 100%);
  color: #fff;
  box-shadow: 0 4px 8px rgba(160, 70, 0, .18);
}
.c-btn--mail:hover {
  background: linear-gradient(180deg, #ee8a00 0%, #e67a04 25%, #dc6408 50%, #d5540c 70%, #d4590b 80%, #d36a09 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(160, 70, 0, .24);
}

/* ゴースト（白地・緑枠） */
.c-btn--ghost {
  background: #fff;
  color: var(--c-green-dark);
  border: 2px solid var(--c-green);
  box-shadow: var(--shadow);
}
.c-btn--ghost:hover {
  background: var(--c-green-light);
  color: var(--c-green-dark);
}

/* サイズ */
.c-btn--sm { padding: 10px 18px; font-size: 1.4rem; }
.c-btn--lg { padding: 18px 30px; font-size: 1.7rem; }

@media (max-width: 767px) {
  .c-btn { width: 100%; }
}

/* =========================================================
   電話番号ブロック
   ========================================================= */
.c-tel__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0a9d58;
}
.c-tel__link:hover { color: #0a9d58; }
.c-tel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0a9d58;
  color: #fff;
}
.c-tel__icon .c-icon { width: 18px; height: 18px; }
.c-tel__text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.c-tel__num {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}
.c-tel__hours {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  color: #0a9d58;
  white-space: nowrap;
}
.c-tel__label {
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

/* card バリアント：白地・緑3px枠・角丸8px（デザイン実測 390×110） */
.c-tel--card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 8px 11px;
  border: 3px solid #0a9d58;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 60, 30, .12);
}
.c-tel--card .c-tel__icon { width: 46px; height: 46px; }
.c-tel--card .c-tel__icon .c-icon { width: 25px; height: 25px; }
.c-tel--card .c-tel__icon .c-icon { transform: scaleX(-1); } /* デザインはカード内のみ受話器が左右反転 */
.c-tel--card .c-tel__num { font-size: 3.6rem; line-height: 1.1; }
.c-tel--card .c-tel__hours { font-size: 1.4rem; line-height: 1.7; }
@media (min-width: 1024px) {
  .c-tel--card { height: 110px; }
  .c-tel--card .c-tel__icon { width: 53px; height: 53px; }
  .c-tel--card .c-tel__icon .c-icon { width: 29px; height: 29px; }
  .c-tel--card .c-tel__num { font-size: 4.5rem; line-height: 40px; }
  .c-tel--card .c-tel__hours { font-size: 1.6rem; line-height: 27px; }
}

/* 固定電話の併記（フリーダイヤルのボタン下に小さく）
   .c-tel-group が「電話カード＋固定電話の行」をひとまとめにする。
   色は場面によって変わるので、暗い背景側で個別に白へ上書きする。 */
.c-tel-group { display: flex; flex-direction: column; }
.c-tel__sub {
  margin-top: 7px;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}
.c-tel__sub-label {
  margin-right: .6em;
  font-size: 1.2rem;
  opacity: .85;
}
.c-tel__sub-link {
  color: inherit;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.c-tel__sub-link:hover { text-decoration: none; }
@media (min-width: 1024px) {
  .c-tel__sub { margin-top: 9px; font-size: 1.5rem; }
  .c-tel__sub-label { font-size: 1.4rem; }
}

/* plain バリアント（枠なし・フッター用） */
.c-tel--plain .c-tel__text { align-items: flex-start; }
.c-tel--plain + .c-tel__sub { text-align: left; }

/* ヘッダー内：白地・緑2px枠のピル（デザイン実測 240×50） */
.l-gnav__actions .c-tel__link {
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 15px;
  border: 2px solid #0a9d58;
  border-radius: 9999px;
  background: #fff;
}
.l-gnav__actions .c-tel__icon { width: 14px; height: 14px; background: none; color: #0a9d58; }
.l-gnav__actions .c-tel__icon .c-icon { width: 14px; height: 14px; }
.l-gnav__actions .c-tel__num { font-size: 2.8rem; line-height: 1; }
.l-gnav__actions .c-tel__hours { display: none; }
@media (max-width: 1279px) {
  .l-gnav__actions .c-tel__link { width: 100%; height: auto; padding: 10px 15px; }
  .l-gnav__actions .c-tel__hours { display: block; font-size: 1.2rem; }
}

/* =========================================================
   セクション見出し（英字ラベル＋日本語）デザイン実測
   ラベル：オレンジ線30×3＋緑12px／見出し42px・字間2%／リード18px・行高31
   ========================================================= */
.c-sec-head {
  margin-bottom: 32px;
  text-align: center;
}
.c-sec-head__en {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: #0a9d58;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: .1em;
}
.c-sec-head__en::before {
  content: "";
  width: 30px;
  height: 3px;
  background: #f08b39;
}
.c-sec-head__ja {
  margin-top: 10px;
  color: #24352d;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .02em;
}
.c-sec-head__ja .u-accent { color: #f08b39; }
.c-sec-head__lead {
  margin-top: 14px;
  color: #24352d;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.8;
}
@media (min-width: 1024px) {
  .c-sec-head { margin-bottom: 39px; }
  .c-sec-head__ja { margin-top: 13px; font-size: 4.2rem; line-height: 60px; }
  .c-sec-head__lead { margin-top: 18.5px; font-size: 1.8rem; line-height: 31px; }
}
/* 左寄せバリアント */
.c-sec-head--left { text-align: left; }
.c-sec-head--left .c-sec-head__en { justify-content: flex-start; }
/* 白抜き（濃背景上） */
.c-sec-head--light .c-sec-head__ja { color: #fff; }

/* =========================================================
   タグ（カテゴリ）
   ========================================================= */
.c-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--c-green-light);
  color: var(--c-green-dark);
  line-height: 1.5;
}
.c-tag--works {
  background: var(--c-orange-pale);
  color: var(--c-orange-dark);
}

/* =========================================================
   お知らせカード
   ========================================================= */
.c-news-list {
  display: grid;
  gap: 4px;
}
.c-news-card__link {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 8px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
}
.c-news-card__link:hover { color: var(--c-green-dark); }
.c-news-card__link:hover .c-news-card__title { color: var(--c-green-dark); }
.c-news-card__thumb {
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.c-news-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* アイキャッチ未設定時：ロゴ画像を全面に敷く（周囲に地色を出さない） */
.c-news-card__thumb--noimg { background: #fff; }
.c-news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.c-news-card__date {
  font-weight: 700;
  color: var(--c-green-dark);
  font-size: 1.4rem;
}
.c-news-card__title {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
  transition: color .2s var(--ease);
}
@media (min-width: 768px) {
  .c-news-card__link { grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 8px; }
}

/* =========================================================
   カテゴリ絞り込み
   ========================================================= */
.c-cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.c-cat-filter__link {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-border);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--c-text);
  background: #fff;
}
.c-cat-filter__link:hover { border-color: var(--c-green); color: var(--c-green-dark); }
.c-cat-filter__link.is-current {
  background: var(--c-green);
  border-color: var(--c-green);
  color: #fff;
}

/* =========================================================
   ページネーション
   ========================================================= */
.c-pagination { margin-top: 40px; }
.c-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.c-pagination a,
.c-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  font-weight: 700;
  background: #fff;
}
.c-pagination a:hover { border-color: var(--c-green); color: var(--c-green-dark); }
.c-pagination .current {
  background: var(--c-green);
  border-color: var(--c-green);
  color: #fff;
}

/* =========================================================
   検索フォーム
   ========================================================= */
.c-searchform {
  display: flex;
  gap: 8px;
  max-width: 420px;
}
.c-searchform input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
}
.c-searchform button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  border-radius: 8px;
  background: var(--c-green);
  color: #fff;
}

/* =========================================================
   フォーム（CF7 / フォールバック共通）
   ========================================================= */
.wpcf7-form,
.kd-fallback-form {
  display: grid;
  gap: 20px;
}
.kd-field { display: grid; gap: 8px; }
.kd-field label {
  font-weight: 700;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kd-req, .kd-any {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.kd-req { background: var(--c-orange); color: #fff; }
.kd-any { background: var(--c-bg-soft); color: var(--c-text-muted); }

.kd-field input[type="text"],
.kd-field input[type="tel"],
.kd-field input[type="email"],
.kd-field textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  font-size: 1.6rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.kd-field input:focus,
.kd-field textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px var(--c-green-light);
  outline: none;
}
.kd-field--check label {
  font-weight: 500;
  font-size: 1.5rem;
}
.kd-submit { text-align: center; margin-top: 8px; }

/* スパム対策（Cloudflare Turnstile）のウィジェット */
.wpcf7-turnstile {
  display: flex;
  justify-content: center;
  margin: 20px 0 4px;
}

/* CF7 送信ボタン */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 16px 30px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--c-orange);
  color: #fff;
  font-weight: 700;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(239, 138, 56, .28);
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
  background: var(--c-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(239, 138, 56, .34);
}
.wpcf7-form .wpcf7-spinner { margin-left: 12px; }
.wpcf7-form .wpcf7-list-item { margin: 0; }
.wpcf7-form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--c-green); vertical-align: middle; }
.kd-fallback-note {
  font-size: 1.3rem;
  color: var(--c-text-muted);
  text-align: center;
}
.wpcf7 .wpcf7-not-valid-tip { color: #c0392b; font-size: 1.3rem; }
.wpcf7-response-output {
  border-radius: 8px;
  padding: 12px 16px !important;
  font-size: 1.4rem;
}

/* =========================================================
   空表示
   ========================================================= */
.c-empty {
  text-align: center;
  color: var(--c-text-muted);
  padding: 40px 0;
}

/* =========================================================
   CTA帯（部品）デザイン実測：緑地・上端直線・高さ426
   下の40pxには次のセクションの角丸キャップが重なる
   ========================================================= */
.p-cta {
  position: relative;
  padding: 56px 16px 88px;
  background: #0a9d58;
  color: #fff;
}
.p-cta__inner { max-width: 1120px; margin-inline: auto; text-align: center; }
.p-cta__lead { font-size: 1.5rem; font-weight: 700; line-height: 1.5; }
.p-cta__heading {
  margin: 4px 0 20px;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
}
@media (min-width: 1024px) {
  .p-cta { padding: 86px 0 107px; }
  .p-cta__lead { font-size: 2.2rem; line-height: 33px; }
  .p-cta__heading { margin: -1px 0 23px; font-size: 3.2rem; line-height: 48px; }
}

/* =========================================================
   CTAの2ボタン（電話カード＋メール）：デザイン実測 552×130
   お困りごと下部・CTA帯で共通
   ========================================================= */
.c-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1120px;
  margin-inline: auto;
}
.c-cta-btns .c-btn--mail {
  min-height: 84px;
  padding: 0 16px;
  font-size: 2.2rem;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .c-cta-btns { flex-direction: row; justify-content: center; align-items: flex-start; gap: 16px; }
  .c-cta-btns > * { flex: 1 1 0; max-width: 552px; }
}
@media (min-width: 1024px) {
  .c-cta-btns .c-tel--card,
  .c-cta-btns .c-btn--mail { height: 130px; border-radius: 10px; }
  .c-cta-btns .c-tel__icon { width: 72px; height: 72px; }
  .c-cta-btns .c-tel__icon .c-icon { width: 40px; height: 40px; }
  .c-cta-btns .c-tel__num { font-size: 5.5rem; line-height: 1; }
  .c-cta-btns .c-tel__hours { margin-top: 3px; font-size: 1.9rem; font-weight: 700; line-height: 1.4; }
  .c-cta-btns .c-btn--mail { font-size: 3.8rem; }
}
