/* =========================================
   最強の料金表：ベース変数（色/余白はここで調整）
   ========================================= */
:root{
  --c-bg:#ffffff;
  --c-surface:#fbfcff;
  --c-soft:#f5f7fb;
  --c-text:#1c2230;
  --c-sub:#5f6b7a;
  --c-key:#0b63ce;     /* 見出しのキーカラー */
  --c-accent:#e74c3c;  /* 注意書き/アクセント */
  --c-line:#e6e9ef;
  --radius:12px;
  --pad:1.25rem;
}

/* 画面共通 */
.pricing-wrap{
	color: var(--c-text);
	font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;
}
.pricing-card{
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: 0 2px 6px rgba(20,26,40,.06);
	overflow: hidden;
}
.pricing-head{
	padding: var(--pad) var(--pad) 0;
}
.pricing-head h2{
	margin: 0 0 .375rem;
	font-size: clamp(1.25rem,1rem + .9vw,1.75rem);
	line-height: 1.25;
	color: var(--c-key);
}
.pricing-head .note{
	margin: .25rem 0 0;
	color: var(--c-sub);
	font-size: .95rem;
}
.legend{
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	margin: .75rem 0 0;
	font-size: .92rem;
}
.legend .chip{
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	background: var(--c-soft);
	border: 1px solid var(--c-line);
	border-radius: 999px;
	padding: .25rem .65rem;
}
.legend .dot{
	width:.65rem;height:.65rem;border-radius:50%;
}
.legend .u{
	background:#999;
}
.legend .na{
	background:#f1c40f;
}
.legend .nb{
	background:#2ecc71;
}
.legend .z{
	background:#e67e22;
}

/* 料金表本体 */
.table-wrap{padding:var(--pad)}
.tbl{
	width:100%;
	border-collapse:separate;
	border-spacing:0;
	background:#fff;
	border:1px solid var(--c-line);
	border-radius:10px;
	overflow:hidden;
}

.tbl caption{
	caption-side:top;text-align:left;padding:.85rem 1rem;background:var(--c-surface);border-bottom:1px solid var(--c-line);font-weight:700;
}

/* ジェミニでの調整 (メイン料金表) */
.tbl thead th{
    white-space: nowrap; /* 折り返しを禁止 */
    padding: 0.8rem 0.5rem; /* 左右のパディングを減らして幅を稼ぐ */
    background: var(--c-key); 
    color: white;             
    font-size: 1.05em;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 2;
}
.tbl th[scope="rowgroup"]{
    white-space: nowrap; 
    padding: 0.8rem 0.5rem; 
    background: var(--c-surface); 
    min-width: 80px; 
    width: 80px;
}

.tbl th,.tbl td{
	padding:.85rem 1rem;vertical-align:middle;border-bottom:1px solid var(--c-line);text-align:left;
}

.tbl th[scope="row"]{
	background:#fff;font-weight:600;
}
.tbl td{
	background:#fff;
}

.tbl td.price{
    line-height: 1.4; 
    text-align: center;
    padding: .85rem 1rem;
}

/* メイン料金表: 上段・下段の強調 */
.tbl td.price .price-upper{
    display: block;
    font-size: 1.15em;
    font-weight: 700;
    color: #0b63ce; /* キーカラー（青）を適用 */
    background: #f7f7f7;
    padding: 3px 0;
}

.tbl td.price .price-lower{
    display: block;
    font-size: 1.15em;
    font-weight: 700;
    color: #e74c3c; /* アクセントカラー（赤）を適用 */
    padding: 3px 0;
}

/* メイン料金表: ヘッダー内の控えめなテキスト */
.tbl thead th .muted{
    color: white !important; 
    font-size: 0.85em; 
}
.tbl thead th{
    font-size: 1.05em;
    padding-bottom: 0.5rem; 
}

/* メイン料金表: 列幅の固定 */
.tbl thead th:nth-child(1){
	width: 10%;
} 
.tbl thead th:nth-child(2){
	width: 15%;
} 
.tbl thead th:nth-child(3){
	width: 15%;
} 
.tbl thead th:nth-child(4),
.tbl thead th:nth-child(5),
.tbl thead th:nth-child(6){
    width: 20%; 
}

.tbl td .em{
	font-weight:700;
}
.tbl .muted{
	color:#7a8696;font-size:.92rem;
}

/* 横幅が狭い時の保険 */

.sr-only{
	position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;
}

/* モバイル：カード型に自動変形（theadを隠し、列名は疑似要素で表示） */
@media (max-width: 720px){
  .tbl thead{
	display:none;
}
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td{
	display:block;width:100%;
}
  .tbl tr{
	border-bottom:1px solid var(--c-line);padding:.5rem .5rem;
}
  .tbl td{
	padding:.25rem .75rem;
}
  .tbl td[data-label]::before{
	content:attr(data-label) "：";font-weight:600;color:#334;margin-right:.25rem;
}
}

/* 印刷最適化：罫線を濃く・影を無効 */
@media print{
  .pricing-card{
	box-shadow:none;
}
  .tbl{
	border-color:#999;
}
  .tbl th,.tbl td{
	border-bottom:1px solid #999;
}
}

/* 利用者配慮 */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important;transition:none !important;scroll-behavior:auto !important}
}

/* 強制ハイコントラスト環境の向けの微調整 */
@media (forced-colors: active){
  .legend .chip{
	border:1px solid CanvasText;
}
}
/* ===== Pricing Intro（単一カード内の2カラム）===== */
.pricing-intro{
  color: var(--c-text, #222);
  font-size: clamp(1.05rem, 1.2vw + .8rem, 1.2rem);
  line-height: 1.9;
  margin: 1rem 0 .1rem;
}
.pricing-intro h2{
  margin: 0 0 .6rem;
  font-size: clamp(1.6rem, 1.4vw + 1rem, 2rem);
  color: var(--c-key, #0a4a94);
  line-height: 1.4;
  font-weight: 700;
  padding-left : 10px;
}

/* 1枚カードとしてまとめる */
.pricing-intro .intro-card{
  display: grid;
  gap: .9rem;
  align-items: start;
  background: #f7f9fe;                    /* 左右で同じ背景 */
  border: 1px solid var(--c-line, #dfe3eb);
  border-radius: 10px;
  padding: .95rem 1.1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  margin-left : 3px;
  margin-right : 3px;
}
@media (min-width: 900px){
  .pricing-intro .intro-card{
    grid-template-columns: 1fr 1fr;       /* 2カラム */
    column-gap: 1.1rem;
  }
}

/* カラム共通の文字まわり（強調は太字のみ） */
.pricing-intro .intro-card .col p{
	margin: 0;
}
.pricing-intro .intro-card strong{
  font-weight: 700; text-decoration: none; color: inherit;
}

/* 右カラム：薄い仕切り線で区切る（色差は付けない） */
@media (min-width: 900px){
  .pricing-intro .col-right{
    border-left: 1px solid #e6eaf3;
    padding-left: 1.1rem;
  }
}

/* 凡例タイトルを文字だけで強調（色は共通） */
.pricing-intro .legend-title{
  margin: 0 0 .35rem; font-weight: 700; color: #333; font-size: 1.05em;
}
.pricing-intro .col-right ul{
	margin: 0; padding-left: 1.2em;
}
.pricing-intro .col-right li{
	margin: .3rem 0;
}

/* モバイル：1カラム＋少しタイトに */
@media (max-width: 899px){
  .pricing-intro .intro-card{
	padding: .85rem .95rem;
}
  .pricing-intro .col-right{
	border-left: 0; padding-left: 0;
}
}

/* ▼ここから：料金例アコーディオン（details/summary） */
/* ラッパー：<details class="sim-wrap"> */
.sim-wrap{
  margin: .25rem 0 0.25rem;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
/* 開閉トグル：<summary class="sim-toggle"> */
.sim-toggle{
  cursor: pointer;
  list-style: none;
  padding: .7rem 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7faff;
  border-bottom: 1px solid var(--c-line);
}
.sim-toggle::-webkit-details-marker{ display: none; }
.sim-toggle::after{
  content: "＋";
  font-weight: 700;
  margin-left: .5rem;
}
.sim-wrap[open] .sim-toggle::after{
	content: "－";
}

/* 展開エリア（3枚のカードを横並び→SPで縦並び） */
.sim-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  padding: .9rem;
}
.sim-card{
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: #fff;
  padding: .85rem .95rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

.sim-card .sim-head{
  padding: .6rem .75rem;
  font-weight: 700;
  background: #fbfdff;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.sim-card .sim-title{
	margin-right: .5rem;
}
.sim-card .sim-price{
	white-space: nowrap;
	color: #c00000;
	font-weight: 700;
}
.sim-card .sim-body{
	padding: .75rem .85rem; line-height: 1.7;
}

@media (max-width: 900px){
  .sim-grid{ grid-template-columns: 1fr; }
}
/* ▲ここまで：料金例アコーディオン（details/summary） */


/* 【カテゴリ】◆◆◆配送料金部分　左右2列のペア構成◆◆◆ */

/* ----------------------------------------------------
   最終統合スタイル：追加工賃・持ち込み料金・配送料金
   ---------------------------------------------------- */

/* 1. 左右のテーブルの共通 Grid設定 */
.table-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  margin-top: 0;
}
.table-grid > .table-wrap{
  grid-column: span 2;
  margin: 0;
  width: 100%;
  min-width: 0;            
  box-sizing: border-box; 
}


/* --------------------------------------------------------
   追加工賃・持ち込み料金（.tbl.additional-charges）のスタイル
   -------------------------------------------------------- */

/* 右側のラッパーにマージンを適用し、左側のキャプションの高さ分下げる */
.table-grid > .table-wrap:nth-child(2){
    margin-top: 34px; /* 上辺合わせ */
}

/* 統合された料金表の統一書式 */
.tbl.additional-charges caption{
    margin: 0 0 0.5rem 0 !important;
    padding: 0 0 0.2rem 0 !important;
    height: auto !important;
    overflow: visible !important;
}
.tbl.additional-charges th{
    background: #f2f6ff;
    color: var(--c-key);
    font-weight: 600;
    text-align: left;
}
.tbl.additional-charges td:nth-child(2){
    background: white;
    text-align: right;
    vertical-align: top;
    font-variant-numeric: tabular-nums;
    padding-right: 1.5rem; 
}
.tbl.additional-charges .price-value{
    display: block;
    font-weight: 700;
    color: var(--c-accent);
    font-size: 1.05em;
    padding-bottom: 5px;
}
.tbl.additional-charges .explanation-note{
    font-size: 0.9em; 
    color: var(--c-sub);
    line-height: 1.4;
    text-align: left;
    margin: 0;
    padding-top: 5px;
    border-top: 1px dashed #eee;
}


/* --------------------------------------------------------
   配送料金表（.tbl.compact）のスタイル：右寄せとストライプ
   -------------------------------------------------------- */

/* 1. 基本定義の調整 */
.tbl.compact{
  border-radius: 6px;
  table-layout: fixed; 
}
.tbl.compact caption{
  text-align: left;
  font-weight: 700;
  color: #2a3a59;
  margin : 0rem 0px 0.5rem;
}
.tbl.compact th,
.tbl.compact td{
  border: 1px solid #e4e8f0;   
  padding: .4rem .6rem;
  vertical-align: top;
  word-break: break-word;
  white-space: normal;
}
.tbl.compact th{
  background: #f5f9ff;
  font-weight: 700;
  color: #2a3a59;
  text-align: left;
}
.tbl.compact col.col-area{
	width: 25%;
}
.tbl.compact col.col-price{
	width: 25%;
}
.tbl.compact col.col-area2{
	width: 25%;
}
.tbl.compact col.col-price2{
	width: 25%;
}

/* 2. 価格の右寄せと地域名の左寄せ */
.tbl.compact th:nth-child(1),
.tbl.compact th:nth-child(3){
    text-align: left !important;
}
.tbl.compact td:nth-child(2), 
.tbl.compact td:nth-child(4){
    text-align: right !important; 
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* 3. 偶数行に薄いグレーの背景（ストライプ）を強制適用 */
.tbl.compact tbody tr:nth-child(even) td{
    background-color: #fcfcfc !important; 
}

/* 4. クリックポスト行の強調 */
.tbl.compact tr.clickpost{
    background-color: #fff7e6; 
    border-top: 2px solid var(--c-accent); 
}
.tbl.compact tr.clickpost th,
.tbl.compact tr.clickpost td{
    color: var(--c-key); 
    font-weight: 700;
    background-color: transparent !important; 
}
/* 5. モバイルでの調整 (既存のものを再配置) */
@media (max-width: 720px){
  .tbl.compact{
	table-layout: auto; font-size: .98rem;
}
  .tbl.compact col{
	width: auto;
}
}

/* ----------------------------------------------------
   最終調整：20251025 テーブル間の不要な余白を削除
   ---------------------------------------------------- */

/* 追加加工のテーブル全体を囲むコンテナの下部マージンを削除 */
.table-grid{
    margin-bottom: 0 !important;
}

/* 念のため、table-wrapのパディングも調整 */
.table-grid > .table-wrap{
    padding-bottom: 0 !important;
}