/* リセット & 共通コンポーネント — トップページ & ブログで共有 */

/* ========================================
   Site-wide Background Layer
   ======================================== */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--color-bg);
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  position: relative;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px var(--container-padding);
  background: var(--color-bg);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.header-nav a:hover {
  opacity: 0.7;
}

/* ========================================
   Hamburger Button (desktop: hidden)
   ======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--color-text);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .header {
    padding: 20px 24px;
  }

  .hamburger {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .header-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .header-nav a {
    font-size: 24px;
  }
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  padding: 64px var(--container-padding) 40px;
}

.site-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 56px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo-main {
  font-family: 'Cormorant', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--color-text);
}

.footer-logo-address {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.footer-sitemap-title {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-sitemap-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 48px;
}

.footer-sitemap-links a {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--color-text-sub);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.footer-sitemap-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .site-footer-inner {
    flex-direction: column;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
