/* ============================================
   onino — Common (Header / Footer / Base)
   WordPress側でも読み込む共通CSS
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: #2c2c2c;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sp-only {
  display: none;
}

/* --- Container --- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 38px;
  width: auto;
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #555;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: #111;
  background: rgba(0, 0, 0, 0.04);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s 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);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #1a1a1a;
  padding: 40px 0 28px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #bbb;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  font-size: 12px;
  color: #777;
  letter-spacing: 0.02em;
  margin-top: 24px;
}

/* ============================================
   Responsive — Common
   ============================================ */
@media (max-width: 768px) {

  .sp-only {
    display: inline;
  }

  /* Header */
  .header-inner {
    height: 60px;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile Nav */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    font-size: 20px;
    padding: 18px 32px;
    text-align: center;
    letter-spacing: 0.12em;
  }

  /* Footer */
  .footer {
    padding: 32px 0 24px;
  }

  .footer-nav {
    gap: 16px;
    flex-wrap: wrap;
  }
}
