/* ==========================================================
   WELLBo 会社サイト
   トークン: 温白の紙 × 墨 × 琥珀(WELLBo) + コーラル(ポストメイト) / 朱(KENKO)
   ========================================================== */

:root {
  --paper: #fbfaf7;
  --ink: #1e1e22;
  --ink-soft: #55554f;
  --line: #e7e5de;
  --amber: #feba28;       /* ロゴの黄色に統一 */
  --amber-deep: #c5890c;  /* eyebrow・フォーカス用に読みやすくした濃い版 */
  --coral: #e96261;
  --vermilion: #dc3d2a;
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Outfit", "Zen Kaku Gothic New", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --w: min(1080px, calc(100vw - 48px));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { width: var(--w); margin-inline: auto; }

/* ---------- 共通パーツ ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 20px;
}

.section {
  padding: clamp(88px, 11vw, 140px) 0;
  scroll-margin-top: 68px; /* 固定ヘッダーの高さ分 */
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.section-lead {
  max-width: 40em;
  color: var(--ink-soft);
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: var(--w);
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 22px;
  width: auto;
  display: block;
}

.site-nav { display: flex; gap: clamp(20px, 3.5vw, 36px); }

.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

/* ---------- ヒーロー ---------- */

.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 左側の文字の可読性を保つ薄い紗 */
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(251, 250, 247, 0.92) 22%, rgba(251, 250, 247, 0) 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 140px 0 100px;
}

.hero-title {
  font-size: clamp(2.5rem, 7.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.045em;
}

.hero-title span { display: block; }

.accent-dot { display: inline !important; color: var(--amber); }

.hero-lead {
  margin-top: 32px;
  max-width: 36em;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

.hero-cta { margin-top: 44px; }

.btn-primary {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 13px 34px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
}

.scroll-cue span {
  display: block;
  width: 1.5px;
  height: 44px;
  background: linear-gradient(var(--ink) 40%, transparent 0);
  background-size: 100% 200%;
  animation: cue 2.2s ease-in-out infinite;
  opacity: 0.45;
}

@keyframes cue {
  0% { background-position: 0 100%; }
  60%, 100% { background-position: 0 -100%; }
}

/* ---------- サービス ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(30px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -28px rgba(30, 30, 34, 0.25);
}

.card-kenko:hover { border-color: rgba(30, 30, 34, 0.45); }
.card-postmate:hover { border-color: rgba(233, 98, 97, 0.55); }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.service-logo { width: auto; }
/* KENKOはアイコン付きロックアップ、ポストメイトはテキスト主体で
   viewBox内の文字比率が違うため、文字高が揃うよう個別に指定 */
.logo-kenko { height: 30px; }
.logo-postmate { height: 19px; }

.chip-row {
  display: flex;
  gap: 6px;
  list-style: none;
}

.chip-row li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.service-catch {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-bottom: 14px;
}

.service-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 26px;
}

.feature-list {
  list-style: none;
  border-top: 1px solid var(--line);
  margin-bottom: 30px;
}

.feature-list li {
  font-size: 0.9rem;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.55em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--amber);
}

.service-status {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}

.dot-kenko { background: var(--vermilion); }
.dot-postmate { background: var(--coral); animation-delay: 1.2s; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- 考え方 ---------- */

.section-principles {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(rgba(30, 30, 34, 0.06) 1px, transparent 1.5px) 0 0 / 28px 28px,
    var(--paper);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(32px, 5vw, 56px);
  margin-top: clamp(32px, 5vw, 56px);
}

.principle-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--amber);
  margin-bottom: 18px;
}

.principle h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.principle p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- 会社概要 ---------- */

.company-table {
  max-width: 640px;
  border-top: 1px solid var(--line);
}

.company-table > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.company-table dt {
  font-weight: 700;
  font-size: 0.9rem;
}

.company-table dd {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.company-table a {
  text-decoration-color: var(--amber);
  text-underline-offset: 4px;
}

/* ---------- フッター ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo { height: 18px; }

.footer-inner p {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

/* ---------- スクロールリビール ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- レスポンシブ / アクセシビリティ ---------- */

.pc-only { display: none; }

@media (min-width: 720px) {
  .pc-only { display: inline; }
}

@media (max-width: 719px) {
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 0.8rem; }
  .card-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .company-table > div { grid-template-columns: 1fr; gap: 2px; }
}

:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span, .status-dot { animation: none; }
  .service-card { transition: none; }
}
