/* ============================================================
   base.css
   リセット + 全ページ共通のベーススタイル
   ブレークポイント:
     スマホ     : 〜599px
     タブレット : 600px 〜 959px
     PC         : 960px 〜 1279px
     PC幅広     : 1280px〜
   ハンバーガーメニューはタブレット以下(〜959px)で表示
   メニューはヘッダー下から「横長・上からスライドダウン」で表示
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Racing+Sans+One&family=Roboto+Slab:wght@100..900&display=swap');

/* -------------------- Reset -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li,
figure, figcaption,
blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

ul[role='list'],
ol[role='list'],
nav ul,
nav ol {
  list-style: none;

}

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

img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* -------------------- Base tokens -------------------- */
:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-accent: #FA7E7D;
  --color-border: #e0e0e0;
  --color-header-bg: #ffffff;
  --color-footer-bg: #1e2126;
  --color-link: #009cff;

  --font-base: "Roboto Slab", serif;
  --font-h: "Racing Sans One", sans-serif;

  --header-height: 60px;

  --container-max: 1200px;
  --container-padding: 8%;
  --container-margin-bottom: 2rem;
  --wrap-margin-bottom: 2rem;
}

/* ==========================================================
   Spacing rules
   - 余白は必ず --space-* 変数を使う（マジックナンバー禁止）
   - コンポーネント内側 = padding / コンポーネント間 = margin
   - marginは margin-top のみ使用（bottomは使わない）
   - 繰り返し要素は flex/grid の gap を優先
   ========================================================== */

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
}

:root {
  --font-size-1: 1rem;
  --font-size-2: 2rem;
  --font-size-3: 3rem;
  --font-size-4: 4rem;
  --font-size-5: 5rem;
  --font-size-6: 6rem;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* h1など要素は必要だが見せたくないものに設定する */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3 {
  font-family: var(--font-h);
  line-height: normal;
}


/* -------------------- Layout skeleton -------------------- */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

.cta-section {
  margin-bottom: var(--space-6);
}

.wrap {
  margin-bottom: var(--wrap-margin-bottom);
}


/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.site-header p, .site-header ul {
  margin-bottom: 0;
}

.site-title {
  display: flex;
  align-items: center;
  white-space: nowrap;
  z-index: 96;
}

.site-title a {
  display: inline-flex;
  align-items: center;
}

/* ロゴ画像(imgタグ差し込み用) */
.site-title__logo {
  height: 28px;
  width: auto;
  display: block;
}

/* -------------------- Nav link (共通) -------------------- */
.global-nav__link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 4px;
  position: relative;
  text-decoration: none;
}

.global-nav__link:hover {
  text-decoration: none;
}

.global-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.global-nav__link:hover::after,
.global-nav__link:focus-visible::after,
.global-nav__link.is-current::after {
  transform: scaleX(1);
}

.global-nav__link.is-current {
  font-weight: 700;
}

/* -------------------- Hamburger button -------------------- */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  z-index: 200;
}

.hamburger-btn__bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn[aria-expanded="true"] .hamburger-btn__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-btn__bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-btn__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------- Nav drawer (〜959px: 上からスライドダウン / 横長) -------------------- */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding-top: var(--header-height);
  max-height: 100vh;
  overflow-y: auto;
  background-color: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  z-index: 95;
}

.global-nav.is-open {
  transform: translateY(0);
}

.global-nav__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px var(--container-padding);
}

.global-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 28px;
}



.nav-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* -------------------- Footer -------------------- */
.site-footer {
  flex-shrink: 0;
  background-color: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.8rem;
  color: #fff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin: 0 8px;
}

.footer_container {
  background-color: #1e2126;
  color: #fff;
  padding: 0;
}


@media screen and (max-width: 900px) {
  footer .footer_container {
    background-image: url(../img/common/footer/bgimg_footer.png);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 18%;
  }
}

@media screen and (max-width: 700px) {
  footer .footer_container {
    background-size: 35%;
  }
}



.footer_grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 5fr 1fr 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 900px) {
  .footer_grid {
    grid-template-columns: 1fr 7fr;
    grid-template-rows: 4fr 1fr 1fr;
  }
}

@media screen and (max-width: 700px) {
  .footer_grid {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 370px) {
  .footer_grid {
    grid-template-columns: 1fr;
    grid-template-rows: 3fr 2fr 1fr 2fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
  }
}


.footer_menu_area {
  grid-area: 1 / 1 / 2 / 2;
}


@media screen and (max-width: 900px) {
  .footer_menu_area {
    grid-area: 1 / 1 / 2 / 2;
  }
}

@media screen and (max-width: 700px) {
  .footer_menu_area {
    text-align: center;
  }

  .footer_menu_area {
    grid-area: 1 / 1 / 2 / 2;
  }
}


.footer_logo {
  text-align: center;
}

@media screen and (max-width: 900px) {
  .footer_logo {
    grid-area: 1 / 2 / 2 / 3;
  }
}


@media screen and (max-width: 700px) {
  .footer_logo {
    grid-area: 2 / 1 / 3 / 2;
  }
}


.footer__logo-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f0f9ff;
  margin-bottom: 4px;
}

.footer__logo-text {
  font-size: 0.8rem;
  color: #f0f9ff;
  opacity: 0.6;
  margin-bottom: 8px;
}

.footer_bgimg {
  background-image: url(/img/common/footer/bgimg_footer.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 100%;
  height: 100%;
  margin-top: 0;
}

@media screen and (max-width: 900px) {
  .footer_bgimg {
    display: none;
  }
}

.footer_sns {
  display: flex;
  justify-content: center;
  font-size: 30px;
  gap: 18px;
  grid-area: 2 / 1 / 3 / 4;
}


@media screen and (max-width: 900px) {
  .footer_sns {
    grid-area: 2 / 1 / 3 / 3;
  }
}

@media screen and (max-width: 700px) {
  .footer_sns {
    grid-area: 3 / 1 / 4 / 2;
  }
}


.sns_icon img {
  height: 24px;
}

.footer_copyright {
  grid-area: 3 / 1 / 4 / 4;
}



@media screen and (max-width: 900px) {
  .footer_copyright {
    grid-area: 3 / 1 / 4 / 3;
  }
}

@media screen and (max-width: 700px) {
  .footer_copyright {
    grid-area: 4 / 1 / 5 / 2;
  }
}

.footer_copyright p {
  text-align: center;
  font-size: 12px;
  color: #f0f9ff;
  opacity: 0.3;
}



/* -------------------- Share Buttons -------------------- */

#share-buttons {
  margin-bottom: var(--container-margin-bottom)
}

.share-buttons {
  display: flex;
  gap: 0.6rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #333;
  cursor: pointer;
}



.share-btn:hover {
  background: #e0e0e0;
}



/* -------------------- Page heading (common placeholder) -------------------- */
.page-heading {
  padding: 60px var(--container-padding);
  text-align: center;
}

.page-heading img {
  width: 100%;
}

.page-heading h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cookie-consent__text {
  font-size: 0.78rem;
  color: #fff;
}

.cookie-consent__link {
  font-size: 0.78rem;
  color: #fff;
  text-decoration: underline;
}

/* -------------------- ボタン (共通コンポーネント) -------------------- */

.common-btn {
  display: block;
  margin: auto;
  width: min(100%, 800px);
  text-align: center;
  font-size: clamp(18px, 12.97px + 1.3423vw, 28px);
  cursor: pointer;
  transition: 0.1s;
  display: flex;
  justify-content: center;
  align-items: center;
  background-repeat: no-repeat;
  background-position: 96% center;
}



/* -------------------- News modal (共通コンポーネント) -------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 300;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 4px;
  padding: 40px 28px 28px;
}

.modal-box__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
}

.modal-box__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.modal-box__body {
  font-size: 0.85rem;
  line-height: 1.9;
}

.modal-box__body p+p {
  margin-top: 12px;
}

.modal-box__footer {
  margin-top: 24px;
  text-align: right;
}

.modal-box__btn {
  padding: 10px 28px;
  background-color: var(--color-accent);
  color: #fff;
  font-size: 0.8rem;
  border-radius: 2px;
}

/* -------------------- Cookie consent banner (共通コンポーネント) -------------------- */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1a1a1a;
  color: #fff;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 250;
}

.cookie-consent.is-open {
  transform: translateY(0);
}

.cookie-consent__text {
  font-size: 0.78rem;
  line-height: 1.6;
  flex: 1 1 260px;
}

.cookie-consent__text a {
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-consent__btn {
  padding: 9px 20px;
  font-size: 0.78rem;
  border-radius: 2px;
  white-space: nowrap;
}

.cookie-consent__btn--accept {
  background-color: #fff;
  color: #1a1a1a;
}

.cookie-consent__btn--decline {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}


/* ---------- 9. ギャラリー（FooGallery代替） ---------- */
.gallery-block {}

.gallery-block__title {
  text-align: center;
  margin-bottom: 1.6rem;
}

.js-gallery {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
}

.js-gallery+.js-gallery {
  margin-top: 2.5rem;
}

.js-gallery-item {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--color-border);
}

.js-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.js-gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-block p {
  margin-top: 0;
  color: var(--color-ink-soft);
}

/* ライトボックス */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__image {
  max-width: min(90vw, 1100px);
  max-height: 80vh;
  width: auto;
  border-radius: 2px;
}

.lightbox__caption {
  position: absolute;
  bottom: 1.6rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #f2f0ea;
  font-size: 0.9rem;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: #f2f0ea;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox__close {
  top: 1.2rem;
  right: 1.5rem;
}

.lightbox__prev {
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next {
    font-size: 1.6rem;
  }
}

/* ============================================================
   タブレット: 600px〜959px (ハンバーガーメニューのまま)
============================================================ */
@media screen and (min-width: 600px) {
  :root {
    --container-padding: 32px;
    --header-height: 68px;
  }

  .page-heading {
    padding: 80px var(--container-padding);
  }

  .page-heading h1 {
    font-size: 2.2rem;
  }

  .site-title__logo {
    height: 32px;
  }
}

/* ============================================================
   PC: 960px〜1279px (ハンバーガー解除、通常ナビ表示・横並び)
============================================================ */
@media screen and (min-width: 960px) {
  :root {
    --header-height: 72px;
  }

  .hamburger-btn {
    display: none;
  }

  .global-nav {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    background: none;
    border-bottom: none;
    transform: none;
    z-index: auto;
    top: auto;
    padding-top: 0;
  }

  .global-nav__inner {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
  }

  .global-nav__list {
    flex-wrap: nowrap;
    gap: 28px;
  }


  .nav-overlay {
    display: none;
  }


  .page-heading h1 {
    font-size: 2.6rem;
  }

  .site-title__logo {
    height: 34px;
  }
}

/* ============================================================
   PC幅広: 1280px〜
============================================================ */
@media screen and (min-width: 1280px) {
  :root {
    --container-padding: 40px;
  }


  .page-heading h1 {
    font-size: 3rem;
  }

  .site-title__logo {
    height: 36px;
  }
}