/* ============================================================
   株式会社ツギテ — Corporate template (corp-tsugite)
   作風: freee風。白ベースにブランドブルー1色だけを差す。
   余白で呼吸する。大きなビジョンメッセージが主役。
   構造署名: 継手（組木）モチーフ / ビジョンヒーロー / 大きなライニング数字。
   色はブランドブルーのみ palette 切替対応（--accent / --accent-dark / --accent-soft）。
   ============================================================ */

:root {
  /* ---- ブランドブルー（palette 切替対象。ここだけが色） ---- */
  --accent: #2864f0;
  --accent-dark: #1b3fa0;
  --accent-soft: #eaf0ff;

  /* ---- 無彩色（切替しない。白×グレー×墨で「1色だけ差す」を守る） ---- */
  --ink: #131720;
  --ink-2: #454e5e;
  --ink-3: #7a8397;
  --line: #e7eaf1;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 18px 46px -24px rgba(20, 40, 90, .28);
  --shadow-sm: 0 8px 24px -16px rgba(20, 40, 90, .35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* 数字・英字は必ず可読サンセリフ（ライニング数字）で。装飾フォントは使わない */
.en, .num, .stat-num, .sec-label, .page-header-en, .btn, .nav-list, .footer-copy, .hero-eyebrow {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.jp-head {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

/* ---------- レイアウト ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.sec-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }

.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.sec-label::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.sec-head:not(.left) .sec-label { justify-content: center; }

.sec-title {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.4; letter-spacing: .01em; color: var(--ink);
}
.sec-title em { font-style: normal; color: var(--accent); }
.sec-lead { color: var(--ink-2); font-size: 1.02rem; margin-top: 22px; text-wrap: balance; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap; line-height: 1.2;
}
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -12px rgba(40,100,240,.6); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

/* ---------- ヘッダー（トップ固定・freee風の横並び） ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  height: 74px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo a { display: flex; align-items: baseline; gap: 10px; }
.logo-ja {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700;
  font-size: 1.28rem; letter-spacing: .04em; color: var(--ink);
}
.logo-en { font-size: .66rem; font-weight: 600; letter-spacing: .22em; color: var(--accent); text-transform: uppercase; }
.logo-img { height: 34px; width: auto; }

nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: block; padding: 10px 15px; font-size: .92rem; font-weight: 500;
  color: var(--ink-2); border-radius: 8px; white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.nav-list a:hover { color: var(--accent); }
.nav-list a.active { color: var(--accent); font-weight: 700; }
/* CTAピル。セレクタは必ず .nav-list a.nav-cta（.nav-cta 単独だと詳細度で負けて padding が効かない） */
.nav-list a.nav-cta {
  margin-left: 12px; background: var(--accent); color: #fff; font-weight: 700;
  /* letter-spacing による右余白の偏りを補正（左を右+3px 気味に） */
  padding: 11px 21px 11px 24px; border-radius: 999px; letter-spacing: .04em;
  box-shadow: 0 10px 22px -12px rgba(40,100,240,.6);
}
.nav-list a.nav-cta:hover { background: var(--accent-dark); color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; align-items: center; justify-content: center; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .28s ease, opacity .28s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ヒーロー（ビジョン型） ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbfcff 0%, #fff 55%); }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(56px,8vw,104px) 24px clamp(64px,8vw,110px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,64px); align-items: center;
}
.hero-eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent); }
.hero-title {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 700;
  font-size: clamp(2.1rem, 5.6vw, 3.7rem); line-height: 1.32; letter-spacing: .01em; color: var(--ink);
}
.hero-title .u { color: var(--accent); position: relative; white-space: nowrap; }
.hero-title .u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .22em;
  background: var(--accent-soft); z-index: -1; border-radius: 3px;
}
.hero-lead { color: var(--ink-2); font-size: 1.05rem; margin-top: 26px; max-width: 30em; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero-meta-num { font-family: "Inter", sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--ink); letter-spacing: .01em; }
.hero-meta-num small { font-size: .8rem; font-weight: 700; color: var(--accent); margin-left: 2px; }
.hero-meta-label { font-size: .76rem; color: var(--ink-3); letter-spacing: .04em; }

/* ヒーローのビジュアル（写真＋継手モチーフ） */
.hero-visual { position: relative; }
.hero-photo {
  position: relative; z-index: 2; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 3.05;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-kigumi { position: absolute; z-index: 1; color: var(--accent); }
.hero-kigumi.a { top: -26px; right: -22px; width: 128px; opacity: .9; }
.hero-kigumi.b { bottom: -30px; left: -26px; width: 150px; opacity: .5; }
.hero-badge {
  position: absolute; z-index: 3; left: -18px; bottom: 34px;
  background: #fff; border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); flex: none; }
.hero-badge .t { font-size: .82rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.hero-badge .t small { display: block; font-size: .68rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }

/* 継手モチーフ（帯用の淡いパターン） */
.kigumi-band {
  background-color: var(--accent);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.10) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.10) 50%, rgba(255,255,255,.10) 75%, transparent 75%);
  background-size: 28px 28px;
}

/* ---------- ロゴ帯（信頼の実績ロゴ枠。テキストで代替） ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-inner { max-width: var(--maxw); margin: 0 auto; padding: 26px 24px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust-label { font-size: .8rem; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }
.trust-items { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.trust-item { font-family: "Inter", sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink-3); letter-spacing: .02em; }

/* ---------- できること（サービスカード3つ） ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
/* 汎用アイコンは使わない（安直アイコン禁止ルール）— 大きな番号タイポを主役にする */
.service-num {
  font-family: "Inter", sans-serif; font-weight: 700; font-size: 2.6rem; line-height: 1;
  letter-spacing: .04em; color: var(--accent);
  display: inline-block; margin-bottom: 14px;
  border-bottom: 3px solid var(--accent-soft); padding-bottom: 10px;
}
.service-title { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: 1.28rem; margin: 6px 0 12px; }
.service-desc { color: var(--ink-2); font-size: .95rem; }
.service-more { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; color: var(--accent); }

/* ---------- 数字セクション ---------- */
.stats { }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-card {
  text-align: center; padding: 40px 24px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.section-alt .stat-card { background: #fff; }
.stat-num {
  font-family: "Inter", sans-serif; font-weight: 800; line-height: 1;
  font-size: clamp(2.8rem, 6vw, 4.2rem); color: var(--accent); letter-spacing: -.02em;
}
.stat-num .unit { font-size: .42em; font-weight: 700; margin-left: 4px; color: var(--accent-dark); letter-spacing: 0; }
.stat-label { margin-top: 14px; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.stat-note { margin-top: 4px; font-size: .82rem; color: var(--ink-3); }

/* ---------- 導入事例カード ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-img { aspect-ratio: 16 / 10; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-img img { transform: scale(1.05); }
.case-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.case-tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px;
}
.case-result { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: 1.16rem; margin: 14px 0 8px; line-height: 1.5; }
.case-desc { font-size: .9rem; color: var(--ink-2); margin-bottom: 16px; }
.case-metric { margin-top: auto; display: flex; align-items: baseline; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.case-metric .n { font-family: "Inter", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--accent); }
.case-metric .l { font-size: .8rem; color: var(--ink-3); }

/* ---------- 会社案内帯（写真＋コピー） ---------- */
.about-band { }
.about-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
.about-band-photos { position: relative; }
.about-band-photos .main { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.about-band-photos .main img { width: 100%; height: 100%; object-fit: cover; }
.about-band-photos .sub {
  position: absolute; right: -18px; bottom: -26px; width: 46%; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 5px solid #fff; aspect-ratio: 1/1;
}
.about-band-photos .sub img { width: 100%; height: 100%; object-fit: cover; }
.about-list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.about-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: .98rem; }
.about-list .ck { flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.about-list .ck svg { width: 13px; height: 13px; }

/* ---------- 採用ミニ帯 ---------- */
.recruit { position: relative; overflow: hidden; color: #fff; }
.recruit-bg { position: absolute; inset: 0; z-index: 0; }
.recruit-bg img { width: 100%; height: 100%; object-fit: cover; }
.recruit-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,30,60,.86) 0%, rgba(27,63,160,.7) 55%, rgba(40,100,240,.55) 100%); }
.recruit-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(56px,7vw,88px) 24px; }
.recruit-eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; opacity: .82; margin-bottom: 14px; }
.recruit-title { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: clamp(1.5rem,3.4vw,2.2rem); line-height: 1.45; max-width: 20em; }
.recruit-lead { margin-top: 16px; max-width: 34em; color: rgba(255,255,255,.9); font-size: .98rem; }
.recruit-actions { margin-top: 30px; }

/* ---------- お問い合わせCTA（大） ---------- */
.cta { position: relative; overflow: hidden; }
.cta-inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(60px,8vw,104px) 24px;
  text-align: center; color: #fff;
}
.cta-eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .85; margin-bottom: 16px; }
.cta-title { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: clamp(1.7rem,4vw,2.7rem); line-height: 1.4; }
.cta-lead { margin: 20px auto 0; max-width: 40em; color: rgba(255,255,255,.9); font-size: 1.02rem; }
.cta-actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-tel { margin-top: 26px; font-size: .9rem; color: rgba(255,255,255,.85); }
.cta-tel a { font-family: "Inter", sans-serif; font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: .02em; display: inline-block; margin-left: 8px; }

/* ---------- 下層ヘッダー帯（無地禁止・継手パターン＋大英字） ---------- */
.page-header {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: clamp(70px,10vw,120px) 24px clamp(56px,7vw,88px);
  background: linear-gradient(120deg, var(--accent-dark) 0%, var(--accent) 100%);
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(135deg, rgba(255,255,255,.09) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.09) 75%, transparent 75%);
  background-size: 30px 30px; opacity: .8;
}
.page-header-en {
  position: relative; font-size: .8rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  opacity: .85; margin-bottom: 12px;
}
.page-header-title { position: relative; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: clamp(1.8rem,4.4vw,2.7rem); letter-spacing: .04em; }
.page-header-sub { position: relative; margin-top: 14px; color: rgba(255,255,255,.9); font-size: .98rem; }

/* ---------- パンくず（下層上部） ---------- */
.crumb { border-bottom: 1px solid var(--line); background: #fff; }
.crumb-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; font-size: .78rem; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb-inner a:hover { color: var(--accent); }
.crumb-inner .sep { opacity: .5; }

/* ---------- サービス詳細（service.html） ---------- */
.svc-detail { border-bottom: 1px solid var(--line); }
.svc-detail:last-of-type { border-bottom: none; }
.svc-detail-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px,4vw,56px); align-items: center; }
.svc-detail.flip .svc-detail-media { order: 2; }
.svc-detail-media { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.svc-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail-num { font-family: "Inter", sans-serif; font-weight: 800; font-size: 1rem; color: var(--accent); letter-spacing: .1em; }
.svc-detail-title { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: clamp(1.4rem,2.8vw,1.9rem); margin: 8px 0 14px; }
.svc-detail-desc { color: var(--ink-2); }
.svc-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags span { font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 13px; border-radius: 999px; }

/* 進め方ステップ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 22px 26px;
}
.step-num { font-family: "Inter", sans-serif; font-weight: 800; font-size: .82rem; color: #fff; background: var(--accent); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-title { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.step-desc { font-size: .88rem; color: var(--ink-2); }
.step:not(:last-child)::after {
  content: "→"; position: absolute; top: 42px; right: -13px; color: var(--accent); font-weight: 700; z-index: 2;
  font-family: "Inter", sans-serif;
}

/* 体制図 */
.orgchart { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-node {
  background: #fff; border: 2px solid var(--accent); color: var(--accent-dark); font-weight: 700;
  padding: 14px 30px; border-radius: 12px; text-align: center; font-family: "Zen Kaku Gothic New", sans-serif;
}
.org-node.lead { background: var(--accent); color: #fff; border-color: var(--accent); }
.org-line { width: 2px; height: 26px; background: var(--line); }
.org-row { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.org-row .org-node { border-color: var(--line); color: var(--ink); font-size: .95rem; padding: 12px 20px; }
.org-branch { position: relative; width: 100%; max-width: 620px; height: 22px; }
.org-branch::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: var(--line); }
.org-branch span { position: absolute; top: 0; width: 2px; height: 22px; background: var(--line); }
.org-branch span:nth-child(1){ left: 25%; } .org-branch span:nth-child(2){ left: 50%; } .org-branch span:nth-child(3){ left: 75%; }

/* ---------- 導入事例一覧（works.html） ---------- */
.work-list { display: flex; flex-direction: column; gap: 28px; }
.work-row {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px,3vw,44px); align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.work-row.flip .work-media { order: 2; }
.work-media { aspect-ratio: 4/3; overflow: hidden; height: 100%; }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: clamp(24px,3vw,40px) clamp(24px,3vw,40px) clamp(24px,3vw,40px) 0; }
.work-row.flip .work-body { padding: clamp(24px,3vw,40px) 0 clamp(24px,3vw,40px) clamp(24px,3vw,40px); }
.work-tag { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.work-title { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: clamp(1.2rem,2.4vw,1.55rem); margin-bottom: 18px; line-height: 1.5; }
.work-qa { display: flex; flex-direction: column; gap: 12px; }
.work-qa-item { display: flex; gap: 12px; align-items: flex-start; }
.work-qa-label { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 6px; min-width: 62px; text-align: center; }
.work-qa-item.q .work-qa-label { background: #eef1f6; color: var(--ink-2); }
.work-qa-item.a .work-qa-label { background: var(--accent-soft); color: var(--accent); }
.work-qa-item.r .work-qa-label { background: var(--accent); color: #fff; }
.work-qa-text { font-size: .95rem; color: var(--ink-2); }
.work-qa-item.r .work-qa-text { color: var(--ink); font-weight: 600; }

/* ---------- 会社概要（about.html） ---------- */
.profile-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.profile-table th, .profile-table td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: none; }
.profile-table th { width: 210px; font-weight: 700; color: var(--ink); background: var(--bg-alt); white-space: nowrap; }
.profile-table td { color: var(--ink-2); }

/* 代表メッセージ */
.message-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px,4vw,56px); align-items: center; }
.message-photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3/4; }
.message-photo img { width: 100%; height: 100%; object-fit: cover; }
.message-body .sec-title { margin-bottom: 20px; }
.message-body p { color: var(--ink-2); margin-bottom: 16px; }
.message-sign { margin-top: 22px; display: flex; align-items: baseline; gap: 12px; }
.message-sign .role { font-size: .82rem; color: var(--ink-3); }
.message-sign .name { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: 1.3rem; }
.message-sign .name small { font-family: "Inter", sans-serif; font-weight: 600; font-size: .7rem; letter-spacing: .1em; color: var(--ink-3); margin-left: 8px; }

/* 沿革タイムライン */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -30px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-year { font-family: "Inter", sans-serif; font-weight: 800; font-size: .95rem; color: var(--accent); letter-spacing: .04em; }
.timeline-text { color: var(--ink-2); font-size: .96rem; margin-top: 3px; }

/* オフィス写真帯 */
.office-band { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.office-band .cell { border-radius: 12px; overflow: hidden; aspect-ratio: 3/2; }
.office-band .cell.tall { grid-row: span 2; aspect-ratio: auto; }
.office-band .cell img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- お問い合わせ（contact.html） ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px,4vw,56px); align-items: start; }
.contact-intro { color: var(--ink-2); margin-bottom: 30px; }
.form-group { margin-bottom: 22px; }
.form-label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; margin-bottom: 9px; }
.required { font-size: .64rem; font-weight: 700; color: #fff; background: var(--accent); padding: 3px 8px; border-radius: 5px; letter-spacing: .04em; }
.optional { font-size: .64rem; font-weight: 700; color: var(--ink-3); background: #eef1f6; padding: 3px 8px; border-radius: 5px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-textarea { min-height: 150px; resize: vertical; }
.form-submit {
  width: 100%; padding: 16px; background: var(--accent); color: #fff; border: none; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; letter-spacing: .04em;
  box-shadow: 0 14px 28px -14px rgba(40,100,240,.6); transition: background .18s ease, transform .18s ease;
}
.form-submit:hover { background: var(--accent-dark); transform: translateY(-2px); }
.form-submit:disabled { opacity: .6; cursor: default; transform: none; }

.contact-aside { background: var(--bg-alt); border-radius: var(--radius); padding: 30px 28px; }
.contact-aside .photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 24px; }
.contact-aside .photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-block { margin-bottom: 22px; }
.contact-block:last-child { margin-bottom: 0; }
.contact-block-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.contact-block-text { color: var(--ink-2); font-size: .95rem; }
.contact-block-text a { color: var(--accent); font-weight: 700; }
.contact-tel { font-family: "Inter", sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--ink); letter-spacing: .02em; }
.contact-map { margin-top: 34px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- フッター ---------- */
.footer { background: #0f1420; color: rgba(255,255,255,.7); padding: clamp(52px,6vw,72px) 0 32px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo-ja { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: .04em; }
.footer-logo-en { font-family: "Inter", sans-serif; font-size: .68rem; font-weight: 600; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; margin-top: 4px; }
.footer-tagline { margin-top: 14px; font-size: .88rem; color: rgba(255,255,255,.62); }
.hours-mini { border-collapse: collapse; margin-top: 4px; }
.hours-mini td { padding: 2px 0; font-size: .95rem; color: var(--ink-2); vertical-align: top; }
.hours-mini td:first-child { padding-right: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.footer-info { margin-top: 18px; font-size: .86rem; line-height: 1.9; }
.footer-heading { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: .9rem; color: rgba(255,255,255,.72); transition: color .18s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: var(--maxw); margin: 40px auto 0; padding: 22px 24px 0; border-top: 1px solid rgba(255,255,255,.1); font-family: "Inter", sans-serif; font-size: .76rem; letter-spacing: .04em; color: rgba(255,255,255,.5); }

/* ---------- モバイル固定CTA ---------- */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.mobile-cta-bar .btn { flex: 1; padding: 13px; font-size: .92rem; }

/* ---------- FAQ（アコーディオン） ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink);
}
.faq-mark { position: relative; flex: none; width: 18px; height: 18px; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .28s ease, opacity .28s ease; }
.faq-mark::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-mark::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item.is-open .faq-mark::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-item.is-open .faq-a { max-height: 340px; }
.faq-a-inner { padding: 0 22px 22px; color: var(--ink-2); font-size: .95rem; }

.is-hidden { display: none !important; }

/* ---------- fade-in ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============================================================
   レスポンシブ
   ナビ→ハンバーガー切替は独立ブロック（切替幅だけ動かせるように）。
   ナビが収まらなくなる幅＋余裕を見て 940px で切替（834pxのiPad縦はハンバーガー側＝折れ防止）。
   ============================================================ */
@media (max-width: 940px) {
  .hamburger { display: flex; }
  nav { margin-left: 0; }
  /* パネル自体を .open で開閉（JSがトグル。:has 非依存で全ブラウザ確実） */
  .nav-list {
    position: fixed; left: 0; right: 0; top: 74px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 18px 20px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transform: translateY(-135%); transition: transform .32s ease; pointer-events: none;
  }
  .nav-list.open { transform: translateY(0); pointer-events: auto; }
  .nav-list a { padding: 15px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-list a:last-child { border-bottom: none; }
  .nav-list a.nav-cta { margin: 14px 0 0; padding: 15px; justify-content: center; }
}

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 8px auto 0; width: 100%; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2)::after { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .service-grid, .stat-grid, .case-grid { grid-template-columns: 1fr; }
  .about-band-grid, .message-grid, .contact-grid, .svc-detail-grid, .work-row { grid-template-columns: 1fr; }
  .svc-detail.flip .svc-detail-media, .work-row.flip .work-media { order: 0; }
  .work-body, .work-row.flip .work-body { padding: 26px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .about-band-photos { max-width: 460px; margin: 0 auto 30px; }
  .about-band-photos .sub { right: 8px; }
  .office-band { grid-template-columns: 1fr 1fr; }
  .office-band .cell.tall { grid-row: span 1; aspect-ratio: 3/2; }
  .profile-table th { width: 120px; padding: 14px 16px; }
  .profile-table td { padding: 14px 16px; }
  .message-photo { max-width: 320px; margin: 0 auto 24px; }
  .mobile-cta-bar { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  body { padding-bottom: 68px; }
}

@media (max-width: 440px) {
  /* 狭幅ではロゴ英字を隠し、ハンバーガーの居場所を確保（英字併記だと375pxで押し出され切れる） */
  .logo-en { display: none; }
  .hero-title { font-size: clamp(1.6rem, 7.4vw, 2rem); }
  .hero-badge { left: 0; }
  .hero-meta { gap: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-tel a { display: block; margin: 6px 0 0; }
}
