/* =====================================================================
 *  common.css  –  Header / Footer 共通レイアウト
 * =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap');

body {
    font-family: "Noto Serif JP", serif;
    font-optical-sizing: auto;
}

p {
    line-height: 1.8;
}

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

.spacer {
    height: 100px;
}

.ly_inner {
    max-width: 90%;
    margin: 0 auto;
}


.pc_display {
    display: inline-block;
}
#top.pc_display {
      display: block;
    }
.sp_display {
    display: none;
}
@media screen and (max-width: 480px) {
    .pc_display {
        display: none;
    }
    .sp_display {
        display: inline-block;
    }
    #top.sp_display {
      display: block;
    }
}

/* ---------- 汎用ボタン ----------------------------------------------------- */
.c-button {
  display: inline-block;
  padding: .8rem 2.4rem;
  font-weight: 700;
  text-align: center;
  border-radius: .8rem;
  transition: opacity .3s;
}
.c-button--primary {
  background: #D5AE00;
  color: #000;
}
.c-button--primary:hover { opacity: .8; }

/* ========================================================================== */
/*  Header                                                                   */
/* ========================================================================== */
.header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  height: 80px;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  height: 100%;
}
/* --- Logo --- */
.header__logo-img {
  width: 300px;
  height: auto;
  margin-right: .6rem;
  display: block;
}

.header__logo-small {
  display: block;
  font-size: .75rem;
  letter-spacing: 0;
}
/* --- Global Nav (PC) --- */
.header__nav { margin-left: auto; }
.header__nav-list {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  white-space: nowrap;
}
.header__nav-item a,
.header__nav-list a {
  font-weight: 600;
  color: #000;
  transition: opacity .3s;
}
.header__nav-item a:hover,
.header__nav-list a:hover { opacity: .65; }


/* --- Hamburger Button --- */
.header__toggle {
  display: none;                 /* PC 非表示 */
  width: 32px;
  aspect-ratio: 1 / 1;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1001;                /* nav より前面 */
}
.header__toggle span {
  position: absolute;
  left: 0; width: 100%; height: 3px;
  background: #000;
  border-radius: 2px;
  transition: transform .3s, top .3s, opacity .3s;
}
.header__toggle span:nth-child(1){ top: 6px; }
.header__toggle span:nth-child(2){ top: 14px; }
.header__toggle span:nth-child(3){ top: 22px; }
/* 変形（is-active は JS で付与） */
.header__toggle.is-active span:nth-child(1){ top:14px; transform:rotate(45deg); }
.header__toggle.is-active span:nth-child(2){ opacity:0; }
.header__toggle.is-active span:nth-child(3){ top:14px; transform:rotate(-45deg); }

/* --- Drawer Nav (SP) --- */
@media (max-width: 768px) {
  .header__toggle {          /* 表示 */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .header__nav {
    position: fixed;
    inset: 0 0 0 auto;       /* 右側 */
    width: 70%;
    padding: 100px 24px 40px;
    background: #fff;
    box-shadow: -4px 0 10px rgba(0, 0, 0, .08);
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 1000;
  }
  .header__nav.is-open { transform: translateX(0); }
  .header__nav-list {
    flex-direction: column;
    gap: 2rem;
  }
  .header__nav-cta { margin-top: 0rem; }
  .header__cta { display: none; }          /* CTA はドロワー内に移動済み */
  .header__nav-list a { font-size: 1.1rem; }
  .header__nav { margin-left: 0; }         /* PC 用マージン解除 */
}
  #global-nav .header__cta{
    display:block;          /* ドロワー内では表示に戻す */
  }
  .c-button {
    padding: 0; 
  }
  .c-button--primary {
    background: none;
}


/* --- Overlay --- */
.header__overlay { display: none; }
.header__overlay.is-show {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 900;
  animation: fadeIn .35s forwards;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Scroll Lock --- */
.no-scroll { overflow: hidden; }

/* ========================================================================== */
/*  Footer                                                                   */
/* ========================================================================== */
.footer {
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 3rem 0 1.5rem;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}
/* --- Footer Nav --- */
.footer__nav { flex: 1; }
.footer__nav-list {
  display: grid;
  grid-template-columns: repeat(2, max-content); /* 2 列 */
  column-gap: 4rem;
  row-gap: 1.4rem;
}
.footer__nav-item a,
.footer__nav-list a {
  font-weight: 700;
  color: #000;
  transition: opacity .3s;
}
.footer__nav-item a:hover,
.footer__nav-list a:hover { opacity: .6; }
/* --- Widgets (Twitter など) --- */
.footer__widgets {
  flex: 1;
  max-width: 320px;
}
/* --- Logo --- */
.footer__logo img {
  width: 420px;
  height: auto;
}
/* --- Copyright --- */
.footer__copy {
  margin-top: 2rem;
  text-align: center;
  font-size: .8rem;
  color: #888;
}

/* ----------- Footer SP (≤768px) ----------------------------------------- */
@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  .footer__nav-list {
    grid-template-columns: 1fr 1fr;       /* 2 列維持で中央寄せ */
    column-gap: 2rem;
  }
  .footer__logo img { width: 160px; }
}
