@charset "UTF-8";

/* --- 基本設定 --- */
:root {
  --primary-color: #242f92;
  --accent-red: #e60000;
  --text-color: #333333;
  --bg-light: #f4f5f7;
  --border-color: #dddddd;
  --header-border: #cccccc;
  --header-height: 86px;
  --thead-row1-height: 31px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  font-size: 0.95rem; /* PC時の基本文字サイズ */
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-light);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a { color: var(--primary-color); text-decoration: underline; }
a:hover { text-decoration: none; }
ul, ol { padding-left: 20px; }

/* --- 共通ヘッダー & スティッキー追従ナビゲーション --- */
.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* フラット感を保ちつつ本文の上に重なる繊細な影 */
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 84px;
}
.header-logo {
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 60px;
  width: auto;
  display: block;
}
.header-inner nav {
  display: flex;
  align-items: center;
}
.global-nav {
  display: flex;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
  align-items: center;
}
.global-nav li {
  display: flex;
  align-items: center;
  position: relative;
}
.global-nav li:not(:last-child)::after {
  content: "";
  display: block;
  width: 1px;
  height: 14px;
  background-color: #d5d8dc;
  margin: 0 6px;
}
.global-nav li a {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: inline-block;
}
.global-nav li a:hover {
  color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.04);
}
.global-nav li a.current {
  color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.05);
}
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary-color);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --- パンくずリスト --- */
.breadcrumb {
  max-width: 1180px;
  margin: 15px auto 0;
  padding: 0 20px;
  font-size: 0.85rem;
  color: #666;
}
.breadcrumb a { color: #666; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* --- メインコンテナ --- */
.container {
  max-width: 1180px;
  margin: 20px auto 50px;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: visible; /* 子要素のposition:stickyを全ブラウザで確実に有効化 */
}


/* --- ページヒーロー（メインビジュアル風ヘッダー：フラット単色仕様） --- */
.page-hero {
  margin: -40px -40px 26px -40px;
  padding: 34px 40px 30px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 8px 8px 0 0;
  position: relative;
}
.page-hero h1 {
  font-size: 1.55rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.page-hero .intro-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.65;
}

/* --- TOPページ用 メインビジュアル（センタリング・高ジャンプ率・フラット単色仕様） --- */
.page-hero.hero-top {
  padding: 26px 40px 24px;
  text-align: center;
  background-color: var(--primary-color);
}
.hero-top h1 {
  margin-bottom: 0;
  line-height: 1.25;
}
.hero-top .hero-top-sub {
  display: block;
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.hero-top .hero-top-main {
  display: block;
  font-size: 2.75rem; /* 高いジャンプ率を保ちつつ天地を約70%に最適化 */
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.hero-top .intro-text {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}
.pc-br {
  display: inline;
}

/* --- 見出しデザイン --- */
h1 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}
.intro-text {
  font-size: 0.95rem;
  color: #555;
  border-bottom: 2px solid var(--header-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.15rem;
  color: #ffffff;
  background-color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 4px;
  border-left: none;
}
h3 {
  font-size: 1.05rem;
  color: #444;
  margin-top: 25px;
  margin-bottom: 12px;
  border-bottom: 1px dashed #bbbbbb;
  padding-bottom: 6px;
}
.date {
  text-align: right;
  color: #666;
  font-size: 0.85rem; /* 注記・メタ情報サイズに統一 */
  margin-bottom: 15px;
}

/* --- 赤枠（緊急案内） --- */
.red-box {
  border: 2px solid var(--accent-red);
  padding: 18px 20px;
  margin: 25px 0;
  background-color: #fff9f9;
  border-radius: 4px;
}
.red-box p {
  color: var(--accent-red);
  font-weight: bold;
  margin: 0;
  font-size: 0.95rem; /* 本文と統一 */
  line-height: 1.7;
}
.red-box a {
  color: var(--accent-red);
  text-decoration: underline;
}

/* --- テーブル（表）共通 --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
  font-size: 0.95rem;
}
.data-table th, .data-table td {
  border: 1px solid #d5dceb;
  padding: 12px 14px;
  vertical-align: middle;
}
.data-table th {
  background-color: #e7ecf7;
  color: #1c2574;
  font-weight: bold;
  text-align: center;
}
.data-table tr:nth-child(even) td {
  background-color: #f8f9fc;
}

/* --- テーブルの横スクロール対応（スマホ対応） --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 30px;
}
.table-responsive .data-table {
  margin: 0;
}

/* --- テーブル列幅・折り返し制御 --- */
.data-table th.col-pay,
.data-table td.col-pay {
  white-space: nowrap;
  width: 1%;
  text-align: center;
  padding: 12px 10px;
}
.data-table th.col-unit,
.data-table td.col-unit {
  white-space: nowrap;
  width: 1%;
  text-align: center;
  padding: 12px 10px;
}
.data-table th.col-price,
.data-table td.text-right {
  white-space: nowrap;
}
.data-table th.col-note,
.data-table td.col-note {
  width: 32%;
  line-height: 1.6;
}
.data-table .nowrap {
  white-space: nowrap;
}

/* テーブル補助クラス */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-red { color: var(--accent-red); font-weight: bold; }
.note-list { margin-top: -15px; margin-bottom: 25px; font-size: 0.85rem; color: #666; line-height: 1.6; }
.note-list p { margin-bottom: 4px; }
.note { font-size: 0.85rem; color: #666; margin-top: -15px; margin-bottom: 25px; }

/* --- ステータスバッジ --- */
.badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  min-width: 9.6em;
  box-sizing: border-box;
  line-height: 1.35;
}
/* 緑背景白文字：受付中（フラットデザイン仕様・白チェックマーク付き） */
.badge-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-left: 9px;
  padding-right: 15px; /* チェックマーク分右余白を広げて視覚的中央に */
  background-color: #198754;
  color: #ffffff !important;
  border: 1px solid #198754;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.badge-ok::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3.1 3.1 6.5-6.8' fill='none' stroke='%23ffffff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
a.badge-ok:hover {
  background-color: #146c43;
  border-color: #146c43;
  text-decoration: none !important;
}
.badge-ng   { background-color: #eeeeee; color: #757575; border: 1px solid #cccccc; } /* グレー：受付一時停止中 */
.badge-prep { background-color: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9; } /* 青：準備中 */
.badge-auto { background-color: #fff8e1; color: #e65100; border: 1px solid #ffe082; } /* 黄色：当社実施 */

/* --- 対象サービス明示タグ --- */
.target-services {
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-left: 4px solid var(--primary-color);
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 25px;
}
.target-services strong { color: var(--primary-color); }
.service-tag-list {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.service-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  font-size: 0.85rem;
  border-radius: 4px;
  font-weight: bold;
  line-height: 1.4;
}
.service-tag.active {
  background-color: #198754;
  color: #ffffff;
  border: 1px solid #198754;
  gap: 5px;
  padding-left: 8px;
  padding-right: 14px; /* チェックマーク分右余白を広げて視覚的中央に */
}
.service-tag.active::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3.1 3.1 6.5-6.8' fill='none' stroke='%23ffffff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.service-tag.inactive {
  background-color: #e0e0e0;
  color: #888888;
  border: 1px solid #e0e0e0;
}

/* --- ナビカード（TOP用 横2×縦2） --- */
.nav-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 35px 0 20px;
  width: 100%;
}
.nav-card {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav-card h3 {
  margin-top: 0;
  border-bottom: none;
  color: var(--primary-color);
  font-size: 1.1rem;
}
.nav-card p {
  font-size: 0.95rem; /* 本文と統一 */
  color: #666;
  margin-bottom: 18px;
  line-height: 1.6;
}
.nav-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.92rem;
  box-shadow: 0 2px 4px rgba(36, 47, 146, 0.08);
  transition: all 0.2s ease;
}
.nav-card .btn::after {
  content: "→";
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.nav-card .btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(36, 47, 146, 0.25);
  transform: translateY(-2px);
  text-decoration: none;
}
.nav-card .btn:hover::after {
  transform: translateX(4px);
}

/* --- FAQアコーディオン --- */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
}
.faq-question {
  background-color: #f9fafb;
  padding: 16px 20px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.faq-question::after {
  content: "＋";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #666;
}
.faq-item.open .faq-question::after { content: "−"; }
.faq-answer {
  display: none;
  padding: 18px 20px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- コピー用テンプレート枠 --- */
.template-box {
  background: #f8f9fa;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 15px;
  font-family: monospace, sans-serif;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 15px 0 25px;
}

/* --- 右下のトップへ戻るボタン (上向きくの字) --- */
.page-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  color: #555555;
  border: 1px solid #cccccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s, color 0.2s;
  z-index: 999;
}
.page-top-btn.is-show {
  opacity: 0.9;
  visibility: visible;
}
.page-top-btn:hover {
  opacity: 1;
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}
.arrow-up {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 4px;
}

/* --- フッター & フッターリンク --- */
.site-footer {
  text-align: center;
  padding: 35px 20px 25px;
  color: #888;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  background-color: #ffffff;
  margin-top: 50px;
}
.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 18px;
  gap: 0;
}
.footer-links li {
  display: flex;
  align-items: center;
}
.footer-links li:not(:last-child)::after {
  content: "|";
  color: #cccccc;
  margin: 0 14px;
  font-size: 0.8rem;
}
.footer-links a {
  color: #555555;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
.site-footer p {
  color: #999999;
  font-size: 0.8rem;
  margin: 0;
}

/* --- レスポンシブ (スマホ) --- */
@media screen and (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }
  /* スマホ時の基本文字サイズを全要素一律 0.9rem に決め打ち統一 */
  body,
  p,
  li,
  dt,
  dd,
  .data-table,
  .data-table th,
  .data-table td,
  .step-body,
  .contact-area,
  .contact-delay-note,
  .red-box p,
  .nav-card p,
  .legend-text,
  .domain-type-box ul,
  .faq-answer {
    font-size: 0.9rem !important;
    line-height: 1.65;
  }
  /* 注記・メタ情報・フッターは一律 0.8rem に統一 */
  .date,
  .update-date,
  .note,
  .note-list,
  .note-list p,
  .breadcrumb,
  .site-footer,
  .footer-links a {
    font-size: 0.8rem !important;
  }

  .btn-nav-card {
    padding: 15px 18px;
    font-size: 1rem;
    gap: 8px;
  }
  .btn-primary {
    min-width: 0;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  .info-blocks {
    grid-template-columns: 1fr !important;
  }
  .container { margin: 12px; padding: 16px; }
  .page-hero {
    margin: -16px -16px 20px -16px;
    padding: 22px 16px 18px;
  }
  .page-hero h1 {
    font-size: 1.3rem;
  }
  .page-hero .intro-text {
    font-size: 0.9rem;
  }
  .page-hero.hero-top {
    padding: 22px 20px 20px;
  }
  .hero-top .hero-top-sub {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
  .hero-top .hero-top-main {
    font-size: 1.85rem;
  }
  .hero-top .intro-text {
    font-size: 0.9rem;
  }
  .pc-br {
    display: none;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 74px;
    padding: 12px 16px 12px 20px;
  }
  .header-logo img {
    height: 50px;
  }
  .menu-toggle {
    display: flex;
    margin-left: auto;
    position: relative;
    right: auto;
    top: auto;
  }
  .header-inner nav {
    display: contents;
  }
  .global-nav li:not(:last-child)::after { display: none; }

  /* 画面全体を覆うフルスクリーンオーバーレイメニュー */
  .global-nav {
    display: none;
    position: fixed;
    top: 76px; /* ヘッダー(74px) + 下線(2px) の直下から画面最下部まで */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 76px);
    height: calc(100dvh - 76px);
    margin: 0;
    padding: 8px 0 40px;
    flex-direction: column;
    align-items: stretch;
    background-color: #ffffff;
    border-top: 1px solid #d5ddec;
    overflow-y: auto;
    z-index: 999;
  }
  .global-nav.active {
    display: flex;
  }
  .global-nav li {
    width: 100%;
    display: block;
  }
  .global-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    font-size: 1.02rem;
    font-weight: bold;
    color: var(--text-color);
    border-radius: 0;
    border-bottom: 1px solid #e5e9f0;
    background-color: #ffffff;
  }
  .global-nav li a::after {
    content: "›";
    font-size: 1.35rem;
    color: var(--primary-color);
    line-height: 1;
  }
  .global-nav li a.current {
    background-color: #eef3fb;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
  }

  .data-table th, .data-table td {
    padding: 8px 10px;
  }
  .data-table th.col-pay,
  .data-table td.col-pay {
    padding: 8px 6px;
  }
  .table-responsive .data-table {
    min-width: 580px;
  }
  .nav-card-grid { grid-template-columns: 1fr; }
  .page-top-btn {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
  .footer-links {
    gap: 8px 10px;
  }
  .footer-links li:not(:last-child)::after {
    display: none;
  }
  .footer-links li {
    margin: 0 4px;
  }
}
/* --- ドメイン種別案内枠 --- */
.domain-type-box {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 25px;
}
.domain-type-box .box-title {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-size: 1rem;
}
.domain-type-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.7;
}

/* --- 受付状況リード文用凡例ボックス --- */
.status-legend-box {
  background-color: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 25px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.legend-item:last-child {
  margin-bottom: 0;
}
.legend-item .badge {
  flex-shrink: 0;
}
.legend-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444444;
}

/* --- 補助・注記タグ --- */
small {
  font-size: 0.85em;
  color: #666666;
}

/* --- ご依頼方法など フォームへの共通ボタン（CVボタン等） --- */
.btn-wrap {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center; /* 横幅MAXを防ぎ中央寄せ */
  gap: 15px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--primary-color);
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: 2px solid var(--primary-color);
  width: auto;
  min-width: 460px; /* 文字の折り返しを防ぐ十分な幅 */
  max-width: 100%;
}
.btn-primary:hover {
  background-color: var(--primary-color); /* ホバーで色反転 */
  color: #ffffff;
  text-decoration: none;
}
/* 別窓アイコン付与 */
.target-blank::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242f92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  transition: all 0.2s ease;
}
.btn-primary:hover.target-blank::after {
  /* ホバー時（背景が紺色になるので）アイコンを白へ */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
}
/* リンクテキストへの別窓アイコン */
a.target-blank-text::after {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 3px;
  margin-right: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242f92' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: -1px;
}

/* --- 各種手続き一覧テーブル用（列幅バランス最適化 ＋ 青系薄版トーン ＋ スクロール時th追従） --- */
.table-responsive-sticky,
.table-responsive:has(.procedure-table) {
  overflow: visible !important;
}
.procedure-table thead {
  position: sticky;
  top: var(--header-height, 86px);
  z-index: 20;
  box-shadow: 0 3px 6px rgba(36, 47, 146, 0.08);
}
.procedure-table thead tr:first-child th {
  position: sticky;
  top: var(--header-height, 86px);
  z-index: 21;
}
.procedure-table thead tr:nth-child(2) th {
  position: sticky;
  top: calc(var(--header-height, 86px) + var(--thead-row1-height, 31px));
  z-index: 20;
}
.procedure-table {
  border-collapse: separate;
  border-spacing: 0;
  border-top: 1px solid #c5d1e8;
  border-left: 1px solid #c5d1e8;
}
.procedure-table th,
.procedure-table td {
  border-top: none;
  border-left: none;
  border-right: 1px solid #d5dceb;
  border-bottom: 1px solid #d5dceb;
}
.procedure-table th {
  background-color: #e7ecf7;
  color: #1c2574;
  border-right-color: #c5d1e8;
  border-bottom-color: #c5d1e8;
  padding-top: 7px;
  padding-bottom: 7px;
  line-height: 1.35;
}
.procedure-table thead tr:first-child th[colspan="3"] {
  padding-top: 6px;
  padding-bottom: 6px;
}
.procedure-table thead tr:last-child th,
.procedure-table thead th[rowspan="2"] {
  border-bottom: 2px solid #9fb0d6;
}
.procedure-table th.col-service {
  background-color: #e7ecf7;
  text-align: center;
  padding-left: 12px;
  padding-right: 12px;
}
.procedure-table td.col-service {
  background-color: #f3f6fc; /* 1列目は極淡いアイスブルー */
  border-right: 1px solid #c5d1e8;
  font-weight: bold;
  padding-left: 12px;
  padding-right: 12px;
  white-space: nowrap; /* 1行で入っている手続き名が折り返さないように保持 */
}
.procedure-table tr:nth-child(even) td.col-service {
  background-color: #ebf0fa; /* 偶数行の1列目は少しだけトーンを下げて縞々と連動 */
}
.procedure-table td.col-service a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.2s ease;
}
.procedure-table td.col-service a::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23242f92'/%3E%3Cpath d='M8.4 6.2L12.4 10l-4 3.8' fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}
.procedure-table td.col-service a:hover {
  color: #161d63;
  text-decoration: none;
}
.procedure-table td.col-service a:hover::before {
  transform: translateX(2px);
}
.procedure-table th.col-target {
  padding-left: 8px;
  padding-right: 8px;
}
.procedure-table th.col-target small {
  display: block;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: normal;
  color: #3a468c;
  line-height: 1.25;
  margin-top: 2px;
}
.procedure-table td.col-target {
  padding-left: 10px;
  padding-right: 10px;
}

/* --- 注意事項枠 --- */
.notice-box {
  background-color: #fff9e6; /* 薄い黄色背景 */
  border: 1px solid #ffe082;
  border-radius: 6px;
  padding: 20px 24px;
  margin-top: 35px;    /* 上部ブロックからの余白をしっかり取る */
  margin-bottom: 35px; /* 下部への余白も確保 */
}
.notice-box h2 {
  margin-top: 0 !important;
  background: none;
  color: #d84315; /* タイトルオレンジ */
  padding: 0;
  box-shadow: none;
  border-bottom: 2px solid #ffcc80;
  border-radius: 0;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.notice-box span[style*="color: red;"] {
  /* 中の赤文字指定のみタイトルのオレンジに統一しガチャつきを抑える */
  color: #d84315 !important;
}
.notice-box ul {
  margin-bottom: 0;
}

/* --- TOP用 メイン導線大型CTAボタン（モダンフラット仕様） --- */
.top-cta-wrap {
  text-align: center;
  margin: 2.2em 0 3em;
}
.btn-nav-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: 2px solid var(--primary-color);
  text-decoration: none;
  padding: 17px 40px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 3px 10px rgba(36, 47, 146, 0.16);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-nav-card::after {
  content: "→";
  display: inline-block;
  font-size: 1.18rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.btn-nav-card:hover {
  background-color: #1b2475;
  border-color: #1b2475;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(36, 47, 146, 0.22);
  text-decoration: none;
}
.btn-nav-card:hover::after {
  transform: translateX(5px);
}

/* --- お手続きの流れ（STEP・担当者・作業内容の縦カラムフロー） --- */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 15px;
}
.step-row {
  display: grid;
  grid-template-columns: 84px 92px 1fr;
  align-items: start;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 6px;
  padding: 16px 20px;
  position: relative;
}
.step-row:not(:last-child)::after {
  content: "▼";
  position: absolute;
  bottom: -19px;
  left: 62px;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1;
}
.step-num {
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: bold;
  text-align: center;
  padding: 4px 0;
  border-radius: 4px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-top: 2px;
}
.step-actor {
  font-size: 0.82rem;
  font-weight: bold;
  text-align: center;
  padding: 3px 0;
  border-radius: 4px;
  line-height: 1.4;
  margin-top: 2px;
}
.step-actor.actor-user {
  background-color: #eef4ff;
  color: #1a449c;
  border: 1px solid #a8c7fa;
}
.step-actor.actor-company {
  background-color: #f1f3f5;
  color: #495057;
  border: 1px solid #ced4da;
}
.step-body {
  line-height: 1.7;
  color: var(--text-color);
}
.step-body ul {
  margin-top: 8px;
  margin-bottom: 4px;
  padding-left: 20px;
}
.step-body ul li {
  margin-bottom: 4px;
}

@media screen and (max-width: 768px) {
  .btn-nav-card {
    padding: 15px 18px;
    font-size: 1rem;
    gap: 8px;
  }
  .btn-primary {
    min-width: 0;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  .info-blocks {
    grid-template-columns: 1fr !important;
  }
  .step-row {
    grid-template-columns: 76px 84px 1fr;
    gap: 10px;
    padding: 14px 16px;
  }
  .step-row:not(:last-child)::after {
    left: 50%;
  }
  .step-body {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
  }
}

/* --- 手続き詳細ページの段落余白 --- */
.procedure-section p {
  margin-bottom: 12px;
}
.procedure-section p:last-child {
  margin-bottom: 0;
}

/* --- TOPページ お問い合わせ窓口エリア --- */
.contact-area {
  margin-bottom: 2em;
}
.contact-flex-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 1.5em;
}
.contact-text-col {
  flex: 1.2;
}
.contact-text-col p {
  margin: 0 0 1em;
  line-height: 1.75;
}
.contact-text-col p:last-child {
  margin-bottom: 0;
}
.contact-req-col {
  flex: 0.85;
  background-color: #f0f4fa;
  border-radius: 6px;
  padding: 18px 22px;
}
.contact-req-title {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
  display: block;
  font-size: 1rem;
  line-height: 1.6;
}
.contact-req-col ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.contact-req-col ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.1em;
  line-height: 1.7;
}
.contact-req-col ul li:last-child {
  margin-bottom: 0;
}
.contact-req-col ul li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
}
.contact-delay-note {
  position: relative;
  background-color: #fff2f2;
  border: 2px solid #d32f2f;
  border-left: 6px solid #d32f2f;
  border-radius: 6px;
  padding: 18px 20px 18px 54px;
  color: #d32f2f;
  margin: 1.4em 0 1.8em;
  line-height: 1.75;
}
.contact-delay-note::before {
  content: "!";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #d32f2f;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.contact-delay-note strong {
  color: #d32f2f;
  font-weight: bold;
}
.contact-cta-wrap {
  text-align: center;
  margin: 1.8em 0 0.5em;
}

@media screen and (max-width: 768px) {
  .contact-delay-note {
    padding: 15px 16px 15px 46px;
  }
  .contact-delay-note::before {
    left: 14px;
    top: 17px;
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 768px) {
  .contact-flex-wrap {
    flex-direction: column;
    gap: 18px;
  }
  .contact-req-col {
    width: 100%;
    padding: 16px 18px;
  }
}

/* --- 手続き詳細ページ 上部「一覧へ戻る」控えめ導線 --- */
.procedure-back-top {
  margin: -15px 0 25px;
  text-align: right;
}
.procedure-back-top a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.procedure-back-top a::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242f92' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}
.procedure-back-top a:hover {
  opacity: 0.7;
  text-decoration: none;
}
.procedure-back-top a:hover::before {
  transform: translateX(-3px); /* 戻るニュアンスで少し左へ動かす */
}

/* --- スマホ実機用：各種手続き一覧テーブル最適化（1画面フィット ＋ th追従固定） --- */
@media screen and (max-width: 768px) {
  .table-responsive-sticky,
  .table-responsive:has(.procedure-table) {
    overflow: visible !important;
  }
  .table-responsive .procedure-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed;
  }
  .procedure-table thead {
    position: sticky;
    top: var(--header-height, 76px);
    z-index: 20;
    box-shadow: 0 3px 6px rgba(36, 47, 146, 0.1);
  }
  .procedure-table th {
    font-size: 0.7rem !important;
    padding: 5px 3px !important;
    line-height: 1.25 !important;
  }
  .procedure-table thead tr:first-child th[colspan="3"] {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  .procedure-table th.col-service {
    width: 24% !important;
  }
  .procedure-table th.col-target {
    width: 15% !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  .procedure-table th.col-target small {
    font-size: 0.56rem !important;
    white-space: normal !important;
    word-break: break-all;
    line-height: 1.2 !important;
    margin-top: 2px;
  }
  .procedure-table thead tr:first-child th:last-child {
    width: 31% !important;
  }
  .procedure-table td {
    font-size: 0.76rem !important;
    padding: 8px 6px !important;
    line-height: 1.45 !important;
    word-break: break-word;
  }
  .procedure-table td.col-service {
    white-space: normal !important;
    padding: 8px 5px !important;
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
  }
  .procedure-table td.col-service a {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.35 !important;
  }
  .procedure-table td.col-service a::before {
    width: 13px;
    height: 13px;
    margin-top: 2px;
  }
  .procedure-table td.col-target {
    padding: 6px 2px !important;
  }
  .procedure-table .badge {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
    font-size: 0.62rem !important;
    line-height: 1.22 !important;
    padding: 3px 3px !important;
    border-radius: 3px;
  }
  .procedure-table .badge-ok {
    padding-left: 3px !important;
    padding-right: 4px !important;
    gap: 2px !important;
  }
  .procedure-table .badge-ok::before {
    width: 9px !important;
    height: 9px !important;
  }
  .procedure-table td.col-target a.target-blank-text {
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
    display: inline-block;
  }
  .procedure-table td.col-target a.target-blank-text::after {
    width: 10px;
    height: 10px;
  }
}
