/* ============================================
   ONEST, Inc. — one page site
   key colors: navy #1A4478 / yellow #FFEC60
   ============================================ */

:root {
  --navy: #1A4478;
  --yellow: #FFEC60;
  --bg: #FCFCFA;
  --text: #4A4D55;
  --grey: #9A9DA5;
  --line: #D8DAD6;
  --mono: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  line-height: 2;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: #0F2E56; }

.pc-only { display: inline; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  background: var(--bg);
  border-bottom: 4px solid var(--yellow);
}
.header-logo img { height: 52px; }
.global-nav { display: flex; gap: 40px; }
.global-nav a {
  font-size: 14px;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.global-nav a:hover { opacity: 0.65; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 128px 56px 64px;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 1168px;
  margin: 0 auto;
}
.hero-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--grey);
}
.hero-title {
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.75;
  font-weight: 700;
  color: var(--navy);
  max-width: 900px;
  text-wrap: pretty;
}
.marker { background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.hero-lead { font-size: 16px; line-height: 2.1; max-width: 640px; }

/* scroll cue */
.scroll-cue {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 72px;
}
.scroll-cue-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--grey);
}
.scroll-cue-line {
  width: 2px;
  height: 64px;
  background: #E2E4E0;
  overflow: hidden;
  display: block;
}
.scroll-cue-bar {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--navy);
  animation: scrollLine 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-101%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(101%); }
}

/* ---------- section common ---------- */
.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 32px 0 56px;
}
.section-note { font-size: 14px; color: var(--grey); }

/* ---------- service ---------- */
.service {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 56px 96px;
}
.service-row {
  display: grid;
  grid-template-columns: minmax(280px, 560px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.service-row + .service-row { margin-top: 88px; }
.service-row.is-reverse .service-media { order: 2; }
.service-row.is-reverse .service-body { order: 1; }
.service-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.service-body { display: flex; flex-direction: column; gap: 18px; }
.service-body p, .service-body h3 { margin: 0; }
.service-no { font-family: var(--mono); font-size: 13px; color: var(--navy); }
.service-no span { color: #C9CCD2; }
.service-title { font-size: 28px; font-weight: 700; color: var(--navy); }
.service-copy { font-size: 18px; font-weight: 500; color: var(--navy); }
.service-text { font-size: 15px; line-height: 2; }
.service-action { margin-top: 8px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline .arrow { font-size: 15px; }

/* ---------- company ---------- */
.company {
  border-top: 1px solid var(--line);
}
.company > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 56px 88px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.company-table {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px 32px;
  font-size: 15px;
  max-width: 640px;
}
.company-table dt { color: var(--grey); font-weight: 400; }
.company-table dd { color: #2B2E36; }

/* ---------- contact / footer ---------- */
.contact { background: var(--navy); }
.contact > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 72px 56px;
}
.contact-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
}
.contact-note { font-size: 14px; color: #C6D2E4; }
.btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.25s ease;
}
.btn-fill:hover { transform: translateY(-2px); color: var(--navy); }
.copyright {
  font-family: var(--mono);
  font-size: 12px;
  color: #7E93B4;
  margin-top: 24px;
}

/* ---------- reveal (JSがスタイルを付与) ---------- */
/* JS無効時も表示されるよう、初期状態はJS側で設定する */

/* ============================================
   responsive
   ============================================ */
@media (max-width: 1100px) and (min-width: 901px) {
  .service-row { gap: 40px; }
  .service-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .service-media img { height: 300px; }
}

@media (max-width: 900px) {
  .pc-only { display: none; }

  .site-header { padding: 14px 20px; }
  .header-logo img { height: 36px; }

  .global-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy);
    flex-direction: column;
    gap: 8px;
    padding: 96px 36px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .global-nav.is-open { transform: translateX(0); }
  .global-nav a { color: #fff; font-size: 16px; padding: 12px 0; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 110;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  }
  .nav-toggle.is-open span { background: #fff; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 64px 24px 40px; }
  .hero-inner { gap: 24px; }
  .hero-lead { font-size: 14px; }
  .scroll-cue { margin-top: 48px; }
  .scroll-cue-line { height: 44px; }

  .service { padding: 40px 24px 64px; }
  .section-head { padding: 24px 0 40px; gap: 12px; }
  .section-title { font-size: 20px; }
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .service-row + .service-row { margin-top: 56px; }
  .service-row.is-reverse .service-media { order: 0; }
  .service-row.is-reverse .service-body { order: 1; }
  .service-media img { height: 220px; }
  .service-title { font-size: 21px; }
  .service-copy { font-size: 15px; }
  .service-text { font-size: 14px; }

  .company > div { padding: 40px 24px 48px; gap: 20px; }
  .company-table { grid-template-columns: 92px 1fr; gap: 12px 16px; font-size: 13px; }

  .contact > div { padding: 48px 24px; gap: 16px; }
  .contact-title { font-size: 18px; }
  .btn-fill { padding: 14px 36px; font-size: 14px; }
  .copyright { font-size: 10px; margin-top: 12px; }
}
