/* ================================================================
   layout.css — ヘッダー・フッター・ページヒーロー・セクション見出し
   全ページ共通で読み込む
================================================================ */

/* ----------------------------------------------------------------
   Header
---------------------------------------------------------------- */
.site-header {
  background: #f1f2f1;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(26,39,68,.22);
}

.header-inner {
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* ロゴ */
.site-logo a {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-sub {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--gold-dark);
  line-height: 1;
  font-family: 'Noto Sans JP', sans-serif;
}

.logo-main {
  font-size: 17px;
  color: var(--navy);
  font-weight: 300;
  letter-spacing: .06em;
  line-height: 1;
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
}

.logo-sep { color: var(--gold-dark); font-style: normal; margin: 0 6px; }

/* PCナビ */
.header-nav {
  display: flex;
  align-items: center;
  gap: 44px;
}

.header-nav a {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--navy);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: .05em;
  transition: color .2s;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}

.header-nav a:hover { color: var(--gold); }
.header-nav a:hover::after { width: 100%; }

/* ログイン・アカウントボタン */
.btn-nav-entry {
  font-family: 'Noto Serif JP', serif;
  background: #bdac1e !important;
  color: #fff !important;
  padding: 8px 22px;
  border-radius: var(--radius);
  font-weight: 400 !important;
  font-size: 15px;
  transition: var(--ease) !important;
}

.btn-nav-entry:hover { background: #d4ad2e !important; }
.btn-nav-entry::after { display: none !important; }

.btn-nav-entry.is-loggedin {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
}

/* ログイン中ドロップダウン（PC） */
.nav-auth { position: relative; }

.nav-auth-caret {
  font-size: 10px;
  transition: transform .2s;
}

.nav-auth-trigger.open .nav-auth-caret { transform: rotate(180deg); }

.nav-auth-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  padding: 6px;
  display: none;
  z-index: 200;
}

.nav-auth-dropdown.show { display: block; }

.nav-auth-dropdown a,
.nav-auth-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--ease);
}

.nav-auth-dropdown a:hover,
.nav-auth-dropdown button:hover {
  background: var(--cream-dark);
  color: var(--navy);
}

.nav-auth-dropdown .nav-auth-logout { color: #c0392b; }

/* ログイン中（スマホ） */
.sp-nav-auth-link,
.sp-nav-logout-btn {
  font-family: 'Noto Sans JP', sans-serif;
  display: block;
  width: 100%;
  text-align: left;
  color: var(--navy);
  font-size: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--cream-dark);
  letter-spacing: .04em;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
}

.sp-nav-logout-btn { color: #c0392b; }

/* ハンバーガーボタン */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #bdac1e;
  transition: var(--ease);
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* SPナビ（展開） */
.sp-nav {
  display: none;
  background: #fff;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.sp-nav.is-open { display: block; }

.sp-nav a {
  font-family: 'Noto Sans JP', sans-serif;
  display: block;
  color: var(--navy);
  font-size: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--cream-dark);
  letter-spacing: .04em;
}

.sp-nav a:last-child { border-bottom: none; }

.sp-nav .btn-nav-entry {
  margin: 12px 24px 4px;
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
}

/* ----------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.site-footer {
  background: #f1f2f1;
  color: var(--text-mid);
  padding: 56px 6% 28px;
  border-top: 1px solid var(--gold);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 16px;
  color: var(--navy);
  font-weight: 300;
  margin-bottom: 8px;
  letter-spacing: .05em;
}

.footer-tagline {
  font-size: 13px;
  color: var(--gold-dark);
  letter-spacing: .12em;
  margin-bottom: 16px;
}

.footer-info {
  font-size: 14px;
  line-height: 2;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: flex-end;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-mid);
  transition: color .2s;
  letter-spacing: .04em;
}

.footer-nav a:hover { color: var(--gold-dark); }

.footer-copy {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(201,162,39,.4);
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: .05em;
  text-align: center;
}

/* ----------------------------------------------------------------
   Page Hero（各ページ上部の紺バナー）
---------------------------------------------------------------- */
.page-hero {
  background: var(--navy);
  padding: 52px 24px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 64px,
    rgba(201,162,39,.04) 64px,
    rgba(201,162,39,.04) 65px
  );
  pointer-events: none;
}

.page-hero-inner { position: relative; z-index: 1; }

.page-hero-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--gold);
  border: 1px solid rgba(201,162,39,.5);
  padding: 4px 16px;
  margin-bottom: 18px;
  font-family: 'Noto Serif JP', serif;
}

.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3.5vw, 34px);
  color: #fff;
  font-weight: 700;
  letter-spacing: .06em;
  margin: 0 0 4px;
  line-height: 1.35;
}

.page-hero-rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto 0;
  border: none;
}

/* ----------------------------------------------------------------
   Section Title（各セクション共通見出し）
---------------------------------------------------------------- */
.sec-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .1em;
  padding: 10px 18px;
  background: var(--cream-dark);
  border-left: 4px solid var(--gold);
  margin: 32px 0 20px;
}

/* ----------------------------------------------------------------
   Responsive — ヘッダー・フッター
---------------------------------------------------------------- */
@media (max-width: 640px) {
  .header-inner { height: 58px; padding: 0 16px; }
  .logo-main { font-size: 14px; }
  .header-nav { display: none; }
  .hamburger { display: flex; }

  .site-footer { padding-left: 16px; padding-right: 16px; }
  .footer-inner { flex-direction: column; gap: 24px; }
}
