/* ==========================================================================
   JGA税理士法人 / TOP RENEWAL PROTOTYPE
   現行サイト（https://jga-tax.jp/ : /lcss/hr_style.css, /lcss/hr_index.css）から
   ブランドカラー・ロゴ・写真トーン・ボタン形状を踏襲し、
   タイポグラフィ / グリッド / レスポンシブ / CTA を 2026 年版に更新したもの。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* 現行サイト由来のブランドカラー */
  --c-brand: #2387ef;          /* .lbtn / 現行サイト主要ブルー */
  --c-brand-strong: #1a6fc9;
  --c-brand-deep: #004a8f;     /* .lbtn2 セカンダリボタン */
  --c-navy: #00182f;           /* .jga-footer-left */
  --c-navy-2: #002e59;         /* .jga-footer-right */

  /* テキスト / 罫線 / 背景 */
  --c-ink: #10202f;
  --c-body: #46525e;
  --c-muted: #63707c;      /* 白背景で 5.1:1 */
  --c-line: #d6dde4; /* 区切り線は1色に統一（2026-11） */
  --c-line-strong: #d6dde4;
  --c-soft: #f4f7fa;           /* 現行 #f2f4f7 / #f5f5f5 を整理 */
  --c-white: #ffffff;

  /* タイポグラフィ */
  --f-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", メイリオ, sans-serif;
  --f-en: "Noto Sans JP", "Helvetica Neue", Arial, "Yu Gothic", "YuGothic", "Meiryo", sans-serif;

  /* レイアウト */
  --w-container: 1200px;
  --w-wide: 1400px;
  --header-h: 84px;
  --pad-x: clamp(20px, 5vw, 60px);
  --sec-y: 120px;              /* PC 112〜128 / Tablet(≤1100) 96 / Mobile(≤620) 68 */

  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--f-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--c-body);
  background: var(--c-white);
  overflow-x: hidden;
  font-feature-settings: "palt" 1;
}

body.is-nav-open { overflow: hidden; }

h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.u-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  color: #fff;
  background: var(--c-brand-deep);
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.jga-container {
  width: 100%;
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.jga-container--wide { max-width: var(--w-wide); }

.l-section { padding-block: var(--sec-y); }
.l-section--soft { background: var(--c-soft); }
.l-section--navy { background: var(--c-navy); color: rgba(255, 255, 255, 0.82); }

/* セクション見出し（英語ラベル＋日本語見出し） */
.c-sectionHead { margin-bottom: clamp(40px, 5vw, 72px); }

.c-label {
  display: block;
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--c-brand-strong); /* 12px の小さい文字のため濃いブルーを使用（5.0:1） */
  text-transform: uppercase;
}
.c-label--onDark { color: #7db9f6; }

.c-label::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 14px;
  background: currentColor;
  opacity: 0.55;
}

.c-title {
  margin-top: 22px;
  font-size: 40px;             /* PC 40 / Tablet(≤1100) 32 / Mobile(≤620) 28 */
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--c-ink);
}
.c-title--onDark { color: #fff; }

.c-lead {
  max-width: 46em;
  margin-top: 24px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 2.1;
}

/* セクション見出しの共通仕様：英字ラベル → 日本語タイトル → 1行の説明文。
   セクションごとに個別の font-size / margin は持たせない。
   タイトル 1440px 40 / 1280px 38 / 1024px 34 / 768px 30 / 390px 27（1.442vw + 19.2px） */
.c-sectionHead .c-label { letter-spacing: 0.22em; }
.c-sectionHead .c-title {
  font-size: clamp(27px, calc(1.442vw + 19.2px), 40px);
  line-height: 1.45;
}
/* 「×」はタイトルと同じ書体・色・サイズのまま、前後の空きだけを取る */
.c-title__cross { margin-inline: 0.35em; }
.c-sectionHead .c-lead {
  max-width: 760px;
  margin-top: 26px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--c-body);
}

/* ボタン（現行 .lbtn / .lbtn2 の配色・角丸 3px を踏襲し、サイズと余白を最適化） */
.c-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 64px;
  padding: 16px 56px 16px 32px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: left;
  border-radius: 3px;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease),
              border-color 0.28s var(--ease), transform 0.28s var(--ease),
              box-shadow 0.28s var(--ease);
}
.c-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 26px;
  width: 8px; height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: right 0.28s var(--ease);
}
.c-btn:hover::after,
.c-btn:focus-visible::after { right: 20px; }

.c-btn--primary {
  color: #fff;
  background: var(--c-brand);
  box-shadow: 0 6px 20px rgba(35, 135, 239, 0.22);
}
.c-btn--primary:hover,
.c-btn--primary:focus-visible {
  background: var(--c-brand-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(35, 135, 239, 0.28);
}

.c-btn--secondary {
  color: var(--c-brand-deep);
  background: #fff;
  border: 1px solid var(--c-line-strong);
}
.c-btn--secondary:hover,
.c-btn--secondary:focus-visible {
  color: var(--c-brand-deep);
  border-color: var(--c-brand-deep);
  background: #f3f8fe;
  transform: translateY(-2px);
}

.c-btn--onDark {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.c-btn--onDark:hover,
.c-btn--onDark:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.c-btnRow {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* テキストリンク（現行 More > を踏襲） */
.c-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-brand-deep);
}
.c-more::after {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  transition: width 0.28s var(--ease);
}
.c-more:hover { color: var(--c-brand-strong); }
.c-more:hover::after { width: 34px; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.jga-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  /* 現行サイト同様の白背景。backdrop-filter は position:fixed の子要素
     （モバイルドロワー）の包含ブロックを作ってしまうため使用しない。 */
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.jga-header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 2px 16px rgba(16, 32, 47, 0.06);
}

.jga-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 36px);
  height: var(--header-h);
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  transition: height 0.3s var(--ease);
}
.jga-header.is-scrolled .jga-header__inner { height: 68px; }

.jga-header__logo {
  flex: 0 0 auto;
  display: block;
  width: clamp(178px, 17vw, 224px);
}
.jga-header__logo img { display: block; width: 100%; }

.jga-header__nav { margin-left: auto; }

.jga-header__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 28px);
}
.jga-header__link {
  position: relative;
  display: block;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  white-space: nowrap;
}
.jga-header__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 0; height: 2px;
  background: var(--c-brand);
  transition: width 0.28s var(--ease);
}
.jga-header__link:hover,
.jga-header__link:focus-visible { color: var(--c-brand); }
.jga-header__link:hover::after,
.jga-header__link:focus-visible::after { width: 100%; }

/* サービス：4領域への簡易ドロップダウン（メガメニューにはしない） */
.jga-header__item--sub { position: relative; }
.jga-header__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: inherit;
}
.jga-header__toggle::before {
  content: "";
  order: 2;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), margin-top 0.25s var(--ease);
}
/* サービスのドロップダウン用ボタン：テーマ・ブラウザ既定のボタン装飾を消す */
.jga-header__toggle {
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.jga-header__subnav[hidden] { display: none; }
.jga-header__subnav ul, .jga-header__subnav { list-style: none; margin-bottom: 0; }
.jga-header__toggle[aria-expanded="true"] { color: var(--c-brand); }
.jga-header__toggle[aria-expanded="true"]::before { margin-top: 3px; transform: rotate(-135deg); }

.jga-header__subnav {
  position: absolute;
  top: calc(100% + 10px);
  left: -20px;
  min-width: 200px;
  padding: 10px 0;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(16, 32, 47, 0.06);
}
.jga-header__subnav a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--c-ink);
  white-space: nowrap;
}
.jga-header__subnav a:hover,
.jga-header__subnav a:focus-visible { color: var(--c-brand-deep); background: var(--c-soft); }

.jga-header__utils {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
}

.jga-header__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 11px;          /* メインメニュー(15px)より控えめに */
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}
.jga-header__lang a { color: var(--c-muted); }
.jga-header__lang a:hover { color: var(--c-brand); }
.jga-header__lang [aria-current="true"] { color: var(--c-ink); font-weight: 500; }
.jga-header__lang span[aria-hidden] { color: var(--c-line-strong); }

.jga-header__tel {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  white-space: nowrap;
}
.jga-header__tel small {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--c-muted);
}
.jga-header__tel strong {
  font-family: var(--f-en);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-navy);
}
.jga-header__tel:hover strong { color: var(--c-brand); }

.jga-header__cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--c-brand);
  border-radius: 3px;
  white-space: nowrap;
  transition: background-color 0.28s var(--ease);
}
.jga-header__cta:hover,
.jga-header__cta:focus-visible { background: var(--c-brand-strong); color: #fff; }

/* ハンバーガー */
.l-hamburger {
  display: none;
  flex: 0 0 auto;
  width: 46px; height: 46px;
  margin-left: auto;
  place-items: center;
}
.l-hamburger__icon {
  position: relative;
  display: block;
  width: 24px; height: 14px;
}
.l-hamburger__icon span {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: var(--c-ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.l-hamburger__icon span:nth-child(1) { top: 0; }
.l-hamburger__icon span:nth-child(2) { top: 6px; }
.l-hamburger__icon span:nth-child(3) { top: 12px; }
.l-hamburger[aria-expanded="true"] .l-hamburger__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.l-hamburger[aria-expanded="true"] .l-hamburger__icon span:nth-child(2) { opacity: 0; }
.l-hamburger[aria-expanded="true"] .l-hamburger__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* モバイルメニュー */
.l-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  display: none;
  padding: 8px var(--pad-x) 48px;
  overflow-y: auto;
  background: #fff;
  opacity: 0;
  transform: translateY(-8px);
  /* 閉じている間はクリック判定も消す（透明のまま画面を覆ってタップを吸わないように）。
     visibility は閉じるアニメーションが終わってから hidden にする */
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0.28s;
}
.l-drawer.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0s;
}
/* hidden 属性が付いている間は確実に非表示（下の @media の display:block より優先） */
.l-drawer[hidden] { display: none !important; }

.l-drawer__list { border-top: 1px solid var(--c-line); }
.l-drawer__list a {
  position: relative;
  display: block;
  padding: 20px 30px 20px 2px;
  font-size: 17px;
  font-weight: 500;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.l-drawer__list a::after {
  content: "";
  position: absolute;
  top: 50%; right: 6px;
  width: 7px; height: 7px;
  border-top: 2px solid var(--c-line-strong);
  border-right: 2px solid var(--c-line-strong);
  transform: translateY(-50%) rotate(45deg);
}
.l-drawer__list a[data-cta] { color: var(--c-brand); font-weight: 700; }

.l-drawer__group { border-bottom: 1px solid var(--c-line); }
.l-drawer__groupLabel {
  display: block;
  padding: 20px 2px 6px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--c-ink);
}
.l-drawer__sublist { padding: 0 0 12px 16px; }
.l-drawer__sublist a {
  padding: 10px 30px 10px 2px;
  font-size: 15px;
  border-bottom: 0;
}

.l-drawer__foot { margin-top: 32px; display: grid; gap: 18px; }
.l-drawer__tel {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--f-en);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-navy);
}
.l-drawer__tel small {
  font-family: var(--f-jp);
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   5. SECTION 01 : HERO（写真の縦横比が Hero の高さを決め、その上にコピー）
   -------------------------------------------------------------------------- */
/* Hero 画像（hero_jga_blocks.jpg / 1672×941）は「左＝コピー用の余白／
   中央〜右＝JGAの数字ブロック／机／背景＝オフィスと都市」までを1枚で設計した
   ブランドカット。構図そのものが完成形なのでトリミングしない。

   【重要】Hero の高さを CSS で決めない。
   img を通常フローに置き width:100% / height:auto とすることで、
   Hero の高さが画像の intrinsic ratio（1672:941）から自動で決まる。
   min-height / height:100% / max-height / 100vh 基準を使うと、
   ブラウザ比率と画像比率のズレを object-fit: cover が吸収して
   上下が切り落とされるため、それらは一切使わない。

   3層構造：
     z-index 0 … .p-hero__media（写真＝通常フロー。高さの基準）
     z-index 1 … .p-hero::before（左端だけの薄い白グラデーション＝可読性確保）
     z-index 2 … .p-hero__inner（コピー・CTA＝写真の上に absolute で重ねる） */
.p-hero {
  position: relative;
  margin-top: var(--header-h);
  overflow: hidden;
  background: var(--c-white);
}

/* 写真：通常フローに置き、Hero の高さを決める。
   背景スライドショー（4枚・同じ 1672×941）を重ねるため、高さは従来の画像比率を
   aspect-ratio で保持する（画像の読み込み状況や枚数で高さが変わらない）。 */
.p-hero__media {
  position: relative;
  z-index: 0;
  width: 100%;
  margin: 0;
  aspect-ratio: 1672 / 941;
  background: var(--c-soft);
}

/* スライド：静止画を重ね、opacity だけで静かにクロスフェードする（ズーム・移動なし）。
   次の画像は前面（is-active）で 0→1 に、直前の画像は背面（is-prev）で 1 のまま残し、
   フェード中に背景が透けて白く見えないようにする。 */
.p-hero__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  pointer-events: none; /* 装飾画像。非表示スライドがタップを受けないように */
  transition: opacity 1s ease;
}
.p-hero__slide.is-prev { z-index: 1; opacity: 1; transition: none; }
.p-hero__slide.is-active { z-index: 2; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .p-hero__slide { transition: none; }
}

/* 可読性レイヤー：左端から中央に向かって消える、ごく薄い白のみ。
   43% 付近で 0.1 以下になるため、42% から始まる JGA ブロックは白く抜けない。 */
.p-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.90) 0%,
    rgba(255, 255, 255, 0.68) 20%,
    rgba(255, 255, 255, 0.28) 38%,
    rgba(255, 255, 255, 0.06) 52%,
    rgba(255, 255, 255, 0) 62%);
}

/* コピー：写真の上に重ねる。写真の高さは変えない */
.p-hero__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  /* 以降のセクション（.jga-container）と左端を揃える */
  max-width: var(--w-container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* 上端から Hero 高さの約20%で H1 が始まる。absolute 要素の % padding は Hero の「幅」基準なので
     20% × (941 / 1672) ≒ 11.2% */
  padding: 11.2% var(--pad-x) 0;
}

/* コピーは左側に収め、中央のブロックへ被せない */
.p-hero__body { max-width: 620px; }

/* H1「数字を、／もっと自由に。」：日本のプロフェッショナルファームらしい中太の明朝体。
   濃紺1色、各行を block にして必ず2行・左揃えで組む。
   1440px 以上 72px / 1280px 66px / 1024px 56px（3.846vw + 16.6px） */
.p-hero__title {
  max-width: 600px;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(56px, calc(3.846vw + 16.6px), 72px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: #002b57;
  font-feature-settings: normal;
}
.p-hero__line { display: block; white-space: nowrap; }

/* サブコピー：H1 と同じ明朝体。1440px 24px / 1280px 22px / 1024px 19px（1.2vw + 6.7px） */
.p-hero__sub {
  margin-top: 30px;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(19px, calc(1.2vw + 6.7px), 24px);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: #163a5c;
  font-feature-settings: normal;
}

/* CTA：細いアウトラインのピル型。H1・サブコピーより主張を抑える */
.p-hero__actions { margin-top: 32px; }
.p-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding-inline: 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #002b57;
  background: transparent;
  border: 1px solid #002b57;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease);
}
.p-hero__cta:hover,
.p-hero__cta:focus-visible { background: rgba(0, 43, 87, 0.06); }
.p-hero__arrow {
  position: relative;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.p-hero__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.p-hero__cta:hover .p-hero__arrow,
.p-hero__cta:focus-visible .p-hero__arrow { width: 26px; }

/* --------------------------------------------------------------------------
   6. SECTION 02 : JGA ADVANTAGE（4つの専門領域を完全に同列）
   -------------------------------------------------------------------------- */
/* 4領域に別々のテーマカラーは付けない。番号・見出し・写真・罫線・余白で区別する。
   各カードは 番号 → タイトル → 写真 → 短いコピー → サービス4項目 の同じ構造。 */

.p-advantage__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 32px;
}

.p-advCard {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-line-strong);
}

.p-advCard__head { padding-top: 20px; }
.p-advCard__no {
  display: block;
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--c-brand-strong);
}
.p-advCard__title {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--c-ink);
}
.p-advCard__title span {
  display: block;
  margin-top: 6px;
  font-family: var(--f-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  color: var(--c-muted);
}

/* 写真：4枚の比率・高さ・トーンを揃える（彩度をわずかに落として同系トーンに） */
.p-advCard__figure {
  position: relative;
  margin: 20px 0 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-soft);
}
.p-advCard__figure img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(1.02);
  transition: transform 0.6s var(--ease);
}
@media (hover: hover) {
  .p-advCard:hover .p-advCard__figure img { transform: scale(1.03); }
}

.p-advCard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 20px;
}
.p-advCard__desc {
  padding-bottom: 16px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
@media screen and (min-width: 621px) {
  /* 複数カラム時は説明文2行分を確保して罫線位置を揃える */
  .p-advCard__desc { min-height: calc(14.5px * 1.8 * 2 + 16px); }
}

.p-advCard__list { margin-top: 14px; }
.p-advCard__list li {
  position: relative;
  padding: 5px 0 5px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-body);
}
.p-advCard__list li::before {
  content: "";
  position: absolute;
  top: 14px; left: 0;
  width: 7px; height: 1px;
  background: var(--c-brand);
}
.p-advCard__foot { margin-top: auto; padding-top: 20px; }

/* --------------------------------------------------------------------------
   7. SECTION 03 : JGA SOLUTIONS
   -------------------------------------------------------------------------- */

/* CASE 01 → CASE 02 / 03 */
.p-solutions__list { display: grid; gap: 32px; }

/* CASE：Soft 背景の上に白い枠。影・大きな角丸は使わない */
.p-case {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(35, 135, 239, 0.45);
  border-radius: 2px;
}

.p-case__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--c-line);
}
.p-case__figure img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
@media (hover: hover) {
  .p-case:hover .p-case__figure img { transform: scale(1.03); }
}

/* CASE 番号：写真左上のブルー地ラベル */
.p-case__no {
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
  padding: 9px 16px;
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  color: #fff;
  background: var(--c-brand-strong);
}

/* 順番：組み合わせ → ISSUE →（細い縦線＋小さな矢印）→ SOLUTION。
   文字サイズの差はつけず、SOLUTION は font-weight で強調する */
.p-case__body { padding: 32px; }

/* 組み合わせ：4つの ADVANTAGE のどれを組み合わせたか */
.p-case__tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: var(--c-brand-strong);
}
.p-case__tag b { font-weight: 600; white-space: nowrap; }
.p-case__tag i { font-style: normal; font-weight: 400; letter-spacing: 0; color: var(--c-line-strong); }

.p-case__issue { margin-top: 24px; }

/* ISSUE → SOLUTION：1px × 24px の縦線＋先端の小さな矢印（間隔 約40px） */
.p-case__solution {
  position: relative;
  padding-top: 40px;
}
.p-case__solution::before {
  content: "";
  position: absolute;
  top: 8px; left: 4px;
  width: 1px; height: 24px;
  background: var(--c-line-strong);
}
.p-case__solution::after {
  content: "";
  position: absolute;
  top: 26px; left: 2px;
  width: 5px; height: 5px;
  border-right: 1px solid var(--c-line-strong);
  border-bottom: 1px solid var(--c-line-strong);
  transform: rotate(45deg);
}

.p-case__flowLabel {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--c-muted);
}

.p-case__text,
.p-case__desc {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--c-body);
}
.p-case__text { font-weight: 400; }

.p-case__name {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--c-ink);
}
.p-case__name span { display: inline-block; }
.p-case__desc { margin-top: 6px; font-weight: 500; }

/* CASE 01 : Feature Story（写真 58% / テキスト 42% を1つの横長枠に） */
.p-case--feature {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  align-items: stretch;
}
.p-case--feature .p-case__figure { min-height: clamp(400px, 36vw, 500px); }
.p-case--feature .p-case__figure img { object-position: center 70%; }
.p-case--feature .p-case__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px;
}

/* CASE 02 / 03：上＝写真 / 下＝テキストの2カラム */
.p-solutions__sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.p-case--sub .p-case__figure { aspect-ratio: 3 / 2; }

/* --------------------------------------------------------------------------
   8. SECTION 04 : PROFESSIONALS（人物写真を大きく）
   -------------------------------------------------------------------------- */
.p-pro__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.p-proCard {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.p-proCard__visual { position: relative; }

.p-proCard__photo {
  margin: 0;
  overflow: hidden;
  background: var(--c-soft);
  aspect-ratio: 5 / 4;
}
.p-proCard__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 14%;
}
.p-proCard__body { padding: clamp(20px, 2.2vw, 30px) clamp(20px, 2.2vw, 32px) clamp(22px, 2.4vw, 30px); }
.p-proCard__role {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-brand-deep);
}
.p-proCard__name {
  margin-top: 8px;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-ink);
}
.p-proCard__name span {
  display: block;
  margin-top: 6px;
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--c-muted);
}
.p-proCard__tagsTitle {
  margin-top: 20px;
  padding-top: 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line);
}
.p-proCard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.p-proCard__tags li {
  padding: 6px 13px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--c-navy);
  background: var(--c-soft);
  border-radius: 2px;
}

/* --- 経歴（PC：写真上のオーバーレイ / モバイル：アコーディオン） --- */
.p-proCard__careerToggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 20px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-brand-deep);
  background: #fff;
  border: 1px solid var(--c-line-strong);
  border-radius: 3px;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.p-proCard__careerToggle::after { content: "＋"; font-size: 12px; line-height: 1; }
.p-proCard.is-careerOpen .p-proCard__careerToggle::after { content: "－"; }
.p-proCard__careerToggle:hover,
.p-proCard__careerToggle:focus-visible {
  background: #f3f8fe;
  border-color: var(--c-brand-deep);
}

.p-proCard__career {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 2.4vw, 34px);
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 24, 47, 0.95), rgba(0, 24, 47, 0.88));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
@media (hover: hover) and (min-width: 901px) {
  .p-proCard:hover .p-proCard__career { opacity: 1; visibility: visible; }
}
/* キーボード操作（トグルボタンへの Tab）でも表示される */
.p-proCard:focus-within .p-proCard__career,
.p-proCard.is-careerOpen .p-proCard__career { opacity: 1; visibility: visible; }

.p-proCard__careerLabel {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #7db9f6;
}
.p-proCard__careerList { margin-top: 16px; }
.p-proCard__careerList li {
  position: relative;
  padding: 6px 0 6px 15px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}
.p-proCard__careerList li::before {
  content: "";
  position: absolute;
  top: 15px; left: 0;
  width: 7px; height: 1px;
  background: #7db9f6;
}
.p-proCard__profileLink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: 18px;
  font-family: var(--f-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #a9d1fa;
}
.p-proCard__profileLink::after {
  content: "";
  width: 20px; height: 1px;
  background: currentColor;
  transition: width 0.28s var(--ease);
}
.p-proCard__profileLink:hover { color: #fff; }
.p-proCard__profileLink:hover::after { width: 32px; }

/* --------------------------------------------------------------------------
   9. SECTION 05 : COLUMN（サムネイル枠＋カテゴリー・日付・タイトル・READ MORE）
   -------------------------------------------------------------------------- */
.p-column__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.p-colCard {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 2px;
}
/* カード全体が1つのリンク */
.p-colCard__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* サムネイル：16:9。画像未設定の間は --empty で NO IMAGE を表示 */
.p-colCard__thumb {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2f5;
  border-bottom: 1px solid #e2e7ec;
}
.p-colCard__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-colCard__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-colCard__thumb--empty span {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  color: #8d99a5;
}

/* 本文：READ MORE をカード下端に揃える */
.p-colCard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px;
}
.p-colCard__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-en);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
}
.p-colCard__cat { font-weight: 500; color: var(--c-brand-strong); }
.p-colCard__date { color: var(--c-muted); }
.p-colCard__title {
  flex: 1;
  margin-top: 16px;
  font-size: clamp(15px, 1.25vw, 16.5px);
  font-weight: 500;
  line-height: 1.85;
  color: var(--c-ink);
  transition: color 0.25s var(--ease);
}
.p-colCard__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--c-brand-deep);
}
.p-colCard__more::after {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  transition: width 0.28s var(--ease);
}
.p-colCard__link:hover .p-colCard__title,
.p-colCard__link:focus-visible .p-colCard__title { color: var(--c-brand-deep); }
.p-colCard__link:hover .p-colCard__more::after,
.p-colCard__link:focus-visible .p-colCard__more::after { width: 34px; }

.p-column__foot { margin-top: clamp(32px, 4vw, 52px); }

/* --------------------------------------------------------------------------
   10. SECTION 06 : FIRST CONTACT
   -------------------------------------------------------------------------- */
.p-contact { position: relative; overflow: hidden; }
.p-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 84% 12%, rgba(35, 135, 239, 0.26), transparent 62%),
    radial-gradient(50% 80% at 8% 92%, rgba(0, 74, 143, 0.34), transparent 60%);
}
.p-contact__inner { position: relative; z-index: 1; text-align: center; }
.p-contact__lead { margin-inline: auto; color: rgba(255, 255, 255, 0.8); }
.p-contact__actions { justify-content: center; margin-top: clamp(30px, 3.4vw, 44px); }
.p-contact__sub { margin-top: 26px; }
.p-contact__sub a { color: #a9d1fa; font-size: 14px; letter-spacing: 0.06em; }
.p-contact__sub a:hover { color: #fff; }

.p-contact__tel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: clamp(30px, 3.4vw, 44px);
  padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.p-contact__tel small { font-size: 12px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); }
.p-contact__tel strong {
  font-family: var(--f-en);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.jga-footer {
  padding-block: clamp(52px, 6vw, 84px) 28px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--c-navy);
  font-size: 14px;
}
.jga-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(32px, 4vw, 72px);
  padding-bottom: clamp(32px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.jga-footer__logo { display: block; width: 190px; }
.jga-footer__address { margin-top: 24px; font-style: normal; line-height: 1.95; }
.jga-footer__tel {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--f-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
}
.jga-footer__tel:hover { color: #7db9f6; }
.jga-footer__group {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.jga-footer__group a { display: inline-block; transition: opacity 0.25s var(--ease); }
.jga-footer__group a:hover { opacity: 0.78; }
.jga-footer__group img { display: block; width: 190px; height: auto; }
.jga-footer__address--group { margin-top: 14px; }

.jga-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
}
.jga-footer__nav a { color: rgba(255, 255, 255, 0.8); }
.jga-footer__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.jga-footer__meta { margin-top: clamp(28px, 3vw, 40px); }
.jga-footer__partnersTitle,
.jga-footer__snsTitle {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}
/* Recommended：ブランドガイドライン順守（縦横比維持・色変更なし・白地＋十分な余白）。
   PC・SPとも5つを横1列に固定し、幅に合わせてタイルごと縮小する */
.jga-footer__partners {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 730px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jga-footer__partners li { flex: 1 1 0; min-width: 0; margin: 0; }
.jga-footer__partners a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 138 / 76;
  padding: 4px 8%;
  background: #fff;
  border-radius: 2px;
  transition: opacity 0.25s var(--ease);
}
.jga-footer__partners a:hover { opacity: 0.78; }
.jga-footer__partners img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* 仮置きのアイコンSVG（Claude・ChatGPT）は余白込みの画像ではないため、周囲の余白を確保する。
   公式素材に差し替えた際は見え方を確認し、不要ならこの行を削除 */
.jga-footer__partners img[src$=".svg"] { width: 66%; height: auto; max-height: 44%; }

.jga-footer__sns { display: flex; gap: 14px; margin-top: 24px; }
.jga-footer__sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.jga-footer__sns a:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.jga-footer__sns img { width: 15px; }

.jga-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.jga-footer__bottom a:hover { color: #fff; }

.p-pageTop {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--c-navy-2);
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.p-pageTop.is-visible { opacity: 0.92; visibility: visible; transform: none; }
.p-pageTop:hover { opacity: 1; background: var(--c-brand-deep); }
.p-pageTop::before {
  content: "";
  width: 9px; height: 9px;
  margin-top: 4px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   12. Motion（控えめなフェードイン）
   -------------------------------------------------------------------------- */
.js-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-reveal.is-inview { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-reveal { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1280px) {
  .jga-header__list { gap: 15px; }
  .jga-header__inner { gap: 14px; }
  .jga-header__link { font-size: 14px; }
  .jga-header__tel strong { font-size: 17px; }
}

/* Hero：横幅が狭くなるとコピーとブロックが近づくため、コピー幅を絞る */
@media screen and (max-width: 1200px) {
  .p-hero__body { max-width: 540px; }
}

/* Hero：1023px 以下では写真の高さが縮んでブロックがコピーの位置まで上がってくるため、
   重ねるのをやめて「写真 → コピー」の縦積みに切り替える。
   （コピーを H1＋サブ＋テキストCTA に絞ったため、1024px までは重ねたまま収まる）
   写真はここでも width:100% / height:auto のままなので全体が見える。 */
@media screen and (max-width: 1023px) {
  .p-hero::before { display: none; }
  .p-hero__inner {
    position: static;
    inset: auto;
    max-width: var(--w-container);
    padding: clamp(34px, 5vw, 56px) var(--pad-x);
  }
  .p-hero__body { max-width: 100%; }
  /* H1 768px 48px / 390px 39px（2.38vw + 29.7px）、サブ 768px 18px / 390px 16px */
  .p-hero__title { font-size: clamp(39px, calc(2.38vw + 29.7px), 54px); }
  .p-hero__sub { margin-top: 26px; font-size: clamp(16px, calc(0.53vw + 13.9px), 19px); }
}

/* タブレット横〜：グローバルナビをドロワーへ。CTA は残す */
@media screen and (max-width: 1100px) {
  :root { --sec-y: 96px; }

  .jga-header__nav { display: none; }
  .jga-header__utils { margin-left: auto; }
  .jga-header__lang { display: none; }
  .l-hamburger { display: grid; margin-left: 4px; }
  .l-drawer { display: block; }

  .c-title { font-size: 32px; }

  /* ADVANTAGE：2列 × 2段 */
  .p-advantage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }

  .p-case--feature .p-case__body { padding: 40px; }
}


@media screen and (max-width: 900px) {
  :root { --header-h: 68px; }

  .jga-header__tel { display: none; }

  /* CASE 01：写真 → 本文の縦積み / CASE 02・03：1列 */
  .p-case--feature { grid-template-columns: 1fr; }
  .p-case--feature .p-case__figure { min-height: 0; aspect-ratio: 16 / 9; }
  .p-case--feature .p-case__body { padding: 32px; }
  .p-solutions__sub { grid-template-columns: 1fr; }

  .p-column__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .p-pro__grid { grid-template-columns: 1fr; }
  .p-proCard__photo { aspect-ratio: 16 / 9; }
  .p-proCard__photo img { object-position: center 12%; }

  /* hover が無い端末では、ボタン開閉のアコーディオンとして表示する */
  .p-proCard__career {
    position: static;
    display: none;
    padding: clamp(20px, 4vw, 28px);
    opacity: 1;
    visibility: visible;
    background: var(--c-navy);
  }
  .p-proCard:focus-within .p-proCard__career { display: none; }
  .p-proCard.is-careerOpen .p-proCard__career,
  .p-proCard.is-careerOpen:focus-within .p-proCard__career { display: flex; }

  .jga-footer__top { grid-template-columns: 1fr; }
  .jga-footer__nav { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 620px) {
  :root { --sec-y: 68px; }

  body { font-size: 15px; }

  .jga-header__logo { width: 150px; }
  .jga-header__cta { min-height: 40px; padding: 0 14px; font-size: 13px; }

  /* Mobile Hero：画像 → コピーの縦積み。左右 22px、H1 39px / サブ 16px */
  .p-hero__inner { padding: 36px 22px 8px; }
  .p-hero__sub { margin-top: 23px; }
  .p-hero__actions { margin-top: 26px; }
  .p-hero__cta { min-height: 52px; padding-inline: 26px; font-size: 14px; }

  .c-title { font-size: 28px; }

  .c-sectionHead .c-lead { margin-top: 20px; font-size: 14px; }

  .p-advantage__grid { grid-template-columns: 1fr; gap: 56px; }
  .p-solutions__list,
  .p-solutions__sub { gap: 24px; }
  .p-case__body,
  .p-case--feature .p-case__body { padding: 24px; }
  .p-case__text,
  .p-case__desc { font-size: 14px; }

  .p-column__grid { grid-template-columns: 1fr; gap: 20px; }
  .p-colCard__body { padding: 24px; }

  .c-btn { width: 100%; min-height: 60px; padding: 14px 48px 14px 22px; font-size: 15px; }
  .c-btnRow { gap: 12px; }

  .p-case--sub .p-case__figure { aspect-ratio: 3 / 2; }

  .p-proCard__photo { aspect-ratio: 4 / 3; }

  .jga-footer__nav { grid-template-columns: 1fr; }
  .jga-footer__partners { gap: 6px; }
  .jga-footer__partners a { padding: 3px 6%; }

  .p-pageTop { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media screen and (max-width: 359px) {
  .jga-header__cta { display: none; }
}

/* --------------------------------------------------------------------------
   14. Utility : PC のみ改行（モバイルでは自然折り返し）
   -------------------------------------------------------------------------- */
@media screen and (max-width: 620px) {
  .u-brPc { display: none; }
}


/* --------------------------------------------------------------------------
   no-JS フォールバック（子テーマで追加）
   .js-reveal は既定で opacity:0 のため、JSが無効・または途中でエラーになると
   ページ本文が一切表示されなくなる。<html> に .js が付かない場合は常に表示する。
   -------------------------------------------------------------------------- */
html:not(.js) .js-reveal { opacity: 1 !important; transform: none !important; }


/* ==========================================================================
   SWELL構造の復元（コラム一覧・記事ページ）
   ========================================================================== */
/* 下層ページ：固定ヘッダーの高さ分だけ下げる */
#body_wrap.jga-sub { padding-top: var(--header-h); }
.jga-sub .p-breadcrumb { margin: 0; }
.jga-sub .l-content { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(56px, 6vw, 96px); }

/* ログイン時：固定ヘッダー・ドロワーを管理バーの下へ */
.admin-bar .jga-header { top: 32px; }
.admin-bar .l-drawer { top: calc(var(--header-h) + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .jga-header { top: 46px; }
  .admin-bar .l-drawer { top: calc(var(--header-h) + 46px); }
}


/* ==========================================================================
   Hero（1023px以下）：PCと同様にキャッチを写真の上に重ねる
   写真の下半分に黒の半透明グラデーションを敷き、白文字で可読性を確保。
   PC（1024px以上）の表示は変更しない。
   ========================================================================== */
@media screen and (max-width: 1023px) {
  .p-hero__media {
    aspect-ratio: auto;
    height: clamp(520px, 138vw, 760px);
  }
  .p-hero::before {
    display: block;
    top: auto;
    height: 62%;
    background: linear-gradient(to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.55) 45%,
      rgba(0, 0, 0, 0) 100%);
  }
  .p-hero__inner {
    position: absolute;
    inset: 0;
    justify-content: flex-end;
    padding: 0 var(--pad-x) clamp(32px, 7vw, 56px);
  }
  .p-hero__title {
    font-size: clamp(34px, calc(4.2vw + 17.6px), 50px);
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
  }
  .p-hero__sub {
    margin-top: clamp(14px, 3vw, 22px);
    font-size: clamp(14px, calc(0.8vw + 10.9px), 18px);
    color: rgba(255, 255, 255, 0.92);
  }
  .p-hero__actions { margin-top: clamp(18px, 4vw, 28px); }
  .p-hero__cta { color: #fff; border-color: rgba(255, 255, 255, 0.9); }
  .p-hero__cta:hover,
  .p-hero__cta:focus-visible { background: rgba(255, 255, 255, 0.14); }
}
@media screen and (max-width: 620px) {
  .p-hero__inner { padding: 0 22px 32px; }
}


/* ==========================================================================
   CASE 画像：写真を枠いっぱいに絶対配置（Safari等で % 高さが解決されず
   CASE 01 の画像が高さ0になる問題への対策）。SPでは3件とも 3:2 に統一。
   ========================================================================== */
.p-case__figure img {
  position: absolute;
  inset: 0;
}
@media screen and (max-width: 900px) {
  .p-case--feature .p-case__figure { min-height: 0; aspect-ratio: 3 / 2; }
}

/* 代表者「経歴を見る」：JGAについてページと同じく、カード内に詳細経歴を開く（2026-11 JGA指摘） */
.p-pro .p-pro__grid { align-items: start; }
.p-abPro__full {
  display: none;
  margin-top: 20px;
  padding-top: 18px;
  font-size: 14.5px;
  line-height: 1.95;
  border-top: 1px solid var(--c-line);
  word-break: normal;
  overflow-wrap: break-word;
}
.p-proCard.is-careerOpen .p-abPro__full { display: block; }
@media screen and (min-width: 901px) {
  .p-pro .p-proCard:focus-within .p-proCard__career,
  .p-pro .p-proCard.is-careerOpen .p-proCard__career { opacity: 0; visibility: hidden; }
}
@media (hover: hover) and (min-width: 901px) {
  .p-pro .p-proCard:hover .p-proCard__career { opacity: 1; visibility: visible; }
}

/* スマホ・タブレット：CASE の写真は絶対配置をやめ、通常の流れで表示する（iPhone Safari で CASE 01 が消える対策）（2026-11） */
@media screen and (max-width: 900px) {
  .p-case__figure { min-height: 0 !important; aspect-ratio: auto !important; height: auto; }
  .p-case__figure img { position: static; inset: auto; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
}

/* 改行位置の調整：この単位の途中では折り返さない（iPhone Safari でも有効） */
.u-ib { display: inline-block; }
