/* ===========================================================================
   STRATiV — 静的サイト共通スタイル
   styles.css のトークンを前提に、旧Reactコンポーネント（Button / Eyebrow /
   Badge / Input / ServiceCard / Nav / Footer / PageHeader / CtaBand）を
   CSSクラスとして再実装したもの。ブレークポイントは 820px（旧 useIsMobile と同一）。
   =========================================================================== */

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
::selection { background: var(--gold); color: var(--black); }
img { max-width: 100%; }

.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-accent);
}
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.rule::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
  flex-shrink: 0;
}

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn.pill { border-radius: var(--radius-pill); }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-sm { font-size: 13px; padding: 8px 16px; height: 36px; }
.btn-sm.pill { padding: 8px 20px; }
.btn-md { font-size: 14px; padding: 12px 22px; height: 44px; }
.btn-md.pill { padding: 12px 28px; }
.btn-lg { font-size: 16px; padding: 16px 30px; height: 54px; gap: 10px; }
.btn-lg.pill { padding: 16px 38px; }
.btn-primary {
  background: var(--action-primary);
  color: var(--action-primary-text);
  border: 1px solid var(--action-primary);
}
.btn-primary:hover:not(:disabled) {
  background: var(--action-primary-hover);
  border-color: var(--action-primary-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--border-strong); }
.btn-ghost-dark {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--border-on-dark);
}
.btn-ghost-dark:hover:not(:disabled) { border-color: var(--ink-500); }
.btn .arrow { font-weight: 400; }

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.badge-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}

/* ---- Input（フォーム） ---- */
.field { display: flex; flex-direction: column; gap: 7px; font-family: var(--font-sans); }
.field > label { font-size: 13px; font-weight: 700; color: var(--text-primary); letter-spacing: 0.01em; }
.field > input,
.field > textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--white);
  padding: 12px 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field > textarea { resize: vertical; }
.field > input:focus,
.field > textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(252, 202, 26, 0.22);
}
.field > .hint { font-size: 12px; color: var(--text-muted); }

/* ---- Nav（ヘッダー） ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--border-on-dark);
}
.site-header.scrolled,
.site-header.open {
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 34px; width: auto; }
.nav-desktop { margin-left: auto; display: flex; gap: 30px; align-items: center; }
.nav-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--gold); }
.nav-burger {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
}
.site-header.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .nav-burger span:nth-child(2) { opacity: 0; }
.site-header.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none;
  border-top: 1px solid var(--border-on-dark);
  padding: 20px var(--gutter) 28px;
  flex-direction: column;
  gap: 20px;
}
.nav-link-big {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
}
.nav-link-big.active { color: var(--gold); }
.nav-link-big .ja {
  opacity: 0.6;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
}

@media (max-width: 820px) {
  .nav-inner { height: 64px; }
  .nav-logo img { height: 28px; }
  .nav-desktop { display: none; }
  .nav-burger { display: flex; }
  .site-header.open .nav-mobile { display: flex; }
}

/* ---- PageHeader（黒帯の見出し） ---- */
.page-header { background: var(--black); color: var(--white); }
.page-header .inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 124px) var(--gutter) clamp(64px, 8vw, 100px);
}
.page-header h1 {
  margin: 26px 0 0;
  font-size: var(--fs-h1);
  font-weight: 900;
  letter-spacing: var(--ls-display);
  line-height: 1.08;
}
.page-header .sub {
  margin: 28px 0 0;
  max-width: 600px;
  font-size: 17px;
  line-height: var(--lh-relaxed);
  color: var(--text-on-dark-dim);
}
@media (max-width: 820px) {
  .page-header .inner { padding: 60px var(--gutter); }
  .page-header h1 { margin: 20px 0 0; font-size: clamp(34px, 8.5vw, 46px); }
  .page-header .sub { margin: 20px 0 0; font-size: 15px; }
}

/* ---- CtaBand ---- */
.cta-band {
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--border-on-dark);
}
.cta-band .inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 112px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cta-band h2 {
  margin: 22px 0 0;
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: var(--ls-heading);
  line-height: 1.12;
}
.cta-band p {
  margin: 18px 0 0;
  max-width: 520px;
  font-size: 16px;
  line-height: var(--lh-relaxed);
  color: var(--text-on-dark-dim);
}
.cta-band .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .cta-band .inner { padding: 60px var(--gutter); }
  .cta-band h2 { margin: 18px 0 0; }
  .cta-band p { font-size: 15px; }
  .cta-band .actions { margin-top: 28px; width: 100%; }
  .cta-band .actions .btn { width: 100%; }
}

/* ---- Footer ---- */
.site-footer { background: var(--black); color: var(--white); }
.footer-idea { padding: clamp(24px, 3.5vw, 44px) var(--gutter) 20px; }
.idea-promo {
  position: relative;
  display: block;
  max-width: 760px;
  min-height: 250px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: #08090d;
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
  opacity: .88;
  transition: opacity .35s var(--ease-out), border-color .35s var(--ease-out);
}
.idea-promo-media,
.idea-promo-media img,
.idea-promo-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.idea-promo-media { z-index: -2; }
.idea-promo-media img {
  display: block;
  object-fit: cover;
  filter: brightness(.72) saturate(.82);
  transition: transform .75s var(--ease-out), filter .4s var(--ease-out);
}
.idea-promo-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 6, 9, .97) 0%, rgba(5, 6, 9, .84) 43%, rgba(5, 6, 9, .16) 100%);
}
.idea-promo-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: inherit;
  width: 58%;
  padding: 30px 34px;
  line-height: 1.5;
}
.idea-promo-label {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.idea-promo-copy strong {
  margin-top: 11px;
  font-family: "Shippori Mincho B1", "Yu Mincho", serif;
  font-size: clamp(23px, 2.6vw, 31px);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.42;
}
.idea-promo-text { display: none; }
.idea-promo-cta {
  margin-top: 19px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.idea-promo:hover { opacity: 1; border-color: rgba(214, 178, 98, .32); }
.idea-promo:hover .idea-promo-media img { transform: scale(1.025); filter: brightness(.9) saturate(.96); }
.idea-promo:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
@media (max-width: 768px) {
  .footer-idea { padding: 22px var(--gutter) 14px; }
  .idea-promo { max-width: 420px; min-height: 360px; border-radius: 10px; }
  .idea-promo-media img { object-position: center; }
  .idea-promo-shade { background: linear-gradient(180deg, rgba(5, 6, 9, .08) 0%, rgba(5, 6, 9, .22) 46%, rgba(5, 6, 9, .95) 79%, #050609 100%); }
  .idea-promo-copy { justify-content: flex-end; width: 100%; padding: 24px 20px 26px; }
  .idea-promo-copy strong { margin-top: 9px; font-size: clamp(23px, 7.2vw, 28px); line-height: 1.4; }
  .idea-promo-cta { margin-top: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .idea-promo-media img { transition: none; }
  .idea-promo:hover .idea-promo-media img { transform: none; }
}
.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 72px var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.footer-grid .brand img { height: 36px; width: auto; }
.footer-grid .brand p {
  margin: 22px 0 0;
  max-width: 360px;
  font-size: 13.5px;
  line-height: var(--lh-relaxed);
  color: var(--text-on-dark-dim);
}
.footer-nav { display: flex; gap: 56px; justify-content: flex-end; flex-wrap: wrap; }
.footer-nav .col { display: flex; flex-direction: column; gap: 14px; }
.footer-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border-on-dark); }
.footer-bottom .inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .copy { font-size: 11.5px; color: var(--text-on-dark-dim); letter-spacing: 0.04em; }
.footer-bottom .slogan {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-on-dark-dim);
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .footer-grid { padding: 56px var(--gutter) 32px; grid-template-columns: 1fr; gap: 36px; }
  .footer-nav { justify-content: flex-start; }
}

/* ---- 汎用 ---- */
.mobile-break { display: none; }
@media (max-width: 820px) {
  .mobile-break { display: inline; }
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 4px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.more-link:hover { color: var(--gold-700); border-color: var(--gold-700); }
.more-link .arrow { font-weight: 400; }
