/* ============================================================
   hc-i Tech — Healthcare Innovation Technology
   Preview Edition (under dynamis.llc/hc-i/)
   Concept: "Clinical Editorial"
   常磐グリーン × 紙白 × Fraunces数字 × Plex Monoラベル × ECGパルス
   ============================================================ */

:root {
  /* Brand — ロゴ準拠（深緑＋アップルグリーン） */
  --pine: #0c3d2a;           /* 深い常磐グリーン（主役） */
  --pine-deep: #082c1e;      /* さらに深く（フッター/夜） */
  --green: #0e7a3d;          /* ロゴの緑 */
  --apple: #58b947;          /* ロゴのクロスの明るい緑 */
  --mint: #7ee2a8;           /* 暗背景上のアクセント */
  --mint-soft: #eaf6ee;      /* 淡い緑（面） */
  --mint-line: #cde8d6;      /* 淡い緑（線） */

  /* Neutrals — 紙とインク */
  --paper: #f7f6f1;          /* 生成りの紙白 */
  --paper-warm: #f1efe7;     /* 少し濃い紙 */
  --white: #ffffff;
  --ink: #14231c;            /* 緑がかった墨 */
  --ink-2: #48584f;
  --ink-3: #77857c;
  --line: #dfded6;
  --line-dark: rgba(255,255,255,0.14);

  --danger: #c2410c;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(12,61,42,0.05);
  --shadow: 0 10px 30px rgba(12,61,42,0.10);
  --shadow-lg: 0 24px 60px rgba(8,44,30,0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-jp: 'Zen Kaku Gothic New', 'Noto Sans JP', -apple-system, sans-serif;
  --font-serif: 'Fraunces', 'Zen Old Mincho', serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--apple); color: var(--pine-deep); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

/* ============================================================
   Signature textures
   ============================================================ */
/* 医療クロス（＋）の微細グリッド — 紙白の上 */
.tex-plus {
  background-image:
    radial-gradient(circle at 0 0, transparent 0, transparent 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 24v8M24 28h8' stroke='%230c3d2a' stroke-opacity='0.07' stroke-width='1.4'/%3E%3C/svg%3E");
}
/* 深緑面の上の＋パターン */
.tex-plus-dark {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 24v8M24 28h8' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1.4'/%3E%3C/svg%3E");
}

/* ============================================================
   Preview banner
   ============================================================ */
.preview-banner {
  background: var(--ink);
  color: #fff;
  padding: 9px 20px;
  text-align: center;
  font-size: 12.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.preview-banner b { font-weight: 600; color: var(--mint); }
.preview-banner a { text-decoration: underline; opacity: 0.8; margin-left: 8px; }
.preview-banner a:hover { opacity: 1; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,246,241,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 32px; width: auto; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  line-height: 1.5;
  text-transform: uppercase;
}
.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-menu a {
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}
.nav-menu a i.idx {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--apple);
  font-weight: 500;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--pine); }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--apple);
}
.nav-cta {
  background: var(--pine);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease) !important;
}
.nav-cta:hover { background: var(--green); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  position: relative;
  z-index: 210;
}
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Hero（動画背景・深緑オーバーレイ）
   ============================================================ */
.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
  background: var(--pine-deep);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg video,
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8,44,30,0.92) 0%, rgba(8,44,30,0.78) 42%, rgba(8,44,30,0.42) 100%),
    linear-gradient(to top, rgba(8,44,30,0.9) 0%, transparent 32%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 780px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--mint);
  margin-bottom: 30px;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: '';
  width: 34px; height: 1px;
  background: var(--apple);
}
.hero h1 .nowrap { white-space: nowrap; }
.hero h1 {
  font-size: clamp(33px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 30px rgba(8,44,30,0.4);
}
/* 見出し中の強調: 日本語にイタリック/書体切替は使わない（情報デザイン上ノイズになる）。色のみで強調する */
.hero h1 .serif { color: var(--mint); }
.hero .lead {
  font-size: 15.5px;
  color: rgba(255,255,255,0.82);
  margin: 28px 0 40px;
  line-height: 2.2;
  max-width: 36em;
  text-shadow: 0 1px 12px rgba(8,44,30,0.5);
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--apple); color: var(--pine-deep); }
.hero .btn-primary:hover { background: var(--mint); box-shadow: 0 10px 24px rgba(0,0,0,0.3); }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.45); }
.hero .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }

/* ヒーロー下部の帯（キーワード） */
.hero-keys {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 26px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-key { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: rgba(255,255,255,0.55); text-transform: uppercase; display: inline-flex; align-items: center; gap: 9px; }
.hero-key::before { content: '＋'; color: var(--apple); font-size: 12px; }

/* ECG パルスライン */
.ecg-band {
  position: relative;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}
.ecg-band svg { display: block; width: 100%; height: 72px; }
.ecg-path {
  fill: none;
  stroke: var(--apple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: ecg-draw 5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(88,185,71,0.45));
}
.ecg-path.ghost {
  stroke: var(--mint-line);
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: none;
  filter: none;
}
@keyframes ecg-draw {
  0% { stroke-dashoffset: 1600; }
  62% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1600; }
}
.ecg-caption {
  position: absolute;
  top: 50%; right: 28px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
  background: var(--white);
  padding: 2px 10px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: inherit;
  line-height: 1.4;
}
.btn i { transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(12,61,42,0.25); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink-3); }
.btn-outline:hover { border-color: var(--pine); color: var(--pine); background: #fff; }
.btn-light { background: #fff; color: var(--pine); }
.btn-light:hover { background: var(--mint-soft); transform: translateY(-2px); }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 600;
  font-size: 13.5px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-link:hover { gap: 12px; color: var(--pine); }

/* ============================================================
   Sections
   ============================================================ */
section { padding: 104px 0; position: relative; }
section.tight { padding: 56px 0; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--green);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.section-eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--apple); }
.section-head.center .section-eyebrow::after { content: ''; width: 26px; height: 1px; background: var(--apple); }
.section-title {
  font-size: clamp(27px, 3.8vw, 42px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.42;
  margin-bottom: 20px;
  color: var(--ink);
}
.section-title .serif { color: var(--green); }
.section-sub {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 660px;
  margin-bottom: 60px;
  line-height: 2.1;
}
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* Dark section */
.sec-dark { background: var(--pine); color: #fff; }
.sec-dark .section-title { color: #fff; }
.sec-dark .section-eyebrow { color: var(--mint); }
.sec-dark .section-title .serif { color: var(--mint); }
.sec-dark .section-eyebrow::before, .sec-dark .section-head.center .section-eyebrow::after { background: var(--mint); }
.sec-dark .section-sub { color: rgba(255,255,255,0.72); }

/* ============================================================
   Stats
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-item { padding: 42px 28px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-value {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 500;
  color: var(--pine);
  letter-spacing: -0.01em;
  line-height: 1;
}
.stat-value .unit { font-size: 22px; color: var(--green); font-style: italic; margin-left: 2px; }
.stat-label {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 14px;
  line-height: 1.7;
}
.stat-label b { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--green); text-transform: uppercase; font-weight: 500; margin-bottom: 4px; }

/* ============================================================
   Pillars（事業3本柱）
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 42px 36px 38px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.pillar:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); border-color: rgba(126,226,168,0.45); }
.pillar-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 46px;
  font-weight: 500;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 22px;
}
.pillar-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pillar h3 { font-size: 21px; font-weight: 700; color: #fff; margin-bottom: 16px; line-height: 1.5; }
.pillar p { font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 2; flex-grow: 1; }
.pillar .btn-link { color: var(--mint); margin-top: 24px; }
.pillar .btn-link:hover { color: #fff; }
.pillar-cross {
  position: absolute;
  top: -22px; right: -22px;
  width: 88px; height: 88px;
  opacity: 0.1;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.pillar:hover .pillar-cross { opacity: 0.22; transform: rotate(90deg); }
.pillar-cross::before, .pillar-cross::after {
  content: '';
  position: absolute;
  background: var(--mint);
  border-radius: 6px;
}
.pillar-cross::before { left: 50%; top: 0; bottom: 0; width: 26px; transform: translateX(-50%); }
.pillar-cross::after { top: 50%; left: 0; right: 0; height: 26px; transform: translateY(-50%); }

.pillar-sub {
  margin-top: 22px;
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius);
  padding: 20px 26px;
  display: flex;
  gap: 20px;
  align-items: baseline;
  flex-wrap: wrap;
}
.pillar-sub .ps-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--mint); text-transform: uppercase; }
.pillar-sub p { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; }
.pillar-sub a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Domain field tags（対応領域）
   ============================================================ */
.domain-band { padding: 0 0 104px; }
.domain-list { display: flex; flex-wrap: wrap; gap: 10px; }
.domain-chip {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--mint-line);
  background: #fff;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--ease);
}
.domain-chip::before { content: '＋'; color: var(--apple); font-weight: 700; font-size: 12px; }
.domain-chip:hover { border-color: var(--green); color: var(--pine); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ============================================================
   Strengths（強み — 編集的ナンバリング）
   ============================================================ */
.strengths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.strength {
  display: flex;
  gap: 26px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.strength-num {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 500;
  color: var(--green);
  line-height: 1.3;
  width: 44px;
}
.strength h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.strength p { font-size: 13.5px; color: var(--ink-2); line-height: 2; }

/* ============================================================
   Cards / Cases
   ============================================================ */
.cards { display: grid; gap: 26px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  border: 1px solid var(--line);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.card:hover { border-color: var(--mint-line); box-shadow: var(--shadow); transform: translateY(-4px); }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.card p { color: var(--ink-2); font-size: 14px; line-height: 1.95; }

.case {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.case:hover { border-color: var(--mint-line); box-shadow: var(--shadow); transform: translateY(-4px); }
.case-image { aspect-ratio: 16/9; overflow: hidden; background: var(--paper-warm); position: relative; }
.case-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(88,185,71,0.10) 0%, rgba(12,61,42,0.14) 100%);
  mix-blend-mode: multiply;
  transition: opacity 0.4s var(--ease);
}
.case:hover .case-image::after { opacity: 0.4; }
.case-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.case:hover .case-image img { transform: scale(1.04); }
.case-body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex-grow: 1; }
.case-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--mint-soft);
  border: 1px solid var(--mint-line);
  border-radius: 999px;
  text-transform: uppercase;
}
.case h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.case-body p { color: var(--ink-2); font-size: 13.5px; margin-bottom: 16px; line-height: 1.95; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 6px; }
.tech-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

/* 実績ページ用: 課題→提供→成果 */
.case-facts { list-style: none; margin: 4px 0 18px; }
.case-facts li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.85;
}
.case-facts li b {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--green);
  font-weight: 500;
  padding-top: 4px;
  text-transform: uppercase;
}

.jv-note {
  font-size: 12px;
  color: var(--ink-3);
  border-left: 2px solid var(--mint-line);
  padding-left: 14px;
  line-height: 1.9;
}

/* ============================================================
   Service detail blocks（サービスページ）
   ============================================================ */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: center;
  padding: 84px 0;
  border-top: 1px solid var(--line);
}
.service-block:first-of-type { border-top: 0; padding-top: 40px; }
.service-block.reverse .sb-visual { order: -1; }
.sb-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 52px;
  color: var(--mint-line);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 18px;
}
.sb-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.service-block h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 900; margin-bottom: 18px; line-height: 1.5; }
.service-block .desc { color: var(--ink-2); margin-bottom: 26px; line-height: 2.05; font-size: 14.5px; }
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; }
.feature-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 13.5px;
  color: var(--ink-2);
}
.feature-list li::before {
  content: '＋';
  position: absolute;
  left: 0; top: 8px;
  color: var(--apple);
  font-weight: 700;
  font-size: 12px;
}
.sb-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5/4;
  box-shadow: var(--shadow);
  position: relative;
}
.sb-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(88,185,71,0.10) 0%, rgba(12,61,42,0.16) 100%);
  mix-blend-mode: multiply;
}
.sb-visual img { width: 100%; height: 100%; object-fit: cover; }

/* プロセス（進め方4ステップ） */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.process-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  color: var(--apple);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}
.process-step h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 12.5px; color: var(--ink-2); line-height: 1.9; }
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -14px; top: 50%;
  width: 10px; height: 10px;
  border-top: 1.5px solid var(--ink-3);
  border-right: 1.5px solid var(--ink-3);
  transform: translateY(-50%) rotate(45deg);
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 16px;
  transition: background 0.25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: 'Q';
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--green);
  font-size: 18px;
  flex-shrink: 0;
}
.faq summary:hover { background: var(--mint-soft); }
.faq details[open] summary { border-bottom: 1px dashed var(--line); }
.faq .faq-a {
  padding: 20px 26px 24px 58px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 2;
}

/* ============================================================
   Values / Philosophy
   ============================================================ */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.value-card:hover { border-color: var(--mint-line); box-shadow: var(--shadow); }
.value-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--mint-line);
}
.value-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: 13.5px; color: var(--ink-2); line-height: 2; }

/* ============================================================
   CEO Message
   ============================================================ */
.ceo-message-block {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 68px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.ceo-avatar {
  width: 232px; height: 232px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--apple) 0%, var(--pine) 100%);
  box-shadow: var(--shadow);
  position: relative;
}
.ceo-avatar::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed var(--mint-line);
}
.ceo-avatar-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center 25%;
  background-color: var(--paper-warm);
  border: 4px solid #fff;
}
.ceo-name-card { margin-top: 26px; text-align: center; }
.ceo-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; color: var(--green); margin-bottom: 8px; font-weight: 500; text-transform: uppercase; }
.ceo-name { font-size: 20px; font-weight: 700; color: var(--ink); }
.ceo-title { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.pull-quote {
  border-left: 3px solid var(--apple);
  padding: 6px 0 6px 26px;
  font-size: 18px;
  line-height: 2;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 30px;
}
.ceo-message-text p { color: var(--ink-2); line-height: 2.15; margin-bottom: 22px; font-size: 14.5px; }
.ceo-message-text p:last-child { margin-bottom: 0; }

/* ============================================================
   Page head（下層ページ）
   ============================================================ */
.page-head {
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin-bottom: 18px;
}
.page-head h1 .serif { color: var(--green); }
.page-head p { color: var(--ink-2); max-width: 620px; font-size: 15px; line-height: 2.05; margin: 0 auto; }
.page-head.center { text-align: center; }
.page-head .breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 30px;
  display: inline-flex;
  gap: 10px;
  text-transform: uppercase;
}
.page-head .breadcrumb a:hover { color: var(--green); }

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  background: var(--pine);
  color: #fff;
  padding: 104px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; margin-bottom: 22px; line-height: 1.5; }
.cta-section h2 .serif { color: var(--mint); }
.cta-section p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 38px; line-height: 2.05; font-size: 14.5px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-tel {
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
}
.cta-tel a { color: var(--mint); }

/* ============================================================
   Contact form
   ============================================================ */
.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 52px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.form-row-full { grid-column: 1/-1; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 9px;
  color: var(--ink);
}
.form-group label .required {
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: 10px;
  margin-left: 6px;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 1px 6px;
  vertical-align: 1px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(88,185,71,0.16);
}
.form-actions { margin-top: 36px; text-align: center; }
.form-privacy { font-size: 13px; color: var(--ink-2); margin-top: 26px; }
.form-privacy a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.form-result { margin-top: 18px; padding: 14px 18px; border-radius: 8px; font-size: 13.5px; line-height: 1.8; }
.form-result.success { background: var(--mint-soft); color: var(--pine); border: 1px solid var(--mint-line); }
.form-result.error { background: #fdf0ec; color: var(--danger); border: 1px solid #f5cab8; }

.contact-cards { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card { text-align: center; padding: 34px 26px; }
.contact-card .value-icon { margin: 0 auto 16px; }
.contact-card h3 { font-size: 15px; }
.contact-card p a { color: var(--green); font-weight: 600; font-family: var(--font-mono); font-size: 15px; }

/* ============================================================
   Info table（会社概要）
   ============================================================ */
.info-table { border-top: 2px solid var(--pine); }
.info-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  border-bottom: 1px solid var(--line);
}
.info-label {
  padding: 24px 8px 24px 4px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
}
.info-value { padding: 24px 0; font-size: 14px; color: var(--ink-2); line-height: 2; }

/* History timeline */
.timeline { max-width: 720px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--mint-line);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 9px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--apple);
  border: 2.5px solid var(--paper);
  box-shadow: 0 0 0 1px var(--mint-line);
}
.timeline-date {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 6px;
  line-height: 1.4;
}
.timeline-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.timeline-item p { font-size: 13.5px; color: var(--ink-2); line-height: 2; }

/* ============================================================
   Legal pages
   ============================================================ */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content h2 {
  font-size: 20px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.legal-content h3 { font-size: 16px; margin-top: 22px; margin-bottom: 10px; font-weight: 700; }
.legal-content p, .legal-content li { color: var(--ink-2); font-size: 14px; margin-bottom: 12px; line-height: 2.05; }
.legal-content ul, .legal-content ol { padding-left: 24px; }
.legal-meta {
  padding: 18px 24px;
  background: var(--mint-soft);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 44px;
  border-left: 3px solid var(--apple);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--pine-deep);
  color: rgba(255,255,255,0.68);
  padding: 84px 0 30px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  position: relative;
}
.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.footer-cross {
  position: relative;
  width: 30px; height: 30px;
  flex-shrink: 0;
}
.footer-cross::before, .footer-cross::after {
  content: '';
  position: absolute;
  background: var(--apple);
  border-radius: 3px;
}
.footer-cross::before { left: 50%; top: 0; bottom: 0; width: 10px; transform: translateX(-50%); }
.footer-cross::after { top: 50%; left: 0; right: 0; height: 10px; transform: translateY(-50%); }
.footer-brand-name { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.5; }
.footer-brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  opacity: 0.55;
  font-weight: 400;
  margin-top: 3px;
  text-transform: uppercase;
}
.footer-grid p { font-size: 13px; color: rgba(255,255,255,0.52); line-height: 2; }
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--mint);
  margin-bottom: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-grid ul { list-style: none; }
.footer-grid li { padding: 6px 0; font-size: 13px; }
.footer-grid a { color: rgba(255,255,255,0.62); transition: color 0.25s var(--ease); }
.footer-grid a:hover { color: var(--mint); }
.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.04em;
}

/* ============================================================
   Reveal animation
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-animate].animated { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .ecg-path { animation: none; stroke-dashoffset: 0; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  section { padding: 68px 0; }
  .hero { padding: 76px 0 64px; }
  .hero-keys { margin-top: 52px; gap: 18px 28px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat-item:nth-last-child(-n+2) { border-bottom: 0; }
  .pillars, .cards-3, .cards-2, .values, .strengths, .contact-cards { grid-template-columns: 1fr; }
  .strength { padding: 26px 0; }
  .service-block { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .service-block.reverse .sb-visual { order: 0; }
  .feature-list { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process-step:not(:last-child)::after { display: none; }
  .ceo-message-block { grid-template-columns: 1fr; gap: 44px; }
  .ceo-avatar { width: 190px; height: 190px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .info-row { grid-template-columns: 1fr; }
  .info-label { padding-bottom: 0; }
  .info-value { padding-top: 8px; }

  /* Mobile nav
     注: backdrop-filter は fixed 子要素の包含ブロックを作るため、
     モバイルではヘッダーから外す（外さないと全画面メニューがヘッダー内に閉じ込められる） */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .hamburger { display: block; }
  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--pine-deep);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .nav-menu.active { opacity: 1; pointer-events: auto; }
  .nav-menu a { color: rgba(255,255,255,0.85); font-size: 19px; font-weight: 700; padding: 14px 0; }
  .nav-menu a:hover, .nav-menu a.active { color: var(--mint); }
  .nav-menu a.active::after { display: none; }
  .nav-menu .nav-cta { background: var(--apple); color: var(--pine-deep) !important; margin-top: 16px; }
  .brand-sub { display: none; }
}
@media (max-width: 540px) {
  .process { grid-template-columns: 1fr; }
  .ecg-caption { display: none; }
}

/* ============================================================
   Backwards-compat aliases（旧クラス → 新スタイル / 法務ページ用）
   ============================================================ */
:root { --hc-accent-soft: var(--mint-soft); --hc-primary: var(--green); --hc-bg-alt: var(--paper-warm); }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--green);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.card-list { list-style: none; }
.card-list li { padding: 6px 0 6px 22px; position: relative; font-size: 13.5px; color: var(--ink-2); }
.card-list li::before { content: '＋'; position: absolute; left: 0; top: 6px; color: var(--apple); font-weight: 700; font-size: 12px; }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--mint-line);
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.brand-name { font-size: 14.5px; line-height: 1.35; font-weight: 700; }
.brand-name small { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--ink-3); font-weight: 400; letter-spacing: 0.12em; margin-top: 2px; text-transform: uppercase; }
