/* 車検料金表 レスポンシブCSS */
.car-inspection-price-table {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* メインテーブル */
.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
	table-layout: fixed;
}

.price-table th,
.price-table td {
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    padding: 8px 4px;
}

/* ヘッダー */
.category-header {
    background: #F8DF9F;
    font-weight: bold;
    width: 160px;
	height: auto;
}
.category-header img {
    width: 95%;
	height: auto;
}
.car-type {
    position: relative;
    padding: 12px 8px;
    width: 20%;
}
    .car-image {
        margin-bottom: 20px;
    }
    
    .car-img {
        max-width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
.car-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.car-label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 3px;
}

.weight-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.discount-badge {
    background: #ff4444;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    margin-bottom: 3px;
    display: inline-block;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
}

.current-price {
    font-weight: bold;
    font-size: 18px;
    color: #2196f3;
}

/* 行ヘッダー */
/* ... 既存のCSSはそのまま ... */

/* 法定費用タイトルセルのスタイル */
.legal-fee-title {
  background-color: #e0e0e0;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  padding: 0;
  width: 30px;
  /* display: flex は指定しない！！ */
}

.vertical-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; /* 親(td)の高さに追従 */
}

.vertical-text span {
  line-height: 1;
}

/* 各行の左端のヘッダーセルのスタイル (既存のもの) */
.row-header {
  background-color: #f5f5f5;
  font-weight: bold;
  text-align: left;
  vertical-align: middle; /* 垂直方向中央揃え */
  padding: 12px;
  width: 160px; /* 左側タイトル列の幅を調整 */
}
.row-header-t {
  font-weight: bold;
  text-align: left;
  vertical-align: middle; /* 垂直方向中央揃え */
  width: 160px; /* 左側タイトル列の幅を調整 */
}
/* row-header でも、legal-fee-title のスタイルが優先されるように注意 */
/* .row-header.sub-item など、他の row-header のスタイルは維持 */

.basic-fee {
    background: #fff3e0;
}

.legal-fee {
    background: #e8f5e8;
}

.sub-item {
    background: #f9f9f9;
    padding-left: 20px;
    font-weight: normal;
}

.additional {
    background: #fff3e0;
}

.sub-text {
    font-size: 11px;
    color: #000;
    display: block;
}

/* 価格セル */
.price-cell {
    font-weight: bold;
    color: #333;
}

.free {
    color: #ff4444;
    font-weight: bold;
	font-size: 16px;
}
/*各項目の色*/
.color-kei {
	background-color: #FFFBE0;
}
.color-conpact {
	background-color: #EDF4EC ;
}
.color-mid {
	background-color: #e1f8ef;
}
.color-large {
	background-color: #F2EAE8;
}
/* 合計行 */
.total, .maintenance-total {
	background-color: #ebb5cd;
}

.total-row {
    background: #f0f8ff;
}

.total-price {
    font-size: 16px;
    font-weight: bold;
}

.kei-total {
    background: #fff3e0;
}

.compact-total {
    background: #e8f5e8;
}

.mid-total {
    background: #e3f2fd;
}

.large-total {
    background: #fce4ec;
}

/* 整備項目 */
.maintenance-item {
    position: relative;
    padding: 10px;
}

.free-badge {
    background: #ff4444;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    display: inline-block;
}

.original-maintenance-price {
    font-size: 10px;
    background: #ff4444;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
}

.parts-labor {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

.parts-labor div {
    margin-bottom: 2px;
}

/* 整備合計 */
.maintenance-total-row {
    background: #fff3e0;
}
.maintenance-total-row-w {
    background: #ffffff;
}

.maintenance-total-price {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.maintenance-total-row-w img {
    width: 143px;
	height: 126px;
}

/* 総合計 */
.grand-total-row {
    background: #ff5722;
    color: white;
}

.grand-total-row .row-header,
.grand-total-row .price-cell {
    background: #DD4484;
	color: black;
    -webkit-text-stroke: 2px white;
    text-stroke: 2px white;
    paint-order: stroke;
   	font-size: 17px;
    font-weight: bold;
}

.grand-total-price {
    font-size: 18px;
}

.section-divider {
    background: #f0f0f0;
    height: 5px;
    border: none;
}

/* シミュレーションセクション */
.simulation-section {
    margin-top: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
	align-items: center;
}
.simulation-section img {
    width: 143px;
	height: 126px;
}
.simulation-header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #2196f3;
}

.simulation-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.sim-card {
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.sim-car-type {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.sim-price-breakdown {
    font-size: 14px;
}

.sim-original {
	font-weight: bold;
	color: #ffffff;
	background-color: #006dd9;
	padding: 7px;
	margin-bottom: 1px;
	position: relative;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
       .minus {
	   	font-size: 36px;
	   	font-weight: bold;
	   	color: #333;
	   	position: absolute;
	   	left: 70px;
	   	top: 30px;
       -webkit-text-stroke: 2px white;
       text-stroke: 2px white;
       paint-order: stroke;
	   	z-index: 99;
	   	display: flex;
	   	align-items: center;
	   	justify-content: center;
	   }    
       .equal {
	   	font-size: 28px;
	   	font-weight: bold;
	   	color: #333;
	   	position: absolute;
	   	left: 70px;
	   	top: 36px;
       -webkit-text-stroke: 2px white;
       text-stroke: 2px white;
       paint-order: stroke;
	   	z-index: 99;
	   	display: flex;
	   	align-items: center;
	   	justify-content: center;
	   }    
.sim-discount {
	color: #ffffff;
	background-color: #FF4000;
	padding: 7px;
	position: relative;
	margin-bottom: 3px;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.sim-savings {
    color: #ffffff;
    font-weight: bold;
	background-color: #DF7636;
	padding: 7px;
	margin-bottom: 3px;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-stroke: 2px white;
    paint-order: stroke;
}
.sim-savings.negative {
  color: #ffffff;
  font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .price-table {
        font-size: 14px;
    }
    
    .car-type {
        padding: 8px 4px;
    }
    
    .car-label {
        font-size: 14px;
    }
    
    .current-price {
        font-size: 16px;
    }
    .original-price {
	    font-size: 12px;
    }
    
    .simulation-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .car-inspection-price-table {
        margin: 0 10px;
    }
    
    .price-table {
        font-size: 11px;
    }
    
    .price-table th,
    .price-table td {
        padding: 6px 2px;
    }
    
    .category-header,
    .row-header {
        width: 120px;
        font-size: 11px;
    }
    
    .car-type {
        padding: 6px 2px;
    }
    
    .car-icon {
        font-size: 18px;
    }
    
    .car-label {
        font-size: 12px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .discount-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .simulation-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .simulation-section {
        padding: 15px;
		flex-direction:column;
    }
.row-header-t img {
  max-width: 100%;
  height: auto;
}

}
@media (max-width: 640px) {
    /* スマホでは横スクロール可能にする */
    .car-inspection-price-table {
        overflow-x: auto;
    }
    
    .price-table {
        min-width: 700px;
    }

}
@media (max-width: 480px) {
    .price-table {
        font-size: 10px;
    }
    
    .category-header,
    .row-header {
        width: 100px;
        padding: 8px 4px;
    }
    
    .car-type {
        padding: 4px 2px;
    }
    
    .car-label {
        font-size: 11px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .weight-info {
        font-size: 10px;
    }
    .sub-text {
        font-size: 9px;
    }
    
}

/* 印刷用スタイル */
@media print {
    .car-inspection-price-table {
        box-shadow: none;
    }
    
    .price-table {
        font-size: 12px;
    }
    
    .simulation-section {
        page-break-inside: avoid;
    }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

