/* =========================================================
   Layout
   サイトの骨組み（幅・余白・主要レイアウト・レスポンシブ基礎）
   ========================================================= */

/* 全体の基本 */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ヘッダー・メイン・フッター */
.site-header { width: 100%; }
.site-main   { flex: 1; }
.site-footer { width: 100%; }

/* =========================================================
   Sticky Footer Layout
   ========================================================= */

html,
body {
  height: 100%;
}

.l-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.l-main {
  flex: 1;
}

/* コンテナ（base.cssの変数を使用） */
.l-container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* セクションの縦余白（共通） */
.l-section {
  padding-top: 6.4rem;
  padding-bottom: 6.4rem;
}

/* セクションが詰まりすぎる時の軽い間隔調整 */
.l-stack > * + * {
  margin-top: 2.4rem;
}

/* 2カラムの基本（サイドバーあり用） */
.l-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.2rem;
}

/* サイドバー幅（必要な時だけ使う） */
.l-two-col__side {
  min-width: 0;
}

/* メイン幅（必要な時だけ使う） */
.l-two-col__main {
  min-width: 0;
}

/* PCで2カラム化（例：960px〜） */
@media (min-width: 96rem) {
  .l-two-col {
    grid-template-columns: 1fr 32rem; /* main / sidebar */
    align-items: start;
  }
}

/* 画像や要素がはみ出さないための保険 */
.site-main,
.site-header,
.site-footer {
  overflow-x: clip;
}

/* ==============================
  Breakpoints
  PC: 1024px~
  Tablet: 768px~1023px
  SP: ~767px
============================== */


/* =========================================================
   Header Layout（l-header / c-headerBar）
   ========================================================= */

.l-header {
  z-index: 1100;
  background: #fff;
  backdrop-filter: blur(10px);
  border-bottom: 0.1rem solid rgba(0,0,0,0.06);
  border-radius: 0.5rem;
  position: fixed;
  top: 2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: calc(100% - 2rem);
  transform: none; /* ←これが超重要 */
}

.l-header__inner {
  /* max-width: 144rem; */
  margin: 0 auto;
}

.c-headerBar {
  display: flex;
  align-items:center;
  justify-content: space-between;
  gap: 2.5rem;
}

/* Brand（ロゴ） */
.c-headerBar__brand {
  flex: 0 0 auto;
  min-width: 0;
}

.c-headerBar__logoLink {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin: 1.5rem 0;
}

.c-headerBar__logo {
  display: block;
  width: auto;
  max-width: 31.4rem; /* width=314 */
  margin-left: 1.5rem;
}
@media (max-width: 768px) {
  .c-headerBar__logo {
    max-width: 250px;
  }
}
@media (max-width: 500px) {
  .l-header {
  top: 0.5rem;
width: calc(100% - 1rem);
}
}
/* =========================================================
   Header Navigation / Actions / Drawer
   ========================================================= */

/* --- Desktop Nav --- */
.c-headerNav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.c-headerNav__list {
  display: flex;
  align-items: center;
  gap: 3.5rem; /* 35px */
  list-style: none;
  margin: 0;
  padding: 0;

  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}

.c-headerNav__list > .menu-item { position: relative; }

/* リンク */
.c-headerNav__list > .menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  color: #222;

  padding: 0.8rem 0;
  line-height: 1;
}

.c-headerNav__list > .menu-item > a:hover,
.c-headerNav__list > .menu-item > a:focus-visible {
  opacity: 0.75;
}

/* サブメニューあり：矢印 */
.c-headerNav__list > .menu-item-has-children > a::after {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-right: 0.2rem solid currentColor;
  border-bottom: 0.2rem solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
  margin-top: -0.2rem;
}

/* --- Dropdown --- */
.c-headerNav__list .sub-menu {
  position: absolute;
  top: calc(100% + 0.2rem); /* 2px */
  left: 50%;
  transform: translateX(-50%);

  min-width: 32rem;
  padding: 1.2rem;
  margin: 0;

  list-style: none;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.2rem;

  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.14);
  border: 0.1rem solid rgba(0, 0, 0, 0.06);

  backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

/* 親に乗ってる間は消えない */
.c-headerNav__list > .menu-item-has-children:hover > .sub-menu,
.c-headerNav__list > .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* “透明の当たり判定” */
.c-headerNav__list > .menu-item-has-children > .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1.4rem;
  height: 1.4rem;
}

/* サブメニュー項目 */
.c-headerNav__list .sub-menu .menu-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  color: #222;

  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  line-height: 1.2;
}

.c-headerNav__list .sub-menu .menu-item > a:hover,
.c-headerNav__list .sub-menu .menu-item > a:focus-visible {
  background: rgba(0, 0, 0, 0.06);
}

/* --- Header Actions --- */
.c-headerActions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

/* お問い合わせ（画像のデザイン） */
.c-headerActions__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;

  padding: 1.2rem 2.0rem;
  border-radius: 0 0.5rem 0.5rem 0;

  font-weight: 800;
  font-size: 1.6rem;
  color: #00632D;
  background: #E6EA55;

  text-decoration: none;
  line-height: 1;
  white-space: nowrap;

  transition: transform .18s ease, opacity .18s ease, filter .18s ease;
}

/* 白丸＋封筒アイコン（CSSで再現） */
.c-headerActions__contact::before {
  content: "";
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  flex: 0 0 auto;

  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 3.4rem 3.4rem;

  background-image: url("../img/all/mail.svg");
}

.c-headerActions__contact:hover,
.c-headerActions__contact:focus-visible {
  opacity: 1;
  filter: brightness(0.98);
  transform: translateY(-0.1rem);
}

.c-headerActions__contact:active {
  transform: translateY(0);
}

.c-headerActions__contact:focus-visible {
  outline: 0.2rem solid rgba(0, 99, 45, 0.35);
  outline-offset: 0.3rem;
}

/* --- Hamburger --- */
.c-hamburger {
  display: none; /* 1380px以下で表示 */
  width: 4.6rem;
  height: 4.6rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.c-hamburger__lines {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.4rem;
  height: 0.2rem;
  background: #222;
  transform: translate(-50%, -50%);
}

.c-hamburger__lines::before,
.c-hamburger__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 2.4rem;
  height: 0.2rem;
  background: #222;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.c-hamburger__lines::before { top: -0.7rem; }
.c-hamburger__lines::after  { top:  0.7rem; }

/* JSで .is-open を付ける想定 */
.c-hamburger.is-open .c-hamburger__lines { background: transparent; }
.c-hamburger.is-open .c-hamburger__lines::before { top: 0; transform: rotate(45deg); }
.c-hamburger.is-open .c-hamburger__lines::after  { top: 0; transform: rotate(-45deg); }

/* --- Drawer --- */
.c-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;

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

.c-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.c-drawer__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0,0,0,0.35);
}

.c-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(36rem, 86vw);
  height: 100%;
  z-index: 1;

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);

  box-shadow: -2rem 0 4rem rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform .22s ease;

  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.c-drawer.is-open .c-drawer__panel { transform: translateX(0); }

.c-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 1.6rem 1.2rem;
  border-bottom: 0.1rem solid rgba(0,0,0,0.06);
}

.c-drawer__title {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #222;
  font-size: 1.4rem;
}

.c-drawer__close {
  width: 4rem;
  height: 4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 2.4rem;
  line-height: 1;
  color: #222;
}

.c-drawerNav {
  padding: 1.2rem 1.6rem;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.c-drawerNav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-drawerNav__list > .menu-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1.4rem 0.8rem;
  text-decoration: none;
  color: #222;
  font-weight: 700;
  font-size: 1.6rem;
  border-radius: 1rem;
}

.c-drawerNav__list > .menu-item > a:hover,
.c-drawerNav__list > .menu-item > a:focus-visible {
  background: rgba(0,0,0,0.06);
}

/* モバイルのサブメニュー：常に見せる */
.c-drawerNav__list .sub-menu {
  list-style: none;
  margin: 0.4rem 0 1.2rem;
  padding: 0 0 0 0.8rem;
  border-left: 0.2rem solid rgba(0,0,0,0.08);
}

.c-drawerNav__list .sub-menu .menu-item > a {
  display: block;
  padding: 1.2rem 0.8rem;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 1.5rem;
  border-radius: 0.8rem;
}

.c-drawerNav__list .sub-menu .menu-item > a:hover,
.c-drawerNav__list .sub-menu .menu-item > a:focus-visible {
  background: rgba(0,0,0,0.05);
}

.c-drawer__footer {
  margin-top: auto;
  padding: 1.6rem;
  border-top: 0.1rem solid rgba(0,0,0,0.06);
  flex: 0 0 auto;
}

.c-drawer__contact {
  display: block;
  text-align: center;
  padding: 1.4rem 1.6rem;
  border-radius: 1.2rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  background: #00632D;
}

/* =========================================================
   Header responsive visibility（挙動維持）
   ========================================================= */

@media (max-width: 1100px) {
  .c-headerNav--desktop { display: none; }
  .c-headerActions__contact--desktop { display: none; }
  .c-hamburger { display: inline-flex; }
  .c-headerActions { margin-right: 1.5rem; }
}



@media (min-width: 768px) {
  .c-headerNav__list {
    gap: clamp(2.8rem, 1.2vw, 3.5rem);
  }

  .c-headerNav__list > .menu-item > a {
    font-size: clamp(1.2rem, 0.6vw + 0.8rem, 1.6rem);
  }

  .c-headerActions__contact {
    font-size: clamp(1.2rem, 0.6vw + 0.8rem, 1.6rem);
    padding: 20px;
  }

  .c-headerActions__contact::before {
    width: clamp(2.8rem, 0.6vw + 2.2rem, 3.2rem);
    height: clamp(2.8rem, 0.6vw + 2.2rem, 3.2rem);
    background-size:3.4rem 3.4rem;
  }

  /* ドロップダウンの左寄せ調整（あなたの元CSS思想） */
  .c-headerNav__list .sub-menu {
    left: 0%;
    transform: none;
  }
}








/* ==============================
  Footer Layout
============================== */

.l-footer {
  background: #F2F7F8;
  padding-top: 6.5rem;
  padding-bottom: 3rem;
  width: 100%;
  font-weight: 500;
}

.l-footer__inner {
  max-width: 110rem; /* 1100px */
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.c-footerCta {
  display: grid;
  gap: 2rem;
  justify-items: end;
  align-content: start;
}
.c-footerCta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  border-radius: 0.8rem;

  background: #0B6A3A;
  color: #fff;
  text-decoration: none;
  min-width: 25rem;

  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  line-height: 1.2;

  transition: transform .18s ease, opacity .18s ease;
}