/* ==========================================================================
   hunches.co.jp リニューアル — 共通コンポーネント
   spec/components.md, spec/pages.md, spec/tokens.css に準拠
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--sage-strong); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.c2-main { flex: 1; }

/* --- レイアウトユーティリティ ------------------------------------------- */
.c2-section { box-sizing: border-box; padding: var(--space-12) var(--space-10); }
.c2-section--sub { padding: var(--space-11) var(--space-10); }
.c2-section--band { background: var(--canvas-band); }
.c2-section--tint { background: var(--sage-tint); position: relative; z-index: 0; overflow: hidden; }
.c2-inner { max-width: var(--content-max); margin: 0 auto; }
/* 全幅背景を持つ帯（--band / --tint）以外のセクションは、内容を content-max に収めて中央寄せ。
   これで 1280px 超の広い画面でも全ページのセクション幅が揃う（.c2-inner を使っていない直書きセクション対策）。 */
.c2-section:not(.c2-section--band):not(.c2-section--tint) {
  max-width: calc(var(--content-max) + var(--space-10) * 2);
  margin-inline: auto;
}

/* --- ヘッダー ------------------------------------------------------------ */
.c2-header {
  padding: 20px var(--space-10);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--canvas);
  position: sticky;
  top: 0;
  z-index: 100;
}
.c2-header__logo { display: inline-flex; align-items: center; text-decoration: none; }
.c2-header__logo svg { display: block; width: 132px; height: 34px; }
.c2-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.c2-nav__link {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.c2-nav__link:hover { color: var(--sage-strong); }
.c2-nav__link.is-current { color: var(--sage); border-bottom-color: var(--sage); }
.c2-nav__toggle { display: none; }
.c2-mobile-menu { display: none; }

/* --- ボタン ---------------------------------------------------------------*/
.c2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
  white-space: nowrap;
}
.c2-btn--primary-sm { height: 44px; padding: 0 28px; background: var(--clay); color: #ffffff; }
.c2-btn--primary-sm:hover { background: #8d4a2f; color: #fff; }
.c2-btn--primary-lg { height: 52px; padding: 0 32px; background: var(--clay); color: #ffffff; }
.c2-btn--primary-lg:hover { background: #8d4a2f; color: #fff; }
/* 色付きCVボタン：ほんのり浮かせるドロップシャドウ */
.c2-btn--primary-sm, .c2-btn--primary-lg { box-shadow: 0 3px 10px rgba(139, 74, 47, 0.20); }
.c2-btn--primary-sm:hover, .c2-btn--primary-lg:hover { box-shadow: 0 5px 14px rgba(139, 74, 47, 0.26); }
.c2-btn--secondary { height: 48px; padding: 0 28px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.c2-btn--secondary:hover { background: var(--canvas-band); color: var(--ink); }
.c2-btn--on-sage { height: 56px; padding: 0 40px; background: #ffffff; color: var(--sage-strong); }
.c2-btn--on-sage:hover { background: var(--on-sage-subtle); color: var(--sage-strong); }
.c2-btn--submit { height: 56px; width: 100%; background: var(--sage); color: #ffffff; }
.c2-btn--submit:hover { background: var(--sage-strong); }

/* --- テキストリンク --------------------------------------------------------*/
.c2-textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sage);
  text-decoration: none;
}
.c2-textlink:hover { color: var(--sage-strong); }
.c2-textlink span { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sage-line); }
.c2-textlink svg { flex-shrink: 0; }

/* --- セクションラベル ------------------------------------------------------*/
.t-section-label { display: block; margin: 0 0 12px; }
.t-section-label--on-sage { color: var(--on-sage-subtle) !important; }

/* --- サービスカード --------------------------------------------------------*/
.c2-service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.c2-service-card {
  box-sizing: border-box;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.c2-service-card__logo { height: 36px; display: flex; align-items: center; }
.c2-service-card__logo img { height: 30px; width: auto; }
.c2-service-card__logo--text { font-size: 24px; font-weight: 700; color: var(--ink); }
.c2-service-card__catch { font-size: 18px; line-height: 1.6; font-weight: 700; color: var(--ink); margin: 10px 0 0; }
.c2-service-card__desc { font-size: 14px; line-height: 1.9; color: var(--ink-muted); margin: 0; }

/* --- 制作実績カード --------------------------------------------------------*/
.c2-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.c2-work-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.c2-work-card .thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-sunken);
  margin-bottom: 10px; /* 画像↔テキスト群は 20px、テキスト群内は 10px（デザイン準拠の階層） */
}
.c2-work-card .thumb img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform var(--duration-normal) var(--ease); }
.c2-work-card .thumb--portrait img { aspect-ratio: 4/5; }
a.c2-work-card:hover .thumb img, .c2-work-card .thumb:hover img { transform: scale(1.04); }
.c2-work-card__tag { align-self: flex-start; padding: 5px 10px; border: 1px solid #b2d1ad; border-radius: 4px; font-size: 12px; line-height: 1.6; color: #2f6528; margin: 0; }
.c2-work-card__title { font-size: 17px; line-height: 1.6; font-weight: 700; color: var(--ink); margin: 0; }
.c2-work-card__desc { font-size: 13px; line-height: 1.8; color: var(--ink-muted); margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .c2-work-card .thumb img { transition: none; }
  a.c2-work-card:hover .thumb img, .c2-work-card .thumb:hover img { transform: none; }
}

/* --- 受託・支援実績カード --------------------------------------------------*/
.c2-engagement-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  gap: 48px;
}
.c2-engagement-card__left { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.c2-engagement-card__area { font-size: 24px; line-height: 1.4; font-weight: 700; color: var(--sage-strong); margin: 0; }
.c2-engagement-card__tag { display: inline-flex; padding: 5px 12px; border-radius: 4px; background: var(--sage-tint); color: var(--sage-strong); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; width: fit-content; }
.c2-engagement-card__note { font-size: 15px; line-height: 1.75; font-weight: 500; color: var(--ink-muted); margin: 0; }
.c2-engagement-card__right { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.c2-engagement-card__col-label { font-size: 12px; color: var(--ink-subtle); margin: 0 0 8px; }
.c2-engagement-card__col-body { font-size: 13px; line-height: 1.8; color: var(--ink); margin: 0; }
.c2-engagement-card__col--result { padding-left: 24px; border-left: 1px solid var(--line); }
.c2-engagement-card__col--result .c2-engagement-card__col-label { color: var(--clay); }

/* --- 課題→事業→状態の表 ----------------------------------------------------*/
.c2-route-panel { padding: 44px 48px 24px; border-radius: var(--radius-xl); background: var(--sage-tint); }
.c2-route-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.c2-route-table col.c2-col-1 { width: 238px; }
.c2-route-table col.c2-col-2 { width: 116px; }
.c2-route-table col.c2-col-3 { width: 344px; }
.c2-route-table col.c2-col-4 { width: 116px; }
.c2-route-table col.c2-col-5 { width: 242px; }
.c2-route-table th { font-size: 17px; font-weight: 700; color: var(--ink); text-align: left; padding: 0 0 18px; border-bottom: 1px solid var(--sage-line); }
.c2-route-table td { padding: 20px 0; vertical-align: middle; }
.c2-route-table td.c2-route-issue { font-size: 16px; line-height: 1.7; color: var(--ink); padding-right: 16px; }
.c2-route-table td.c2-route-arrow { padding: 20px 30px; text-align: center; }
.c2-route-pill { width: 100%; padding: 13px 20px; border-radius: var(--radius-pill); background: var(--surface); font-size: 15px; font-weight: 700; color: var(--sage-strong); text-align: center; box-sizing: border-box; }
.c2-route-table td.c2-route-state { font-size: 16px; line-height: 1.7; font-weight: 700; color: var(--sage-strong); padding-left: 16px; }

/* --- CTA面 -----------------------------------------------------------------*/
.c2-cta {
  box-sizing: border-box;
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  background: var(--sage);
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #ffffff;
}
.c2-cta__heading { font-size: 32px; font-weight: 700; color: #ffffff; margin: 0; }
.c2-cta__lead { font-size: 15px; line-height: 1.9; color: var(--on-sage-subtle); margin: 0; }

/* --- フッター ---------------------------------------------------------------*/
.c2-footer { padding: var(--space-10); display: flex; flex-direction: column; gap: 48px; background: var(--canvas-paper); margin-top: auto; }
/* flex縦並びの中では .c2-inner の margin:0 auto が幅を縮めてしまうため、明示的に全幅にしてセクションと揃える */
.c2-footer > .c2-inner { width: 100%; }
.c2-footer__top { display: flex; gap: 64px; }
.c2-footer__brand { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.c2-footer__brand svg { width: 160px; height: 41px; }
.c2-footer__company { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; }
.c2-footer__tagline { font-size: 13px; color: var(--ink-muted); margin: 0; }
.c2-footer__cols { flex: 1; display: flex; gap: 48px; }
.c2-footer__col { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.c2-footer__col-label { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--sage-strong); margin: 0; }
.c2-footer__col a { font-size: 13px; color: var(--ink); text-decoration: none; }
.c2-footer__col a:hover { color: var(--sage-strong); }
.c2-footer__col span { font-size: 13px; color: var(--ink); }
.c2-footer__bottom { padding-top: 32px; border-top: 1px solid var(--sage-line); }
.c2-footer__copyright { font-size: 12px; color: var(--sage-strong); margin: 0; }

/* --- フォーム部品 -----------------------------------------------------------*/
.c2-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.c2-field:last-of-type { margin-bottom: 0; }
.c2-label { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); }
.c2-label__required { color: var(--clay); font-weight: 500; margin-left: 4px; }
.c2-input, .c2-select, .c2-textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 15px;
  color: var(--ink);
}
.c2-input, .c2-select { height: 52px; }
.c2-textarea { height: 168px; padding: 18px; resize: vertical; }
.c2-input:focus, .c2-select:focus, .c2-textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.c2-select-wrap { position: relative; }
.c2-select { appearance: none; -webkit-appearance: none; padding: 0 52px 0 18px; }
.c2-select-wrap svg { position: absolute; right: 18px; bottom: 18px; pointer-events: none; color: var(--ink-subtle); }
.c2-form-note { font-size: 12px; color: var(--ink-subtle); margin: 20px 0 20px; }

/* --- 背景装飾（等高線パターン） ----------------------------------------------*/
.c2-decor { position: absolute; z-index: -1; pointer-events: none; max-width: none; }
/* ヒーロー〜コンセプト領域の等高線は、左上・右下それぞれをコーナー固定にして、
   どの画面幅でも常に両隅へ表示されるようにする（1枚の固定画像だと広幅で右下が外れるため2枚に分割）。 */
.c2-decor--hero-tl { width: 760px; height: auto; top: 280px; left: -210px; opacity: 0.11; }
.c2-decor--hero-br { width: 540px; height: auto; right: -150px; bottom: -130px; opacity: 0.08; }
.c2-decor--band { width: 760px; height: 680px; opacity: 0.045; left: -240px; bottom: -150px; }
.c2-decor--tint { width: 760px; height: 680px; opacity: 0.095; right: -300px; bottom: -230px; }
.c2-decor--sage { width: 760px; height: 680px; opacity: 0.075; right: -190px; top: -170px; }

/* --- ヒーロー（トップのみ） --------------------------------------------------*/
.c2-hero-wrap { position: relative; z-index: 0; overflow: hidden; }
.c2-hero-outer { box-sizing: border-box; padding: 32px var(--space-10) 48px; }
.c2-hero-panel { position: relative; max-width: var(--content-max); margin: 0 auto; height: 508px; border-radius: var(--radius-xl); overflow: hidden; background: var(--sage-tint); }
.c2-hero-panel__bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* FVヒーロー背景アニメーション（motion.md 準拠）: 読み込み時に一度だけ、稜線6枚を時間差でフェードアップ。
   ループ・スクロール連動なし。見出し/リード/ボタンは動かさない（背景のみ）。 */
@keyframes hz-soft {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hz-soft { animation: hz-soft 2200ms cubic-bezier(0.4, 0, 0.12, 1) both; }
.hz-d1 { animation-delay:    0ms; }
.hz-d2 { animation-delay:  550ms; }
.hz-d3 { animation-delay: 1100ms; }
.hz-d4 { animation-delay: 1650ms; }
.hz-d5 { animation-delay: 2200ms; }
/* FVのテキスト：山が出そろったあとに続けてフェードアップ */
.c2-hero-panel__title { animation: hz-soft 1300ms cubic-bezier(0.4, 0, 0.12, 1) both; animation-delay: 2400ms; }
.c2-hero-panel__lead  { animation: hz-soft 1300ms cubic-bezier(0.4, 0, 0.12, 1) both; animation-delay: 2800ms; }
@media (prefers-reduced-motion: reduce) {
  .hz-soft, .c2-hero-panel__title, .c2-hero-panel__lead { animation: none; }
}
.c2-hero-panel__content { position: relative; box-sizing: border-box; padding: 126px var(--space-10); display: flex; flex-direction: column; gap: 24px; max-width: 700px; }
.c2-hero-panel__title { margin: 0; font-size: 44px; line-height: 1.3; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }
.c2-hero-panel__lead { margin: 0; font-size: 15px; color: var(--ink-muted); }
.c2-hero-panel__actions { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.c2-hero-panel__secondary {
  position: absolute; right: 36px; bottom: 30px;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.72);
  color: #ffffff; font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none;
}
.c2-hero-panel__secondary:hover { color: #ffffff; background: rgba(255,255,255,0.12); }

/* --- コンセプト（トップのみ） ------------------------------------------------*/
.c2-concept { text-align: center; }
.c2-concept__label { display: flex; justify-content: center; }
.c2-concept__heading { font-size: 44px; line-height: 1.3; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); margin: 12px 0 0; }
.c2-concept__lead { max-width: 640px; margin: 20px auto 0; font-size: 15px; line-height: 1.9; color: var(--ink-muted); }
.c2-concept__items { display: flex; justify-content: center; align-items: stretch; gap: 0; margin-top: 56px; }
.c2-concept__item { flex: 1 1 0; max-width: 260px; padding: 0 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.c2-concept__item + .c2-concept__item { border-left: 1px solid #d9e5d6; }
.c2-concept__item-num { order: -1; font-size: 22px; font-weight: 700; color: var(--sage); letter-spacing: 0.04em; margin-bottom: 2px; }
.c2-concept__item-name { font-size: 17px; font-weight: 700; color: var(--ink); margin: 4px 0 0; }
.c2-concept__item-desc { font-size: 13px; color: var(--ink-muted); margin: 0; }
.c2-concept__footer { margin-top: 56px; font-size: 15px; color: var(--ink-muted); }

/* --- 会社概要の表 ----------------------------------------------------------*/
.c2-info-table { width: 100%; border-collapse: collapse; }
.c2-info-table th, .c2-info-table td { text-align: left; padding: 16px 32px; font-size: 15px; line-height: 1.8; border-bottom: 1px solid var(--line); }
.c2-info-table th { width: 220px; font-weight: 500; color: var(--ink-subtle); }
.c2-info-table td { color: var(--ink); }
.c2-info-table tr:first-child th, .c2-info-table tr:first-child td { padding-top: 0; }
.c2-info-table tr:last-child th, .c2-info-table tr:last-child td { border-bottom: none; }

/* --- ページ見出し（下層共通） ------------------------------------------------*/
.c2-page-head { text-align: left; }
.c2-page-head__heading { font-size: 44px; line-height: 1.3; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); margin: 12px 0 0; }
.c2-page-head__lead { max-width: 980px; margin: 20px 0 0; font-size: 15px; line-height: 1.9; color: var(--ink-muted); }

/* --- 事業内容ページ：サービスカード（縦並び・詳細版） ------------------------*/
.c2-service-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: stretch; }
.c2-service-card-lg {
  box-sizing: border-box;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.c2-service-card-lg__left { width: 100%; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.c2-service-card-lg__logo { display: flex; align-items: center; height: 36px; margin: 0; }
.c2-service-card-lg__logo img { display: block; width: auto; }
.c2-service-card-lg__logo--text { font-size: 24px; line-height: 1.5; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }
.c2-service-card-lg__catch { font-size: 18px; line-height: 1.6; font-weight: 700; letter-spacing: 0.01em; color: var(--ink); margin: 6px 0 0; }
.c2-service-card-lg__sub { font-size: 13px; line-height: 1.8; color: var(--ink-subtle); margin: 0; }
.c2-service-card-lg__right { flex-grow: 1; display: flex; flex-direction: column; gap: 24px; }
.c2-service-card-lg__desc { font-size: 15px; line-height: 1.9; color: var(--ink-muted); margin: 0; }
.c2-service-card-lg__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.c2-service-card-lg__price { font-size: 13px; line-height: 1.8; color: var(--ink-subtle); margin: 0; }
.c2-service-card-lg__link { align-self: flex-start; padding-top: 8px; }

/* --- 小さなタグ／ピル（サービスカード内の対応範囲など） -----------------------*/
.c2-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--sage-tint);
  color: var(--sage-strong);
  font-size: 12px;
  font-weight: 500;
}

/* --- ミッション・ビジョンカード（会社概要ページのみ） ------------------------*/
.c2-value-cards { display: flex; gap: 32px; align-items: stretch; }
.c2-value-card {
  flex: 1 1 0;
  box-sizing: border-box;
  padding: 48px 48px 200px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.c2-value-card__label { font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: 3.6px; color: var(--ink-muted); }
.c2-value-card__heading { font-size: 24px; line-height: 1.5; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); margin: 0; }
.c2-value-card__illustration { position: absolute; left: 48px; bottom: 28px; width: 464px; height: auto; pointer-events: none; }

/* --- 行動指針カード（会社概要ページのみ） -------------------------------------*/
.c2-principle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.c2-principle-card {
  box-sizing: border-box;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.c2-principle-card__icon { display: inline-flex; color: var(--sage); }
.c2-principle-card__name { font-size: 20px; line-height: 1.55; font-weight: 700; color: var(--ink); margin: 0; }
.c2-principle-card__desc { font-size: 13px; line-height: 1.8; color: var(--ink-muted); margin: 0; }

/* --- 相談するページ：見出しとフォームの2カラム ---------------------------------*/
.c2-contact-layout { display: flex; gap: 64px; align-items: flex-start; margin-top: var(--space-11); }
.c2-contact-aside { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; gap: 32px; }
.c2-contact-card {
  box-sizing: border-box;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.c2-contact-card__heading { font-size: 17px; line-height: 1.6; font-weight: 700; color: var(--ink); margin: 0; }
.c2-contact-card__list { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.9; color: var(--ink-muted); }
.c2-contact-note { box-sizing: border-box; padding: 24px 32px; border-radius: var(--radius-lg); background: var(--surface-sunken); font-size: 13px; line-height: 1.8; color: var(--ink-muted); margin: 0; }
.c2-contact-form {
  flex-grow: 1;
  box-sizing: border-box;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

/* --- レスポンシブ ------------------------------------------------------------*/
@media (max-width: 1279px) {
  .c2-header, .c2-section, .c2-section--sub, .c2-hero-outer { padding-left: 40px; padding-right: 40px; }
  .c2-footer { padding-left: 40px; padding-right: 40px; }
  .c2-hero-panel { height: auto; min-height: 460px; }
  .c2-hero-panel__content { padding: 72px 40px; max-width: 100%; }
  .c2-concept__items { flex-wrap: wrap; }
  .c2-engagement-card { flex-direction: column; gap: 24px; }
  .c2-engagement-card__left { width: 100%; }
  .c2-service-card-lg { flex-direction: column; gap: 24px; }
  .c2-service-card-lg__left { width: 100%; }
  .c2-principle-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Works: デスクトップ3カラム → タブレット2カラム(≤1024px) → スマホ1カラム(≤767px) */
@media (max-width: 1024px) {
  .c2-work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .c2-service-grid { grid-template-columns: 1fr; }
  .c2-service-cards-grid { grid-template-columns: 1fr; }
  .c2-footer__top { flex-direction: column; gap: 32px; }
  .c2-footer__cols { flex-direction: column; gap: 24px; }
  .c2-value-cards { flex-direction: column; }
  .c2-contact-layout { flex-direction: column; }
  .c2-contact-aside { width: 100%; }
}

@media (max-width: 767px) {
  .c2-header, .c2-section, .c2-section--sub, .c2-hero-outer, .c2-footer { padding-left: 20px; padding-right: 20px; }
  .c2-nav { gap: 0; }
  .c2-nav__link { display: none; }
  .c2-nav .c2-btn--primary-sm { display: none; } /* お問い合わせはメニュー内へ */
  /* ハンバーガー */
  .c2-nav__toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0; margin-left: auto; background: none; border: none; cursor: pointer; }
  .c2-nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
  .c2-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .c2-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .c2-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .c2-mobile-menu:not([hidden]) { display: flex; flex-direction: column; position: fixed; top: 80px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--line); box-shadow: 0 10px 26px rgba(30,36,32,0.08); padding: 6px 20px 14px; z-index: 99; }
  .c2-mobile-menu a { padding: 15px 4px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .c2-mobile-menu a:last-child { border-bottom: none; }
  .c2-mobile-menu__cta { color: var(--sage-strong); font-weight: 700; }
  .c2-hero-panel__content { padding: 44px 24px; gap: 18px; }
  .c2-hero-panel { min-height: 400px; }
  .c2-hero-panel__title, .c2-page-head__heading, .c2-concept__heading { font-size: 32px; }
  .t-section-label { font-size: 24px; }
  .c2-work-grid { grid-template-columns: 1fr; }
  /* コンセプト 2カラム */
  .c2-concept__items { flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 0; }
  .c2-concept__item { flex: 0 0 50%; max-width: 50%; padding: 24px 16px; }
  .c2-concept__item + .c2-concept__item { border-left: none; }
  .c2-concept__item:nth-child(even) { border-left: 1px solid #d9e5d6; }
  .c2-concept__item:nth-child(n+3) { border-top: 1px solid #d9e5d6; }
  /* 代表セクションのスマホ対応 */
  .c2-rep { flex-direction: column; gap: 32px !important; }
  .c2-rep > div:first-child { width: 100% !important; }
  .c2-rep > div:first-child img { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; }
  .c2-rep > img { width: 200px !important; height: 200px !important; }
  /* CTA 中余白を詰める */
  .c2-cta { padding: 32px 24px; }
  .c2-principle-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .c2-principle-card { padding: 20px 16px; }
  .c2-principle-card__name { font-size: 17px; }
  .c2-value-card { padding: 32px 24px; flex: none; }
  .c2-value-card__illustration { position: static; width: 100%; max-width: 240px; margin: 20px auto 0; left: auto; bottom: auto; display: block; }
  /* ルート表：PCと同じ横並びの表のまま、モバイル幅に収める（#1） */
  .c2-route-panel { padding: 16px; }
  .c2-route-table col.c2-col-1 { width: 27% !important; }
  .c2-route-table col.c2-col-2 { width: 9% !important; }
  .c2-route-table col.c2-col-3 { width: 28% !important; }
  .c2-route-table col.c2-col-4 { width: 9% !important; }
  .c2-route-table col.c2-col-5 { width: 27% !important; }
  .c2-route-table th { font-size: 11px; padding-bottom: 10px; }
  .c2-route-table td { padding: 14px 0; }
  .c2-route-table td.c2-route-issue { font-size: 12px; line-height: 1.5; padding-right: 2px; }
  .c2-route-table td.c2-route-state { font-size: 12px; line-height: 1.5; padding-left: 2px; }
  .c2-route-table td.c2-route-arrow { padding: 14px 0; }
  .c2-route-table td.c2-route-arrow svg { width: 16px; height: auto; }
  .c2-route-pill { padding: 8px 4px; font-size: 12px; }
  /* サービスカードの内側余白を詰める（#1） */
  .c2-service-card-lg { padding: 32px 24px; gap: 20px; }
  /* インライン padding:0 var(--space-10) のセクションを端に寄せる（#3 など） */
  .c2-main .c2-section[style*="var(--space-10)"] { padding-left: 20px !important; padding-right: 20px !important; }
  /* セクション上下の余白を詰める（PC値 88/72px は広すぎるため） */
  .c2-section { padding-top: 48px; padding-bottom: 48px; }
  .c2-section--sub { padding-top: 40px; padding-bottom: 32px; }
  .c2-main .c2-section[style*="var(--space-11)"] { padding-bottom: 48px !important; }
  /* セクション見出し（インライン 32px）をモバイルで小さく */
  .c2-main .c2-section h2[style*="font-size:32px"] { font-size: 24px !important; line-height: 1.45 !important; }
  /* 会社概要テーブル：見出し列を狭く、本文を広く（#4） */
  .c2-info-table th, .c2-info-table td { padding: 13px 0; vertical-align: top; }
  .c2-info-table th { width: 92px; padding-right: 16px; }
  /* お問い合わせ：フォームを先頭に出し、上の余白を詰めて離脱を防ぐ（#3） */
  .c2-contact-layout { margin-top: 24px; gap: 28px; }
  .c2-contact-form { order: -1; padding: 32px 24px; }
  .c2-contact-aside { order: 0; }
  /* 実績カード：課題／支援／結果を縦積みにして読みやすく（#4） */
  .c2-engagement-card { padding: 32px 24px; }
  .c2-engagement-card__right { grid-template-columns: 1fr; gap: 20px; }
  .c2-engagement-card__col--result { padding-left: 0; border-left: none; padding-top: 20px; border-top: 1px solid var(--line); }
}

/* --- 自社サービスカード（実績ページ） ----------------------------------------*/
.c2-app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.c2-app-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.c2-app-card__band { height: 150px; background: var(--canvas-paper); display: flex; align-items: center; justify-content: center; }
.c2-app-card__body { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.c2-app-card__category { font-size: 13px; color: var(--ink-subtle); margin: 0; }
.c2-app-card__catch { font-size: 20px; line-height: 1.6; font-weight: 700; color: var(--ink); margin: 0; }
.c2-app-card__desc { font-size: 14px; line-height: 1.9; color: var(--ink-muted); margin: 0; }

@media (max-width: 1279px) {
  .c2-app-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .c2-app-grid { grid-template-columns: 1fr; }
  .c2-app-card__body { padding: 32px 24px; }
}
