/* ratio.website /blog/ — LP と完全に揃える共通スタイル。
 * 1) tokens は src/styles/tokens.css 全文をコピー(LP src/ は触らない原則)。
 * 2) nav と menu は src/styles/nav.css 由来の .l-nav / .l-menu / .c-btn-cta--nav。
 * 3) footer は LP の navy footer を簡素化。
 * 既存の `.blog-list__*` / `.blog-article__*` / `.prose` 等は prose.css 側。 */

:root {
  --color-primary:          #3D6196;
  --color-primary-dark:     #2F4E7E;
  --color-primary-deep:     #243D63;
  --color-primary-light:    #6B8CB8;
  --color-primary-surface:  #EEF4FC;
  --color-primary-bg:       #DCE7F5;
  --color-primary-bg-subtle:#F5F8FD;

  --color-dark:             #2F4E7E;
  --color-dark-mid:         #3D6196;
  --color-dark-surface:     #4E76AB;
  --color-dark-border:      rgba(255, 255, 255, 0.16);
  --color-dark-text:        rgba(255, 255, 255, 0.96);
  --color-dark-text-mid:    rgba(255, 255, 255, 0.72);
  --color-dark-text-light:  rgba(255, 255, 255, 0.44);

  --color-danger:           #B0564B;

  --color-bg:               #F5F8FD;
  --color-bg-alt:           #E8EFF8;
  --color-surface:          #FFFFFF;
  --color-card:             #FFFFFF;
  --color-border:           #D0DCEC;
  --color-border-subtle:    #E8EFF8;
  --color-text:             #1E3355;
  --color-text-mid:         #4E6380;
  --color-text-light:       #8EA0BB;

  --color-bg-footer-cta:    #2F4E7E;
  --color-bg-footer:        #243D63;

  --shadow-xs:    0 1px 3px rgba(30, 51, 85, 0.05);
  --shadow-sm:    0 2px 8px rgba(30, 51, 85, 0.07);
  --shadow-card:  0 4px 20px rgba(30, 51, 85, 0.07), 0 1px 4px rgba(30, 51, 85, 0.04);
  --shadow-md:    0 6px 28px rgba(30, 51, 85, 0.09);
  --shadow-cta:   0 8px 32px rgba(61, 97, 150, 0.36);

  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  12px;
  --space-lg:  16px;
  --space-xl:  24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;

  --font-ja:   'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-en:   'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width:  1280px;
  --nav-height: 64px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ja);
  line-height: 1.75;
  font-feature-settings: "palt";
}
img { max-width: 100%; height: auto; }
a { color: var(--color-primary); }

.l-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.u-pc-only { display: block; }
@media (max-width: 768px) { .u-pc-only { display: none; } }

/* ─── Navigation (LP の .l-nav と同じ class / 構造) ─── */
.l-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(11, 22, 41, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.l-nav.is-scrolled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(11, 22, 41, 0.95);
}
.l-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.l-nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.l-nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
}
.l-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  padding: 0;
  margin: 0;
}
.l-nav__link {
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
  position: relative;
  text-decoration: none;
}
.l-nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1px;
  transition: width 0.22s var(--ease-out-expo);
}
.l-nav__link:hover { color: #fff; }
.l-nav__link:hover::after { width: 100%; }
.l-nav__link.is-active { color: #fff; }
.l-nav__link.is-active::after { width: 100%; }

/* CTA pill button (LP の .c-btn-cta--nav に揃える) */
.c-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-ja);
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow-cta);
}
.c-btn-cta:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}
.c-btn-cta--nav {
  font-size: 13px;
  padding: 10px 22px;
}
.c-btn-cta__arrow { font-weight: 700; }

/* ─── Hamburger (SP) ─── */
.l-nav__hamburger {
  width: 36px;
  height: 36px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
@media (max-width: 768px),
       (max-width: 1024px) and (max-height: 500px) {
  .l-nav__hamburger { display: flex; }
  .l-nav .l-nav__list { display: none; }
  .l-nav .c-btn-cta--nav { display: none; }
}
.l-nav__hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s ease;
}
.l-nav__hamburger.is-open .js-hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.l-nav__hamburger.is-open .js-hamburger-line:nth-child(2) { opacity: 0; }
.l-nav__hamburger.is-open .js-hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ─── Mobile Menu ─── */
.l-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
}
.l-menu.is-open { pointer-events: auto; }
.l-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 41, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.l-menu.is-open .l-menu__overlay { opacity: 1; }
.l-menu__content {
  position: absolute;
  top: 0; right: 0;
  width: 280px;
  height: 100%;
  background: var(--color-dark-mid);
  border-left: 1px solid var(--color-dark-border);
  padding: calc(var(--nav-height) + 24px) var(--space-xl) var(--space-xl);
  transform: translateX(100%);
  transition: transform 0.32s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  overflow-y: auto;
}
.l-menu.is-open .l-menu__content { transform: translateX(0); }
.l-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}
.l-menu__link {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.80);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-dark-border);
  display: block;
  transition: color 0.2s ease;
  text-decoration: none;
}
.l-menu__link:hover { color: #fff; }
.l-menu__link.is-active { color: #fff; }
.l-menu__cta { font-size: 15px; justify-content: center; width: 100%; padding: 14px 22px; }

main { padding-top: var(--nav-height); }

/* ─── Footer (navy block, simplified LP-style) ─── */
.p-footer {
  margin-top: var(--space-4xl);
  background: var(--color-bg-footer);
  color: var(--color-dark-text-mid);
  padding: var(--space-3xl) 24px var(--space-2xl);
}
.p-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  text-align: center;
}
.p-footer__logo img {
  height: 36px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
}
.p-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.p-footer__link {
  color: var(--color-dark-text-mid);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.p-footer__link:hover { color: #fff; text-decoration: underline; }
.p-footer__copyright {
  font-size: 12px;
  color: var(--color-dark-text-light);
  margin: 0;
  letter-spacing: 0.04em;
  font-family: var(--font-en);
}
