/* ===== VARIABLES ===== */
:root {
  --ink: #0a0e14;
  --paper: #f7f4ee;
  --paper-warm: #e6e0d2;
  --paper-deep: #dad4c4;
  --brand: #3a7259;
  --brand-deep: #28503e;
  --brand-light: #a8d4be;
  --accent: #a86a47;
  --accent-deep: #7c4a2e;
  --accent-light: #d8a787;
  --on-brand-accent: #f0d8b8;
  --gold: #b89070;
  --muted: #6b6356;
  --grid: rgba(10, 14, 20, 0.06);
  --border: rgba(10, 14, 20, 0.12);
  --error: #c0392b;
  --error-bg: rgba(192, 57, 43, 0.08);
  --success-bg: rgba(74, 138, 108, 0.08);
}

/* テキスト選択色をブランドカラーに */
::selection { background: var(--brand); color: var(--paper); }
::-moz-selection { background: var(--brand); color: var(--paper); }

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  font-weight: 400;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
}
/* 内ページではグリッド背景を非表示にして読みやすさを優先（旧ブラウザ用 fallback クラス併用） */
body:has(.page-layout)::before,
body.has-page-layout::before { display: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 訪問済みリンク（本文エリアのみ、ナビには影響させない） */
.page-main p a:visited,
.privacy-section a:visited { color: var(--brand-deep); }

/* ===== SKIP NAV / FOCUS ===== */
.skip-nav {
  position: absolute;
  left: 0;
  top: -100%;
  background: var(--accent);
  color: var(--paper);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  transition: top .2s;
}
.skip-nav:focus { top: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(247, 244, 238, 0.97);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, transform .35s ease;
}
header.header-hidden { transform: translateY(-100%); }

/* Header hide-on-scroll: keep detached desktop nav in sync */
body.header-hidden-state .gnav {
  transform: translate(-50%, -100%);
}

body.header-hidden-state .gnav.open {
  transform: none !important;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--brand);
  opacity: 0.5;
  z-index: 300;
  transition: width .1s linear;
  pointer-events: none;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  transition: transform .3s;
}
.logo:hover .logo-mark { transform: scale(1.05); }

.logo-text {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  line-height: 1.3;
}
.logo-text .logo-tagline {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 2px;
}

.gnav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.gnav a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--ink);
  padding: 0.3rem 0;
  position: relative;
  transition: color .3s;
}
.gnav a::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--brand);
  transition: width .3s;
}
.gnav a:hover::before,
.gnav a.active::before { width: 100%; }
.gnav a:hover,
.gnav a.active { color: var(--brand-deep); }

.cta-nav {
  background: transparent !important;
  color: var(--brand-deep) !important;
  padding: 0.55rem 1.4rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.15em !important;
  border: 1px solid var(--brand);
  transition: background .25s, color .25s;
}
.cta-nav::before { display: none; }
.cta-nav:hover { background: var(--brand) !important; color: var(--paper) !important; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  padding: 7rem 2.5rem 4rem;
  background: var(--brand);
  color: var(--paper);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 244, 238,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 238,.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-header-watermark {
  position: absolute;
  top: 50%;
  right: -1rem;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(5rem, 12vw, 10rem);
  color: rgba(247, 244, 238, 0.09);
  letter-spacing: 0.05em;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--on-brand-accent);
  letter-spacing: 0.3em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.page-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--on-brand-accent);
}
.page-header h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.breadcrumb {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(247, 244, 238,.8);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.breadcrumb a { color: rgba(247, 244, 238,.85); transition: color .2s; }
.breadcrumb a:hover { color: var(--paper); }
.breadcrumb span { opacity: .4; }

/* ===== PAGE LAYOUT (inner pages) ===== */
.page-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 2.5rem 6rem;
  position: relative;
  z-index: 2;
}

/* Inner nav (company page) */
.inner-nav {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 76px;
  z-index: 90;
  transition: top .35s ease;
}
/* ヘッダー hide 時は inner-nav も上に追従させて隙間を作らない */
body.header-hidden-state .inner-nav { top: 0; }
.inner-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
}
.inner-nav a {
  display: block;
  padding: 14px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.inner-nav a:hover,
.inner-nav a.active {
  color: var(--brand-deep);
  border-bottom-color: var(--brand);
}

/* Page section headings */
.page-main section[id] { scroll-margin-top: 140px; }
section[id] { scroll-margin-top: 110px; }

.page-main h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 3.5rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}
.page-main h2::before {
  content: attr(data-num);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--accent-deep);
  letter-spacing: 0.2em;
  white-space: nowrap;
}
.page-main p { font-size: 0.95rem; line-height: 2; margin-bottom: 1rem; }

/* ===== INFO TABLE ===== */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2rem;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(10, 14, 20, 0.03);
}
.info-table th, .info-table td {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.info-table th {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  width: 30%;
  white-space: nowrap;
  font-weight: 400;
  padding-top: 1.1rem;
}
.info-table tr:first-child th,
.info-table tr:first-child td { border-top: 1px solid var(--border); }

/* ===== TIMELINE ===== */
.timeline { margin-bottom: 1rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.timeline-year {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent-deep);
  letter-spacing: 0.1em;
  padding-top: 0.1rem;
}
.timeline-content { font-size: 0.95rem; line-height: 1.8; }

/* ===== GROUP CARD ===== */
.group-card {
  background: var(--paper);
  padding: 2.5rem;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(10, 14, 20, 0.04);
}
.group-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* ===== HERO ===== */
.hero {
  min-height: 88vh;
  padding: 7.5rem 2.5rem 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}
.hero-desc { margin-left: auto; margin-right: auto; }
.hero-cta-group { justify-content: center; }

/* ヒーロー大きいウォーターマーク */
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(8rem, 22vw, 22rem);
  color: rgba(58, 114, 89, 0.09);
  letter-spacing: 0.08em;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 2; }

/* セクション間誘導 CTA */
.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--ink);
  transition: color .25s, border-color .25s, gap .25s;
}
.section-cta:hover {
  color: var(--brand-deep);
  border-bottom-color: var(--brand-deep);
  gap: 1rem;
}
.section-cta-light {
  color: var(--paper);
  border-bottom-color: rgba(247,244,238,0.65);
}
.section-cta-light:hover {
  color: var(--on-brand-accent);
  border-bottom-color: var(--on-brand-accent);
}
.hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent-deep);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp .8s .2s forwards;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 50px;
  height: 1px;
  background: var(--accent-deep);
}
.hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .8s .4s forwards;
}
.hero h1 .accent-text {
  color: var(--accent);
  display: inline-block;
  background: linear-gradient(transparent 72%, rgba(168,106,71,.32) 72%);
  padding: 0 .15em;
}
.hero-desc {
  font-size: 1rem;
  line-height: 2;
  color: var(--ink);
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp .8s .6s forwards;
}
.hero-cta-group {
  display: flex;
  gap: 2rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp .8s .8s forwards;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION SHARED ===== */
section {
  position: relative;
  z-index: 2;
  padding: 6rem 2.5rem;
}
.section-inner { max-width: 1300px; margin: 0 auto; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: end;
}
.section-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--accent-deep);
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.section-title-en {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.25em;
  margin-top: 0.6rem;
  font-weight: 400;
}
.section-lead {
  font-size: 0.98rem;
  line-height: 2;
  color: var(--ink);
}

/* ===== ABOUT ===== */
.about { background: var(--paper-warm); }
.about-text h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.about-text h3 .highlight {
  background: linear-gradient(transparent 70%, rgba(58,114,89,.22) 70%);
}
.about-text p { font-size: 0.95rem; line-height: 2; margin-bottom: 1.2rem; }

/* ===== BUSINESS ===== */
.business { background: var(--paper); }
.business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.biz-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem;
  background: var(--paper);
  box-shadow: inset 0 0 0 transparent;
  transition: background .4s, box-shadow .3s;
}
.biz-card:hover {
  background: rgba(58,114,89,0.04);
  box-shadow: inset 0 -3px 0 var(--brand);
}
.biz-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent-deep);
  letter-spacing: 0.3em;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.biz-card-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: 1;
}
.biz-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: .4rem;
}
.biz-card .en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
  display: block;
}
.biz-card p { font-size: 0.92rem; line-height: 2; margin-bottom: 1.4rem; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.biz-tag {
  font-size: 0.72rem;
  padding: .25rem .8rem;
  border: 1px solid var(--brand-light);
  letter-spacing: .1em;
  color: var(--muted);
}

/* ===== WORKS ===== */
.works { background: var(--brand); color: var(--paper); }
.works .section-title { color: var(--paper); }
.works .section-lead { color: rgba(247, 244, 238,.95); }
.works .section-num { color: var(--on-brand-accent); }
.works .section-title-en { color: rgba(247, 244, 238,.85); }
.works-list { display: flex; flex-direction: column; }
.work-item {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 1fr;
  gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(247, 244, 238,.12);
  align-items: center;
  transition: transform .3s, background .3s;
}
.work-item:last-child { border-bottom: 1px solid rgba(247, 244, 238,.12); }
.work-item:hover { transform: translateX(8px); background: rgba(247, 244, 238,.025); }
.work-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--on-brand-accent);
  letter-spacing: .2em;
}
.work-category {
  font-size: 0.78rem;
  letter-spacing: .2em;
  color: rgba(247, 244, 238,.95);
}
.work-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
}
.work-subtitle {
  display: block;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(247, 244, 238,.95);
  margin-top: .4rem;
  letter-spacing: .05em;
}
.work-tech {
  text-align: right;
  font-size: 0.78rem;
  color: rgba(247, 244, 238,.95);
  letter-spacing: .1em;
  line-height: 1.8;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

/* ===== STRENGTHS ===== */
.strengths { background: var(--paper-warm); }
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.strength {
  padding-top: 1.8rem;
  position: relative;
}
.strength::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 30%;
  height: 1px;
  background: var(--brand);
}
.strength::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.strength-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.strength h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: .8rem;
  line-height: 1.5;
}
.strength p { font-size: 0.92rem; line-height: 2; }

/* ===== TRUST PANEL（信頼パネル / 編集調を保ちつつ実績を提示） ===== */
.trust-panel {
  background: var(--paper);
  padding: 6rem 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  padding: 0 1.5rem;
  text-align: left;
  border-left: 1px solid var(--border);
}
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}
.trust-num span {
  font-size: 1rem;
  color: var(--accent-deep);
  font-style: italic;
}
.trust-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--accent-deep);
  font-weight: 600;
  letter-spacing: 0.25em;
  margin-bottom: 0.6rem;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}
.trust-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== RECRUIT PROCESS FLOW ===== */
.process-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 1.5rem 0 2.5rem;
}
.process-step {
  flex: 1;
  text-align: center;
  padding: 1.4rem 1rem;
  border: 1px solid var(--border);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.process-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-deep);
  letter-spacing: 0.2em;
}
.process-label {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--muted);
  font-size: 1.2rem;
}

/* ===== ACCESS ===== */
.access { background: var(--paper); }
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.access-info dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  row-gap: 1.5rem;
  column-gap: 2rem;
}
.access-info dt {
  font-size: 0.75rem;
  letter-spacing: .18em;
  color: var(--muted);
  padding-top: .3rem;
  border-top: 1px solid var(--border);
  font-weight: 400;
}
.access-info dd {
  font-size: 0.95rem;
  line-height: 1.8;
  padding-top: .3rem;
  border-top: 1px solid var(--border);
}
.access-info dd a {
  border-bottom: 1px solid var(--brand);
  padding-bottom: 1px;
  transition: color .3s;
}
.access-info dd a:hover { color: var(--brand-deep); }
.map-wrap {
  background: var(--brand);
  overflow: hidden;
  min-height: 360px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--brand);
  color: var(--paper);
  text-align: center;
  padding: 7rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: 'Making Together';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(5rem, 13vw, 16rem);
  color: rgba(247, 244, 238,.025);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: -0.02em;
  pointer-events: none;
}
.cta-section .inner { position: relative; z-index: 2; }
.cta-section h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.cta-section p {
  font-size: 0.95rem;
  line-height: 2;
  color: rgba(247, 244, 238,.92);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--brand);
  color: var(--paper);
  padding: 1rem 2.2rem;
  font-size: 0.85rem;
  letter-spacing: .15em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  transition: background .25s, transform .25s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); color: var(--paper); }
.btn-primary:disabled {
  background: var(--paper-warm);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
  padding: 1rem 2.2rem;
  font-size: 0.85rem;
  letter-spacing: .15em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  transition: background .25s, color .25s, transform .25s;
}
.btn-light:hover { background: var(--brand); color: var(--paper); transform: translateY(-2px); }

.btn-secondary {
  color: var(--ink);
  font-size: 0.88rem;
  letter-spacing: .1em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  position: relative;
  padding-left: 18px;
  transition: all .3s;
}
.btn-secondary::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-deep);
  font-weight: 700;
  transition: transform .25s;
}
.btn-secondary:hover::before { transform: translateX(3px); }
.btn-secondary:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 700px; }
.form-row { margin-bottom: 1.8rem; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: .15em;
  color: var(--ink);
  margin-bottom: .6rem;
  font-weight: 500;
}
.required-badge {
  font-size: 0.68rem;
  letter-spacing: .1em;
  color: var(--accent-deep);
  border: 1px solid var(--accent-light);
  background: transparent;
  padding: 1px 5px;
  margin-left: 8px;
  vertical-align: middle;
}
.optional-badge {
  font-size: 0.68rem;
  letter-spacing: .1em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 1px 5px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: .8rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color .2s;
  outline: none;
  appearance: none;
}
.form-row input:focus,
.form-row textarea:focus {
  border-bottom-color: var(--brand);
  border-bottom-width: 2px;
}
.form-row input:invalid:not(:placeholder-shown),
.form-row textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: var(--error);
}
.form-row textarea { height: 180px; resize: vertical; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
  line-height: 1.8;
}
.form-note a { border-bottom: 1px solid var(--brand); color: var(--ink); }

/* フォーム送信結果メッセージ */
.form-msg {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
  border-left: 3px solid;
}
.form-msg.success {
  background: var(--success-bg);
  color: var(--brand-deep);
  border-left-color: var(--brand);
}
.form-msg.error {
  background: var(--error-bg);
  color: var(--error);
  border-left-color: var(--error);
}

/* 文字数カウンター */
.char-counter {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
}

/* ===== PRIVACY ===== */
.privacy-section { margin-bottom: 2.5rem; }
.privacy-section h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: .8rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.privacy-section p { font-size: 0.92rem; line-height: 2; }

/* ===== RECRUIT ===== */
.recruit-section {
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(10, 14, 20, 0.03);
}
.recruit-section-header {
  background: var(--paper-warm);
  color: var(--ink);
  padding: 1rem 1.5rem 0.9rem;
  font-size: 0.82rem;
  letter-spacing: .25em;
  font-weight: 600;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  text-transform: uppercase;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--border);
}
.recruit-table { width: 100%; border-collapse: collapse; }
.recruit-table th,
.recruit-table td {
  padding: .9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: top;
  line-height: 1.8;
}
.recruit-table th {
  width: 32%;
  font-size: 0.75rem;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 400;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .recruit-table th { white-space: normal; width: 36%; }
}
.recruit-table tr:last-child th,
.recruit-table tr:last-child td { border-bottom: none; }

.want-list { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0 2rem; }
.want-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.95rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
}
.want-item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-deep);
  flex-shrink: 0;
  transform: translateY(-2px);
}
/* ===== FOOTER ===== */
footer {
  background: var(--paper-deep);
  padding: 4rem 2.5rem max(2rem, env(safe-area-inset-bottom));
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--brand);
}
.footer-inner { max-width: 1300px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo-text { font-size: 1rem; }
.footer-brand p {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.9;
}
.footer-brand p a {
  border-bottom: 1px solid var(--brand-deep);
  color: var(--muted);
  padding-bottom: 1px;
  transition: color .2s;
}
.footer-brand p a:hover { color: var(--brand-deep); }
.footer-col-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: .25em;
  color: var(--accent-deep);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a {
  font-size: 0.82rem;
  color: var(--ink);
  transition: color .3s;
  letter-spacing: .05em;
}
.footer-col a:hover { color: var(--brand-deep); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: .1em;
}

/* ===== PAGE TOP ===== */
.page-top {
  position: fixed;
  bottom: max(2rem, env(safe-area-inset-bottom));
  right: max(2rem, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  background: var(--brand);
  color: var(--paper);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, background .25s;
  z-index: 100;
  cursor: pointer;
  padding: 0;
}
.page-top.visible { opacity: 1; pointer-events: auto; }
.page-top:hover { background: var(--brand-deep); }

/* 404 ページ専用 */
.error-section {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 2;
}
.error-inner { text-align: center; max-width: 560px; }
.error-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent-deep);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}
.error-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(6rem, 16vw, 12rem);
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.error-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.error-desc {
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 0.95rem;
  line-height: 2;
}
.error-links {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.error-links a {
  padding: 1.2rem;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: background .25s, color .25s;
}
.error-links a:hover { background: var(--paper-warm); color: var(--brand-deep); }

/* skip-nav の遷移先がヘッダー裏に隠れないように */
#main-content { scroll-margin-top: 100px; }

/* ===== ユーティリティクラス（inline style 集約用） ===== */
.text-muted-small,
.text-meta { font-size: 0.82rem; color: var(--muted); }
.text-muted-small { margin-bottom: 2rem; }
.text-meta { margin-bottom: 1.5rem; }
.text-muted-note { color: var(--muted); }
.text-signature { text-align: right; margin-top: 2rem; font-weight: 500; }
.privacy-meta {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}
/* ハニーポット: ボット検出されにくくするためオフスクリーン配置 */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.formmsg-container { margin-top: 1.2rem; display: none; }
.section-cta-wrap { text-align: center; margin-top: 3rem; }
.group-card-table { margin-top: 1.5rem; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .work-item { grid-template-columns: 60px 1fr 2fr; }
  .work-tech { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 0; }
  .trust-item:nth-child(2n+1) { border-left: none; padding-left: 0; }
}

/* デスクトップ: gnav を viewport 上部右側に固定（header と視覚的に一体化） */
@media (min-width: 969px) {
  .gnav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1300px;
    padding: 0 2.5rem;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 210;
    pointer-events: none;
  }
  .gnav > ul { pointer-events: auto; }
}

/* モバイルメニュー全画面オーバーレイ（全ビューポートで .open 時に有効） */
.gnav.open {
  position: fixed !important;
  inset: 0 !important;
  background: var(--paper) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  isolation: isolate;
  pointer-events: auto !important;
}
.gnav.open ul {
  flex-direction: column !important;
  gap: 1.8rem !important;
  text-align: center !important;
  animation: menuFadeIn .35s ease both;
}
.gnav.open a {
  font-size: 1.2rem !important;
  letter-spacing: .15em !important;
  color: var(--ink) !important;
  font-weight: 600;
  padding: 0.8rem 1.6rem !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gnav.open a.active {
  color: var(--brand-deep) !important;
}
.gnav.open .cta-nav {
  background: var(--brand) !important;
  color: var(--paper) !important;
  padding: .8rem 2rem !important;
}
@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 968px) {
  .header-inner { padding: .9rem 1.5rem; }
  .gnav { display: none; }
  .menu-toggle { display: flex; position: relative; z-index: 10000; }
  .menu-toggle.open span { background: var(--ink); }

  section { padding: 4.5rem 1.5rem; }
  .hero { min-height: auto; padding: 7rem 1.5rem 4rem; }
  .page-header { padding: 7rem 1.5rem 3.5rem; }
  .page-layout { padding: 3.5rem 1.5rem 4rem; }

  .business-grid { grid-template-columns: 1fr; }
  .biz-card { padding: 2rem 1.5rem; }
  .strengths-grid { grid-template-columns: 1fr; gap: 2rem; }
  .access-grid { grid-template-columns: 1fr; gap: 2rem; }
  .work-item { grid-template-columns: 1fr; gap: .4rem; padding: 1.5rem 0; }
  .work-num { display: none; }
  /* モバイルで work-category を eyebrow として表示維持 */
  .work-category {
    color: var(--paper);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    margin-bottom: 0.25rem;
  }
  .timeline-item { grid-template-columns: 90px 1fr; gap: 1rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .8rem; text-align: center; }
  .inner-nav { top: 64px; }
  .inner-nav a { padding: 10px 14px; font-size: 0.75rem; }
  .process-steps { flex-direction: column; }
  .process-arrow { transform: none; width: 100%; padding: 0.6rem 0; font-size: 1.4rem; line-height: 1; }
  .process-arrow::before { content: '\2193'; }
  .process-arrow > * { display: none; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .access-info dl { grid-template-columns: 90px 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero-cta-group { flex-direction: column; align-items: center; gap: 1.2rem; }
  .info-table th { width: 36%; font-size: 0.72rem; }
  .trust-grid { grid-template-columns: 1fr; gap: 2rem; }
  .trust-item { border-left: none !important; padding-left: 0 !important; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-eyebrow, .hero h1, .hero-desc, .hero-cta-group { opacity: 1 !important; animation: none !important; }
  .scroll-progress { display: none; }
}

/* ===== PRINT ===== */
@media print {
  body::before { display: none; }
  header, .page-top, .skip-nav, .inner-nav, .hero-cta-group,
  .cta-section, .cta-nav, .scroll-progress { display: none !important; }
  .hero { min-height: auto; padding: 3rem 2rem; }
  body { background: #fff; color: #000; }
  .page-header { background: #fff !important; color: #000 !important; padding: 2rem; }
  .page-eyebrow, .page-eyebrow::before { color: #555 !important; background: #555 !important; }
  .breadcrumb, .breadcrumb a { color: #000 !important; }
  footer { border-top: 1px solid #ccc; background: #fff !important; color: #000; }
}
