/* ==========================================================================
   layout.css — Header / Mobile nav / Footer / Section primitives
   ========================================================================== */

/* --- Header ----------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  background: transparent;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.header.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color .35s ease;
}
.header.scrolled .logo { color: var(--text); }

.nav { display: flex; gap: 36px; align-items: center; }
.nav a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
  transition: color .35s ease;
}
.header.scrolled .nav a { color: var(--text); }
.nav .nav-cta {
  background: #fff; color: var(--text);
  padding: 11px 22px;
  font-size: 11px;
  letter-spacing: 0.15em;
  transition: background .35s ease, color .35s ease;
}
.header.scrolled .nav .nav-cta { background: var(--text); color: #fff; }
.nav .nav-cta:hover { opacity: 1; }

/* --- Mobile nav (drawer) --------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 105;
  padding: 100px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  overflow-y: auto;
}
body.menu-open .mobile-nav { opacity: 1; pointer-events: auto; }
.mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.mobile-nav a .jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.15em;
}
.mobile-nav .mobile-cta {
  margin-top: 32px;
  background: var(--text);
  color: #fff;
  padding: 22px;
  border-radius: 999px;
  text-align: center;
  justify-content: center;
  border-bottom: none;
  font-size: 14px;
  letter-spacing: 0.25em;
}
.mobile-nav .mobile-sns {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.mobile-nav .mobile-sns a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  padding: 0;
  font-size: 12px;
  justify-content: center;
}

@media (max-width: 880px) {
  .header-inner { padding: 14px 20px; }
  .logo { font-size: 18px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { display: none; }
  .menu-btn { display: block; }
}

/* --- Section primitives ---------------------------------------------- */
section { padding: 160px 40px; }
.container { max-width: var(--maxw); margin: 0 auto; }

.sec-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--mute);
  margin-bottom: 24px;
}
.sec-title {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 56px;
}
.sec-title .jp {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mute);
  margin-top: 24px;
  line-height: 1.6;
}
.sec-lead {
  font-size: 16px;
  line-height: 2.1;
  max-width: 720px;
  margin-bottom: 96px;
  letter-spacing: 0.08em;
}

@media (max-width: 1024px) {
  section { padding: 120px 32px; }
  .sec-title { font-size: clamp(36px, 5.5vw, 72px); }
  .sec-lead { margin-bottom: 64px; }
  .header-inner { padding: 18px 28px; }
}
@media (max-width: 720px) {
  section { padding: 80px 20px; }
  .container { padding: 0; }
  .sec-num { font-size: 10px; margin-bottom: 16px; letter-spacing: 0.2em; }
  .sec-title { font-size: 40px; margin-bottom: 32px; letter-spacing: -0.01em; }
  .sec-title .jp { font-size: 11px; margin-top: 16px; letter-spacing: 0.18em; }
  .sec-lead { font-size: 14px; line-height: 1.95; margin-bottom: 48px; }
}
@media (max-width: 380px) {
  .sec-title { font-size: 32px; }
}

/* --- Footer ----------------------------------------------------------- */
.footer {
  background: #050505;
  color: #fff;
  padding: 100px 40px 48px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: #fff; font-size: 32px; margin-bottom: 24px; display: inline-block; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.95; letter-spacing: 0.08em; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 48px;
}
.footer-nav h5 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 14px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.85); letter-spacing: 0.06em; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-bottom p {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
}
.sns { display: flex; gap: 12px; }
.sns a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 50%;
}

@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .footer { padding: 64px 20px 32px; }
  .footer-top { gap: 48px; padding-bottom: 48px; }
  .footer-brand .logo { font-size: 26px; margin-bottom: 16px; }
  .footer-brand p { font-size: 12px; }
  .footer-nav { gap: 36px; }
  .footer-nav h5 { font-size: 10px; margin-bottom: 18px; }
  .footer-nav a { font-size: 12px; }
  .footer-bottom { padding-top: 28px; }
  .footer-bottom p { font-size: 10px; }
}
