
/* ============================================================
   会社情報ページ：代表者写真の表示
============================================================ */

.avatar-placeholder {
  background: url("https://jg-connecting.jp/wp-content/uploads/2026/06/yamauchi-kentaro.png") center/cover no-repeat !important;
  width: 180px !important;
  height: 180px !important;
  border-radius: 50% !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
  position: relative;
}

/* プレースホルダー内のアイコンを非表示 */
.avatar-placeholder i,
.avatar-placeholder svg,
.avatar-placeholder::before,
.avatar-placeholder::after {
  display: none !important;
}

/* 写真の周りに薄いオレンジのリング装飾を追加 */
.avatar-placeholder {
  border: 4px solid #fff !important;
  outline: 2px solid #F96D00;
  outline-offset: 4px;
}

/* ============================================================
 * ロゴ画像（v1.1.0）
 *   ヘッダー: 黒文字版／フッター: 白文字版
 * ============================================================ */
.logo .logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.footer-brand .logo-img {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

/* ============================================================
 * 第2段階の部品（v1.2.0） 接頭辞 j2-
 *   アイコンは親テーマが読み込む Font Awesome 6.4.0 を使う。
 *   表は使わず、すべてカードの並びで組む（スマートフォンで縦積み）。
 * ============================================================ */
.j2-lead {
  max-width: 720px;
  margin: -2rem auto 3rem;
  text-align: center;
  color: #555;
  font-size: 1rem;
}
.j2-note {
  text-align: center;
  margin-top: 2.5rem;
  font-weight: 700;
  color: var(--black);
}
.j2-more { text-align: center; margin-top: 2.5rem; }

/* アイコン枠 */
.j2-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 14px;
  background: rgba(249,109,0,0.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.j2-icon--dark { background: var(--black); color: var(--white); }
.j2-icon--sm { width: 40px; height: 40px; flex-basis: 40px; border-radius: 10px; font-size: 1rem; }

/* カードの並び */
.j2-grid { display: grid; gap: 1.25rem; }
.j2-grid--2 { grid-template-columns: repeat(2, 1fr); }
.j2-grid--3 { grid-template-columns: repeat(3, 1fr); }
.j2-grid--4 { grid-template-columns: repeat(4, 1fr); }
.j2-grid--5 { grid-template-columns: repeat(5, 1fr); }
.j2-card {
  background: var(--white);
  border: 1px solid #E8E8E8;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.j2-card h3 { font-size: 1.05rem; margin: 1rem 0 0.5rem; }
.j2-card p { font-size: 0.9rem; line-height: 1.7; color: #555; }
.j2-card .j2-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.j2-card--center { text-align: center; }
.j2-card--center .j2-icon { margin: 0 auto; }

/* トップ冒頭の右枠（5構造） */
.j2-hero-title { color: rgba(255,255,255,0.6); font-size: 0.8rem; letter-spacing: 0.15em; margin-bottom: 1rem; text-align: center; }
.j2-hero-list { display: grid; gap: 0.6rem; }
.j2-hero-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(249,109,0,0.15);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
}
.j2-hero-list i { color: var(--orange); width: 1.4rem; text-align: center; font-size: 1.1rem; }

/* 精神論 → 構造 */
.j2-translate { max-width: 860px; margin: 0 auto; display: grid; gap: 0.75rem; }
.j2-translate-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: 0.75rem;
}
.j2-translate-from, .j2-translate-to {
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.j2-translate-from { background: #EDEDED; color: #555; }
.j2-translate-to { background: var(--white); border: 2px solid var(--orange); color: var(--black); font-weight: 700; }
.j2-translate-arrow { text-align: center; color: var(--orange); font-size: 1.1rem; }
.j2-translate-head { font-size: 0.8rem; font-weight: 700; color: var(--gray-mid); letter-spacing: 0.08em; padding: 0 0.25rem; }

/* 状態の一覧（構造タグ＋文） */
.j2-states { max-width: 860px; margin: 0 auto; display: grid; gap: 0.75rem; }
.j2-states li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid #E8E8E8;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}
.j2-tag {
  flex: 0 0 4.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  background: rgba(249,109,0,0.1);
  border-radius: 20px;
  padding: 0.2rem 0;
}
.j2-states span.j2-text { font-size: 0.95rem; line-height: 1.6; color: var(--black); }

/* 横に流れる手順（矢印つき） */
.j2-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.j2-flow > li { position: relative; }
.j2-flow > li:not(:last-child)::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 0.9rem;
}
.j2-flow .j2-card { height: 100%; }

/* 事実の帯 */
.j2-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.j2-fact { text-align: center; padding: 1.5rem 1rem; border-left: 3px solid var(--orange); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.j2-fact .j2-fact-label { font-size: 0.8rem; color: var(--gray-mid); font-weight: 700; letter-spacing: 0.08em; }
.j2-fact .j2-fact-value { font-size: 1.25rem; font-weight: 900; color: var(--black); line-height: 1.4; margin: 0.25rem 0; }
.j2-fact .j2-fact-sub { font-size: 0.8rem; color: #555; }

/* サービスのカード */
.j2-svc { display: flex; flex-direction: column; height: 100%; }
.j2-svc h3 { margin-top: 1rem; }
.j2-svc .j2-when { flex: 1 1 auto; margin-bottom: 1rem; }
.j2-meta { display: grid; gap: 0.5rem; border-top: 1px solid #EEE; padding-top: 1rem; }
.j2-meta li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; line-height: 1.6; color: var(--black); }
.j2-meta i { color: var(--orange); width: 1.1rem; text-align: center; margin-top: 0.3rem; }
.j2-svc .j2-anchor { margin-top: 1rem; font-size: 0.85rem; font-weight: 700; }

/* 業種などのチップ */
.j2-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 860px; margin: 0 auto; }
.j2-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid #E0E0E0;
  border-radius: 24px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
}
.j2-chips i { color: var(--orange); }

/* サービスの説明（アイコン＋文） */
.j2-detail { max-width: 900px; margin: 0 auto; display: grid; gap: 1.25rem; }
.j2-detail-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.j2-detail-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.j2-detail-item p { font-size: 0.95rem; line-height: 1.8; color: #444; }
.j2-detail-item .j2-grid { margin-top: 1rem; }
.j2-mini { background: var(--gray-lt); border-radius: var(--radius); padding: 1rem; }
.j2-mini h4 { font-size: 0.92rem; margin: 0.6rem 0 0.3rem; }
.j2-mini p { font-size: 0.82rem; line-height: 1.7; }

/* 行わないこと */
.j2-not li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid #E8E8E8;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--black);
  font-size: 0.95rem;
}
.j2-not i { color: #C62828; font-size: 1.3rem; }

/* 事例 */
.j2-case { max-width: 900px; margin: 0 auto 1.75rem; padding: 0; overflow: hidden; }
.j2-case-head { background: var(--black); color: var(--white); padding: 1.5rem 1.75rem; }
.j2-case-head h3, .j2-case-head h2 { color: var(--white); font-size: 1.15rem; margin: 0.5rem 0 0.75rem; line-height: 1.5; }
.j2-case-head .j2-num { color: var(--orange-lt); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; }
.j2-case-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.j2-case-tags li { font-size: 0.78rem; background: rgba(255,255,255,0.12); border-radius: 20px; padding: 0.2rem 0.8rem; color: rgba(255,255,255,0.9); }
.j2-case-tags i { margin-right: 0.35rem; color: var(--orange-lt); }
.j2-case-body { padding: 1.25rem 1.75rem 1.5rem; display: grid; gap: 1rem; }
.j2-case-row { display: flex; gap: 1rem; align-items: flex-start; }
.j2-case-row h4 { font-size: 0.8rem; color: var(--orange); letter-spacing: 0.08em; margin-bottom: 0.15rem; }
.j2-case-row p { font-size: 0.95rem; line-height: 1.75; color: var(--black); }
.j2-case-row--result { background: rgba(249,109,0,0.07); border-radius: var(--radius); padding: 1rem; }
.j2-case-row--result p { font-weight: 700; }

/* 代表 */
.j2-profile { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; max-width: 900px; margin: 0 auto; }
.j2-profile .avatar-placeholder { margin: 0 auto; }
.j2-profile-role { font-size: 0.85rem; color: var(--orange); font-weight: 700; }
.j2-profile-name { font-size: 1.6rem; margin: 0.2rem 0 0.2rem; }
.j2-profile-kana { font-size: 0.85rem; color: var(--gray-mid); margin-bottom: 1rem; }
.j2-profile p.j2-profile-text { font-size: 0.98rem; line-height: 1.9; color: #444; }
.j2-profile .btn { margin-top: 1.25rem; }

.j2-career { max-width: 900px; margin: 0 auto; display: grid; gap: 0.9rem; }
.j2-career li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid #E8E8E8;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
}
.j2-career h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.j2-career p { font-size: 0.9rem; color: #555; line-height: 1.6; }
.j2-result {
  text-align: right;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.4;
  white-space: nowrap;
}
.j2-result strong { display: block; font-size: 1.35rem; font-weight: 900; color: var(--orange); }

.j2-prose { max-width: 760px; margin: 0 auto; font-size: 1rem; line-height: 2; color: #333; }
.j2-prose p + p { margin-top: 1rem; }

/* 末尾の帯: ボタン内の補足 */
.btn small { font-weight: 500; font-size: 0.8em; opacity: 0.9; }

@media (max-width: 1000px) {
  .j2-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .j2-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .j2-flow { grid-template-columns: repeat(2, 1fr); }
  .j2-flow > li:nth-child(2n)::after { display: none; }
}
@media (max-width: 1100px) {
  .nav-links { gap: 1.25rem; }
}
@media (max-width: 768px) {
  .j2-grid--2, .j2-grid--3, .j2-grid--4, .j2-grid--5, .j2-facts { grid-template-columns: 1fr; }
  .j2-flow { grid-template-columns: 1fr; gap: 1.75rem; }
  .j2-flow > li:not(:last-child)::after,
  .j2-flow > li:nth-child(2n):not(:last-child)::after {
    display: block;
    content: '\f078';
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1.4rem;
    transform: translateX(-50%);
  }
  .j2-translate-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .j2-translate-row + .j2-translate-row { margin-top: 0.75rem; }
  .j2-translate-arrow i { transform: rotate(90deg); }
  .j2-translate-head { display: none; }
  .j2-states li { align-items: flex-start; }
  .j2-detail-item { flex-direction: column; gap: 0.75rem; }
  .j2-profile { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .j2-career li { grid-template-columns: 40px 1fr; }
  .j2-career .j2-icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 1rem; border-radius: 10px; }
  .j2-result { grid-column: 2; text-align: left; white-space: normal; }
  .j2-result strong { display: inline; margin-right: 0.4rem; }
  .j2-case-head, .j2-case-body { padding-left: 1.25rem; padding-right: 1.25rem; }
  .j2-lead { margin-top: -1.5rem; }
  .cta-box { padding: 2.5rem 1.25rem; }
  .cta-box .btn, .hero-actions .btn { display: block; width: 100%; text-align: center; }
  .btn small { display: block; }
}

/* ============================================================
 * 図・イラスト（v1.3.0）
 * ============================================================ */
.j2-img { display: block; width: 100%; height: auto; }

/* 幅の広い図: 本文枠より広く取る */
.j2-figure { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.j2-figure-box {
  background: var(--white);
  border: 1px solid #E8E8E8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.j2-figure--narrow { max-width: 1040px; }
.j2-figure-hint { display: none; text-align: center; font-size: 0.8rem; color: var(--gray-mid); margin-top: 0.6rem; }
.j2-figure-hint i { margin-right: 0.3rem; }

/* 画面幅で図とカードを切り替える */
.j2-sp-only { display: none; }

/* 人に依存する経営 → 構造で回る経営 */
.j2-beforeafter {
  max-width: 900px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
}
.j2-beforeafter-arrow { text-align: center; color: var(--orange); font-size: 1.6rem; }

/* 背景の線画（歯車・図面の線） */
.hero {
  background-image: url("../img/bg_hero_line.svg"), linear-gradient(150deg, #1A1A1A 0%, #2D2D2D 50%, #3A3A3A 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right bottom, center;
  background-size: cover, cover;
}
.page-hero {
  background-image: url("../img/bg_page_gear.svg"), linear-gradient(135deg, var(--black) 0%, #3A3A3A 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right -30px bottom -70px, center;
  background-size: 520px auto, cover;
}
.cta-section {
  background-image: url("../img/bg_page_gear.svg"), linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: left -120px bottom -140px, center !important;
  background-size: 420px auto, cover !important;
}

@media (max-width: 1000px) {
  .j2-pc-only { display: none; }
  .j2-sp-only { display: block; }
  ul.j2-sp-only.j2-grid { display: grid; }
  /* 切り替え先のない図は、枠の中で横に動かして読む */
  .j2-figure--scroll .j2-figure-box { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 1rem; }
  .j2-figure--scroll .j2-img { min-width: 980px; }
  .j2-figure--scroll .j2-figure-hint { display: block; }
}
@media (max-width: 768px) {
  .j2-beforeafter { grid-template-columns: 1fr; gap: 0.5rem; margin-bottom: 2.5rem; }
  .j2-beforeafter-arrow i { transform: rotate(90deg); }
  .page-hero { background-size: 300px auto, cover; background-position: right -40px bottom -50px, center; }
  .cta-section { background-size: 280px auto, cover !important; }
}

/* ナビ7項目（v1.4.0）: 幅が足りない画面では間隔と文字を詰める */
@media (max-width: 1240px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.85rem; }
  .nav-cta { padding: 0.5rem 0.9rem !important; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
