body {
  margin: 0;
  font-family: sans-serif;
  background: #eef7fb;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

.l-flex {
  display: flex;
  gap: 20px;
}

/* ==================================================================================================== */
/* セクションタイトル */

.section-title {
  font-size: 28px;
  color: #1e73be;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* 左の四角アクセント */
.accent {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: #facc15;
  flex-shrink: 0;
  margin-top: 4px;
}

/* 2行タイトル専用の親定義 */
.section-title-double {
  flex-wrap: wrap;
  row-gap: 4px; 
}

.section-title-double .sub-title {
  display: block;
  width: 100%;
  font-size: 0.75em;
  color: #62C8E2;
  padding-left: 40px;
  box-sizing: border-box;
}

/* スマホ */
@media (max-width: 768px) {

  .section-title {
    font-size: 20px;
  }
}

/* ==================================================================================================== */
/* ページ冒頭のユーザ別セクション選択 */

.card {
  flex: 1;
  background: #1ca4cc;
  border-radius: 10px;
  padding: 16px;
  color: #fff;
  box-sizing: border-box;
}

/* カード丸ごとリンク */
.card-link {
  display: block;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

.card-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ヘッダー */
.card-header {
  background: #0f6fa5;
  padding: 12px;
  border-radius: 8px;
  font-size: 26px;
  font-weight: bold;
  position: relative;
}

/* 矢印 */
.arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #0f6fa5;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  padding-bottom: 10px;
}

/* 左・右のリスト */
.card-list {
  list-style: square;
  margin: 12px 0 0;
  padding-left: 32px;
}

.card-list li {
  margin: 6px 0;
}

.card-list a {
  color: #fff;
  text-decoration: none;
}

.card-list a:hover {
  text-decoration: underline;
}

/* スマホ */
@media (max-width: 768px) {
  .l-flex {
    flex-direction: column;
  }
}

/* ==================================================================================================== */
/* 業種・用途のセクション*/
.category-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 14px;
}

/* 背景うっすら
.category-wrapper {
  background: linear-gradient(
    135deg, 
    #f7fafd 25%, 
    #eef5fb 25%, 
    #eef5fb 50%, 
    #f7fafd 50%, 
    #f7fafd 75%, 
    #eef5fb 75%
  );
  background-size: 40px 40px;
} */

/* 2カラム */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* カード */
.category-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* アイコン */
.icon-size {
  width: 80px;
  height: 80px;
}

/* タイトル */
.item-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: bold;
}

/* 色 */
.pink { color: #ff6b9a; }
.blue { color: #3b82f6; }
.green { color: #10b981; }
.green2 { color: #22c55e; }
.purple { color: #8b5cf6; }
.orange { color: #f59e0b; }

/* リスト */
.category-card ul {
  margin: 0;
  padding-left: 18px;
}

.category-card li {
  margin: 4px 0;
  font-size: 16px;
}

/* スマホ */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================================================================== */
/* ご利用メリットのセクション */
.feature-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 18px;

  /* 背景パターン 
  background: repeating-linear-gradient(
    135deg,
    #fdf6e3,
    #fdf6e3 20px,
    #f5eddc 20px,
    #f5eddc 40px
  ); */
}

/* イラスト組込みバージョン */
/* ------------------------------------------------------------------------- */
/* 2行2列のグリッドシステム */
.mcard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列配置 */
  gap: 24px; /* カード同士の間隔 */
  max-width: 1100px;
  margin: 0 auto;
}

/* 画面が狭い時は1列にする（レスポンシブ対応） */
@media (max-width: 768px) {
  .mcard-grid {
    grid-template-columns: 1fr;
  }
}

/* カードの基本構造 */
.mcard {
  display: flex; /* 左右に分割 */
  background: #f3f4f6;
  padding: 20px 16px;
  border-radius: 14px;
  box-sizing: border-box;
  align-items: flex-start;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 左側：アイコンエリア */
.mcard-left {
  flex-shrink: 0;
  margin-right: 15px;
}

.icon-box {
  width: 80px;
  height: 80px;
  background-color: #4fc3f7; /* アイコンの背景水色 */
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-icon {
  width: 80px;
  height: 80px;
}

/* 右側：コンテンツエリア */
.mcard-right {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ヘッダー：タイトルとヒトのイラスト */
.mcard-header {
  position: relative; /* イラストを絶対配置するための基準 */
  background-color: #ffa726; /* オレンジの背景色 */
  border-top-left-radius: 20px;
  border-bottom-left-radius: 0px;
  border-top-right-radius: 0px; /* イラストが乗る右側を少し丸く */
  border-bottom-right-radius: 20px;
  padding: 10px 20px;
  margin-bottom: 15px;
  min-height: 35px;
  display: flex;
  align-items: center;
}

.mcard-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  padding-right: 60px; /* イラストと被らないように右側に余白を確保 */
}

/* ヒトのイラスト（タイトルの右上に被せる） */
.person-illustration {
  position: absolute;
  right: 20px;
  bottom: 0; /* 下辺を基準に配置 */
  width: 120px; /* イラストのサイズ */
  height: 100px;
  z-index: 10;
}

.svg-person {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* リストコンテンツ */
.mcard-list {
  margin: 0;
  padding-left: 20px;
  list-style-type: none; /* デフォルトの黒丸を消す */
}

.mcard-list li {
  position: relative;
  color: #333333;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 15px;
}

/* 水色の文頭マーク（●）を再現 */
.mcard-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #4fc3f7; /* マークの色 */
  font-size: 14px;
  top: 1px;
}

/* スマホ */
@media (max-width: 768px) {
  .person-illustration {
    right: 4px;
    width: 80px; 
    height: 80px;
  }
}

/* ==================================================================================================== */
/* サービス案内（テーブル）のセクション
*/

.table-wrap {
  overflow-x: auto;
}

/* サービス案内テーブル */
.service-table {
  table-layout: fixed;  /* 各列の幅を固定・コントロールするモードにする */
  width: 100%;          /* テーブル全体の横幅を100%にする */
  border-collapse: separate;
  border-spacing: 8px 0;
}

/* 列ヘッダのスタイル */
.service-table thead th {
  padding: 10px;
  color: #fff;
  text-align: center;
  border-radius: 10px 10px 0 0;
}

/* 列ヘッダー色 */
.col-green { background: #2e7d32; }   /* 2、3列目（地域ネット・地域ネットII） */
.col-blue { background: #1976d2; }    /* 4列目（全国ネット） */

/* テーブルの各列幅を設定 */
.service-table th:nth-child(1) { width: 20%; } /* 1列目（項目名） */
.service-table th:nth-child(2) { width: 25%; } /* 2列目（地域ネット） */
.service-table th:nth-child(3) { width: 25%; } /* 3列目（地域ネットII） */
.service-table th:nth-child(4) { width: 30%; } /* 4列目（全国ネット） */

/* 行ヘッダ（左列） */
.service-table tbody th {
  position: relative;
  background: #f0f0f0;
  color: #000 !important;
  text-align: left;
  padding: 10px 10px 10px 50px;
  border-radius: 0;
  border: 1px solid #ccc;
}

/* 行ヘッダのアイコン領域 */
.service-table tbody th::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* 行ヘッダのアイコン画像 */
.row-date::before  { background-image: url(/service/widenet/img/icon-0301.svg); }
.row-data::before  { background-image: url(/service/widenet/img/icon-0302.svg); }
.row-check::before { background-image: url(/service/widenet/img/icon-0303.svg); }
.row-money::before { background-image: url(/service/widenet/img/icon-0304.svg); }
.row-bank::before  { background-image: url(/service/widenet/img/icon-0305.svg); }

/* セルの書式 */
.service-table td {
  background: #f0f0f0;
  border: 1px solid #ccc;
  padding: 12px;
  text-align: center;
}

/* 取扱金融機関行の配置（上揃え） */
.service-table tbody tr.bank-row {
  vertical-align: top;
}

/* 取扱金融機関行のアイコンも上寄せ */
.service-table tbody tr.bank-row th::before {
  top: 14px;
  transform: none;
}

/* テーブル角のラウンド */
.service-table tbody tr:first-child th { border-top-left-radius: 20px; } /* 左上 */
.service-table tbody tr:last-child th { border-bottom-left-radius: 20px; } /* 左下 */
.service-table tbody tr.bank-row td:last-child { border-bottom-right-radius: 20px; } /* 取扱金融機関（右下） */

/* ==================================================================================================== */
/* 初期は、スマホのカードを非表示で描画
*/

.sp-cards {
  display: none;
}

/* スマホ時の表示 */
@media (max-width: 768px) {

  /* tableを非表示 */
  .table-wrap {
    display: none;
  }

  /* カード表示 */
  .sp-cards {
    display: block;
  }

  /* 開閉カード */
  .sp-cards details {
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden; /* ← はみ出し防止 */
  }

  .sp-cards details[open] {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  /* タイトル デフォルト（青） */
  .sp-cards summary {
    list-style: none;
    cursor: pointer;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #0078d4, #00aaff);
    
    /* はみ出し対策 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 地域ネット・地域ネットⅡ → 緑 */
  .sp-cards details.green summary {
    background: linear-gradient(90deg, #2e7d32, #22c55e);
  }

  /* ▼マーク */
  .sp-cards summary::after {
    content: "▼";
    float: right;
  }

  details[open] summary::after {
    content: "▲";
  }

  /* 中身 */
  .card-body {
    padding: 10px 12px;
  }

  /* 行 */
  .card-body p {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    font-size: 14px;
  }

  .card-body span {
    font-weight: bold;
    color: #555;
    margin-right: 10px;
    flex-shrink: 0;
  }
}

/* ==================================================================================================== */
/* スマホ用：取扱金融機関ブロック */
.card-body .banks {
  display: block;
  margin-top: 10px;
}

/* 「取扱金融機関」だけタイトルっぽく */
.card-body .banks-title {
  font-weight: bold;
  margin-bottom: 6px;
}

/* 提携金融機関①② */
.card-body .bank-group {
  margin-top: 8px;
}

/* 見出し */
.card-body .bank-group span {
  display: block;
  font-weight: bold;
  font-size: 16px;   /* 少し大きく */
  color: #16a34a;  /* 緑 */
  padding-left: 18px;
  margin-bottom: 4px;
  text-align: left;  /* 左寄せ */
}

/* リスト */
.card-body ul {
  list-style: none;   /* デフォルト消す */
  padding-left: 24px;
  margin: 5px 0;
}

/* li */
.card-body li {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  margin-bottom: 4px;
}

/* 緑ドット作成 */
.card-body li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #16a34a;  /* 緑 */
  font-size: 12px;
}

/* ==================================================================================================== */
/* テーブル用：取扱金融機関のリスト */

.bank-row ul {
  list-style: none;
  padding: 0;
}

.bank-row li {
  text-align: left;
  padding-left: 15px;
  position: relative;
}

.bank-row li::before {
  content: "●";
  color: #2ea88b;
  position: absolute;
  left: 0;
}

/* ==================================================================================================== */
/* 取扱金融機関リストの表示（実体） */

/* 提携金融機関のタイトル */
.bank-title {
  margin: 10px 0px;
  padding-left: 18px;
  font-size: 20px;
}

/* 緑（地域ネット系） */
.bank-green {
  color: #2e7d32; /* 落ち着いた緑 */
}

/* 金融機関名のフォント色 */
.bank-green li {
  color: #111;
}

/* 金融機関名の ● 表示 */
.bank-green li::before {
  content: "●";
  color: #2e7d32;
  margin-right: 6px;
}

/* 青（全国ネット） */
.bank-blue {
  color: #1976d2; /* 現在の青に近い */
}

/* 金融機関名のフォント色 */
.bank-blue li {
  color: #111;
}

/* 金融機関名の ● 表示 */
.bank-blue li::before {
  content: "●";
  color: #1976d2;
  margin-right: 6px;
}

/* ======================================== */
/* 取扱金融機関 : 注釈 */

.note {
  display: block;
  text-align: left; 
  font-size: 12px;
  padding-left: 12px;
  color: #111;
  margin-top: 6px;
}


/* ==================================================================================================== */
/* 回収スケジュールのセクション */
.diagram-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative; /* 追加：イラストを絶対配置するための基準点にする */
}

/* 各SVG */
.l-flex img {
  width: 50%;
  height: auto;
  display: block;

  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* 注記 */
.diagram-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.0;
}

/* ヒトのイラスト（タイトルの右上に被せる） */
.diagram-person {
  position: absolute;
  top: -70px;      /* 上側にはみ出す量（イラストのサイズに合わせてマイナス値を調整） */
  right: 24px;     /* 右端からの距離 */
  width: 90px;    /* イラストの横幅（見栄えに合わせて調整） */
  height: auto;
  z-index: 10;     /* フロー図より前面に表示 */
}

.svg-dperson {
  width: 100%;
  height: auto;
  display: block;
}

/* スマホ */
@media (max-width: 768px) {
  .l-flex {
    flex-direction: column;
    align-items: center;
  }

  .l-flex img {
    width: 90%;
  }

  .diagram-person {
    top: -40px;
    width: 60px; 
  }
}

/* ==================================================================================================== */
/* お手続きのセクション */
.flow-diagram {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative; /* 追加：イラストを絶対配置するための基準点にする */
}

.flow-image {
  width: 100%;
  height: auto;
  display: block;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
}

/* ヒトのイラスト（タイトルの右上に被せる） */
.flow-person {
  position: absolute;
  top: -100px;      /* 上側にはみ出す量（イラストのサイズに合わせてマイナス値を調整） */
  right: 40px;     /* 右端からの距離 */
  width: 160px;    /* イラストの横幅（見栄えに合わせて調整） */
  height: auto;
  z-index: 10;     /* フロー図より前面に表示 */
}

.svg-flow-person {
  width: 100%;
  height: auto;
  display: block;
}

/* スマホ */
@media (max-width: 768px) {
  .flow-person {
    top: -40px;
    right: 20px; 
    width: 80px; 
  }
}

/* ==================================================================================================== */
/* ご利用料金のセクション */
.price-section {
  background: #fff;
  padding: 30px 20px;
  margin-top: 20px;
  border-radius: 8px;
  max-width: 1100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ==================================================================================================== */
/* 問い合わせのセクション */
.contact-section {
  background: #fff;
  padding: 30px 20px;
  margin-top: 20px;
  border-radius: 8px;
  max-width: 1100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 電話 */
.tel {
  margin-left: 20px;
  font-weight: bold;
}

/* スマホ */
@media (max-width: 768px) {

  .tel {
    display: block;
    margin-left: 0;
    margin-top: 6px;
  }
}