@charset "UTF-8";

/* =========================================
   Root / Variables
========================================= */
:root {
  /* Typography */
  --font-base:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    Meiryo,
    sans-serif;

  /* Layout */
  --container: 1080px;
  --container-padding: 10px; /* SP余白 */

  /* Fixed header */
  --header-h: 104px;   /* 80px要素 + padding上下12px想定（必要なら微調整） */
  --admin-bar-h: 32px; /* PC（WP管理バー） */
}


/* =========================================
   Reset / Base
========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  line-height: 1.7;
  color: #333;
}

p {
  font-weight: 400;
  line-height: 2;
}

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

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


/* =========================================
   Layout
========================================= */
.l-container {
  width: min(var(--container), 100% - (var(--container-padding) * 2));
  margin-inline: auto;
}

/* 固定ページなどの基本余白（必要なら調整） */
/*
.page {
  padding: 48px 0;
}
*/

.entry__title {
  margin: 0 0 20px;
  font-weight: 700;
}


/* =========================================
   Utility
========================================= */
/* 初期：PC想定 */
.is-pc {
  display: block;
}

.is-sp {
  display: none;
}


/* =========================================
   Component: Section Title (Reusable)
========================================= */
.c-section-title {
  margin: 0 0 30px;
}

.c-section-title__eyebrow {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.2;
  color: #333333;
}

.c-section-title__main {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: #45A230;
}

/* PCは中央寄せにしたいセクションだけ付与（SP基準で左、PCで上書き） */
.c-section-title--centerPc {
  text-align: left;
}


/* =========================================
   Header (Fixed / hide on down, show on up)
========================================= */
/* ログイン時（管理バー + ヘッダー分） */
.admin-bar .site-main {
  padding-top: calc(var(--header-h) + var(--admin-bar-h));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9990;

  transition:
    top 0.25s ease,
    background-color 0.2s ease,
    backdrop-filter 0.2s ease,
    box-shadow 0.2s ease;
}

/* 管理バー考慮 */
.admin-bar .site-header {
  top: var(--admin-bar-h);
}

/* 下スクロール時に隠す */
.site-header.is-hidden {
  top: calc(-1 * var(--header-h));
}

.admin-bar .site-header.is-hidden {
  top: calc(-1 * (var(--header-h) + var(--admin-bar-h)));
}

/* 上にいて“トップ”の状態（背景なし） */
.site-header.is-top {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

/* トップ以外（白背景を透過で＋すりガラスっぽく） */
.site-header.is-scrolled {
  /* 世界観に寄せるならこれも可：rgba(254, 252, 242, 0.86) */
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ヘッダー：フル幅の中で中身をセンタリング */
.site-header__inner {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ヘッダー中身：flex並び */
.site-header__content {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 1400px;
  min-height: 80px;
  margin: 0 auto;
  padding: 12px 24px;
}

/* ① ロゴ（上下中央揃えを確定） */
.site-header__logo,
.site-header__logo-link,
.site-header__logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.site-header__logo {
  flex: 0 0 auto;
}

.site-header__logo-link {
  display: inline-flex;
  align-items: center;
}

.site-header__logo img,
.site-header__logo .custom-logo {
  display: block;
  width: auto;
  height: 70px;
  max-height: 70px;
}

/* ② PC専用メニュー */
.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 720px;
  height: 80px;
  margin-left: 30px;
  padding: 0 40px;

  background: #FEFCF2;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.32);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px; /* メニュー間 30px */

  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav a {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* ③ 電話番号ボタン */
.site-header__tel {
  display: flex;
  flex-direction: column;
  justify-content: center;

  height: 80px;
  margin-left: 20px;
  padding: 12px 22px;

  background: #DB571C;
  border-radius: 9999px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.32);

  color: #fff;
  text-align: center;
}

.site-header__tel-sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.site-header__tel-main {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

/* ④ ハンバーガー */
.site-header__hamburger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 80px;
  height: 80px;
  margin-left: 20px;

  border: 0;
  background: #333;
  border-radius: 9999px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.32);

  cursor: pointer;
  color: #fff;
}

.hamburger-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.hamburger-icon span {
  display: block;
  width: 28px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
}

.hamburger-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}


/* =========================================
   Drawer (Hamburger menu)
========================================= */
.site-drawer[hidden] {
  display: none;
}

.site-drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 100000;
}

/* overlay */
.site-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(69, 162, 48, 0.5);
  opacity: 0;
  transition: opacity 0.22s ease;
}

/* panel（ここにスライドを持たせる） */
.site-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;

  width: min(420px, 92vw);
  height: 100%;
  min-height: 100dvh;
  padding: 84px 24px 24px;

  background: #fff;
  overflow: auto;

  transform: translateX(100%); /* 初期は右へ退避 */
  transition: transform 0.28s ease;
  will-change: transform;
}

/* OPEN */
.site-drawer.is-open .site-drawer__panel {
  transform: translateX(0);
}

.site-drawer.is-open .site-drawer__overlay {
  opacity: 1;
}

/* CLOSING（JSでis-closing付けるなら保険で） */
.site-drawer.is-closing .site-drawer__panel {
  transform: translateX(100%);
}

.site-drawer.is-closing .site-drawer__overlay {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .site-drawer__panel,
  .site-drawer__overlay {
    transition: none;
  }
}

/* Closeボタン（右上 20px / 20px） */
.site-drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 80px;
  height: 80px;

  border: 0;
  background: #333;
  border-radius: 9999px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.32);

  cursor: pointer;
  color: #fff;
}

.drawer-close-icon {
  display: inline-flex;
  position: relative;
  width: 32px;
  height: 32px;
}

.drawer-close-icon span {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 32px;
  height: 4px;

  background: #fff;
  border-radius: 2px;

  transform-origin: center;
}

.drawer-close-icon span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.drawer-close-icon span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer-close-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* メニュー */
.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 各メニューごとに下線 */
.drawer-nav li {
  border-bottom: 1px solid #DDDDDD;
}

.drawer-nav a {
  display: block;
  padding: 10px 0;
  font-size: 18px;
  font-weight: 700;
}

/* 情報ブロック */
.drawer-info {
  margin-top: 30px;
}

.drawer-info__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.drawer-info-list {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-info-item {
  display: flex;
  align-items: flex-start; /* 複数行でも綺麗 */
  gap: 10px;

  padding: 10px 0;
  border-bottom: 1px solid #DDDDDD;

  font-size: 16px;
  line-height: 1.6;
}

/* アイコン */
.drawer-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px; /* 文字ベースライン微調整 */

  color: #45A230; /* ブランドカラー */
}

.drawer-info-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* テキスト */
.drawer-info-text {
  color: #333;
}

/* リンクだけ少し区別 */
.drawer-info-text[href] {
  text-decoration: none;
  text-underline-offset: 2px;
}


/* =========================================
   Footer
========================================= */
.site-footer__top {
  padding: 56px 0;
  background: #EFEDEA;
  border-bottom: 1px solid #DEDEDE;
}

.site-footer__bottom {
  padding: 20px 0;
  background: #EFEDEA;
}

/* フッターのinnerは1080px基準に統一 */
.site-footer__inner {
  width: min(var(--container), 100% - (var(--container-padding) * 2));
  margin-inline: auto;
}

/* 上段：3カラム（左：ロゴ/中央：MENU/右：バナー） */
.site-footer__top .site-footer__inner {
  display: grid;
  grid-template-columns: 360px 200px 180px;
  gap: 60px;
  align-items: start;
}

/* カラム共通 */
.site-footer__col {
  min-width: 0;
}

/* 左カラム（ロゴ＋テキスト） */
.site-footer__logo {
  display: inline-flex;
  align-items: center;
}

/* WPのカスタムロゴ画像 */
.site-footer__brand .custom-logo {
  height: 70px;
  width: auto;
}

/* ロゴ画像のアンカーに含まれる img にも効くように */
.site-footer__brand img {
  height: 70px;
  width: auto;
}

/* 説明テキスト */
.site-footer__text p {
  margin: 30px 0 0;
  color: #333;
}

/* 中カラム（MENU） */
.site-footer__title {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: 18px;
  color: #45A230;
}

.site-footer__nav {
  margin: 0;
}

/* フッターメニュー */
.footer-nav {
  display: grid;
  gap: 10px;

  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: #333;
}

/* 右カラム（バナー） */
.footer-banners {
  display: grid;
  gap: 25px;
}

.footer-banners__item {
  display: block;
}

.footer-banners__img {
  display: block;
  width: 100%;
  height: auto;
}

/* コピーライト */
.site-footer__copyright {
  margin: 0;
  font-weight: 700;
  color: #333;
}


/* =========================================
   Follow CTA (PC right / SP bottom)
========================================= */
.follow-cta {
  position: fixed;
  z-index: 100;
}

.follow-cta__item {
  display: block;
  text-decoration: none;
}

.follow-cta__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PC */
.follow-cta--pc {
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  width: 240px;
}

.follow-cta--pc .follow-cta__item {
  width: 100%;
  height: auto;
  overflow: hidden;
}

/* SP */
.follow-cta--sp {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  padding-bottom: env(safe-area-inset-bottom);

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.follow-cta--sp.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.follow-cta--sp .follow-cta__item {
  overflow: hidden;
}

.follow-cta--sp .follow-cta__item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.follow-cta-spacer {
  height: 0;
}

/* contact到達時は強制的に非表示（SP追従） */
.follow-cta--sp.is-hidden-by-contact {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =========================================
   Breadcrumb
========================================= */

/* 外枠：フル幅＋境界線 */
.breadcrumb {
  width: 100%;
  border-top: 1px solid #DDDDDD;
  border-bottom: 1px solid #DDDDDD;
  font-size: 14px;
  line-height: 1.6;
}

/* 中身：コンテンツ幅 */
.breadcrumb__list {
  width: min(1080px, calc(100% - 20px));
  margin: 0 auto;
  padding: 10px 15px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

/* 区切り矢印 */
.breadcrumb__item::after {
  content: "›";
  margin-left: 10px;
  opacity: 0.5;
}

.breadcrumb__item:last-child::after {
  content: "";
  margin: 0;
}

/* リンク */
.breadcrumb__link {
  text-decoration: none;
}

/* 現在地 */
.breadcrumb__item[aria-current="page"] {
  opacity: 0.8;
}

.grecaptcha-badge{
  display: none;
}

/* =========================================
   Contact Form 7
========================================= */
/* CF7：リダイレクト中は成功メッセージを見せない */
.wpcf7.is-redirecting .wpcf7-response-output {
  display: none !important;
}

/* =========================================
   Responsive
========================================= */

/* 1400px未満で②を非表示 */
@media (max-width: 1399px) {
  .site-header__nav {
    display: none;
  }
}

/* 表示切替：PCはPCだけ、SPはSPだけ */
@media (max-width: 1024px) {
  .follow-cta--pc {
    display: none;
  }

  /* SP追従でページ下が隠れないように余白を確保 */
  body {
    padding-bottom: calc(145px + env(safe-area-inset-bottom));
  }

  .follow-cta-spacer {
    height: calc(80px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 1025px) {
  .follow-cta--sp {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* 900px未満：フッターをSP化（レイアウトが詰むため） */
@media (max-width: 900px) {
  .site-footer__top .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer__col--menu .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 8px;
    row-gap: 15px;
  }

  .site-footer__col--brand {
    order: 1;
  }

  .site-footer__col--menu {
    order: 2;
  }

  .site-footer__col--banners {
    order: 3;
  }

  .site-footer__brand .custom-logo,
  .site-footer__brand img {
    height: 60px;
  }

  .site-footer__text p {
    margin: 20px 0 0;
  }

  .footer-banners__img {
    width: 180px;
  }

  .site-footer__bottom {
    text-align: center;
  }
}

/* WP管理バー：782px未満で高さが変わることが多い */
@media (max-width: 782px) {
  :root {
    --admin-bar-h: 46px;
  }
}

/* PCだけ中央寄せを有効化 */
@media (min-width: 769px) {
  .c-section-title--centerPc {
    text-align: center;
  }
}

/* 768px未満：ヘッダーを“完全SP圧縮”UIに + ドロワー微調整 */
@media (max-width: 768px) {
  .is-pc {
    display: none;
  }

  .is-sp {
    display: block;
  }

  .c-section-title__eyebrow {
    font-size: 12px;
  }

  .c-section-title__main {
    font-size: 28px;
  }

  .site-header__content {
    padding: 10px;
  }

  .site-header__logo img,
  .site-header__logo .custom-logo {
    height: 40px;
    max-height: 40px;
  }

  .site-header__tel {
    margin-left: 10px;
    height: 44px;
    padding: 6px 10px;
  }

  .site-header__tel-sub {
    font-size: 10px;
  }

  .site-header__tel-main {
    font-size: 14px;
  }

  .site-header__hamburger {
    margin-left: 10px;
    width: 44px;
    height: 44px;
  }

  .hamburger-icon {
    gap: 4px;
  }

  .hamburger-icon span {
    width: 20px;
    height: 2px;
  }

  .hamburger-label {
    font-size: 8px;
    margin-top: -4px;
  }

  .site-drawer__panel {
    width: min(420px, 96vw);
    padding: 60px 10px 14px;
  }

  .site-drawer__close {
    right: 10px;
    width: 44px;
    height: 44px;
    gap: 6px;
  }

  .drawer-close-icon {
    width: 20px;
    height: 20px;
  }

  .drawer-close-icon span {
    width: 20px;
    height: 2px;
  }

  .drawer-close-label {
    font-size: 8px;
    margin-top: -4px;
  }

  .drawer-nav a {
    padding: 8px 0;
    font-size: 16px;
  }

  .drawer-info__title {
    font-size: 18px;
  }

  .drawer-info-item {
    padding: 6px 0;
    font-size: 14px;
  }
}