/**
 * 鈴和 - ヘッダー・フッター・共通レイアウト
 */

/* ============================================
   共通コンテナ
   ============================================ */
.suzuwa-container {
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
}

/* ロゴ帯分のオフセット（aside と同じ可変幅） */
body.suzuwa-site {
  --suzuwa-logo-offset: clamp(
    var(--suzuwa-logo-w-min, 48px),
    var(--suzuwa-logo-w, 10%),
    var(--suzuwa-logo-w-max, 170px)
  );
}

body.suzuwa-site .suzuwa-main {
  margin-left: var(--suzuwa-logo-offset);
}

body.suzuwa-site .suzuwa-front-main .suzuwa-section {
  margin-left: var(--suzuwa-logo-offset);
}

body.suzuwa-site .main-visual {
  margin-left: var(--suzuwa-logo-offset);
  width: calc(100% - var(--suzuwa-logo-offset));
}

/* ============================================
   固定ロゴ帯（左・スクロール追従）
   ============================================ */
.suzuwa-logo-fixed {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1200;
  width: clamp(
    var(--suzuwa-logo-w-min, 48px),
    var(--suzuwa-logo-w, 10%),
    var(--suzuwa-logo-w-max, 170px)
  );
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1% 0 20px;
  background: var(--suzuwa-sidebar-bg, #f6f5ef);
  border-right: none;
}

.suzuwa-logo-fixed .suzuwa-brand {
  width: 100%;
  max-width: 100%;
}

.suzuwa-logo-fixed .suzuwa-brand--stacked {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.suzuwa-logo-fixed .suzuwa-brand__custom,
.suzuwa-logo-fixed .suzuwa-brand__custom .custom-logo-link {
  display: block;
  width: 92%;
  max-width: 100%;
  margin: 0 auto;
  line-height: 0;
}

/* 左固定ロゴ（.suzuwa-footer__brand-logo とは別・フッター変更の影響を受けない） */
.suzuwa-logo-fixed .suzuwa-brand__logo-img,
.suzuwa-logo-fixed .suzuwa-brand__custom img,
.suzuwa-logo-fixed .custom-logo {
  display: block !important;
  width: min(92%, var(--suzuwa-sidebar-logo-w, 130px)) !important;
  max-width: var(--suzuwa-sidebar-logo-w, 130px) !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  margin: 0 auto;
}

.suzuwa-logo-fixed .suzuwa-brand__mark svg {
  width: 72%;
  max-width: 40px;
  height: auto;
}

.suzuwa-logo-fixed .suzuwa-brand__ja {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
}

.suzuwa-logo-fixed .suzuwa-brand__en {
  font-size: 0.5rem;
  letter-spacing: 0.28em;
}

/* ============================================
   グローバルトップバー（右上ナビ）
   ============================================ */
.suzuwa-global-topbar {
  position: fixed;
  top: 0;
  left: var(--suzuwa-logo-offset);
  right: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  height: auto;
  min-height: calc(var(--suzuwa-topbar-h) + 30px);
  padding: 30px clamp(24px, 4vw, 48px) 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  pointer-events: none;
}

.suzuwa-global-topbar .suzuwa-header__actions {
  pointer-events: auto;
}

body.suzuwa-front .suzuwa-global-topbar:not(.is-scrolled),
body.suzuwa-front .suzuwa-global-topbar.is-scrolled,
body.suzuwa-inner .suzuwa-global-topbar,
body.suzuwa-inner .suzuwa-global-topbar.is-scrolled {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.suzuwa-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  margin-top: 2%;
  margin-right: 2%;
}

.suzuwa-header__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mincho);
  font-size: var(--suzuwa-font-size, 15px);
  letter-spacing: 0.1em;
  color: var(--suzuwa-header-link, #9a7b4a);
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.suzuwa-header__action:hover {
  color: var(--color-secondary);
}

.suzuwa-header__action-icon {
  display: inline-flex;
  color: var(--suzuwa-header-icon, #b8956a);
}

.suzuwa-header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid var(--suzuwa-header-link, #9a7b4a);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--suzuwa-header-link, #9a7b4a);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
  flex-shrink: 0;
}

.suzuwa-header__menu-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--suzuwa-header-link, #9a7b4a);
  color: var(--suzuwa-header-link, #9a7b4a);
}

.suzuwa-header__menu-icon {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.suzuwa-header__menu-icon span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.suzuwa-header__menu-btn.is-open .suzuwa-header__menu-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.suzuwa-header__menu-btn.is-open .suzuwa-header__menu-icon span:nth-child(2) {
  opacity: 0;
}

.suzuwa-header__menu-btn.is-open .suzuwa-header__menu-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   右ドロワーメニュー
   ============================================ */
.suzuwa-nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0 !important;
  z-index: 1280;
  background: rgba(58, 42, 26, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.suzuwa-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 1310;
  width: 33.333vw;
  min-width: 240px;
  max-width: 100%;
  background: #fff;
  box-shadow: -4px 0 32px rgba(58, 42, 26, 0.15);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.suzuwa-mobile-nav.is-open {
  transform: translateX(0);
}

.suzuwa-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 30px 2% 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.suzuwa-mobile-nav__close.suzuwa-header__menu-btn {
  flex-shrink: 0;
}

body.suzuwa-nav-open .suzuwa-logo-fixed,
body.suzuwa-nav-open .suzuwa-global-topbar,
body.suzuwa-nav-open .suzuwa-global-topbar .suzuwa-header__actions {
  pointer-events: none !important;
}

.suzuwa-mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 8px 0 32px;
  flex: 1;
}

.suzuwa-mobile-nav__list li {
  border-bottom: 1px solid var(--color-border);
}

.suzuwa-mobile-nav__list a {
  display: block;
  padding: 16px 24px;
  color: var(--color-dark);
  text-decoration: none;
  font-family: var(--font-mincho);
  font-size: var(--suzuwa-font-size, 15px);
  letter-spacing: 0.1em;
  transition: background-color 0.3s, color 0.3s;
}

.suzuwa-mobile-nav__list a:hover {
  background-color: var(--color-light);
  color: var(--color-secondary);
}

body.suzuwa-nav-open {
  overflow: hidden;
}

body.suzuwa-nav-open .suzuwa-main,
body.suzuwa-nav-open .suzuwa-front-main,
body.suzuwa-nav-open .main-visual {
  pointer-events: none;
}

/* ブランド */
.suzuwa-brand {
  display: inline-flex;
  text-decoration: none;
  color: var(--color-dark);
}

.suzuwa-brand--stacked {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.suzuwa-brand--horizontal {
  align-items: center;
  gap: 12px;
}

.suzuwa-brand__mark {
  color: var(--color-primary);
  line-height: 0;
}

.suzuwa-brand__mark svg {
  width: 46px;
  height: auto;
}

.suzuwa-brand__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.suzuwa-brand__ja {
  font-family: var(--font-mincho);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.suzuwa-brand--horizontal .suzuwa-brand__ja {
  writing-mode: horizontal-tb;
  font-size: 1.35rem;
}

.suzuwa-brand__en {
  font-family: var(--font-mincho);
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  color: var(--color-secondary);
  margin-top: 8px;
}

.suzuwa-brand--horizontal .suzuwa-brand__en {
  margin-top: 0;
}

.suzuwa-brand__custom .custom-logo-link,
.suzuwa-brand__custom img {
  display: block;
  max-width: 56px;
  height: auto;
}

/* Lightning デフォルトナビを非表示 */
#global-nav,
.global-nav,
.vk_global-nav,
.site-header .global-nav,
.device-pc .site-header-logo + .site-header-sub,
.site-header .site-header-sub {
  display: none !important;
}

/* ============================================
   フッター
   ============================================ */
.suzuwa-footer,
#site-footer.suzuwa-footer,
.site-footer.suzuwa-footer {
  background-color: var(--suzuwa-footer-bg, #bca374) !important;
  color: #fff;
  padding: 56px 0 0;
  margin-top: var(--suzuwa-footer-main-gap, 7%);
  margin-left: var(--suzuwa-logo-offset);
  border-top: none !important;
}

.suzuwa-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.suzuwa-footer__brand {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  text-decoration: none;
  color: #fff;
}

.suzuwa-footer__brand-logo {
  display: block;
  height: var(--suzuwa-footer-logo-h, 2rem);
  width: auto;
  max-width: 100%;
}

.suzuwa-footer__address,
.suzuwa-footer__detail {
  margin: 0 0 0.5rem;
  font-size: var(--suzuwa-font-size, 15px);
  line-height: 1.9;
}

.suzuwa-footer__detail a {
  color: #fff;
  text-decoration: none;
}

.suzuwa-footer__detail a:hover {
  opacity: 0.85;
}

.suzuwa-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.suzuwa-footer__nav li + li {
  margin-top: 0.75rem;
}

.suzuwa-footer__nav a {
  color: #fff;
  text-decoration: none;
  font-size: var(--suzuwa-font-size, 15px);
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
}

.suzuwa-footer__nav a:hover {
  opacity: 0.8;
  color: #fff;
}

.suzuwa-footer__col--links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.suzuwa-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: var(--suzuwa-font-size, 15px);
  letter-spacing: 0.06em;
}

.suzuwa-footer__link-icon {
  color: rgba(255, 255, 255, 0.9);
}

.suzuwa-footer__sns {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.suzuwa-footer__sns-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.suzuwa-footer__sns a,
.suzuwa-footer__sns-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  transition: opacity 0.3s;
}

.suzuwa-footer__sns a svg,
.suzuwa-footer__sns-placeholder svg {
  width: 22px;
  height: 22px;
}

.suzuwa-footer__sns a:hover {
  opacity: 0.8;
  color: #fff;
}

.suzuwa-footer__copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  padding: 16px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.suzuwa-footer__copyright p {
  margin: 0;
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 768px) {
  :root {
    --suzuwa-topbar-h: 52px;
    --suzuwa-fv-h: 560px;
    --suzuwa-footer-main-gap: 2%;
  }

  /* SP：サイド帯なし・ロゴのみ左上に固定追従 */
  body.suzuwa-site {
    --suzuwa-logo-offset: 0;
  }

  body.suzuwa-site .suzuwa-main,
  body.suzuwa-site .suzuwa-front-main .suzuwa-section,
  body.suzuwa-site .main-visual {
    margin-left: 0;
    width: 100%;
  }

  .suzuwa-global-topbar {
    left: 0;
  }

  #site-footer.suzuwa-footer,
  .suzuwa-footer {
    margin-left: 0;
  }

  .suzuwa-logo-fixed {
    top: 0;
    bottom: auto;
    width: auto;
    max-width: none;
    height: auto;
    padding: 12px 0 0 10px;
    background: transparent;
    border-right: none;
    pointer-events: none;
  }

  .suzuwa-logo-fixed .suzuwa-brand {
    pointer-events: auto;
  }

  .suzuwa-logo-fixed .suzuwa-brand__custom,
  .suzuwa-logo-fixed .suzuwa-brand__custom .custom-logo-link {
    width: auto;
  }

  .suzuwa-logo-fixed .suzuwa-brand__logo-img,
  .suzuwa-logo-fixed .suzuwa-brand__custom img,
  .suzuwa-logo-fixed .custom-logo {
    width: clamp(72px, 20vw, var(--suzuwa-sidebar-logo-w, 130px)) !important;
    max-width: var(--suzuwa-sidebar-logo-w, 130px) !important;
    max-height: none !important;
  }

  .suzuwa-mobile-nav {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-shadow: none;
  }

  .suzuwa-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .suzuwa-footer__col--nav {
    display: none;
  }

  .suzuwa-footer__col--info,
  .suzuwa-footer__col--links {
    align-items: center;
  }

  .suzuwa-footer__col--links {
    align-items: center;
  }

  .suzuwa-footer__sns {
    justify-content: center;
    margin-top: 8px;
  }

  .suzuwa-logo-fixed .suzuwa-brand__mark svg {
    width: clamp(32px, 9vw, 40px);
    max-width: none;
  }

  .suzuwa-logo-fixed .suzuwa-brand__text {
    display: none;
  }

  .suzuwa-header__action span:not(.suzuwa-header__action-icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .suzuwa-header__menu-btn {
    width: 44px;
    height: 44px;
  }

  .suzuwa-header__menu-icon span {
    width: 18px;
  }

  .suzuwa-header__menu-btn.is-open .suzuwa-header__menu-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .suzuwa-header__menu-btn.is-open .suzuwa-header__menu-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

}
