/* ==========================================
   style.css — Zen × Tech Dark
   マネーデザイン コーポレートサイト
   ========================================== */

/* --- CSS変数 --- */
:root {
  /* Backgrounds */
  --bg:            #f9f6f1;  /* 温かいアイボリー */
  --bg-surface:    #f2ede5;  /* 少し濃いアイボリー */
  --bg-elevated:   #ebe4d9;  /* ホバー等 */

  /* Text */
  --text:          #1a1816;  /* ほぼ黒、温かみあり */
  --text-sub:      #6b6560;
  --text-light:    #7a7470;  /* --text-sub より少し軽い */
  --text-muted:    #b8b0a8;

  /* Accent — ブロンズ */
  --accent:        #9c7a4e;
  --accent-dim:    rgba(156, 122, 78, 0.1);

  /* Nav active — アイボリーの補色（H=217.5°のブルー） */
  --nav-active:    #3eb8c4;

  /* Borders */
  --border:        rgba(26, 24, 22, 0.1);
  --border-strong: rgba(26, 24, 22, 0.22);

  /* Typography */
  --font-sans: 'DM Sans', 'Noto Sans JP', sans-serif;
  --font-mono: 'DM Mono', 'Osaka-Mono', monospace;
  --font-ja:   'Noto Sans JP', sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-hero: clamp(3.5rem, 9vw, 6.5rem);

  /* Spacing (8px grid) */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;
  --sp-24: 192px;

  /* Layout */
  --max-w: 1120px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ja);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Container --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* --- Sections --- */
.section {
  padding: var(--sp-24) 0;
}
.section--sm {
  padding: var(--sp-12) 0;
}
.section--white {
  background: #ffffff;
}
.section--ivory {
  background: var(--bg);   /* #f9f6f1 */
}
.section--blog {
  padding: var(--sp-4) 0;
}
.section--blog .section__header {
  margin-bottom: var(--sp-4);
}

.section__header {
  margin-bottom: var(--sp-12);
}
.section__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--sp-2);
}
.section__title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section__desc {
  color: var(--text-sub);
  margin-top: var(--sp-3);
  font-size: var(--text-lg);
  line-height: 1.75;
}
.section__more {
  margin-top: var(--sp-8);
}
.section__header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.section__link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color var(--transition);
  padding-bottom: 2px;
}
.section__link:hover { color: var(--accent); }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
}
.header.scrolled {
  background: rgba(249, 246, 241, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(156, 122, 78, 0.2);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: 64px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}
.header__logo-img {
  height: 64px;
  width: auto;
  display: block;
}
.logo-mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: #3eb8c4;
  letter-spacing: 0.05em;
  border: 1px solid rgba(62, 184, 196, 0.5);
  padding: 3px 7px;
}
.logo-text {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.header__nav {
  margin-left: auto;
}
.nav__list {
  display: flex;
  gap: var(--sp-6);
}
.nav__list a {
  font-size: var(--text-sm);
  color: rgba(26, 24, 22, 0.65);
  font-weight: 400;
  transition: color var(--transition);
  letter-spacing: 0.01em;
}
.nav__list a:hover { color: #9c7a4e; }
.header__cta { margin-left: var(--sp-4); }
/* ヘッダー内CTAボタン：ダーク背景に合わせてアクアティールに */
.header__cta .btn--primary,
.nav__cta .btn--primary {
  background: #3eb8c4;
  color: #0f1f3d;
  border-color: #3eb8c4;
  font-weight: 500;
}
.header__cta .btn--primary:hover,
.nav__cta .btn--primary:hover {
  background: #5ecbd5;
  border-color: #5ecbd5;
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 22, 0.55);
  z-index: 99;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__cta { display: none; }

/* --- Hero --- */
.section--hero {
  padding: var(--sp-12) 0;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  max-width: 820px;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--sp-4);
}
.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--sp-8);
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__desc {
  font-size: var(--text-lg);
  color: var(--text-sub);
  margin-bottom: var(--sp-8);
  line-height: 1.8;
  max-width: 520px;
}
.hero__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: center;
}
.hero__foot {
  margin-top: var(--sp-8);
  display: flex;
  gap: var(--sp-8);
  align-items: flex-end;
  flex-wrap: wrap;
}
.hero__foot .hero__desc    { margin-bottom: 0; flex: 1; min-width: 240px; }
.hero__foot .hero__actions { flex-shrink: 0; }
.hero__kicker {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
}
.hero__kicker-label { color: var(--accent); text-transform: uppercase; }
.hero__kicker-loc   { color: var(--text-muted); }

/* --- Stats — 反転ダークバンド --- */
.section--stats {
  padding: var(--sp-8) 0;
  background: #1a2d4a;
}
.stats__list {
  display: flex;
}
.stats__item {
  flex: 1;
  padding: var(--sp-4) var(--sp-6);
  border-right: 1px solid rgba(249, 246, 241, 0.1);
}
.stats__item:first-child { padding-left: 0; }
.stats__item:last-child  { border-right: none; }
.stats__num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--bg);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stats__unit {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(156, 122, 78, 0.85);
}
.stats__label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(249, 246, 241, 0.55);
  margin-top: var(--sp-1);
  letter-spacing: 0.08em;
}
.stats__note {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(249, 246, 241, 0.3);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

/* --- Statement Section --- */
.section--statement {
  padding: var(--sp-16) 0;
  border-bottom: 1px solid var(--border);
}
.statement__text {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text-sub);
  line-height: 1.65;
  max-width: 800px;
  letter-spacing: -0.01em;
}
.statement__text strong {
  color: var(--text);
  font-weight: 500;
}
.statement__sub {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-top: var(--sp-6);
  max-width: 520px;
  line-height: 1.9;
}

/* --- CTA Section --- */
.section--cta {
  padding: var(--sp-16) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}
.cta__text-block {
  max-width: 560px;
}
.cta__title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--sp-3);
}
.cta__desc {
  color: var(--text-sub);
  font-size: var(--text-base);
  line-height: 1.8;
}
.cta__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  background: #131d2a;
  border-top: none;
  font-size: var(--text-sm);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-8);
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.footer .logo-mark {
  color: #3eb8c4;
  border-color: rgba(62, 184, 196, 0.45);
}
.footer .logo-text {
  color: #ffffff;
}
.footer__logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) sepia(30%);
}
.footer__tagline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #3eb8c4;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-2);
}
.footer__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer__col a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}
.footer__col a:hover { color: #ffffff; }
.footer__bottom {
  padding: var(--sp-3) 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.03em;
}
.footer__legal {
  display: flex;
  gap: var(--sp-4);
}
.footer__legal a {
  color: rgba(255, 255, 255, 0.28);
  transition: color var(--transition);
}
.footer__legal a:hover { color: rgba(255, 255, 255, 0.6); }

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section      { padding: var(--sp-12) 0; }
  .section--sm  { padding: var(--sp-8) 0; }
  .section--hero { padding: var(--sp-8) 0; min-height: unset; }
  .section--stats { padding: var(--sp-4) 0; }
  .section--statement { padding: var(--sp-8) 0; }

  .stats__list  { flex-wrap: wrap; }
  .stats__item  {
    flex: 0 0 50%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: var(--sp-3);
  }
  .stats__item:first-child { padding-left: var(--sp-3); }
  .section--stats .stats__item { border-bottom-color: rgba(249, 246, 241, 0.1); }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }

  .cta__inner   { flex-direction: column; align-items: flex-start; }
  .cta__actions { flex-direction: row; flex-wrap: wrap; }

  .hamburger    { display: flex; }
  .header__nav,
  .header__cta  { display: none; }
  .header__nav.open {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: var(--sp-4);
  }
  .header__nav.open .nav__list {
    flex-direction: column;
    gap: var(--sp-3);
  }
  .nav__list a  { font-size: var(--text-base); }
  .nav__cta     {
    display: block;
    margin-top: var(--sp-3);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border);
  }

  .footer__inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--sp-3); }
  .hero__title { letter-spacing: -0.03em; }
}
