/* =========================================================
   ZEETA Common Styles
   reset / layout / header / footer / buttons / utilities
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans-jp);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button {
  font: inherit; color: inherit; background: none; border: 0;
  padding: 0; cursor: pointer;
}
table { border-collapse: collapse; }

/* 数値表示用 tabular numerals */
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-pc);
}
@media (max-width: 768px) {
  .container { padding-inline: var(--container-pad-sp); }
}

.section {
  padding-block: var(--section-pad-pc);
}

/* Section label "— 01 / ISSUES" 形式 */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-num);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 48px;
}
.section-title .accent-blue { color: var(--color-blue-500); }
.section-title .accent-teal { color: var(--color-teal-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--color-blue-500);
  color: var(--color-white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--color-blue-600); }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}
.btn-secondary:hover {
  border-color: var(--color-text);
  background: var(--color-white);
}

.btn-teal {
  background: var(--color-teal-500);
  color: var(--color-white);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28);
}
.btn-teal:hover { background: var(--color-teal-600); }

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-small); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: var(--fs-body); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
/* Hero が dark のページ用ヘッダー */
.site-header.on-dark {
  background: rgba(11, 19, 32, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header.on-dark .nav-link { color: var(--color-text-on-dark); }
.site-header.on-dark .logo-text { color: var(--color-white); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--fw-heavy);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-text { color: var(--color-text); }

.global-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--color-text); }
.site-header.on-dark .nav-link:hover { color: var(--color-white); }

.header-cta { margin-left: 8px; }

.nav-toggle { display: none; }
@media (max-width: 880px) {
  .global-nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: var(--radius-xs);
  }
  .nav-toggle span {
    display: block; width: 20px; height: 2px;
    background: currentColor; position: relative;
  }
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: ""; position: absolute; left: 0; width: 20px; height: 2px;
    background: currentColor;
  }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .header-cta { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-900);
  color: var(--color-text-on-dark);
  padding-block: 64px 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);
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand .brand .logo-text { color: var(--color-white); }
.footer-address {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--color-text-on-dark-muted);
  line-height: 1.7;
}
.footer-col h4 {
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: var(--fs-small);
  color: var(--color-text-on-dark-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--color-white); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-xs);
  color: var(--color-text-on-dark-muted);
}
.footer-legal { display: flex; gap: 20px; }
@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Utility / Cards ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

/* チェックリスト共通 */
.check-list { display: grid; gap: 12px; }
.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: var(--fs-body-sm);
  line-height: 1.7;
}
.check-list li::before {
  content: "";
  width: 20px; height: 20px;
  margin-top: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M4 10.5L8 14.5L16 6.5' stroke='%2310B981' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

/* セクションのリード文 */
.section-lead {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  line-height: var(--lh-base);
  margin-top: -32px;
  margin-bottom: 48px;
  max-width: 720px;
}

/* グリッドユーティリティ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Animations (一度だけのフェードイン) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
