/* ============================================================
 * ycn-common.css — ヘッダー・パンくず 共通スタイル
 * 全ページで使用。個別テンプレートに重複記述しないこと。
 * ============================================================ */

/* ---- CSS変数 ---- */
:root {
  --accent:      #c0252e;
  --accent-dark: #961c24;
  --accent-pale: #fdf0f0;
  --ink:         #2a2a2a;
  --ink-mid:     #555;
  --ink-light:   #999;
  --rule:        #e2ddd8;
  --bg:          #f7f5f2;
  --bg-white:    #ffffff;
  --star:        #e8a020;
}

/* ---- HEADER ---- */
.site-header {
  background: #fff;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ロゴ（テキスト） */
.site-logo {
  font-family: 'DM Serif Display', serif;
  color: var(--accent);
  font-size: 22px;
  letter-spacing: .02em;
  text-decoration: none;
}
.site-logo span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: var(--ink-light);
  display: block;
  font-weight: 400;
  margin-top: -2px;
}

/* ロゴ（画像） */
.ycn-logo-img { display: flex; align-items: center; text-decoration: none; }
.ycn-logo-img img { max-height: 56px; width: auto; display: block; }

/* ナビ */
.header-nav { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.header-nav a { color: var(--ink-mid); text-decoration: none; font-size: 12.5px; }
.header-nav a:hover { color: var(--accent); }

/* CTAボタン */
.header-right { display: flex; align-items: center; gap: 10px; }
.header-cta {
  background: #DA3A41;
  color: #fff;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
  border-radius: 4px;
}
.header-cta:hover { background: #b82e34; }
.cta-sp { display: none; }

/* ハンバーガーボタン */
.sp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 6px;
  flex-shrink: 0;
}
.sp-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.sp-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sp-hamburger.is-open span:nth-child(2) { opacity: 0; }
.sp-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* SP ドロワー */
.sp-drawer {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: #fff;
  z-index: 101;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s, opacity .25s;
}
.sp-drawer.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.sp-drawer-inner { padding: 16px 20px 20px; }
.sp-drawer-nav { list-style: none; margin: 0 0 16px; padding: 0; }
.sp-drawer-nav li { border-bottom: 1px solid var(--rule); }
.sp-drawer-nav li:last-child { border-bottom: none; }
.sp-drawer-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 4px; font-size: 14px;
  color: var(--ink); text-decoration: none;
}
.sp-drawer-nav a i { color: var(--accent); width: 16px; text-align: center; }
.sp-drawer-nav a:hover { color: var(--accent); }
.sp-drawer-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #DA3A41; color: #fff;
  padding: 14px; font-size: 14px; font-weight: 700;
  text-decoration: none; border-radius: 4px;
  transition: background .15s;
}
.sp-drawer-cta:hover { background: #b82e34; }
.sp-drawer-cta i { font-size: 13px; }

/* オーバーレイ */
.sp-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0; top: 72px;
  background: rgba(0,0,0,.4);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.sp-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: #fff;
  border-bottom: 3px solid var(--accent);
  padding: 8px 40px;
  font-size: 12px;
  color: var(--ink-light);
  position: sticky;
  top: 72px;
  z-index: 99;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.breadcrumb a { color: var(--ink-light); text-decoration: none; white-space: nowrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; white-space: nowrap; }
.breadcrumb li { white-space: nowrap; }

/* ---- FOOTER ---- */
.ycn-footer {
  background: #fff;
  border-top: 3px solid var(--accent);
  padding: 36px 40px 28px;
}
.ycn-footer-inner { max-width: 1200px; margin: 0 auto; }
.ycn-footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 24px; border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
.ycn-footer-logo {
  font-family: 'DM Serif Display', serif;
  color: var(--accent); font-size: 20px;
}
.ycn-footer-logo span {
  display: block; font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px; color: var(--ink-light);
  font-weight: 400; margin-top: 2px;
}
.ycn-footer-nav-group { display: flex; gap: 48px; }
.ycn-footer-nav-title {
  font-size: 12px; font-weight: 700;
  color: var(--ink); letter-spacing: 0.06em;
  margin-bottom: 10px; text-transform: uppercase;
  margin-top: 0; padding: 0;
}
.ycn-footer-nav-col ul { list-style: none; padding: 0; margin: 0; }
.ycn-footer-nav-col li { margin-bottom: 6px; }
.ycn-footer-nav-col a { font-size: 12px; color: var(--ink-light); text-decoration: none; }
.ycn-footer-nav-col a:hover { color: var(--accent); }
.ycn-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.ycn-footer-copy { font-size: 11px; color: var(--ink-light); }
.ycn-footer-links { display: flex; gap: 20px; }
.ycn-footer-links a { font-size: 11px; color: var(--ink-light); text-decoration: none; }
.ycn-footer-links a:hover { color: var(--accent); }

/* ---- SP (max-width: 768px) ---- */
@media (max-width: 768px) {
  .site-header { padding: 0 16px 0 8px; }
  .header-nav { display: none; }
  .ycn-logo-img img { max-height: 40px; }
  .header-cta { padding: 8px 14px; font-size: 12px; }
  .cta-pc { display: none; }
  .cta-sp { display: block; }
  .sp-hamburger { display: flex; }
  .sp-drawer { display: block; }
  .sp-drawer-overlay { display: block; }
  .breadcrumb { padding: 8px 16px; top: 72px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .ycn-footer { padding: 28px 16px; }
  .ycn-footer-top { flex-direction: column; gap: 24px; }
  .ycn-footer-nav-group { flex-wrap: wrap; gap: 24px; }
  .ycn-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}