/* ══════════════════════════════════════════════════════
   山﨑篤史サイト — Shared Stylesheet
   Brand: Navy #1B3A6B · Type: Noto Sans JP / Inter
   ══════════════════════════════════════════════════════ */

/* ── 1. Custom Properties ───────────────────────────── */
:root {
  --navy:        #1B3A6B;
  --navy-deep:   #142C53;
  --navy-soft:   #3B5A8B;
  --navy-tint:   #E8EEF5;
  --navy-tint-2: #F3F6FA;
  --ink:         #1A1F2C;
  --ink-2:       #4B5363;
  --ink-3:       #8089A0;
  --line:        #D8DEE8;
  --line-soft:   #ECEFF4;
  --paper:       #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(20, 44, 83, 0.05);
  --shadow-md: 0 6px 22px rgba(20, 44, 83, 0.07);
  --shadow-lg: 0 14px 44px rgba(20, 44, 83, 0.09);

  --font-jp:    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en:    "Inter", system-ui, sans-serif;

  --radius:      4px;
  --section-pad: 88px;
  --content-w:   1120px;

  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.25, 1);
}

/* ── 2. Reset ───────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

section[id],
div[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.82;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
p { margin: 0; }

/* ── 3. Layout Helpers ──────────────────────────────── */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 36px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 36px;
}

/* ── 4. Typography ──────────────────────────────────── */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h2 { font-size: 31px; line-height: 1.5; }
h3 { font-size: 20px; line-height: 1.6; }

.eyebrow {
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--navy);
  display: inline-block;
  flex-shrink: 0;
}

.section-jp {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  margin-top: 6px;
}

/* ── 5. Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1.5px solid transparent;
  transition: background 300ms var(--ease-expo),
              color 300ms var(--ease-expo),
              transform 300ms var(--ease-expo),
              box-shadow 300ms var(--ease-expo);
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 0 var(--navy-deep);
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--navy-deep), 0 8px 18px rgba(20, 44, 83, 0.20);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-sm { padding: 10px 18px; font-size: 13px; }

.btn .arr {
  display: inline-block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  flex-shrink: 0;
}
.btn .arr::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* ── 6. Header ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name .ja {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.brand-name .en {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Desktop Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  position: relative;
  transition: color 280ms var(--ease-expo);
}

.nav a:hover { color: var(--navy); }

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -24px;
  height: 2px;
  width: 0;
  background: var(--navy);
  transition: width 280ms var(--ease-expo);
}

.nav a:not(.btn):hover::after { width: 100%; }

/* Hamburger Toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 300ms var(--ease-expo),
              opacity 220ms var(--ease-expo),
              background 200ms ease;
}

/* Open state — hamburger → × */
.site-header.nav-open .nav-toggle .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}
.site-header.nav-open .nav-toggle .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 7. Breadcrumb ──────────────────────────────────── */
.breadcrumb {
  padding: 22px 0;
  background: var(--navy-tint-2);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  content: "›";
  color: var(--ink-3);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--ink-3);
  transition: color 200ms ease;
}
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb [aria-current="page"] {
  color: var(--ink-2);
  font-weight: 500;
}

/* ── 8. Section Base ────────────────────────────────── */
section.block { padding: var(--section-pad) 0; }

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

.section-head .eyebrow {
  justify-content: center;
}
.section-head .eyebrow::before { display: none; }

.section-head h2 {
  margin-top: 16px;
  margin-bottom: 14px;
}

.section-head .sub {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ── 9. CTA Banner ──────────────────────────────────── */
.cta-banner {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner::after {
  content: "";
  position: absolute;
  bottom: -190px;
  left: -90px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

.cta-banner .eyebrow {
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 22px;
}
.cta-banner .eyebrow::before {
  background: rgba(255, 255, 255, 0.5);
}

.cta-banner h2 {
  font-size: 36px;
  line-height: 1.52;
  margin-bottom: 18px;
  color: #fff;
}

.cta-banner p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 2.06;
  max-width: 480px;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.14);
  font-size: 16px;
  padding: 19px 32px;
}
.cta-banner .btn-primary:hover {
  background: var(--navy-tint);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.cta-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
  letter-spacing: 0.06em;
}
.cta-note .dot {
  color: rgba(255, 255, 255, 0.36);
  margin: 0 6px;
}

/* ── 10. Footer ─────────────────────────────────────── */
.site-footer {
  background: #0F1F38;
  color: rgba(255, 255, 255, 0.7);
  padding: 76px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand .brand-name .ja { color: #fff; }
.footer-brand .brand-name .en { color: rgba(255, 255, 255, 0.5); }

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.58);
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 200ms ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.44);
  letter-spacing: 0.06em;
}

.footer-sns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.footer-sns a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
  transition: background 220ms ease,
              border-color 220ms ease,
              color 220ms ease;
}
.footer-sns a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}
.footer-sns a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── 11. Scroll Animation ───────────────────────────── */
[data-anim] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms var(--ease-expo),
              transform 560ms var(--ease-expo);
}

[data-anim].is-visible {
  opacity: 1;
  transform: none;
}

[data-anim-delay="1"] { transition-delay: 80ms; }
[data-anim-delay="2"] { transition-delay: 160ms; }
[data-anim-delay="3"] { transition-delay: 240ms; }
[data-anim-delay="4"] { transition-delay: 320ms; }

/* ── 12. Responsive — 768px ─────────────────────────── */
@media (max-width: 768px) {

  /* ─ Variables ─ */
  :root {
    --section-pad: 56px;
  }

  /* ─ Layout ─ */
  .container,
  .container-narrow {
    padding: 0 20px;
  }

  /* ─ Typography ─ */
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }

  /* ─ Header ─ */
  .nav-toggle {
    display: flex;
  }

  .site-header .container {
    height: 64px;
  }

  .site-header { scroll-margin-top: 64px; }
  section[id], div[id] { scroll-margin-top: 64px; }

  /* ─ Mobile Nav Overlay ─ */
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 12px 32px rgba(20, 44, 83, 0.10);
    padding: 6px 20px 22px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 280ms var(--ease-expo),
                opacity 280ms var(--ease-expo),
                visibility 0s 280ms;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .site-header.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .nav a:not(.btn) {
    padding: 16px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav a:not(.btn)::after { display: none !important; }

  .nav a.btn {
    margin-top: 16px;
    padding: 15px 24px;
    border-bottom: none;
    justify-content: center;
  }

  /* ─ CTA Banner ─ */
  .cta-banner {
    padding: 64px 0;
  }

  .cta-banner .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-banner h2 { font-size: 26px; }
  .cta-banner p  { max-width: none; }

  .cta-actions {
    align-items: stretch;
  }
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cta-note { text-align: center; }

  /* ─ Footer ─ */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  /* ─ Section Head ─ */
  .section-head { margin-bottom: 36px; }
}
