/****************************************
* main.css :ヘッダー、フッター レイアウトの役割
* ヘッダー、フッターのデザイン、共通適用レイアウト
***************************************/
/* 基本カラー */
:root {
  /* color */

  /* brand */
  --primary-color : #16253F;
  --secondary-color : #F3EFE7;

  /* text */
  --color-text: #454545;
  --color-text-light: #666666;
  --color-text-white: #ffffff;
  --color-text-gray:#42444C;

  /* background */
  --color-bg: #ffffff;
  --color-bg-gray: #f7f7f7;
  --color-bg-dark: #42444C;
  --color-bg-gray1: #EDF4FD;
  --color-bg-contact:#EDF4FD;

  /* gradation */
  --color-grad1: #2e5eb4;
  --color-grad2: #4b8ee4;

  /* dot */
  --dot-color:#ccc;

  /* contact */
   /*bg text */
  --contact-bg-text:#8EBCF7;
  /* line */
  --contact-line:#949DB1;

}

/* ── コンテンツ幅 ── */
.l-inner {
  width: var(--inner-main);
  max-width: calc(100% - var(--inner-side) * 2);
  margin-inline: auto;
}

.l-inner--wide {
  width: var(--inner-wide);
}

/* ── ヘッダー ── */
.l-header {
  background-color: var(--color-bg-pink);
  /* ロゴの上の余白。元は 28px → 23px → 20px（SPは responsive.css で 16px に上書き） */
  padding-top: 20px;
}

.l-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.l-header__logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.l-header__logo a {
  display: block;
  line-height: 0;
}

.l-header__logo img {
  width: 440px;
  height: 76px;
}

.l-header__branch {
  position: relative;
  top: 9px;
  font-size: 24px;
  font-weight: 600;
  line-height: 48px;
  color: var(--color-body);
}

/* ── ヘッダー：電話 ── */
.l-header__tel {
  flex-shrink: 0;
  width: 340px;
  text-align: center;
}

.l-header__tel-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.07em;
  color: var(--color-body);
}

.l-header__tel-label img {
  width: 20px;
  height: 20px;
}

.l-header__tel-num {
  display: block;
  font-size: 34px;
  font-weight: 700;
  line-height: 42px;
  /* 電話番号は半角のため詰めない */
  letter-spacing: 0;
  color: var(--color-body);
}

.l-header__tel-hours {
  /* 電話番号との間隔。元は 7px。
     見た目の隙間は line-height の余白も含まれる（電話番号の下4px＋受付時間の上3px）。
     元は 4+7+3=14px だったので、見た目を半分（7px）にするため margin は 0 にしている */
  margin-top: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  white-space: nowrap;
  color: var(--color-body);
}

/* ── ヘッダー：ナビ ── */
.l-header__nav {
  position: relative;
  left: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(var(--inner-wide) + 31px);
  /* 1段目（ロゴ・電話）との間隔。元は 40px → 25px → 15px → 10px と詰めた */
  margin-top: 10px;
  /* ボタンの下（ヘッダー下端まで）の余白。元は 15px */
  padding-bottom: 10px;
}

/* ボタン同士の間隔は gap で一定にし（Windows のメイリオは文字幅が広い）、余った幅は各ボタンの幅に均等に吸収させる。
   「ご相談窓口」との間は margin-right で一定にする */
.l-header__list {
  display: flex;
  flex: 1;
  align-items: center;
  gap: clamp(6px, 0.7vw, 10px);
  margin-right: clamp(12px, 1.6vw, 24px);
}

.l-header__list a {
  font-family: var(--font-signika), var(--font-maru);
  font-size: 20px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: 0.12em;
  color: var(--color-sub);
  transition: opacity .3s;
}

.l-header__list a:hover {
  opacity: .7;
}

/* 上段メニューは白い長方形のボタン（押せる場所と分かるように）。6項目が収まるよう文字と左右の余白は画面幅に合わせて縮める（12〜16px）。
   「ご相談窓口」(.l-header__cta) は .l-header__list の外にあるので、この指定の対象外（丸いまま） */
.l-header__list > .l-header__item > a {
  display: block;
  padding: 0 clamp(9px, 1vw, 14px);
  text-align: center;
  border-radius: 4px;
  background-color: var(--color-bg);
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 40px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background-color .2s;
}

/* ホバーは文字の下線のみ（背景は白のまま）。下線は文字幅に合わせたいので border ではなく text-decoration を使う
   （border-bottom だと角丸4pxに沿って線が曲がり、ボタン幅いっぱいに伸びてしまう） */
.l-header__list > .l-header__item > a:hover {
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--color-main);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ── ドロップダウン（ホバーで下層ページ） ── */
.l-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-bar .l-header {
  top: 32px;
}

.l-header__item {
  position: relative;
  flex: 1 1 auto;
}

/* 下層メニューは白いカード（上段の白い長方形ボタンに合わせる） */
.l-header__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  min-width: 100%;
  padding: 6px;
  border-radius: 4px;
  background-color: var(--color-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

/* ボタンとカードの間（8px）でマウスが外れても閉じないようにする */
.l-header__sub::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.l-header__item--has-sub:hover .l-header__sub,
.l-header__item--has-sub:focus-within .l-header__sub {
  opacity: 1;
  visibility: visible;
}

.l-header__sub a {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  font-family: var(--font-maru);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--color-sub);
  white-space: nowrap;
  transition: background-color .2s;
}

.l-header__sub a:hover {
  opacity: 1;
  background-color: var(--color-bg-blue);
}

.l-header__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 216px;
  height: 46px;
  border-radius: 23px;
  background-color: var(--color-main);
  font-family: var(--font-signika), var(--font-maru);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-white);
  transition: opacity .3s;
}

.l-header__cta:hover {
  opacity: .8;
}

/* ── SPハンバーガー ── */
.l-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.l-header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background-color: var(--color-main);
}

/* ── SPドロワー ── */
#l-header-drawer {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  right: -280px;
  z-index: 1000;
  width: 280px;
  height: 100dvh;
  padding: 72px 24px 40px;
  overflow-y: auto;
  background-color: var(--color-bg-pink);
  transition: right .3s;
}

#l-header-drawer.is-open {
  right: 0;
}

#l-header-drawer ul li {
  border-bottom: 1px solid var(--color-border);
}

#l-header-drawer ul li a {
  padding: 16px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-sub);
}

/* SPドロワー：タップでサブメニュー開閉 */
.l-header-drawer__toggle {
  position: relative;
  display: block;
  width: 100%;
  padding: 16px 32px 16px 4px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-sub);
  text-align: left;
  cursor: pointer;
}

.l-header-drawer__toggle::before,
.l-header-drawer__toggle::after {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 12px;
  height: 2px;
  background-color: var(--color-sub);
  transition: transform .3s;
  content: "";
}

.l-header-drawer__toggle::after {
  transform: rotate(90deg);
}

.is-open > .l-header-drawer__toggle::after {
  transform: rotate(0);
}

.l-header-drawer__sub {
  display: none;
  padding-bottom: 8px;
}

.is-open > .l-header-drawer__sub {
  display: block;
}

#l-header-drawer .l-header-drawer__sub li {
  border-bottom: 0;
}

#l-header-drawer .l-header-drawer__sub li a {
  padding: 10px 4px 10px 20px;
  font-size: 14px;
  font-weight: 500;
}

.l-header-drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--color-main);
  cursor: pointer;
}

.l-header-drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-top: 24px;
  border-radius: 23px;
  background-color: var(--color-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-white);
}

#l-header-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, .4);
}

#l-header-overlay.is-open {
  display: block;
}

/* ── フッター直上：お問い合わせ ── */
.l-contact {
  padding: 116px 0 56px;
}

.l-contact__box {
  position: relative;
  width: 870px;
  max-width: calc(100% - var(--inner-side) * 2);
  min-height: 260px;
  margin-inline: auto;
  padding: 32px 0 50px;
  border: 2px solid var(--color-main);
  border-radius: 10px;
  background-color: var(--color-bg);
}

.l-contact__catch {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-contact);
  text-align: center;
}

.l-contact__sapota {
  position: absolute;
  top: 85px;
  left: 42px;
  width: 173px;
  height: 139px;
}

.l-contact__body {
  display: flex;
  align-items: flex-start;
  gap: 43px;
  margin-top: 31px;
  padding-left: 218px;
}

.l-contact__tel {
  width: 260px; /* 受付時間「9時～12時 / 13時〜17時」（約255px）を1行に収める幅 */
  margin-top: 7px;
}

.l-contact__tel-label {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.l-contact__tel-num {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  /* 電話番号は半角のため詰めない */
  letter-spacing: 0;
  color: var(--color-body);
  text-align: center;
}

.l-contact__tel-hours {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-align: center;
  white-space: nowrap; /* 「17時」だけが2行目に落ちないようにする（改行は <br> の位置のみ） */
}

.l-contact__btns {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.l-contact__btn {
  display: flex;
  align-items: center;
  width: 273px;
  height: 47px;
  padding-left: 57px;
  background-color: var(--color-contact);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-body-white);
  transition: opacity .3s;
}

.l-contact__btn:hover {
  opacity: .8;
}

.l-contact__btn--line {
  background-color: var(--color-line);
}

.l-contact__btn img {
  width: 20px;
  height: 5px;
  margin-left: auto;
  margin-right: 23px;
}

/* ── フッター直上：バナー ── */
.l-bnr {
  padding-bottom: 76px;
}

.l-bnr__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px 37px;
}

.l-bnr__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 81px;
  overflow: hidden;
  background-color: var(--color-bg);
  transition: opacity .3s;
}

.l-bnr__item:hover {
  opacity: .8;
}

.l-bnr__item--cream {
  background-color: var(--color-bg-cream);
}

.l-bnr__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.l-bnr__item--cream img {
  width: 229px;
  height: 65px;
}

/* 画像の縦横比と枠が合わないときの隙間を、バナーと同じ地色で埋める */
.l-bnr__item--yellow {
  background-color: var(--color-bg-bnr-yellow);
}

/* ── フッター ── */
.l-footer {
  position: relative;
  border-top: 5px solid var(--color-sub);
  background-color: var(--color-bg-footer);
  padding: 65px 0 16px;
}

/* ⚠ さぽ太はフッターメニュー3列目の1〜2行目に重なる位置にある。
   長い項目（「イベント・相談会」など）を1行目に置くと文字がさぽ太の下に入るため、
   3列目は短い項目から並べること（footer.php のコメントも参照）。
   位置を動かす場合：横にずらすと画面幅が狭いときに見切れる
   （margin-left は画面中央からの距離のため）。動かすなら top で縦にずらす。 */
.l-footer__sapota {
  position: absolute;
  top: -15px;
  left: 50%;
  width: 103px;
  height: 144px;
  margin-left: 424px;
}

.l-footer__body {
  display: flex;
  padding-top: 11px;
}

.l-footer__left {
  width: 584px;
  padding-left: 5px;
}

.l-footer__logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.l-footer__logo a {
  display: block;
  line-height: 0;
}

.l-footer__logo img {
  width: 353px;
  height: 61px;
}

.l-footer__branch {
  position: relative;
  top: 7px;
  font-size: 20px;
  font-weight: 600;
  line-height: 48px;
  color: var(--color-body);
}

.l-footer__zip {
  margin-top: 19px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.l-footer__address {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  font-style: normal;
}

.l-footer__tel {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.l-footer__tel-num {
  display: inline;
  font-size: 24px;
  line-height: 34px;
  letter-spacing: 0;
}

.l-footer__privacy {
  margin-top: 37px;
  font-size: 13px;
  line-height: 19px;
}

.l-footer__privacy a {
  display: inline;
  transition: opacity .3s;
}

.l-footer__privacy a:hover {
  opacity: .7;
}

.l-footer__nav {
  display: flex;
  padding-top: 5px;
}

.l-footer__nav-col:nth-child(1) { width: 191px; }
.l-footer__nav-col:nth-child(2) { width: 143px; }

.l-footer__nav-col li + li {
  margin-top: 10px;
}

.l-footer__nav-col a {
  font-size: 16px;
  font-weight: 700;
  line-height: 23px;
  color: var(--color-main);
  transition: opacity .3s;
}

.l-footer__nav-col a:hover {
  opacity: .7;
}

.l-footer__bottom {
  margin-top: 68px;
  border-top: 1px solid var(--color-body);
  padding-top: 15px;
}

.l-footer__copyright {
  display: block;
  font-family: var(--font-en);
  font-size: 8px;
  line-height: 10px;
  color: var(--color-body);
}

/* ── ページトップ ── */
.l-footer__pagetop {
  display: flex;
  align-items: center;
  gap: 35px;
  position: absolute;
  right: 50%;
  bottom: 83px;
  margin-right: -561px;
}

.l-footer__pagetop-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-main);
}

.l-footer__pagetop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--color-main);
  transition: opacity .3s;
}

.l-footer__pagetop-btn:hover {
  opacity: .8;
}

.l-footer__pagetop-btn img {
  width: 11px;
  height: 10px;
}

/* ── サブヘッダー（下層ページのタイトル帯） ── */
.l-subheader {
  height: 246px;
  background-color: var(--color-bg-pink);
}

.l-subheader__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px; /* イラストとページ名の間 */
  height: 100%;
  padding-bottom: 17px;
}

.l-subheader__img {
  flex-shrink: 0;
  height: auto;
}

.l-subheader__body {
  text-align: center;
}

.l-subheader__label {
  height: 49px;
  font-size: 16px;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: 0.12em;
  color: var(--color-main);
}

.l-subheader__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: var(--color-body);
}

/* ── コンテナ ── */
/* hidden だと sticky が効かないため clip を優先（未対応ブラウザは hidden のまま） */
#container {
  overflow-x: hidden;
  overflow-x: clip;
}
