:root {
  --brand: #0f3d5e;
  --brand2: #1f4e79;
  --brand-light: #2a6fbe;
  --accent: #2a6fbe;
  --link: #1f4e79;
  --rate-vg: #146b37;
  --rate-g: #1e7b45;
  --rate-n: #1f6fa8;
  --rate-l: #7a5c00; /* 2026-10-07: △＝黄土色（テラコッタのボタン #b4532a と取り違えないため。旧 #a84f00）。白地 6.1:1 */
  --rate-none: #5f6672;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #222222;
  --text-muted: #555555;
  --text-light: #666666;
  --shadow: 0 6px 18px rgba(15,61,94,0.08);
  --shadow-hover: 0 12px 32px rgba(15,61,94,0.15);
  --radius: 14px;
  --gradient-primary: linear-gradient(135deg,var(--brand),var(--brand2));
  --gradient-accent: linear-gradient(135deg,#2a6fbe,#4a8fe7);
  --transition-speed: 0.3s;
  --transition-speed-slow: 0.6s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  font-family: 'Hiragino Kaku Gothic ProN','Noto Sans JP','Yu Gothic','Meiryo',sans-serif;
  color: var(--text);
  line-height: 1.85;
  background: var(--bg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--link);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-speed-slow) ease,transform var(--transition-speed-slow) ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity var(--transition-speed-slow) ease,transform var(--transition-speed-slow) ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity var(--transition-speed-slow) ease,transform var(--transition-speed-slow) ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
  border-bottom: 1px solid rgba(15,61,94,0.08);
}

.nav-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: transform var(--transition-speed) ease;
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-logo {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name-jp {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-name-en {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--brand);
  color: white !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-speed) ease;
}

.nav-phone:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42,111,190,0.3);
}

.nav-phone i {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}

.nav-links > a,
.nav-links .nav-dropdown {
  color: var(--brand);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-speed) ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links > a:hover {
  color: var(--accent);
}

.nav-links > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-speed) ease;
}

.nav-links > a:hover::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  outline: none;
  padding: 6px 0;
  margin: 0;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  transition: color var(--transition-speed) ease;
}

.dropdown-toggle:hover {
  color: var(--accent);
}

.dropdown-toggle .fa-chevron-down {
  font-size: 0.7rem;
  transition: transform var(--transition-speed) ease;
}

.nav-dropdown:hover .dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 12px 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 8px);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 11px 22px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

.dropdown-menu a:hover {
  background: var(--bg);
  color: var(--brand);
  padding-left: 28px;
}

.dropdown-menu a i {
  margin-right: 10px;
  color: var(--accent);
  width: 18px;
  font-size: 0.9rem;
}

.dropdown-divider {
  margin: 10px 18px;
  border-top: 1px solid #e8e8e8;
}

.dropdown-menu-wide {
  min-width: 560px;
  padding: 12px 0;
}

.dropdown-region-grid {
  display: flex;
  padding: 4px 8px 0;
}

.dropdown-region {
  flex: 1;
  min-width: 100px;
  padding: 0 4px;
  border-right: 1px solid #f0f0f0;
}

.dropdown-region:last-child {
  border-right: none;
}

.dropdown-region-label {
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 4px 10px 6px;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 2px;
}

.dropdown-region-grid a {
  padding: 6px 10px!important;
  font-size: 0.80rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white !important;
  box-shadow: 0 4px 12px rgba(15,61,94,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,61,94,0.3);
}

.btn-outline {
  border: 2px solid var(--brand);
  color: var(--brand) !important;
  background: transparent;
}

.btn-outline:hover {
  background: var(--brand);
  color: white !important;
}

.spacer {
  height: 120px;
}

.breadcrumb-bar {
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  width: 100%;
}

.breadcrumb-nav {
  position: static;
  top: auto;
  left: auto;
  width: auto;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  z-index: auto;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 28px;
  font-size: 0.82rem;
  color: #5f6672; /* 2026-10-07: #888(白地3.54:1・AA未満)→5.9:1 */
  transition: none;
}

.breadcrumb-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.breadcrumb-nav a {
  color: #555;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 92px 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 58px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--brand);
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-header h2 i {
  font-size: 1.8rem;
  color: var(--accent);
}

.section-header p {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}

.bg-pattern-loop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.bg-pattern-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle,var(--brand) 1px,transparent 1px);
  background-size: 30px 30px;
}

.bg-pattern-flow {
  position: absolute;
  top: -10%;
  right: 0;
  width: min(600px,60vw);
  height: min(600px,60vw);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero {
  position: relative;
  background: var(--gradient-primary);
  color: white;
  padding: 140px 28px 108px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,rgba(255,255,255,0.08) 0%,transparent 70%);
  border-radius: 50%;
  opacity: 0.65;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* 2026-10-07: 一覧・エリア系の薄いヒーロー（旧: インライン padding:56px 0 48px。左右0でスマホの文字が画面端に付いていたため左右20pxを付けた） */
.hero.hero-compact {
  padding: 56px 20px 48px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  margin: 0 0 22px;
  line-height: 1.3;
  font-weight: 700;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-lead {
  font-size: 1.15rem;
  margin: 0 0 28px;
  line-height: 1.9;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .btn-outline {
  border: 2px solid white;
  color: white !important;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}

.hero .btn-outline:hover {
  background: white;
  color: var(--brand) !important;
  border-color: white;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 28px;
  margin-top: 42px;
}

.grid-2col {
  grid-template-columns: repeat(2,1fr);
}

.grid-3col {
  grid-template-columns: repeat(3,1fr);
}

@media (max-width:768px) {
  .grid-2col,
  .grid-3col {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width:480px) {
  .grid-2col,
  .grid-3col {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: 50%;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: white;
  transition: all 0.4s ease;
}

.card:hover .card-icon {
  transform: rotate(360deg) scale(1.1);
  animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(42,111,190,0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(42,111,190,0);
  }
}

.card h3 {
  font-size: 1.3rem;
  color: var(--brand);
  margin-bottom: 14px;
  font-weight: 700;
}

.card p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 18px;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tag {
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 20px;
  background: #eef5ff;
  color: var(--brand);
  transition: all var(--transition-speed) ease;
}

.tag:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-item {
  text-align: center;
  padding: 28px;
  transition: all var(--transition-speed) ease;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--accent);
  position: relative;
  transition: all 0.4s ease;
}

.feature-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--accent);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.feature-item:hover .feature-icon::before {
  opacity: 0.3;
  transform: scale(1.2);
  animation: ripple 1.5s ease-in-out infinite;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.feature-icon i {
  font-size: 2.2rem;
  color: var(--accent);
  transition: transform 0.4s ease;
}

.feature-item:hover .feature-icon i {
  transform: rotate(12deg) scale(1.1);
}

.feature-item h3 {
  font-size: 1.15rem;
  color: var(--brand);
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.icon-list li {
  padding: 10px 0;
  padding-left: 32px;
  position: relative;
  line-height: 1.8;
  animation: fade-in-left 0.5s ease-out backwards;
}

.icon-list li:nth-child(1) {
  animation-delay: 0.1s;
}

.icon-list li:nth-child(2) {
  animation-delay: 0.2s;
}

.icon-list li:nth-child(3) {
  animation-delay: 0.3s;
}

.icon-list li:nth-child(4) {
  animation-delay: 0.4s;
}

.icon-list li:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.icon-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1rem;
}

.cta {
  position: relative;
  background: #f0f7ff;
  text-align: center;
  padding: 98px 28px;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,rgba(42,111,190,0.06) 0%,transparent 70%);
  border-radius: 50%;
  animation: pulse-slow 6s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%,
  100% {
    transform: translate(-50%,-50%) scale(1);
  }
  50% {
    transform: translate(-50%,-50%) scale(1.1);
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 2rem;
  color: var(--brand);
  margin: 0 0 14px;
  font-weight: 700;
}

.cta p {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cta .btn-primary {
  padding: 16px 42px;
  font-size: 1.05rem;
}

.site-footer {
  background: var(--brand);
  color: white;
  padding: 72px 28px 36px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,rgba(255,255,255,0.03) 0%,transparent 70%);
  border-radius: 50%;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  /* フッター再設計 第3版（DESIGN_FOOTER_20260820.md 3.1・2.6節）: 第2版の
     1.7fr 0.8fr 1.5fr 1fr から列1→列2へ0.3fr移譲。列3の2列ミニグリッド廃止（下記
     .footer-services-grid）で列3側の追加幅が不要になった分を、列2最下部リンク
     「全国のエリア分析を見る →」の折り返し解消に回した（実測: 列1 329→271px・
     列2 155→213px。列3・列4は不変）。
     第4版（2026-08-24・部長指示）: 単純な fr 配分は「コンテナが max-width(1100px) に
     達する手前の中間帯（実測ビューポート約1025〜1145px）」でだけ各列が最も狭くなり、
     第3版で直したはずの列2「全国のエリア分析を見る →」（自然幅214〜217px）が
     この帯でだけ再度折り返すことをブラウザ実測で発見（1024px以下と1150px以上でしか
     検証していなかった第3版の見落とし＝1050pxで列2 186px・列4 169pxまで縮み折返し）。
     さらに列4のフッターリンク（アンカーテキスト変更でaiポスティングサポーター＝
     自然幅204pxに）も同じ帯で折り返す。fr比率の調整だけでは「どこかの帯で必ず
     破綻する」構造が同じため、列2・列3・列4に minmax() の下限を設定し、
     コンテナ幅に関わらず各列の実測必要幅（列2:217px・列3:プレミアムセグメントDM
     202px・列4:204px、いずれも+6〜8px安全マージン）を機械的に保証する方式へ変更。
     列1は下限を設けず余剰吸収役のまま——ただし当初「実測必要幅144px（電話・CTA）」と
     見積もったのはQA検収で誤りと判明（住所228.5pxを見落とし）。QAの1px刻みスイープで
     列1が1025〜1096pxで折り返すリグレッションを検出（リンクのみをoffsetHeightで検証し
     `<p class="footer-address">`等の非リンク要素を対象から外していたための見落とし）。
     住所は語中で折り返っており見た目が悪いため、grid列幅の再配分ではなく
     `components/footer.html`側で住所を「東京都港区新橋4-25-4」／「石田ビル2階」の
     2つの white-space:nowrap 区間に分割し、意図した1箇所のみで改行する方式に変更
     （詳細下記 .footer-address-text のコメント）。この分割により列1の住所側の実質的な
     必要幅は最長の単一区間＝CTAボタン「お問い合わせ」144pxに戻り、対応時点ではこれを
     もって「列1は明示的な minmax 下限は不要」と判断していた。

     第5版（2026-08-27午前・千葉6市追加のリリース前フッター再確認で発見→**QA差し戻しで撤回**）:
     上記の「列1は144px程度で足りる」という判断は .footer-tagline（キャッチコピー
     「圏域（商圏）内の接触を、<br>最適に組み合わせ、循環させる。」）の必要幅を見落として
     いた。2行目「最適に組み合わせ、循環させる。」の自然幅は209px（getBoundingClientRect
     実測）でCTAボタン144pxより広く、ビューポート1025〜1075pxで列1が177〜209pxまで縮み
     タグラインが3行目へ折り返す実機バグを発見した。この時点の対応は「列1にも他列と同型の
     minmax(217px, 1.4fr) 下限を追加する」という対症療法だったが、**QA検収で以下のブロッカーを
     指摘され差し戻された**: 4列の下限合計 217+225+210+210＋gap44×3 = 994px がコンテナ実幅
     （1024px以下では2列グリッドへ切替、1025px直後は`.footer-inner`の`max-width:1100px`から
     左右padding 56pxを引いた実効幅が994pxを下回る）を上回る帯（実測1024〜1063px）で
     **グリッド自体がはみ出し、`.site-footer{overflow:hidden}` により列4「会社情報」が
     画面外で切断される**という、タグライン折返しより悪いリグレッションを生んでいた。
     QAの診断: 「offsetHeightによる折返し判定だけを見て、scrollWidthによるはみ出し判定を
     見ていなかった」ことが、この一連の是正（住所→タグライン→今回）に共通する原因。
     列1に効かせた minmax 下限は原理的に「他列の下限合計＋自列の下限」がコンテナ幅を
     超えた瞬間に必ずこの種のはみ出しを生むため、対症療法ではなく構造を見直した。

     第6版（2026-08-27・QA差し戻しを受けた構造的是正・Web担当）: 列1へのminmax下限は
     撤回（1.4fr のまま・下限なし）。列1は元々コンテンツが通常の折返し可能テキスト
     （CJKは文字間で自由に折返せるため min-content が実質0に近い）のため、**列1自体は
     どれだけ縮んでもグリッド全体をはみ出させることは無い**（他列の下限合計がコンテナ幅を
     超えない限り）——今回のはみ出しは「列1に人為的な下限を追加したことで自ら発生させた」
     ものであり、値を調整するのではなく追加しないのが正しい設計と判断した。
     根本原因は「4列レイアウトへ切り替わる`@media (max-width:1024px)`のしきい値が、
     4列が実際に収まる幅（列2・3・4の下限217+225+210+210＋gap132px=994px＋左右padding56px
     ≒1050px、かつ列1のタグラインが折返さない幅=1075px実測）と一致していない」ことに
     ある。よって是正は**「4列に切り替える条件」を「4列が実際に破綻なく収まる条件」へ
     一致させる**方式にした：`.footer-inner`の2列切替を`@media (max-width:1024px)`から
     切り出し、専用の`@media (max-width:1090px)`（下記）へ引き上げた。1075px実測+15pxの
     安全マージン。1090px以下は2列グリッド（`.footer-inner`が`max-width:1100px`の対象外に
     なるほど狭いため元々余裕がある）、1091px以上でのみ4列（この帯ではタグライン非折返し・
     列1に人為的下限が無いため原理的にはみ出しも起きない）。
     **検証（QA指摘どおり両指標・全要素・全幅で実施）**: 320〜1920pxの実ビューポートで、
     フッター内の全31リンク・4つの`h4`・`.footer-address`・`.footer-tagline`・
     `.footer-services-all`・コピーライト行・`.footer-inner`自身を対象に、
     offsetHeight（折返し行数）と`scrollWidth-clientWidth`（はみ出し量）の両方を
     機械判定。960〜1200pxは4px刻み＋境界（1024/1025/1074/1075/1090/1091）は1px刻み。
     **折返し0件・はみ出し0件を実測確認**（詳細はCHANGELOG.md 2026-08-27「フッター
     折返し第6版是正（QA差し戻し対応）」節参照）。 */
  grid-template-columns: 1.4fr minmax(225px, 1.1fr) minmax(210px, 1.5fr) minmax(210px, 1fr);
  gap: 44px;
  position: relative;
  z-index: 1;
}

/* footer-inner の2列/4列切替しきい値（第6版・2026-08-27）。
   nav/hero側の @media (max-width:1024px) とは意図的に分離している（上記コメント参照）。
   1090px以下は2列（`.footer-inner{grid-template-columns:1fr 1fr}`）、1091px以上が4列。 */
@media (max-width:1090px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.footer-logo-link {
  display: inline-flex;
  background: white;
  padding: 7px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.footer-logo {
  height: 34px;
  width: auto;
}

.footer-tagline {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin: 0 0 16px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact .footer-phone,
.footer-contact .footer-address,
.footer-contact .footer-cta {
  margin-top: 0;
  margin-bottom: 0;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: white !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: opacity var(--transition-speed) ease;
}

.footer-phone:hover {
  opacity: 0.85;
}

.footer-phone i {
  color: var(--accent);
}

.footer-address {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  line-height: 1.6;
}

.footer-address i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.8rem;
}

/* 2026-08-24（QA是正④の対応中に発見）: 住所の改行位置制御（2つの white-space:nowrap 区間）を
   .footer-address（display:flex の行方向コンテナ）の直下に置くと、各区間が独立したフレックス
   アイテムとして横並びに固定され（flexは既定でwrapしない・各アイテムはmin-width:autoで
   自身の内容ぶんまでしか縮まない）、区切りのスペースでの改行が機能せず列1がフルの234pxまで
   膨張してoverflow:hiddenの.site-footerで見えないまま右端が切れる事故になった。改行制御用の
   2スパンは footer-address 直下ではなく1枚の .footer-address-text でラップし、flexアイテムを
   「アイコン」と「テキスト全体」の2つに保つ（テキスト側はflexアイテムではなく通常のインライン
   フローになるため、内部の空白での改行が正しく機能する）。min-width:0はflexアイテムの
   自動最小サイズ（min-width:auto）を明示的に解除する保険。 */
.footer-address-text {
  min-width: 0;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  color: white !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  width: fit-content;
}

.footer-cta:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-1px);
}

.footer-cta i {
  color: var(--accent);
}

.footer-col h4 {
  font-weight: 700;
  margin: 0 0 16px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}

.footer-col h4 i {
  color: var(--accent);
}

.footer-col a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  display: flex;
  align-items: center;
  margin: 8px 0;
  transition: all var(--transition-speed) ease;
  font-size: 0.88rem;
  line-height: 1.4;
}

.footer-col a:hover {
  color: white;
  padding-left: 5px;
}

.footer-col a i {
  margin-right: 8px;
  width: 15px;
  color: var(--accent);
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* フッター再設計 第3版（DESIGN_FOOTER_20260820.md 3.2.1・2.6節）: 第2版の2列ミニグリッドを
   廃止し単一列へ戻した。本番反映後にユーザー実測で「提供サービス11本中5本・エリア別特性
   最下部リンクが折り返している」と判明（1セル139px幅に対し最長項目「プレミアムセグメント
   DM」が199px必要）。2列化による高さ圧縮の効果は折り返しによる水増しでほぼ相殺されていた
   ため、単一列に戻したうえで浮いた幅を列2（.footer-inner側、上記コメント参照）へ回した。
   767px以下専用の上書きメディアクエリ（旧: grid-template-columns:1fr）も単一列が既定に
   なったことで不要になり削除済み。 */
.footer-services-grid {
  display: block;
}

.footer-services-grid a {
  margin: 8px 0;
}

.footer-services-all {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.15);
}

.footer-bottom {
  max-width: 1100px;
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

.footer-col .footer-logo-link {
  display: inline-flex !important;
  width: auto;
}

@media (max-width:1024px) {
  .nav-inner {
    padding: 0 24px;
  }
  .nav-links {
    gap: 20px;
    font-size: 0.9rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  /* footer-inner の2列切替は2026-08-27・第6版是正で専用の @media (max-width:1090px)
     （下記 .footer-inner 定義の直後）へ切り出した。理由は下記コメント参照。ここでは
     nav/hero 側の1024pxブレークポイントのみを残す。 */
}

@media (max-width:768px) {
  .nav-inner {
    padding: 0 16px;
  }
  /* 2026-10-07 段階0-1: スマホのヘッダーを1段（56px）に。電話・お問い合わせ・ナビはメニューボタンで開く。
     .spacer は同じ56pxに合わせる（変えるときは nav-top の高さと必ず一緒に） */
  .nav-top {
    padding: 6px 0;
    flex-wrap: wrap;
    border-bottom: none;
  }
  .brand {
    min-height: 44px;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(15,61,94,0.25);
    border-radius: 10px;
    background: #fff;
    color: var(--brand);
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
  }
  nav .nav-right {
    display: none;
    order: 3;
    flex-basis: 100%;
    padding: 10px 0 6px;
    gap: 10px;
  }
  nav.nav-open .nav-right {
    display: flex;
  }
  .nav-bottom {
    display: none;
    padding: 0 0 10px;
  }
  nav.nav-open .nav-bottom {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-links > a,
  .nav-links .nav-dropdown {
    padding: 12px 4px;
    border-top: 1px solid rgba(15,61,94,0.1);
  }
  .nav-links .dropdown-toggle {
    width: 100%;
    padding: 0;
  }
  .brand-logo {
    height: 38px;
  }
  .brand-name-jp {
    font-size: 0.9rem;
  }
  .brand-name-en {
    font-size: 0.68rem;
  }
  .nav-phone {
    font-size: 0.88rem;
    padding: 8px 14px;
  }
  .btn-primary {
    font-size: 0.88rem;
    padding: 8px 16px;
  }
  .nav-links {
    font-size: 0.95rem;
  }
  .dropdown-menu {
    left: 0;
    transform: none;
    min-width: 220px;
  }
  .spacer {
    height: 56px;
  }
  .hero {
    padding: 40px 20px 56px;
  }
  .hero.hero-compact {
    padding: 28px 20px 36px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-lead {
    font-size: 1rem;
  }
  .section {
    padding: 68px 0;
  }
  .section-header h2 {
    font-size: 1.75rem;
  }
  .section-header p {
    font-size: 1rem;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .card {
    padding: 28px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cta h2 {
    font-size: 1.65rem;
  }
  .cta p {
    font-size: 0.95rem;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width:480px) {
  .nav-phone,
  .btn-primary {
    flex: 1;
    justify-content: center;
    font-size: 0.9rem;
    padding: 10px 14px;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .section-header h2 {
    font-size: 1.5rem;
  }
  .btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  .card-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .site-footer {
    padding: 48px 20px 28px;
  }
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

@media print {
  nav,
  .cta,
  .site-footer {
    display: none;
  }
  .section {
    page-break-inside: avoid;
  }
  body {
    background: white;
  }
}

.service-list-section {
  background: linear-gradient(180deg,#f7f9fc 0%,white 100%);
  padding: 64px 0;
}

.service-category {
  margin-top: 64px;
  padding: 32px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15,61,94,0.08);
}

.service-category:first-child {
  margin-top: 44px;
}

.category-title {
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg,var(--brand),var(--accent));
  border-radius: 2px;
}

.category-desc {
  color: var(--text-muted);
  margin: 0 0 24px 0;
  font-size: 0.95rem;
}

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border: 2px solid #e8ecf1;
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,var(--brand),var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(42,111,190,0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .tags {
  margin-bottom: 16px;
}

.service-card h3 {
  margin: 0;
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.service-card .card-desc {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card:hover h3 {
  color: var(--link);
}

.service-note-card {
  margin-top: 64px;
  padding: 32px;
  background: linear-gradient(135deg,#f7f9fc 0%,#e8ecf1 100%);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  text-align: center;
}

.note-text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.service-detail-section {
  background: linear-gradient(180deg,white 0%,#f7f9fc 50%,white 100%);
  padding: 64px 0;
}

.service-detail-card {
  background: white;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(15,61,94,0.06);
  transition: all 0.3s ease;
}

.service-detail-card:hover {
  box-shadow: 0 4px 16px rgba(15,61,94,0.12);
  transform: translateY(-2px);
}

.service-detail-card .tags {
  margin-bottom: 20px;
}

.service-detail-card h2 {
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8ecf1;
}

.service-detail-card .muted {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-detail-card .list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.service-detail-card .list li {
  padding: 12px 0 12px 32px;
  position: relative;
  color: var(--text);
  line-height: 1.7;
  border-bottom: 1px solid #f0f2f5;
}

.service-detail-card .list li:last-child {
  border-bottom: none;
}

.service-detail-card .list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

@media (max-width:768px) {
  .service-category {
    padding: 24px 16px;
    margin-top: 48px;
  }
  .category-title {
    font-size: 1.3rem;
  }
  .service-card {
    padding: 20px;
  }
  .service-detail-card {
    padding: 24px 16px;
  }
  .service-detail-card h2 {
    font-size: 1.2rem;
  }
}

.dropdown-menu {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-toggle.active {
  color: var(--accent) !important;
}

@media (hover:none) and (pointer:coarse) {
  .nav-dropdown:hover .dropdown-menu {
    display: none;
  }
  .dropdown-menu.show {
    display: block;
    visibility: visible;
  }
}

@media (max-width:768px) {
  .nav-dropdown {
    position: relative;
  }
  .dropdown-toggle {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .dropdown-menu {
    position: relative;
    box-shadow: none;
    border-radius: 8px;
    margin-top: 8px;
    width: 100%;
  }
  .dropdown-menu.show {
    display: block;
    visibility: visible;
    animation: slideDown 0.3s ease;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.company-info {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15,61,94,0.08);
  line-height: 1.8;
}

.company-info h3 {
  color: var(--brand);
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8ecf1;
}

.company-info p {
  margin: 8px 0;
  color: var(--text);
}

.company-info strong {
  color: var(--brand);
  font-weight: 600;
}

.company-info a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.3s ease;
}

.company-info a:hover {
  color: var(--brand);
  text-decoration: underline;
}

@media (max-width:768px) {
  .company-info {
    padding: 20px;
  }
  .company-info h3 {
    font-size: 1.3rem;
  }
}

/* 2026-10-07 段階0-1: 1段ヘッダーに社名とメニューボタンを収める（狭い幅では英字名を隠す。ロゴ画像に英字名が入っている） */
@media (max-width:380px) {
  .brand {
    gap: 10px;
    min-width: 0;
  }
  .brand-name-en {
    display: none;
  }
  .brand-name-jp {
    font-size: 0.85rem;
  }
}

@media (max-width:340px) {
  .brand {
    gap: 8px;
  }
  .brand-logo {
    height: 32px;
  }
  .brand-name-jp {
    font-size: 0.72rem;
  }
}

/* 2026-10-07 段階0: 動きを減らす設定に対応（ヒーローの脈動・fade-in-up は常時停止済み。他の動きもここで止める） */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in,
  .slide-in-left,
  .slide-in-right {
    opacity: 1;
    transform: none;
  }
}


/* =====================================================================
   2026-10-07 ヘッダー・ヒーロー「案1＋言葉の版」（ユーザー決定 2026-10-07）
   正本の見本: docs/02_設計・提案/デザイン/hero_mockups/（tokens/common/v1/words.css をここへ統合）
   色の約束: 地 #EAF2F8 系／文字・線 紺 #0F3D5E／差し色はテラコッタ #B4532A（白字）1つだけ／青緑 #138A7E は輪の線だけ
   🔴 測定中の16ページ（ktsc_common.MEASUREMENT_PAGES）でも、この CSS（見た目）は全ページ共通で効く。
      出し分けるのは HTML 側（ヒーローの本文・名札・信頼の帯・流れ）だけ。
   ===================================================================== */
:root {
  --navy: #0f3d5e;
  --terracotta: #b4532a;
  --teal: #138a7e;
  --hero-bg: linear-gradient(180deg, #eaf2f8 0%, #f7fafc 100%);
}

/* ── ヒーロー（明るい地・紺の文字） ── */
.hero { background: var(--hero-bg); color: var(--navy); }
.hero::before { display: none; }
.hero h1 { color: var(--navy); text-wrap: balance; }
.hero-lead { color: var(--navy); opacity: 1; }
.hero .tag { background: rgba(15,61,94,0.10); color: var(--navy); }
@media (min-width: 769px) { .hero, .hero.hero-compact { padding: 64px 28px 56px; } }

/* ── ボタン: 主ボタンはテラコッタ・白字（4.99:1）／副は紺の枠線 ── */
.btn-primary, .cta .btn-primary { background: var(--terracotta); color: #fff !important; box-shadow: none; border: 2px solid var(--terracotta); }
.btn-primary:hover { filter: brightness(0.92); transform: none; box-shadow: none; }
.hero .btn-outline, .hero .btn-outline:visited { background: transparent; backdrop-filter: none; border: 2px solid var(--navy); color: var(--navy) !important; }
.hero .btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff !important; }
/* ヘッダーの「お問い合わせ」は紺の枠線（差し色は主ボタン1つだけ） */
nav .nav-right .btn-primary { background: #fff; color: var(--navy) !important; border: 2px solid var(--navy); box-shadow: none; }

/* ── 社名・添え書き（1つの要素・1つの文。12px以上） ── */
.brand-name-jp { word-break: keep-all; }
.brand-tagline { color: var(--navy); font-size: 0.78rem; font-weight: 600; line-height: 1.3; font-feature-settings: "palt"; }
.btn-head-contact { display: none; }   /* PC は .nav-right 内の「お問い合わせ」を使う */

/* ── フッター（明るく） ── */
.site-footer { background: #eaf2f8; color: var(--navy); border-top: 1px solid rgba(15,61,94,0.14); }
.site-footer::before { display: none; }
.footer-logo-link { background: transparent; padding: 0; }
.footer-tagline, .footer-address { color: var(--text-muted); }
.footer-phone { color: var(--navy) !important; }
.footer-cta { background: #fff; border: 1px solid var(--navy); color: var(--navy) !important; }
.footer-cta:hover { background: #fff; border-color: var(--navy); }
.footer-col h4 { color: var(--navy); border-bottom-color: rgba(15,61,94,0.25); }
.footer-col a { color: var(--brand2); }
.footer-col a:hover { color: var(--navy); }
.footer-col a i, .footer-col h4 i, .footer-phone i, .footer-address i, .footer-cta i { color: var(--brand2); }
.footer-services-all { border-top: 1px dashed rgba(15,61,94,0.25); }
.footer-bottom { color: var(--text-muted); border-top-color: rgba(15,61,94,0.18); }

/* ── ヒーローの並び（絵・名札があるときだけ。PC は文字と絵の2列・スマホは文字→主ボタン→絵） ── */
.hero-content.has-art { display: block; }
.hero-art { margin-top: 28px; }
.hero-buttons { align-items: center; }
@media (min-width: 900px) {
  .hero-content.has-art { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); column-gap: 48px; align-items: center; max-width: 1100px; }
  .hero-content.has-art > * { grid-column: 1; }
  .hero-content.has-art > .hero-art { grid-column: 2; grid-row: 1 / span 6; margin: 0; }
  /* 左の列の幅に収めて、見出しの「る。」だけが1行になるのを防ぐ */
  .hero-content.has-art h1 { font-size: clamp(1.7rem, 2.9vw, 2.2rem); }
}

/* ── 主ボタン＋補足・副リンク ── */
.cta-block { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cta-note { margin: 0; font-size: 0.85rem; color: var(--navy); line-height: 1.5; }
.sub-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.sub-links .btn { white-space: normal; text-align: left; }
.has-art .hero-buttons { flex-direction: column; align-items: flex-start; gap: 14px; }
@media (min-width: 769px) { .sub-links .btn { padding: 8px 16px; font-size: 0.88rem; } }

.btn-label { text-align: left; }
.nb { white-space: nowrap; }   /* 「AREA DIRECT LOOP（…）とは」を文節の位置で折る。文言は components/hero_parts.html の ADL_GLOSS */
/* PC: ヘッダーの高さ（約150px）と .spacer を合わせる（ヒーローの上がヘッダーに隠れない。nav は fixed なので CLS は出ない） */
@media (min-width: 769px) { .spacer { height: 150px; } }
/* 日本語は文節で折る（対応ブラウザのみ）。h1 の「る。」だけが1行になるのを防ぐ。最小の画面（〜480px）では強制改行を外して流し込む */
.hero h1, .hero-lead { word-break: auto-phrase; }
@media (max-width: 480px) { .hero-content.has-art h1 br { display: none; } }

/* ── 媒体の名札・輪 ── */
.art-v1 { display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--navy); }
.art-v1 .ring { display: block; width: 200px; height: 200px; flex: none; color: var(--teal); }
.media-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.media-list li { font-size: 0.8rem; line-height: 1.3; padding: 4px 10px; background: #fff; border: 1px solid var(--navy); border-radius: 999px; color: var(--navy); }
.media-list li.more { background: transparent; border-style: dashed; }
.art-compact { align-items: flex-start; gap: 6px; }
.art-compact .media-list { justify-content: flex-start; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 768px) {
  .art-v1 .media-list li { font-size: 0.76rem; padding: 3px 9px; }
}
@media (min-width: 900px) { .art-v1.art-big .ring { width: 260px; height: 260px; } .art-v1 .media-list { max-width: 420px; } }
/* 名札は3行まで: 先頭5つ＋ほかN媒体（320pxで3行に収まる最大数）。340px以下は字と余白をわずかに詰める */
@media (max-width: 340px) { .art-v1 .media-list { gap: 5px; } .art-v1 .media-list li { font-size: 0.72rem; padding: 3px 8px; } }

/* ── 信頼の帯・ご相談の流れ ── */
.trust-strip { background: #fff; border-top: 1px solid rgba(15,61,94,0.12); border-bottom: 1px solid rgba(15,61,94,0.12); padding: 14px 20px; text-align: center; }
.trust-strip p { word-break: keep-all; margin: 0 auto; color: var(--navy); font-weight: 600; font-size: 0.95rem; line-height: 1.7; max-width: 880px; }
.flow { background: var(--bg); padding: 26px 20px 30px; }
.flow-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.flow-title { margin: 0 0 12px; font-weight: 700; color: var(--navy); font-size: 1rem; }
.flow-steps { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.flow-steps li:not(.arw) { display: flex; align-items: center; gap: 7px; background: #fff; border: 1.5px solid var(--navy); border-radius: 999px; padding: 6px 14px 6px 8px; font-weight: 700; font-size: 0.88rem; color: var(--navy); text-align: left; }
.flow-steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; flex: none; }
.flow-steps .arw { color: var(--navy); font-weight: 700; }
.flow-txt { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 768px) { .flow-steps { flex-direction: column; align-items: stretch; } .flow-steps .arw { transform: rotate(90deg); align-self: center; line-height: 1; } }

/* ── スマホのヘッダー（1段・44pxの問い合わせアイコン・添え書き） ── */
@media (max-width: 768px) {
  nav .nav-top { gap: 8px; }
  nav .brand { flex: 1 1 0; min-width: 0; gap: 10px; }
  nav .nav-top { min-height: 64px; }   /* 添え書きが2行になっても高さが揺れない。.spacer も同じ値（変えるときは必ず一緒に） */
  .spacer { height: 64px; }
  nav .brand-logo { height: 30px; }
  nav .brand-name-en { display: none; }   /* ロゴ画像に英字名が入っている。添え書きの幅を取る */
  .brand-tagline { font-size: 0.75rem; /* 12px */ text-wrap: balance; }
  .btn-head-contact { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; margin-left: auto; border: 1px solid rgba(15,61,94,0.25); border-radius: 10px; background: #fff; color: var(--navy); text-decoration: none; }
  .btn-head-contact:hover { background: #eaf2f8; }
  .hero h1 { font-size: 1.6rem; line-height: 1.35; margin-bottom: 14px; }
  .hero-lead { font-size: 0.98rem; line-height: 1.8; margin-bottom: 18px; }
  /* 主ボタンは文字の幅に余白を足した大きさ。副は文字リンク */
  .hero-buttons { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-buttons .btn-primary { order: -1; padding: 9px 20px; font-size: 0.92rem; }
  .hero .btn-outline { border-color: transparent; background: transparent; padding: 8px 2px; text-decoration: underline; text-underline-offset: 3px; }
  .hero .btn-outline:hover { background: transparent; color: var(--navy) !important; }
  .hero-art { margin-top: 18px; }
  /* 開いたメニューが画面より高いとき（横向き等）は nav の中でスクロールする。「提供サービス」は押せる高さ44pxを確保 */
  nav.nav-open { max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  .nav-links .nav-dropdown { flex-direction: column; align-items: stretch; padding: 0 4px; }
  .nav-links .dropdown-toggle { width: 100%; justify-content: flex-start; padding: 12px 0; min-height: 44px; }
  .nav-links .dropdown-menu { position: static; max-height: none; margin: 0 0 8px; }
}
/* 374px以下: 社名と添え書きが問い合わせアイコン(44px)の下に隠れないよう、余白・ロゴ・社名を詰める（実測 320/340/361/374/375 で重なりなし。361〜374px も同じ規則で足りる） */
@media (max-width: 374px) {
  nav .nav-inner { padding: 0 10px; }
  nav .nav-top { gap: 6px; }
  nav .brand { gap: 6px; }
  nav .brand-logo { height: 24px; }
  nav .brand-name-jp { font-size: 0.78rem; }
}
@media (max-width: 340px) {
  nav .brand-logo { height: 22px; }
  nav .brand-name-jp { font-size: 0.7rem; }
}

/* 輪の中央の小さい行「まとめて設計」: PC(900px以上。小数幅の隙間を避け 899.98px 以下をスマホ側に)は見本どおり13、スマホ・タブレットは輪が200px表示に縮むため16（実寸 約12.3px）に（QA再検収 2026-10-07） */
@media (max-width: 899.98px) { .ring .ring-sub { font-size: 16px; } }

/* ── 本文デザイン見直し 第1段（2026-10-07・型A〜H。文言・構造は変えない。設計正本 docs/02_設計・提案/デザイン/body_refresh_20261007/）──
   対象: service.html・lab_article.html（.service-detail-card）、concept.html・company.html の FAQ（.faq-item）。
   色はヘッダー・ヒーロー案1にそろえる（地 #EAF2F8・文字 #0F3D5E・青緑 #138A7E は線とアイコンだけ）。属性セレクタは使わず、テンプレートのクラスで当てる。
   ※ ここは style.css の末尾。.service-detail-card 系の基本規則（上の方）より後ろに置くこと（同じ強さの規則は後ろが勝つ） */
:root {
  --br-ground: #eaf2f8; --br-ground-2: #f5f9fc; --br-line: #d3e2ee;
  --br-teal: #138a7e; --br-teal-ink: #0b6f65;
  --br-ok: #146b37; --br-ng: #a8321c; --br-ink: #33424f;
}
.service-detail-section { background: linear-gradient(180deg,#fff 0%,var(--br-ground-2) 60%,#fff 100%); }

/* 型A: カード見出しを帯にして、種類（sd-<section.type>）ごとの丸いアイコンを付ける。アイコンは36px固定でCLSなし */
.service-detail-section .service-detail-card {
  display: flex; flex-direction: column; padding: 0 36px 32px; overflow: hidden;
  border: 1px solid var(--br-line); border-top: 3px solid var(--br-teal); box-shadow: 0 1px 4px rgba(15,61,94,0.06);
}
.service-detail-section .service-detail-card:hover { transform: none; box-shadow: 0 1px 4px rgba(15,61,94,0.06); }
.service-detail-section .service-detail-card h2 {
  order: -2; display: flex; align-items: center; gap: 12px;
  margin: 0 -36px 24px; padding: 18px 36px; background: var(--br-ground);
  border-bottom: 1px solid var(--br-line); font-size: 1.3rem; line-height: 1.4;
}
.service-detail-section .service-detail-card h2::before {
  content: "\f0c9"; font-family: "Font Awesome 6 Free","Font Awesome 5 Free"; font-weight: 900; font-size: 0.95rem;
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--navy); border: 1.5px solid var(--br-teal);
}
.service-detail-section .sd-overview h2::before { content: "\f05a"; }
.service-detail-section .sd-features h2::before { content: "\f0ae"; }
.service-detail-section .sd-loop_position h2::before { content: "\f021"; }
.service-detail-section .sd-industries h2::before { content: "\f1ad"; }
.service-detail-section .sd-merit_demerit h2::before { content: "\f24e"; }
.service-detail-section .sd-combinations h2::before { content: "\f12e"; }
.service-detail-section .sd-comparison h2::before { content: "\f0ce"; }
.service-detail-section .sd-custom h2::before { content: "\f005"; }
.service-detail-section .sd-faq h2::before { content: "\f059"; }
.service-detail-section .sd-areas h2::before { content: "\f3c5"; }
.service-detail-section .sd-toc h2::before { content: "\f03a"; }

/* 型B: タグ（種類のラベル）は見出しの下に置き、折り返さない（posting の「AREA DIRECT LOOP 対応」が375pxで崩れていた） */
.service-detail-section .service-detail-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-detail-section .service-detail-card > h2 + .tags { margin: 0 0 18px; } /* 第2段 L2: タグは HTML でも h2 の直後（見た目と同じ順）。以前は HTML でタグが先で order で入れ替えていた */
.service-detail-section .service-detail-card .tag { white-space: nowrap; border: 1px solid var(--br-line); background: #fff; }
.service-detail-section .service-detail-card .tag:hover { background: var(--brand); color: #fff; }

/* 型C: 箇条を丸いチェックに。太字の見出し語を紺で締める */
.service-detail-section .list li { padding: 13px 0 13px 40px; border-bottom: 1px dashed var(--br-line); }
.service-detail-section .list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free","Font Awesome 5 Free"; font-weight: 900; font-size: 0.68rem;
  left: 0; top: 15px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #e3f3f1; color: var(--br-teal-ink);
}
.service-detail-section .list li strong, .service-detail-section .list li b { color: var(--navy); }

/* 型D: メリット／デメリット。旧 #2ecc71（白地で約2.2:1）をやめ、白地で4.5:1以上の濃さに（--br-ok 約6.2:1／--br-ng 約6.3:1）。デメリットは「!」 */
.service-detail-section .md-card { padding: 20px; border-left: 4px solid var(--br-ok); background: #f2faf5; }
.service-detail-section .md-card.md-ng { border-left-color: var(--br-ng); background: #fdf4f2; }
.service-detail-section .md-card .md-title { margin-top: 0; font-size: 1rem; color: var(--br-ok); }
.service-detail-section .md-card.md-ng .md-title { color: var(--br-ng); }
.service-detail-section .md-card .md-list { font-size: 0.88rem; margin: 8px 0 0; }
.service-detail-section .md-card .list li::before { background: #d9f0e2; color: var(--br-ok); }
.service-detail-section .md-card.md-ng .list li::before { content: "!"; font-family: inherit; font-size: 0.8rem; background: #f8ddd7; color: var(--br-ng); }

/* 型E: よくある質問を Q／A の対に（service・lab は .service-detail-card 内、concept・company は .faq-item 内。同じ .faq-q／.faq-a） */
.faq-list { max-width: 820px; margin: 40px auto 0; }
.faq-list .faq-item { padding: 20px 0; border-bottom: 1px solid #e8ecf1; }
.faq-list .faq-item:last-child { border-bottom: 0; }
.faq-q {
  display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 16px 0 8px;
  font-size: 1.02rem; line-height: 1.6; color: var(--navy); font-weight: 700;
}
.faq-q::before {
  content: "Q"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 0.8rem; font-weight: 700;
}
/* エリアの区の FAQ: 文字の「Q.」をそのままバッジに見せる（HTMLの文字は変えない） */
.faq-q-text::before { content: none; }
.faq-badge { flex: none; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 13px; display: inline-grid; place-items: center; background: var(--navy); color: #fff; font-size: 0.8rem; font-weight: 700; line-height: 1; }
.faq-a { position: relative; margin: 0 0 4px; padding: 0 0 10px 38px; color: var(--br-ink); line-height: 1.85; }
.faq-a::before {
  content: "A"; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--br-teal-ink); border: 1.5px solid var(--br-teal); font-size: 0.8rem; font-weight: 700;
}
.service-detail-section .service-detail-card .faq-a { margin: 0 0 4px; max-width: none; line-height: 1.85; font-size: 1rem; color: var(--br-ink); }
.service-detail-card .faq-a + .faq-q { border-top: 1px dashed var(--br-line); }
.service-detail-card h2 + .faq-q { padding-top: 0; }
.faq-item .faq-q { padding-top: 0; }
.faq-item .faq-a { margin: 0; padding-bottom: 0; }

/* 型F: 長い本文（導入の段落を一段大きく・行長を抑える・色は少し濃く） */
.service-detail-section .service-detail-card > p.muted { color: var(--br-ink); line-height: 1.95; max-width: 46em; }
.service-detail-section .service-detail-card > h2 + p.muted { font-size: 1.04rem; color: var(--navy); }

/* 型G: 比較表（見出し行を淡い青・青緑の下線・縞・1列目を太字）。インライン style をやめてクラスに */
.service-detail-section .cmp-wrap { margin-top: 20px; padding: 0; overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp-table thead tr { background: var(--br-ground); }
.cmp-table th { padding: 14px 18px; text-align: left; font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--br-teal); white-space: nowrap; }
.cmp-table td { padding: 14px 18px; color: var(--text-muted); vertical-align: top; }
.cmp-table tbody tr { border-bottom: 1px solid #e8ecf1; }
.cmp-table tbody tr:nth-child(even) { background: var(--br-ground-2); }
.cmp-table td:first-child { font-weight: 700; color: var(--navy); }

/* 型G-スマホ（案A・ユーザー決定 2026-10-07）: 600px以下で表の1行を1枚のカードに。<td data-label> はテンプレート側。PCは変えない */
/* 案A（推奨）: 600px以下で、表の1行を1枚のカードにする。文言は変えない・横スクロールなし。
   前提クラス: style.css の .cmp-wrap / .cmp-table（第1段 型G）。テンプレート変更は各 <td> に data-label を足す1点だけ:
     {% for cell in row %}<td data-label="{{ section.columns[loop.index0] }}">{{ cell }}</td>{% endfor %}
   見出し行 <thead> は消さず「画面外」に退避（スクリーンリーダーには残る）。 */
@media (max-width:600px){
  .service-detail-section .card.cmp-wrap{padding:0; overflow:visible; background:transparent; border:0; box-shadow:none; border-radius:0; margin-top:16px}
  .cmp-table{display:block; min-width:0; width:100%}
  .cmp-table thead{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
  .cmp-table tbody{display:block}
  .cmp-table tbody tr{display:block; margin:0 0 12px; border:1px solid var(--br-line); border-radius:12px; background:#fff; overflow:hidden}
  .cmp-table tbody tr:nth-child(even){background:#fff}
  .cmp-table td{display:block; padding:10px 14px; line-height:1.7; color:var(--br-ink)}
  .cmp-table td:first-child{padding:11px 14px; background:var(--br-ground); border-bottom:2px solid var(--br-teal); font-size:1rem; line-height:1.5}
  .cmp-table td:not(:first-child){border-top:1px dashed var(--br-line)}
  .cmp-table td:first-child + td{border-top:0}
  .cmp-table td:not(:first-child)::before{content:attr(data-label); display:block; margin-bottom:1px; font-size:.76rem; font-weight:700; letter-spacing:.02em; color:#0B6F65}
  /* 2列の表は、列名が行見出しの言い換えにしかならないので出さない */
  .cmp-table td:nth-child(2):last-child::before{display:none}
}

/* 型H: ラボ記事の通し番号（CSSの数え上げ）と、2列＋番号の目次 */
.service-detail-section .container { counter-reset: labsec toc; }
.service-detail-section .lab-sec h2 { counter-increment: labsec; }
.service-detail-section .lab-sec h2::before {
  content: counter(labsec, decimal-leading-zero); font-family: inherit; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em;
}
.service-detail-section .lab-toc { background: #fff; }
.service-detail-section .lab-toc .list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 28px; }
.service-detail-section .lab-toc .list li { counter-increment: toc; }
.service-detail-section .lab-toc .list li::before { content: counter(toc, decimal-leading-zero); font-family: inherit; font-weight: 700; font-size: 0.75rem; }

@media (max-width: 768px) {
  .service-detail-section .service-detail-card { padding: 0 16px 24px; }
  .service-detail-section .service-detail-card h2 { margin: 0 -16px 20px; padding: 14px 16px; font-size: 1.1rem; }
  .service-detail-section .service-detail-card h2::before { width: 32px; height: 32px; }
  .service-detail-section .lab-toc .list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .service-detail-section .service-detail-card { transition: none; } }

/* ── 本文デザイン見直し 第2段の部品（2026-10-07 取り込み。設計正本 docs/02_設計・提案/デザイン/body_refresh_phase2_20261007/・部品の使い方は README §2）──
   テンプレートは templates/_p2_macros.html。データが無ければ何も出ない（既存ページは第1段のまま）。
   色は第1段と同じ（地 #EAF2F8・紺 #0F3D5E・青緑 #138A7E は線とアイコンだけ・テラコッタは「押せる所」専用なので使わない）。注意枠だけ黄土色（赤はデメリット枠と混ざるため不使用）。
   枠のラベル語・手順の番号は疑似要素で出す＝タグを除いた文字は layout／note_kind の有無で変わらない。 */
.service-detail-section {
  --p2-navy: #0F3D5E; --p2-ground: #EAF2F8; --p2-ground2: #F5F9FC; --p2-teal: #138A7E; --p2-teal-ink: #0B6F65;
  --p2-line: #D3E2EE; --p2-ink: #26343F; --p2-sub: #4B5B67;
  --p2-fa: "Font Awesome 6 Free","Font Awesome 5 Free";
}

/* 見出しの無い節（lab の sd-notitle）: カードの上線から最初の段落までの余白（第1段QA L5。それまで3px） */
.service-detail-section .service-detail-card.sd-notitle { padding-top: 24px; }

/* 要点の囲み（ページ冒頭）。<section> で .service-detail-card ではない＝ホバーで浮かない */
.p2-summary { margin: 0 0 32px; padding: 22px 28px 14px; background: var(--p2-ground); border: 1px solid var(--p2-line); border-left: 4px solid var(--p2-teal); border-radius: 12px; }
.p2-summary-h { display: flex; align-items: center; gap: 10px; margin: 0 0 8px !important; padding: 0 !important; border: 0 !important; font-size: 1.1rem !important; color: var(--p2-navy) !important; }
.p2-summary-h i { color: var(--p2-teal-ink); }
.p2-summary-list { list-style: none; margin: 0; padding: 0; counter-reset: ps; }
.p2-summary-list li { position: relative; counter-increment: ps; padding: 9px 0 9px 42px; color: var(--p2-ink); font-weight: 600; line-height: 1.75; }
.p2-summary-list li + li { border-top: 1px dashed var(--p2-line); }
.p2-summary-list li::before { content: counter(ps); position: absolute; left: 0; top: 10px; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: var(--p2-navy); color: #fff; font-size: .82rem; font-weight: 700; }

/* 数字の帯 */
.p2-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; margin: 22px 0 4px; }
.p2-stat { padding: 16px 12px 14px; text-align: center; background: #fff; border: 1px solid var(--p2-line); border-top: 3px solid var(--p2-teal); border-radius: 10px; }
.p2-stat-v { font-size: 2.1rem; font-weight: 800; line-height: 1.15; color: var(--p2-navy); font-variant-numeric: tabular-nums; }
.p2-stat-pre, .p2-stat-u { font-size: .92rem; font-weight: 700; }
.p2-stat-pre { margin-right: 4px; }
.p2-stat-u { margin-left: 3px; }
.p2-stat-l { margin-top: 8px; font-size: .86rem; line-height: 1.55; color: var(--p2-sub); }
.p2-stats-note { margin: 10px 0 22px !important; font-size: .8rem; color: var(--p2-sub); }
/* 第2段その2 L4: 部品とその下の段落・注の間の余白を、上と同じくらい（約22px）に */
.p2-stats { margin-bottom: 22px; }
.p2-stats + .p2-stats-note { margin-top: -12px !important; }
.p2-flow { margin-bottom: 22px; }
.p2-flow + .p2-fig-caption, .p2-compare + .p2-fig-caption { margin-top: -12px !important; }
.p2-steps { margin-bottom: 4px; }
.p2-checks, .p2-terms { margin-bottom: 22px; }

/* ポイント／注意／補足／表の読み方 の枠。ラベル語とアイコンは疑似要素（アイコンは読み上げ対象外の代替テキスト空） */
.p2-box { display: flex; flex-direction: column; gap: 6px; margin: 20px 0 0; padding: 14px 18px; border-radius: 10px; border: 1px solid var(--p2-line); border-left-width: 4px; font-size: .95rem; line-height: 1.85; color: var(--p2-ink); }
.p2-box-label { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; letter-spacing: .04em; }
.p2-box-label::before { font-family: var(--p2-fa); font-weight: 900; }
.p2-box--point .p2-box-label::before { content: "\f0eb"; content: "\f0eb" / ""; }
.p2-box--point .p2-box-label::after { content: "ポイント"; }
.p2-box--caution .p2-box-label::before { content: "\f071"; content: "\f071" / ""; }
.p2-box--caution .p2-box-label::after { content: "注意"; }
.p2-box--memo .p2-box-label::before { content: "\f05a"; content: "\f05a" / ""; }
.p2-box--memo .p2-box-label::after { content: "補足"; }
.p2-box--howto .p2-box-label::before { content: "\f06e"; content: "\f06e" / ""; }
.p2-box--howto .p2-box-label::after { content: "表の読み方"; }
.p2-box--point { background: #EEF7F6; border-color: #BFE0DC; border-left-color: var(--p2-teal); }
.p2-box--point .p2-box-label { color: var(--p2-teal-ink); }
.p2-box--caution { background: #FBF4E2; border-color: #E6D3A0; border-left-color: #A67C00; color: #3B2F0A; }
.p2-box--caution .p2-box-label { color: #7A5C00; }
.p2-box--memo { background: var(--p2-ground2); border-left-color: #7C93A6; }
.p2-box--memo .p2-box-label { color: #3F5A70; }
.p2-box--howto { background: var(--p2-ground2); border-left-color: var(--p2-navy); font-size: .88rem; line-height: 1.8; }
.p2-box--howto .p2-box-label { color: var(--p2-navy); display: none; } /* 第2段その2 L2: 本文に「（読み方:」が残るためラベル「表の読み方」は出さない（重複を避ける）。左の紺の線で枠だと分かる */
.p2-box a { font-weight: 600; }

/* 対比図（2者の比較） */
.p2-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin: 4px 0 22px; }
.p2-compare-col { background: #fff; border: 1px solid var(--p2-line); border-radius: 12px; overflow: hidden; }
.p2-compare-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--p2-ground); border-bottom: 2px solid var(--p2-teal); color: var(--p2-navy); font-weight: 700; }
.p2-compare-h i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--p2-teal); font-size: .88rem; }
.p2-compare-col ul { list-style: none; margin: 0; padding: 6px 16px 10px; }
.p2-compare-col li { position: relative; padding: 9px 0 9px 22px; font-size: .94rem; line-height: 1.65; color: var(--p2-ink); }
.p2-compare-col li + li { border-top: 1px dashed var(--p2-line); }
.p2-compare-col li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--p2-teal); }
.p2-compare-vs { align-self: center; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--p2-navy); color: #fff; font-size: .85rem; font-weight: 700; }
.p2-fig-caption { margin: 0 0 22px !important; font-size: .84rem; color: var(--p2-sub); text-align: center; }

/* 流れ図（2〜4段階。左から右／スマホは上から下） */
.p2-flow { list-style: none; margin: 4px 0 22px; padding: 0; display: flex; align-items: stretch; }
.p2-flow-step { flex: 1; position: relative; display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; background: var(--p2-ground); border: 1px solid var(--p2-line); border-radius: 12px; line-height: 1.6; }
.p2-flow-step + .p2-flow-step { margin-left: 36px; }
.p2-flow-step + .p2-flow-step::before { content: "\f061"; font-family: var(--p2-fa); font-weight: 900; position: absolute; left: -27px; top: 50%; transform: translateY(-50%); color: var(--p2-teal-ink); font-size: 1rem; }
.p2-flow-tag { align-self: flex-start; padding: 2px 12px; border-radius: 999px; background: var(--p2-navy); color: #fff; font-size: .76rem; font-weight: 700; }
.p2-flow-step strong { color: var(--p2-navy); }
.p2-flow-step span:last-child { font-size: .88rem; color: var(--p2-sub); }

/* 手順（縦の番号つき線）。番号は CSS の数え上げ。「1.」「①」で始まる項目は番号の丸を無地にして、文字の番号と二重にしない */
.p2-steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: p2st; }
.p2-steps li { position: relative; counter-increment: p2st; display: flex; gap: 16px; padding-bottom: 18px; }
.p2-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--p2-line); }
.p2-steps-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--p2-navy); color: #fff; font-size: .88rem; font-weight: 700; }
.p2-steps-n::before { content: counter(p2st); }
.p2-steps-ord .p2-steps-n::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.p2-steps li > div { padding-top: 3px; line-height: 1.75; color: var(--p2-ink); }
.p2-steps-when { display: inline-block; margin-right: 8px; padding: 0 10px; border-radius: 999px; background: var(--p2-ground); border: 1px solid var(--p2-line); color: var(--p2-navy); font-size: .82rem; font-weight: 700; line-height: 1.7; }

/* 短い項目（チップ）／確認項目／語と説明の対 */
.p2-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 18px; padding: 0; }
/* 第2段その2 L3: 押せるタグ（丸いピル）と見分けるため、角を小さく・地に薄い色・左に細い線。ホバーでも変わらない（押せない） */
.p2-chips li { padding: 6px 12px; background: var(--p2-ground2); border: 1px solid var(--p2-line); border-left: 3px solid var(--p2-teal); border-radius: 3px; font-size: .92rem; line-height: 1.55; color: var(--p2-ink); cursor: default; }
.p2-checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 10px; counter-reset: pc; }
.p2-checks li { position: relative; counter-increment: pc; padding: 12px 14px 12px 52px; background: var(--p2-ground2); border: 1px solid var(--p2-line); border-radius: 10px; line-height: 1.6; color: var(--p2-ink); }
.p2-checks li::before { content: counter(pc); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--p2-teal); color: var(--p2-teal-ink); font-size: .8rem; font-weight: 700; }
.p2-terms { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 10px; margin: 18px 0 22px; }
.p2-terms > div { padding: 12px 16px; background: #fff; border: 1px solid var(--p2-line); border-left: 3px solid var(--p2-teal); border-radius: 10px; }
.p2-terms dt { font-weight: 700; color: var(--p2-navy); line-height: 1.6; }
.p2-terms dd { margin: 2px 0 0; font-size: .92rem; line-height: 1.7; color: var(--p2-ink); }

/* 段落の中の小見出し（第1段 型E の Q/A は .faq-q／.faq-a のクラスで当てているので h3 では衝突しない） */
.service-detail-section .service-detail-card > h3.p2-h3 { display: block; margin: 28px 0 8px; padding: 0 0 0 12px; border: 0; border-left: 4px solid var(--p2-teal); font-size: 1.08rem; line-height: 1.5; color: var(--p2-navy); }
.service-detail-section .service-detail-card > h3.p2-h3 + p.muted { max-width: 46em; margin: 0 0 16px; }

@media (max-width: 700px) {
  .p2-summary { padding: 18px 16px 10px; margin-bottom: 24px; }
  .p2-flow { flex-direction: column; }
  .p2-flow-step + .p2-flow-step { margin: 34px 0 0; }
  .p2-flow-step + .p2-flow-step::before { content: "\f063"; left: 50%; top: -27px; transform: translateX(-50%); }
  .p2-stat-v { font-size: 1.8rem; }
  .p2-terms { grid-template-columns: 1fr; }
  /* 対比図: 縦に積む。「対」は行を取らず2つの箱の継ぎ目に重ね、余白と字を一段詰める */
  .p2-compare { grid-template-columns: 1fr; gap: 0; margin: 2px 0 20px; }
  .p2-compare-h { padding: 10px 14px; }
  .p2-compare-h i { width: 30px; height: 30px; font-size: .8rem; }
  .p2-compare-col ul { padding: 2px 14px 8px; }
  .p2-compare-col li { padding: 7px 0 7px 20px; font-size: .9rem; line-height: 1.6; }
  .p2-compare-col li::before { top: 15px; }
  .p2-compare-vs { position: relative; z-index: 1; justify-self: center; margin: -15px 0; width: 30px; height: 30px; font-size: .78rem; border: 3px solid #fff; box-sizing: content-box; }
  .service-detail-section .service-detail-card.sd-notitle { padding-top: 20px; }
}
