/* =========================================================
   common.css : 全ページ共通（ベース / レイアウト / ヘッダー /
   ドロワー / フッター / 共通ボタン / 下層ページ共通ヘッダ）
   ブレイクポイント: 750px（max-width:750px でSP）
   ========================================================= */

/* ----------------------------------------------------------
   base
---------------------------------------------------------- */
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ----------------------------------------------------------
   layout helpers
---------------------------------------------------------- */
.inner {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.inner--wide {
  max-width: calc(var(--content-width-wide) + var(--gutter) * 2);
}

.section {
  padding-top: 90px;
  padding-bottom: 90px;
}

/* PC / SP 出し分け
   PC既定では pc-only に display を強制せず（要素本来の表示を維持）、
   SP側で display:none に寄せる方針。 */
.sp-only { display: none; }

/* ----------------------------------------------------------
   header
---------------------------------------------------------- */
.header {
  position: relative;
  z-index: 100;
  height: 88px;
  background: var(--color-white);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.header__inner {
  height: 100%;
  max-width: 1920px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* ロゴ左 約130px / ナビ右 約76px（1920基準。狭幅では縮小） */
  padding-left: clamp(20px, 6.77vw, 130px);
  padding-right: clamp(16px, 3.96vw, 76px);
}

.header__logo {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-text);
  white-space: nowrap;
}

/* global nav (PC) */
.gnav__list {
  display: flex;
  align-items: center;
  gap: 48px;
}

.gnav__link {
  position: relative;
  display: block;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
  transition: opacity 0.2s;
}

.gnav__link:hover {
  opacity: 0.6;
}

/* 現在ページの下線マーカー（ベージュ） */
.gnav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -19px;
  width: 100px;
  height: 5px;
  border-radius: 3px;
  background: var(--color-beige);
}

/* hamburger (SP) */
.hamburger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger__bar,
.hamburger__bar::before,
.hamburger__bar::after {
  position: absolute;
  left: 50%;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  transform: translateX(-50%);
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger__bar {
  top: 50%;
  margin-top: -1px;
}

.hamburger__bar::before,
.hamburger__bar::after {
  content: "";
}

.hamburger__bar::before { top: -8px; }
.hamburger__bar::after  { top:  8px; }

/* ----------------------------------------------------------
   drawer (SP menu)
---------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-beige);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding-inline: 20px;
}

.drawer__logo {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text);
}

.drawer__close {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.drawer__close::before,
.drawer__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

.drawer__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.drawer__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.drawer__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  padding-top: 50px;
}

.drawer__link {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

/* ----------------------------------------------------------
   page head (下層ページ共通：パンくず＋ページタイトル)
---------------------------------------------------------- */
.page-head {
  max-width: 1920px;
  margin-inline: auto;
  padding: 28px clamp(20px, 7.3vw, 140px) 24px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--color-text);
}

.breadcrumb a:hover { opacity: 0.6; }

.breadcrumb__sep {
  margin-inline: 8px;
}

.page-title {
  margin-top: 18px;
  padding-left: 60px; /* パンくずより60px右に寄せる（PC） */
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.4;
  color: var(--color-text);
}

/* ----------------------------------------------------------
   common button : .btn ＋ modifier
---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 229px;
  height: 44px;
  padding-inline: 28px;
  border-radius: 22px;
  background: var(--color-beige);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

/* 右向き三角（幅8px / 高さ7px / 縦中央） */
.btn::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 3.5px 0 3.5px 8px;
  border-color: transparent transparent transparent var(--color-text);
}

/* ----------------------------------------------------------
   footer
---------------------------------------------------------- */
.footer {
  background: var(--color-beige);
  color: var(--color-text);
}

.footer__inner {
  max-width: 1920px;
  margin-inline: auto;
  padding: 60px 0 24px;
  /* 左右余白 約76px（1920基準。狭幅では縮小） */
  padding-inline: clamp(24px, 3.96vw, 76px);
}

/* nav（列群）と contact を横並び・両端・中央揃え */
.footer__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer__nav {
  display: flex;
  gap: 60px;
}

.footer__col-title {
  display: inline-block;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 16px;
}

.footer__col-title:hover { opacity: 0.6; }

.footer__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 18px;
}

/* 法人概要・施設一覧の子リスト左の縦線 */
.footer__list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #707070;
}

/* お知らせ等のひとまとめ列は線・インデント無し */
.footer__list--plain { padding-left: 0; }
.footer__list--plain::before { display: none; }

.footer__link {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}

.footer__link:hover { opacity: 0.6; }

/* お問い合わせ：ラベルと詳細(電話/メール)を横並び・左揃え */
.footer__contact {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}

.footer__contact-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__copy {
  margin-top: 40px;
  text-align: right;
  font-size: 12px;
}

/* SP用フッター（簡易版・左揃え） */
.footer__sp {
  text-align: left;
  padding: 38px 20px 24px;
}

.footer__name {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 20px;
}

.footer__sp .footer__copy {
  margin-top: 14px;
  text-align: left;
  font-size: 11px;
}

/* ==========================================================
   SP : max-width 750px
   ========================================================== */
@media (max-width: 750px) {
  :root { --gutter: 20px; }

  .pc-only { display: none; }
  .sp-only { display: revert; }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  /* header */
  .header { height: 50px; }
  .header__inner { padding-inline: 20px; }
  .header__logo { font-size: 16px; }
  .gnav { display: none; }
  .hamburger { display: block; }

  /* page head */
  .page-title { font-size: 22px; margin-top: 12px; padding-left: 0; }

}
