@charset "UTF-8";
/* ==========================================================================
   layout.css — ヘッダー / ハンバーガーメニュー / セクション枠 / フッター
   ========================================================================== */

/* --------------------------------------------------------------------------
   サイトヘッダー
   PC 幅でも横並びナビは出さず、ハンバーガーのみ（移行前の挙動を踏襲）
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 14px 0;
  transition: background-color .3s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .92); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   ハンバーガーボタン
   -------------------------------------------------------------------------- */
.nav-toggle {
  position: relative;
  width: 40px;
  height: 42px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-brown);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 26px;
  height: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform .25s, opacity .25s;
  content: "";
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -9px; left: 0; transform: none; }
.nav-toggle span::after  { top:  9px; left: 0; transform: none; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-9px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   メニューパネル
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  overflow-y: auto;
  background: var(--color-ivory);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.site-nav.is-open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

.site-nav__list { text-align: center; }
.site-nav__list li + li { margin-top: 4px; }

.site-nav__list a {
  display: block;
  padding: 12px 24px;
  color: var(--color-brown);
  font-family: var(--font-mincho);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .08em;
  transition: opacity .2s;
}
.site-nav__list a:hover { opacity: .6; text-decoration: none; }

.site-nav__desc {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mincho);
  font-size: var(--fs-small);
  letter-spacing: .04em;
  opacity: .75;
}

/* --------------------------------------------------------------------------
   セクション
   -------------------------------------------------------------------------- */
.section { margin-top: var(--section-gap); }
.section:last-of-type { margin-bottom: var(--section-gap); }

/* 見出し（左右に罫線が伸びる X-T9 の "both ends" スタイル） */
.section-title {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(90vw, var(--container));
  margin: 0 auto 36px;
  color: var(--color-beige);
  font-family: var(--font-mincho);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  text-align: center;
}
.section-title::before,
.section-title::after {
  flex: 1;
  border-top: 1px solid var(--color-rule);
  content: "";
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 56px 0 24px;
  background: var(--color-brown);
  color: var(--color-on-brown);
  font-size: 1rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 40px;
  align-items: start;
}

.site-footer__logo { width: 88px; margin-bottom: 28px; }
.site-footer__address p + p { margin-top: 2px; }
.site-footer__address a { text-decoration: underline; }

.site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  max-width: 460px;
  font-family: var(--font-mincho);
  letter-spacing: .06em;
}
.site-footer__nav a {
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  text-align: center;
}
.site-footer__nav a:hover { text-decoration: none; opacity: .7; }

.site-footer__copyright {
  margin-top: 40px;
  font-size: var(--fs-small);
  text-align: center;
}

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer__actions { justify-content: center; }
  .site-footer__nav { max-width: none; margin-inline: auto; }
  .site-footer__address { text-align: center; }
  .site-footer__logo { margin-inline: auto; }
}

@media (max-width: 600px) {
  :root { --section-gap: 56px; }
  .section-title { gap: 16px; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
