/* ========================================================================
   common.css — funleadグループサイト 全ページ共通スタイル
   ------------------------------------------------------------------------
   目次
     1.  カラー変数・基本設定（:root / body など）
     2.  ヘッダー / グローバルナビ / モバイルメニュー
     3.  ヒーロー（下層ページ共通バンド / TOPページ）
     4.  見出し・テキスト・ボタンなど共通パーツ
     5.  レイアウト部品（section / grid / card / panel ほか）
     6.  TOPページ（index）専用
     7.  私たちについて（about）専用
     8.  実装事例（cases）専用
     9.  製造業の変化（manufacturing-change）専用
     10. お知らせ（news）専用
     11. CTA / フッター
     12. リンクアイコン
     13. カテゴリ色クラス（旧インラインstyleから集約）
     14. レスポンシブ（まとめ）
   ======================================================================== */


/* ========================================================================
   1. カラー変数・基本設定
   ======================================================================== */
:root {
  --ink: #142536;
  --navy: #0d2942;
  --blue: #1769aa;
  --cyan: #16a5c8;
  --muted: #4d5d72;
  --line: #dde5ea;
  --soft: #f4f7f9;
  --white: #fff;
  --max: 1240px;
  --shadow: 0 22px 60px rgba(13, 41, 66, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.82;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}


/* ========================================================================
   2. ヘッダー / グローバルナビ / モバイルメニュー
   ======================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221, 229, 234, .9);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  font-weight: 700;
}

.brand strong {
  font-size: 20px;
  letter-spacing: .02em;
}

.navlinks {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.navlinks a:hover {
  color: var(--blue);
}

.nav-cta {
  padding: 11px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  flex: none;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform .2s, opacity .2s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 6px 0 20px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.mobile-nav a.nav-cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 13px;
  margin-top: 12px;
  border-top: none;
}


/* ========================================================================
   3. ヒーロー
   ======================================================================== */

/* 下層ページ共通のタイトルバンド（about / cases / manufacturing-change / news）
   — TOPページの .hero-home は除外する */
.hero:not(.hero-home) {
  padding: 64px 0 52px;
  background: linear-gradient(135deg, #0d2942, #153f5e);
}

.hero:not(.hero-home) .breadcrumb {
  color: rgba(255, 255, 255, .55);
}

.hero:not(.hero-home) .breadcrumb a:hover {
  color: #fff;
}

.hero:not(.hero-home) .kicker {
  color: #7dd5e7;
}

.hero:not(.hero-home) h1 {
  color: #fff;
  font-size: clamp(30px, 3.6vw, 44px);
}

@media (min-width: 601px) {
  .hero:not(.hero-home) h1 {
    white-space: nowrap;
  }
}

.hero:not(.hero-home) .container p {
  color: rgba(255, 255, 255, .88);
}

/* TOPページのヒーロー */
.hero-home {
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 106px 0 88px;
  /* 旧 index.html のインラインstyleから集約した背景（グラデ＋工場写真） */
  background: linear-gradient(to top right,
      rgba(247, 250, 252, .8) 0%,
      rgba(247, 250, 252, .7) 38%,
      rgba(247, 250, 252, .4) 55%,
      rgba(237, 245, 248, .2) 70%,
      rgba(237, 245, 248, .12) 100%),
    url('/assets/images/sections/hero-bg-factory.jpg') center 55%/cover no-repeat;
}

.hero-home:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image: linear-gradient(rgba(20, 37, 54, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 37, 54, .055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to right, black, transparent 82%);
}

.hero-home .container {
  position: relative;
  z-index: 1;
}

.hero-two {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}

.hero-home .hero-copy {
  max-width: 700px;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}


/* ========================================================================
   4. 見出し・テキスト・ボタン
   ======================================================================== */
.kicker,
.eyebrow {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  color: var(--blue);
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.breadcrumb a:hover {
  color: var(--blue);
}

h1 {
  font-size: clamp(40px, 5.3vw, 72px);
  line-height: 1.14;
  letter-spacing: -.05em;
  margin: 13px 0 25px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.3;
  letter-spacing: -.035em;
  margin: 10px 0 20px;
}

h3 {
  line-height: 1.45;
}

.hero p,
.lead {
  font-size: 19px;
  color: #3f4f64;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 21px;
  border: 1px solid var(--navy);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  transition: .2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(13, 41, 66, .12);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--navy);
}


/* ========================================================================
   5. レイアウト部品
   ======================================================================== */
.section {
  padding: 100px 0;
}

.soft {
  background: var(--soft);
}

.section-head {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 65px;
  margin-bottom: 56px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
  transition: .2s;
}

.card p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 0;
}

.tag {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  color: var(--blue);
}

.twocol {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 75px;
}

.translation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 35px;
}

.panel.dark {
  background: var(--navy);
  border-color: var(--navy);
  color: #cbd7df;
}

.panel.dark h3 {
  color: #fff;
}

.list {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 22px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.row b {
  font-size: 13px;
  color: var(--blue);
}

.row span {
  font-size: 14px;
  color: var(--muted);
}

.purpose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.purpose-card {
  padding: 41px;
  border: 1px solid var(--line);
  min-height: 280px;
}

.purpose-card.highlight {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.purpose-card p {
  font-size: 16px;
  color: var(--muted);
}

.purpose-card.highlight p {
  color: #cbd7df;
}


/* ========================================================================
   6. TOPページ（index）専用
   ======================================================================== */

/* 02 / APPROACH の4ステップ見出し */
.process-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  margin: 44px 0 18px;
}

.process-kicker:before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--blue);
  flex: none;
}

/* 04 / MANUFACTURING DOMAIN のマトリクス図＋理由 */
.domain-grid {
  display: grid;
  grid-template-columns: 1.15fr .9fr;
  gap: 24px;
  align-items: start;
  margin-top: 36px;
}

.domain-reasons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.domain-reasons .reason {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}

.domain-reasons .reason .icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
}

.domain-reasons .reason h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.domain-reasons .reason p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 900px) {
  .domain-grid {
    grid-template-columns: 1fr;
  }
}

/* 05 / PROOF */
.proof-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 65px;
}

.proof-chain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.proof-box {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 185px;
}

.proof-box b {
  font-size: 13px;
  color: var(--blue);
}

.proof-box h3 {
  font-size: 20px;
  margin: 13px 0 7px;
}

.proof-box p {
  font-size: 16px;
  color: var(--muted);
}

/* 01 / CHANGE カード＋グループカード */
.change-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.change-link .card {
  position: relative;
  padding-bottom: 76px;
  transition: .22s;
}

.change-link .card .card-cta {
  position: absolute;
  left: 26px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
}

.change-link .card .card-cta:after {
  content: "";
  width: 40px;
  height: 40px;
  background: url(/assets/images/ui/ico_link_in.svg) center/contain no-repeat;
  transition: .2s;
}

#change .card {
  min-height: 230px;
  padding: 0 0 76px;
  overflow: hidden;
  border-color: #b7c2cb;
}

#change .card .card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  min-height: 84px;
  color: #fff;
}

#change .card .cat-badge {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .01em;
  color: #fff;
  line-height: 1.3;
}

#change .card .change-num {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  flex: none;
  color: #fff;
}

#change .card .card-body {
  padding: 22px 26px 0;
}

#change .card h3 {
  min-height: 2.9em;
}

#change .card p {
  min-height: 3.64em;
}

.change-link:hover .card {
  border-color: #a9c1cf;
  box-shadow: 0 16px 36px rgba(13, 41, 66, .09);
  transform: translateY(-4px);
}

.change-link:hover .card .card-cta:after {
  transform: translateX(4px);
}

.section-link-note {
  margin-top: 18px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}

.group-card {
  margin-top: 28px;
  padding: 34px 36px;
  background: #f7fafb;
  border: 1px solid var(--line);
}

.group-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.group-card-top strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .01em;
}

.group-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.group-logos img {
  max-height: 40px;
  width: auto;
  flex: none;
}

@media (max-width: 900px) {
  .group-logos {
    justify-content: center;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .group-card {
    padding: 26px 22px;
  }

  .group-card-top {
    display: block;
  }

  .group-card-top .btn {
    margin-top: 16px;
  }

  .group-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    gap: 28px 20px;
  }

  .group-logos img {
    max-height: 32px;
  }
}

.section-more {
  text-align: center;
  margin-top: 44px;
}

.section-more .btn {
  padding: 16px 34px;
  font-size: 16px;
}

.pos-title {
  font-size: clamp(18px, 1.75vw, 24px);
  line-height: 1.5;
  margin: 14px 0;
  text-wrap: balance;
  word-break: auto-phrase;
}

/* index のポジションパネル内のコメント引用（旧インラインstyleから集約） */
.pos-quote {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pos-quote .quote-text {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.8;
}

.pos-quote .quote-name {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}


/* ========================================================================
   7. 私たちについて（about）専用
   ======================================================================== */
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: none;
  border-left: none;
  gap: 20px;
}

.company {
  background: #fff;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 190px;
}

.company strong {
  font-size: 22px;
}

.company p {
  font-size: 16px;
  color: var(--muted);
}

.company-grid .company {
  display: block;
  padding: 30px;
  min-height: 225px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: .2s;
}

.company-grid .company:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #aac3d1;
}

.company-grid .company .tag {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .03em;
  color: #fff;
  background: var(--blue);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.company-grid .company-logo {
  display: block;
  max-height: 34px;
  width: auto;
  margin-bottom: 20px;
}

.company-grid .company h3 {
  margin-bottom: 8px;
}

.company-grid .company-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 900;
  color: var(--blue);
}

.company-grid .company-link:hover {
  text-decoration: underline;
}

.company-grid .company strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.company-grid .company p {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.company-grid .company a:hover {
  text-decoration: underline;
}

/* STRATEGY / STRENGTH の図版 */
.industry {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 55px;
  align-items: center;
}

.industry-figure {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px;
}

.industry-figure img {
  width: 100%;
  height: auto;
}

.figure-note {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 5px 2px;
}

.industry-figure .ph-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 0 20px;
  line-height: 1.7;
}

/* 経営メンバー */
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 50px;
}

.member {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  padding: 0;
}

.member h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 18px 0 6px;
}

.member p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 12px;
}

.member p:last-child {
  margin-bottom: 0;
}

.member p + p {
  margin-top: 10px;
}

.member-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  margin-bottom: 0;
  border: 1px solid var(--line);
}


/* ========================================================================
   8. 実装事例（cases）専用
   ======================================================================== */

/* PROOF 4ステップ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.num {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 10px;
}

.process .card {
  min-height: 205px;
}

/* ソリューションのミニカード — ここでは .tag を eyebrow より大きく見せる */
.solution .tag {
  font-size: 14px;
  letter-spacing: .05em;
}

.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.solution {
  display: flex;
  flex-direction: column;
  min-height: 275px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 31px;
}

.solution h3 {
  font-size: 20px;
  margin: 15px 0 8px;
}

.solution p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.solution .link {
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  font-weight: 900;
  color: var(--blue);
}

/* ソリューションカードの画像＋見出し行（旧インラインstyleから集約） */
.solution-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.solution-head img {
  display: block;
  width: 150px;
  max-width: 40%;
  flex: none;
  aspect-ratio: 181/136;
  object-fit: contain;
}

.solution-head h3 {
  margin: 4px 0 0;
}

/* PRODUCT CASES のスクリーンショット（旧インラインstyleから集約） */
.case-shot {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.case {
  background: #fff;
  border: 1px solid var(--line);
  padding: 29px;
}

.case h3 {
  font-size: 22px;
  margin: 8px 0;
}

.case p {
  font-size: 16px;
  color: var(--muted);
}

.case-logo {
  display: block;
  max-height: 24px;
  width: auto;
  margin-bottom: 14px;
}

.case-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
}

.case-brand .case-logo {
  margin-bottom: 0;
}

.case-yomi {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
}

/* SHIFTINA のロゴタイプ風テキスト（旧インラインstyleから集約） */
.wordmark-shiftina {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #1447e6;
  letter-spacing: 0;
}

/* CAPABILITIES */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tech-tag {
  padding: 14px 26px;
  border: 1px solid rgba(23, 105, 170, .25);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  color: var(--blue);
  background: rgba(23, 105, 170, .07);
  transition: .2s;
}

.capabilities-note {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .05em;
  color: var(--muted);
  margin: 36px 0 14px;
}

/* GROWTH SECTORS */
.growth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}

.growth-grid h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.growth-grid p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 700px) {
  .growth-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* 各社のサービスページを見る */
.group-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.group-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: .2s;
}

.group-link:hover {
  transform: translateY(-3px);
  border-color: #aac3d1;
  box-shadow: 0 12px 28px rgba(16, 43, 69, .08);
}

.group-link .logo-word {
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 17px;
}

.group-link .company-meta {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

.group-link .out {
  font-size: 16px;
  color: var(--blue);
  font-weight: 900;
}

@media (max-width: 900px) {
  .group-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .group-links {
    grid-template-columns: 1fr;
  }
}

/* 内部CTAリンクバー */
.internal-linkbar {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  padding: 26px 32px;
  background: linear-gradient(135deg, #f7fafb 0%, #eef2f5 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(13, 41, 66, .05);
  transition: .25s;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.internal-linkbar strong {
  font-size: 18px;
}

.internal-linkbar > div > span {
  font-size: 14px;
  color: var(--muted);
}

.internal-linkbar .btn {
  border-radius: 999px;
  padding: 14px 28px;
  white-space: nowrap;
  flex: none;
  transition: .25s;
}

.internal-linkbar:hover {
  border-color: var(--navy);
  box-shadow: 0 14px 32px rgba(13, 41, 66, .12);
  transform: translateY(-2px);
}

.internal-linkbar:hover .btn {
  background: var(--blue);
  transform: none;
  box-shadow: none;
}

.internal-linkbar:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .internal-linkbar {
    display: block;
    padding: 22px;
  }

  .internal-linkbar .btn {
    margin-top: 16px;
  }
}

/* 汎用テーブル */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

.table th,
.table td {
  padding: 16px;
  border: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
}

.table th {
  background: #f7fafb;
}

.strong {
  font-weight: 900;
  color: var(--blue);
}


/* ========================================================================
   9. 製造業の変化（manufacturing-change）専用
   ======================================================================== */

/* 4ステップの矢印付きフロー */
.process.process-flow {
  gap: 34px;
}

.process-flow .card {
  position: relative;
}

.process-flow .card:not(:last-child):after {
  content: "";
  position: absolute;
  top: 50%;
  right: -32px;
  transform: translateY(-50%);
  width: 30px;
  height: 24px;
  background: url(/assets/images/ui/ico_arrow_only.svg) center/contain no-repeat;
}

@media (max-width: 900px) {
  .process-flow {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }

  .process-flow .card:not(:last-child):after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -34px;
    transform: translate(-50%, 0) rotate(90deg);
  }
}

/* 詳細マップ（6つの変化） */
.map-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  margin-top: 36px;
}

.map-list {
  background: #fff;
  border-right: 1px solid var(--line);
}

.map-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.map-item:last-child {
  border-bottom: none;
}

.map-item .map-num {
  font-size: 14px;
  font-weight: 900;
  margin-right: 9px;
  letter-spacing: .02em;
}

.map-item .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
  margin-right: 9px;
}

.map-item .cat {
  white-space: nowrap;
  flex: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  margin-left: auto;
}

.map-item.active {
  background: var(--navy);
  color: #fff;
}

.map-item:after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-top: 2.5px solid #9fb2c2;
  border-right: 2.5px solid #9fb2c2;
  transform: rotate(45deg);
  margin-left: 2px;
  margin-right: 4px;
}

.map-item.active:after {
  border-color: #fff;
}

.map-item:not(.active):hover {
  background: #f1f6fa;
}

.map-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #e6f1fa;
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
  border-bottom: 1px solid #c5dcee;
}

.map-hint svg {
  flex: none;
}

.map-detail-wrap {
  background: var(--navy);
  color: #fff;
}

.map-detail {
  display: none;
  flex-direction: column;
  padding: 36px;
}

.map-detail.active {
  display: flex;
}

@keyframes mapDetailFlash {
  0% {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .9) inset, 0 0 28px rgba(255, 255, 255, .3) inset;
    background-color: rgba(255, 255, 255, .08);
  }

  65% {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .9) inset, 0 0 28px rgba(255, 255, 255, .3) inset;
    background-color: rgba(255, 255, 255, .08);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0) inset;
    background-color: transparent;
  }
}

.map-detail.highlight-flash {
  animation: mapDetailFlash 2.2s ease-out;
}

.map-detail .detail-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.map-detail .cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .03em;
  padding: 8px 16px;
  color: #fff;
}

.map-detail .detail-num {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  flex: none;
}

.map-detail h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.map-voice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .08);
  border-left: 3px solid var(--blue);
  font-size: 16px;
  margin-bottom: 26px;
}

.map-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, .15);
}

.map-cols > div {
  padding: 16px;
}

.map-cols > div:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.map-cols > div:last-child {
  background: rgba(24, 105, 170, .18);
}

.map-cols .cap {
  font-size: 14.5px;
  font-weight: 900;
  color: rgba(255, 255, 255, .75);
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.map-cols .cap.accent {
  color: #7ec8e8;
}

.map-cols .item {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 6px;
  color: #e8eef2;
}

.map-kp {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.map-kp .label {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .06em;
}

.map-kp .kp-tag {
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 4px 12px;
}

@media (max-width: 900px) {
  .map-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .map-cols {
    grid-template-columns: 1fr;
  }

  .map-cols > div:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
  }
}

/* TRANSLATION（お客様の声→ITでの実現） */
.voice-pairs {
  border: 1px solid var(--line);
  margin-top: 36px;
  background: #fff;
}

.voice-pairs-head {
  display: grid;
  grid-template-columns: 1fr 64px 1.3fr;
  gap: 18px;
  padding: 16px 24px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.voice-pairs-head span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--ink);
}

.voice-pairs-head span svg {
  flex: none;
}

.voice-pairs-head span:first-child {
  grid-column: 1;
}

.voice-pairs-head span:last-child {
  grid-column: 3;
  color: var(--blue);
}

.voice-pair {
  display: grid;
  grid-template-columns: 1fr 64px 1.3fr;
  align-items: center;
  gap: 18px;
  padding: 26px 24px;
  border-bottom: 1px solid var(--line);
}

.voice-pair:last-child {
  border-bottom: none;
}

.voice-pair .q {
  font-weight: 700;
  font-size: 16px;
}

.voice-pair .arrow {
  display: block;
  width: 48px;
  height: 48px;
  font-size: 0;
  background: url(/assets/images/ui/ico_arrow_right.svg) center/contain no-repeat;
  justify-self: center;
}

.voice-pair .a {
  font-size: 16px;
  color: var(--ink);
}

@media (max-width: 700px) {
  .voice-pair {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .voice-pair .arrow {
    width: 34px;
    height: 34px;
    justify-self: start;
    transform: rotate(90deg);
  }

  .voice-pairs-head {
    display: none;
  }
}


/* ========================================================================
   10. お知らせ（news）専用
   ======================================================================== */

/* アーカイブ一覧 */
.news-list {
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

.news-row {
  display: grid;
  grid-template-columns: 110px 150px 1fr;
  align-items: center;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.news-date {
  color: var(--muted);
}

.news-company {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ext-icon {
  display: inline-block;
  margin-left: 8px;
  font-size: 16px;
  color: var(--blue);
  vertical-align: -1px;
}

@media (max-width: 700px) {
  .news-row {
    display: block;
  }

  .news-row .news-date {
    display: inline-block;
    margin-right: 12px;
  }

  .news-row .news-company {
    display: inline-block;
  }

  .news-row .news-title {
    display: block;
    margin-top: 6px;
  }
}

/* 会社別の絞り込みボタン（news.js が生成） */
.news-section {
  padding-top: 56px;
}

.hero .news-lead {
  max-width: 1100px;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.news-filter button {
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 22px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: .2s;
}

.news-filter button:hover {
  background: #eef3f7;
}

.news-filter button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.news-filter button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

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

/* TOPページのお知らせカード（3件） */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.news-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: .2s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #aac3d1;
}

.news-thumb {
  width: 100%;
  aspect-ratio: 8/5;
  object-fit: cover;
  display: block;
  background: #dcdcdc;
}

.news-body {
  padding: 20px 22px 24px;
}

.news-body .news-date {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 9px;
}

.news-body h3 {
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  font-weight: 800;
  min-height: 4.95em;
}

.news-card-company {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}

.news-card-company img {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
}

.news-card-company span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.news-more-wrap {
  margin-top: 28px;
  text-align: left;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}


/* ========================================================================
   11. CTA / フッター
   ======================================================================== */
.cta {
  background: var(--navy);
  color: #fff;
  padding: 60px 0;
}

.cta h2 {
  margin: 0 0 14px;
}

.cta p {
  color: #cbd7df;
  max-width: none;
  margin: 0 0 24px;
}

@media (max-width: 600px) {
  .cta {
    padding: 48px 0;
  }
}

footer {
  background: #0a1b2b;
  color: #b9c6d2;
  padding: 48px 0 30px;
  font-size: 14px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 19px;
  margin-bottom: 16px;
}

.footer-brand strong .yomi {
  margin-left: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  opacity: .72;
}

.footer-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 0;
}

.footer-nav a {
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, .25);
  line-height: 1.2;
}

.footer-nav a:first-child {
  border-left: none;
}

.footer-nav a:last-child {
  padding-right: 0;
}

@media (min-width: 1000px) {
  .footer {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 30px;
    row-gap: 18px;
    align-items: center;
  }

  .footer-brand {
    display: contents;
  }

  .footer-brand strong {
    grid-area: 1/1;
    margin: 0;
  }

  .footer-nav {
    grid-area: 1/2;
    justify-self: end;
    flex-wrap: nowrap;
  }

  .footer-nav a {
    white-space: nowrap;
  }

  .footer-group {
    grid-area: 2/1/3/3;
    flex-wrap: nowrap;
  }

  .footer-group a {
    white-space: nowrap;
  }
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  color: #8fa0af;
}


/* ========================================================================
   12. リンクアイコン
   （funlead.co.jp と同じ図案: .ico-in=同一サイト内 / .ico-out=外部）
   ======================================================================== */
.ico-in,
.ico-out {
  display: inline-block;
  width: 40px;
  height: 40px;
  flex: none;
  vertical-align: middle;
  margin-left: 10px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.ico-in {
  background-image: url(/assets/images/ui/ico_link_in.svg);
}

.ico-out {
  background-image: url(/assets/images/ui/ico_link_out.svg);
}

.btn .ico-in,
.btn .ico-out {
  width: 30px;
  height: 30px;
  margin-left: 0;
}

.btn-dark .ico-in,
.footer .ico-in {
  background-image: url(/assets/images/ui/ico_link_in_w.svg);
}

.btn-dark .ico-out,
.footer .ico-out {
  background-image: url(/assets/images/ui/ico_link_out_w.svg);
}

.footer-group .ico-out {
  width: 25px;
  height: 25px;
  margin-left: 8px;
}

.group-link .out.ico-out {
  width: 40px;
  height: 40px;
  margin: 0;
}

.ext-icon.ico-out {
  width: 25px;
  height: 25px;
  margin-left: 10px;
  vertical-align: -8px;
}

.company-grid .company-link .ico-out {
  width: 40px;
  height: 40px;
  vertical-align: middle;
}

.footer-nav .ico-out {
  width: 25px;
  height: 25px;
  margin-left: 8px;
}

.nav-cta .ico-out,
.mobile-nav a.nav-cta .ico-out {
  width: 22px;
  height: 22px;
  margin-left: 8px;
  background-image: url(/assets/images/ui/ico_link_out_w.svg);
}


/* ========================================================================
   13. カテゴリ色クラス（旧インラインstyleから集約）
   ------------------------------------------------------------------------
   製造業の6カテゴリと、index / manufacturing-change で共通して使う色。
   色を変えたいときは、ここだけ直せば全ページに反映される。
     people  : 世代交代   濃=#A8803C 明=#C9A15C
     top     : 外圧       濃=#C8451F 明=#E2632F
     quality : 外圧       濃=#C8451F 明=#E2632F
     tech    : 技術更新   濃=#4A4A6A 明=#9797B8
     plant   : 再編       濃=#3A5772 明=#7EC8E8
     ma      : 成長       濃=#2E6B5E 明=#4FAE97
   ======================================================================== */

/* 背景色（カードトップ / バッジ / ドット） */
.bg-people  { background: #A8803C; }
.bg-top     { background: #C8451F; }
.bg-quality { background: #C8451F; }
.bg-tech    { background: #4A4A6A; }
.bg-plant   { background: #3A5772; }
.bg-ma      { background: #2E6B5E; }

/* 一覧（map-item）の番号・カテゴリ名などに使う濃い文字色 */
.fg-people  { color: #A8803C; }
.fg-top     { color: #C8451F; }
.fg-quality { color: #C8451F; }
.fg-tech    { color: #4A4A6A; }
.fg-plant   { color: #3A5772; }
.fg-ma      { color: #2E6B5E; }

/* 詳細（map-detail）の見出し h3 に使う明るい文字色 */
.fg-people-light  { color: #C9A15C; }
.fg-top-light     { color: #E2632F; }
.fg-quality-light { color: #E2632F; }
.fg-tech-light    { color: #9797B8; }
.fg-plant-light   { color: #7EC8E8; }
.fg-ma-light      { color: #4FAE97; }

/* index の 03/GROUP 見出しだけ少し小さくする */
.h2-group {
  font-size: clamp(26px, 3.2vw, 38px);
}

/* ドメインマトリクス図（index 04）の画像 */
.domain-matrix-img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}


/* ========================================================================
   14. レスポンシブ（まとめ）
   ======================================================================== */
@media (max-width: 900px) {
  .navlinks {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-two,
  .section-head,
  .twocol,
  .translation,
  .group,
  .industry,
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .grid,
  .solutions,
  .company-grid,
  .member-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process {
    grid-template-columns: 1fr 1fr;
  }

  /* TOPヒーロー見出し */
  .hero-home h1 {
    font-size: clamp(26px, 7.8vw, 48px);
  }

  .pos-title {
    font-size: clamp(20px, 5.4vw, 28px);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(var(--max), calc(100% - 30px));
  }

  .hero:not(.hero-home) {
    padding: 48px 0 40px;
  }

  .hero-home {
    padding: 75px 0;
    background: linear-gradient(rgba(247, 250, 252, .75), rgba(247, 250, 252, .75)),
      url('/assets/images/sections/hero-bg-factory.jpg') center 40%/cover no-repeat !important;
  }

  .section {
    padding: 72px 0;
  }

  .grid,
  .solutions,
  .company-grid,
  .member-grid,
  .process,
  .case-grid,
  .purpose,
  .proof-chain {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .footer {
    display: block;
  }

  .footer-nav {
    margin-top: 24px;
    justify-content: flex-start;
  }

  .footer-nav a {
    padding: 0 12px;
  }

  .footer-nav a:first-child {
    padding-left: 0;
  }

  h1 {
    font-size: 42px;
  }

  .brand small {
    font-size: 10px;
    letter-spacing: .06em;
  }
}

/* PC幅でTOPヒーローを少しコンパクトにする調整 */
@media (min-width: 901px) {
  .hero-home {
    min-height: 0;
    padding: 36px 0 32px;
  }

  #change {
    padding-top: 64px;
  }

  .hero-home h1 {
    font-size: clamp(34px, 5.4vw, 70px);
  }

  .hero-home .hero-two {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  }

  .hero-home .panel {
    padding: 28px;
  }
}

.hero-home h1 {
  color: #0a1a28;
}
