/* ============================================================
   HiQEST Corporate Site — company.css (v2.0)
   会社概要・代表メッセージページ専用（style.css / services.css の後に読み込む）
   "Local Tech Partner" Design — 明るい背景中心・黄色はシグナル
   ============================================================ */

/* ---------- ヒーロー透かし文字の差し替え ---------- */
.svc-hero.hero--company::after { content: "信"; }
.svc-hero.hero--message::after { content: "志"; }

/* ---------- ページ内アンカーナビ ---------- */
.anchor-nav {
  position: sticky; top: 72px; z-index: 40;
  background: rgba(255, 253, 247, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.anchor-nav ul {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px; font-weight: 600;
  color: var(--text-sub);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.anchor-nav a:hover {
  color: var(--olive);
  background: var(--yellow-pale);
  border-color: rgba(196, 176, 74, .35);
}
@media (max-width: 768px) {
  .anchor-nav { top: 64px; }
}

/* ---------- 私たちについて ---------- */
.co-about { padding: var(--section-py) 0; background: var(--bg); }
.co-about-inner { max-width: 820px; margin: 0 auto; }
.co-about-copy {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.65;
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: 28px;
}
.co-about-body p { color: var(--text-sub); font-size: 15.5px; line-height: 2.05; }
.co-about-body p + p { margin-top: 1.2em; }

/* ---------- Mission / Vision（明るい柔らかな強調バンド） ---------- */
.mv-band {
  position: relative;
  padding: var(--section-py) 0;
  background:
    radial-gradient(ellipse 900px 540px at 50% 0%, rgba(244, 234, 181, .55), transparent 72%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  overflow: hidden;
}
.mv-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(41, 50, 45, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 50, 45, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 78%);
  pointer-events: none;
}
.mv-band .container { position: relative; z-index: 1; max-width: 900px; }
.mv-item { text-align: center; }
.mv-item + .mv-item {
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: clamp(44px, 6vw, 64px);
  border-top: 1px solid var(--border);
}
.mv-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-latin);
  font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 18px;
}
.mv-label::before, .mv-label::after {
  content: ""; width: 26px; height: 3px;
  background: var(--yellow);
  border-radius: 3px;
}
.mv-item h3 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: 18px;
}
.mv-item p {
  color: var(--text-sub);
  font-size: clamp(14px, 1.6vw, 15.5px);
  line-height: 2;
  max-width: 680px;
  margin: 0 auto;
}
.mv-item p + p { margin-top: 1em; }

/* 代表メッセージページのMission再掲でも同スタイルを使用 */
.mv-band.on-dark .section-label { color: var(--olive); }

/* ---------- Values ---------- */
.co-values { padding: var(--section-py) 0; background: var(--bg-soft); }
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 30px);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sage); }
.value-card .v-num {
  font-family: var(--ff-latin);
  font-size: 30px; font-weight: 700; line-height: 1;
  color: var(--yellow);
  display: block; margin-bottom: 14px;
}
.value-card h3 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(16.5px, 1.8vw, 18.5px);
  color: var(--text);
  margin-bottom: 8px; line-height: 1.5;
}
.value-card p { font-size: 13.8px; color: var(--text-sub); line-height: 1.85; }

/* ---------- 技術力・専門性 ---------- */
.co-expertise { padding: var(--section-py) 0; background: var(--bg); }
.expertise-copy {
  max-width: 820px;
  margin: 0 auto clamp(40px, 5vw, 56px);
}
.expertise-copy .lead {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 27px);
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 22px;
}
.expertise-copy p { color: var(--text-sub); font-size: 15px; line-height: 2; }
.expertise-copy p + p { margin-top: 1em; }

.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
  margin-bottom: clamp(40px, 5vw, 56px);
}
.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 36px) clamp(20px, 2.4vw, 28px);
  text-align: center;
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.stat-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sage); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--olive-dk);
  background: var(--yellow-pale);
  border: 1px solid rgba(196, 176, 74, .4);
  padding: 3px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.stat-num {
  font-family: var(--ff-latin);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.stat-num::after {
  content: "";
  display: block;
  width: 34px; height: 5px;
  border-radius: 3px;
  background: var(--yellow);
  margin: 10px auto 0;
}
.stat-num .ja {
  font-family: var(--ff-head);
  font-size: .5em;
  font-weight: 700;
}
.stat-cap {
  font-size: 15px; font-weight: 700; color: var(--text);
  line-height: 1.6;
  margin: 10px 0;
}
.stat-card p { font-size: 13px; color: var(--text-sub); line-height: 1.8; }

/* ---------- 安心してご相談いただくために ---------- */
.co-assure { padding: var(--section-py) 0; background: var(--bg-soft); }
.assure-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; }
.assure-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 2.4vw, 28px);
  padding: clamp(22px, 2.8vw, 30px) 0;
  border-bottom: 1px solid var(--border);
}
.assure-item:first-child { padding-top: 0; }
.assure-item:last-child { border-bottom: none; padding-bottom: 0; }
.assure-item .as-num {
  font-family: var(--ff-latin);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sage);
  min-width: 56px;
}
.assure-item .as-num::after {
  content: "";
  display: block;
  width: 24px; height: 4px;
  border-radius: 3px;
  background: var(--yellow);
  margin-top: 6px;
}
.assure-item h3 { font-family: var(--ff-head); font-weight: 700; font-size: clamp(16.5px, 1.8vw, 18.5px); color: var(--text); margin-bottom: 6px; line-height: 1.5; }
.assure-item p { font-size: 14.3px; color: var(--text-sub); line-height: 1.85; }

/* ---------- 代表者プロフィール ---------- */
.co-profile { padding: var(--section-py) 0; background: var(--bg); }
.profile-inner {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3vw, 36px);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: sticky; top: 132px;
}
.profile-photo {
  width: 148px; height: 148px; margin: 0 auto;
  border-radius: 50%;
  background: var(--olive);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--ff-head); font-size: 44px; font-weight: 700;
  box-shadow: 0 10px 26px rgba(74, 88, 69, .3);
  position: relative;
  overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-ring {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1.5px dashed var(--sage);
  pointer-events: none;
}
.profile-card .pf-wrap { position: relative; width: 148px; margin: 0 auto 20px; }
.profile-card .pf-wrap .profile-photo { margin: 0; }
.profile-position { font-size: 12.5px; color: var(--text-muted); letter-spacing: .1em; }
.profile-name { font-family: var(--ff-head); font-size: 25px; color: var(--text); font-weight: 700; margin: 4px 0 14px; }
.qual-head {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--text-muted);
  margin: 18px 0 10px;
  text-align: left;
}
.qual-list { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.qual-list li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13px; color: var(--text-sub); line-height: 1.6;
}
.qual-list .ck {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  margin-top: 2px;
  display: grid; place-items: center; color: #fff;
  background: var(--olive);
}
.profile-body .profile-lead {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(19px, 2.5vw, 24px);
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 22px;
}
.profile-body p { color: var(--text-sub); font-size: 15px; line-height: 2; }
.profile-body p + p { margin-top: 1.1em; }
.profile-domains { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.profile-note { margin-top: 18px; font-size: 12.5px; color: var(--text-muted); }
.profile-cta { margin-top: 26px; }

/* ---------- 代表メッセージ導入バンド（濃色CTA扱い） ---------- */
.msg-intro {
  position: relative;
  padding: var(--section-py) 0;
  background: linear-gradient(160deg, var(--olive-deep) 0%, var(--olive-dk) 100%);
  color: #fff;
  overflow: hidden;
}
.msg-intro::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 75% at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 30%, #000 20%, transparent 80%);
  pointer-events: none;
}
.msg-intro .container { position: relative; z-index: 1; max-width: 860px; text-align: center; }
.msg-intro h2 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.6;
  letter-spacing: .02em;
  margin: 14px 0 24px;
}
.msg-intro .msg-intro-body { color: var(--on-dark-sub); font-size: clamp(14px, 1.6vw, 15.5px); line-height: 2; text-align: left; max-width: 720px; margin: 0 auto; }
.msg-intro .msg-intro-body p + p { margin-top: 1em; }
.msg-intro .svc-hero-actions { justify-content: center; }

/* ---------- 会社情報・沿革 ---------- */
.co-info { padding: var(--section-py) 0; background: var(--bg-soft); }
.info-notes {
  max-width: 860px;
  margin: clamp(20px, 3vw, 28px) auto 0;
  display: flex; flex-direction: column; gap: 10px;
}
.info-note {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.8px; color: var(--text-muted); line-height: 1.8;
}
.info-note svg { color: var(--olive); margin-top: 4px; }

.history-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 24px);
  max-width: 940px;
  margin: clamp(40px, 5vw, 56px) auto 0;
}
.history-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 30px);
}
.history-block h3 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 17.5px; color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.history-block h3 svg { color: var(--olive); }
.hist-rows { display: flex; flex-direction: column; }
.hist-row {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 10px 0;
  font-size: 14px;
}
.hist-row .y {
  font-family: var(--ff-latin);
  font-weight: 700;
  color: var(--olive);
  letter-spacing: .03em;
}
.hist-row .t { color: var(--text-sub); line-height: 1.7; }
.hist-list { display: flex; flex-direction: column; gap: 9px; }
.hist-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.8px; color: var(--text-sub); line-height: 1.75;
}
.hist-list li::before {
  content: "";
  position: absolute; left: 2px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage);
}
.hist-note { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); }

/* ---------- 事業内容への導線（3カード） ---------- */
.co-services { padding: var(--section-py) 0; background: var(--bg); }
a.method-card { display: flex; flex-direction: column; color: var(--text); }
.card-more {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.8px; font-weight: 700; color: var(--link);
}
.card-more svg { transition: transform .22s var(--ease); }
a.method-card:hover .card-more svg { transform: translateX(4px); }

/* ============================================================
   代表メッセージページ
   ============================================================ */
.message-sec { padding: var(--section-py) 0; background: var(--bg-soft); }
.message-body { max-width: 760px; margin: 0 auto; }
.message-body > p {
  color: var(--text-sub);
  font-size: 15.5px;
  line-height: 2.15;
}
.message-body > p + p { margin-top: 1.4em; }
.message-body .em {
  color: var(--text); font-weight: 700;
  background: linear-gradient(transparent 62%, rgba(231, 211, 107, .55) 62%);
}
.pull-quote,
.message-body > p.pull-quote {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(19px, 2.5vw, 24px);
  line-height: 1.75;
  letter-spacing: .02em;
  color: var(--text);
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--yellow);
  margin: clamp(36px, 5vw, 48px) 0;
}
.signature {
  margin-top: clamp(40px, 5vw, 52px);
  text-align: right;
}
.signature .sig-co { font-size: 13px; color: var(--text-muted); letter-spacing: .06em; }
.signature .sig-name {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  margin-top: 4px;
}
.signature .sig-name small { font-size: 13px; font-weight: 500; color: var(--text-sub); margin-right: 10px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .profile-inner { grid-template-columns: 1fr; }
  .profile-card { position: static; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: 1fr; }
  .hist-row { grid-template-columns: 96px 1fr; }
}


/* ============================================================
   代表メッセージ — 写真×本文（トップの代表セクションと同じ構図）
   ============================================================ */
.msg-layout {
  display: grid;
  grid-template-columns: minmax(0, .38fr) minmax(0, .62fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.msg-layout .message-body { margin: 0; max-width: none; }
.msg-figure { position: sticky; top: 104px; }
.msg-figure__wrap { position: relative; }
.msg-figure__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--olive-dk);
}
/* v6.4: 代表メッセージは services.css を読まないため、写真の箱（.ph）の指定をここに持つ */
.msg-figure__photo .ph,
.msg-photo .ph {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.msg-photo .ph { filter: saturate(.72) contrast(1.02) brightness(.99); }
.msg-figure__photo .ph { filter: saturate(.55) contrast(1.03) brightness(.88); }
/* 代表の写真はイメージ写真用の色落としをかけない */
.msg-figure__photo--portrait .ph { filter: none; background-position: center top; }
.msg-figure__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(41, 50, 45, .5), rgba(41, 50, 45, .06));
}
.msg-figure__frame {
  position: absolute; inset: -10px;
  border: 1.5px solid var(--sage);
  border-radius: calc(var(--radius-xl) + 10px);
  z-index: -1;
}
.msg-figure__cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  color: #fff;
}
.msg-figure__cap em {
  display: block; font-style: normal;
  font-size: 11px; letter-spacing: .1em;
  color: rgba(231, 211, 107, .9);
}
.msg-figure__cap b { font-family: var(--ff-head); font-size: 18px; font-weight: 700; }
.msg-quote-note { margin-top: 14px; font-size: 12px; color: var(--text-muted); }
.msg-photo {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: clamp(32px, 5vw, 44px) 0;
}
@media (max-width: 1024px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-figure { position: static; max-width: 340px; }
}
@media (max-width: 560px) {
  .msg-figure__frame { display: none; }
}

/* ===== v4.1: Values「自社の鍛え方」サブブロック ===== */
.values-sub { margin: clamp(40px, 5vw, 56px) 0 clamp(18px, 2.4vw, 26px); text-align: center; }
.values-sub h3 {
  font-family: var(--font-head, 'Zen Kaku Gothic New', sans-serif);
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; color: var(--text);
  display: inline-block; position: relative; padding-bottom: 10px;
}
.values-sub h3::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 44px; height: 4px; border-radius: 2px; background: var(--yellow);
}
.values-sub p { margin-top: 10px; font-size: 13.8px; color: var(--text-sub); }
.value-card--forge { border-top: 3px solid var(--yellow); }
.value-card--forge:hover { border-color: var(--sage); border-top-color: var(--yellow); }

/* ===== v4.1: Expertise「今、動かしているもの」 ===== */
.exp-now {
  margin: clamp(28px, 3.4vw, 44px) 0;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3.4vw, 40px);
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--yellow); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(20px, 3vw, 40px); flex-wrap: wrap;
}
.exp-now__copy { flex: 1 1 460px; min-width: 0; }
.exp-now__label {
  display: inline-block; font-family: 'Inter', sans-serif; font-size: 11.5px;
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--olive); margin-bottom: 8px;
}
.exp-now__copy h3 {
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 700;
  font-size: clamp(18px, 2vw, 22px); color: var(--text); margin-bottom: 10px;
}
.exp-now__copy p { font-size: 13.8px; color: var(--text-sub); line-height: 1.9; }
.exp-now .btn { flex-shrink: 0; }
@media (max-width: 700px) {
  .exp-now { flex-direction: column; align-items: flex-start; }
}

/* v5.0: 4事業カード */
.co-services .method-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .co-services .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .co-services .method-grid { grid-template-columns: 1fr; } }
