/* 全ページ共通スタイル
   - 色・幅などの共通値は :root の変数にまとめている(コンテンツ幅の割合は --site-ratio のみ変更) */

:root {
  /* コンテンツの幅: ブラウザ幅に対する割合(背景は画面幅いっぱい、中身はこの幅で中央寄せ) */
  --site-ratio: 0.85;

  /* 丸ボタン・矢印アイコンの色(デザイン原案のペリウィンクル系) */
  --circle-from: #b6c3ee;
  --circle-to: #93a8e0;

  /* フォント: 本文は Windows では Yu Gothic UI、それ以外は Noto Sans JP */
  --font-base: "Yu Gothic UI", "Noto Sans JP", "Meiryo UI", "Hiragino Kaku Gothic ProN", sans-serif;
  /* 英字の細い見出し(Segoe UI Light 相当) */
  --font-en-light: "Segoe UI", "Yu Gothic UI", "Noto Sans JP", sans-serif;
}

/* 中身の幅を揃えるラッパー */
.l-container {
  width: calc(100% * var(--site-ratio));
  margin-inline: auto;
}

/* 狭い画面では余白を小さくする */
@media (max-width: 900px) {
  :root { --site-ratio: 0.92; }
}

/* キーボード操作時のフォーカス表示 */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
}

/* 丸ボタン(ハンバーガー・メニューを閉じる) */
.circle-btn {
  background: linear-gradient(135deg, var(--circle-from), var(--circle-to));
}
.circle-btn:hover {
  filter: brightness(0.95);
}

/* 丸い矢印アイコン(メニュー見出しなど) */
.circle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--circle-from), var(--circle-to));
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1;
}

/* ============ フッター(common/ssi/footer.html) ============ */
/* 上段: ナビ6項目を横一列(両端揃え) / 下段: SNS(左)・ロゴと著作権(中央)・リンク(右) */
.site-footer {
  background: #000;
  color: #fff;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  opacity: 0.75;
}
.site-footer__inner {
  padding: 2.75rem 0 2.25rem;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5rem;
}
.site-footer__nav a::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.9rem;
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
  transform: rotate(45deg);
  vertical-align: 0.1rem;
}
.site-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.site-footer__sns {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 1.875rem;
}
.site-footer__sns svg {
  width: 0.93em;
  height: 0.93em;
}
.site-footer__brand {
  text-align: center;
}
.site-footer__brand img {
  width: clamp(15rem, 24vw, 30rem);
  height: auto;
  margin-inline: auto;
}
.site-footer__brand p {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.site-footer__links {
  display: flex;
  justify-content: flex-end;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ddd;
}

/* 画面幅に応じて段組みを変える */
@media (max-width: 1023px) {
  .site-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: stretch;
  }
}
@media (max-width: 899px) {
  .site-footer__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 1.5rem;
  }
  .site-footer__sns,
  .site-footer__links {
    justify-content: center;
  }
}
@media (max-width: 639px) {
  .site-footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ 画像の拡大表示(ライトボックス) ============ */
/* 拡大できる画像を囲むボタン */
.lightbox-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.lightbox-trigger img {
  display: block;
  width: 100%;
  height: auto;
}
/* 「拡大できる」ことを示す虫眼鏡アイコン */
.lightbox-trigger::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.125rem;
  line-height: 1;
}
.lightbox-trigger:hover::after {
  background: rgba(0, 0, 0, 0.75);
}

/* 拡大表示(JS が生成する要素) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1rem;
  background: rgba(0, 0, 0, 0.8); /* 背景は暗く、元のページが透けて見える */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 4.5rem);
  object-fit: contain;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover {
  background: #fff;
}
/* 拡大表示中は背面のスクロールを止める */
body.lightbox-open {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .lightbox {
    transition: none;
  }
}
