@media only screen and (max-width: 768px) {
#b-tour {
overflow-x: hidden;
}
#b-tour #content {
margin-top: 90px;
}
#b-tour #right_column table td,
#b-tour #right_column table th {
word-break: break-word;
}
#b-tour .imp_board {
padding: 50vw 0 0 0;
height: auto;
background-position: top center;
background-size: contain;
box-sizing: border-box;
}
#b-tour img {
max-width: 100%;
height: auto;
}
#b-tour img.F_left,
#b-tour img.F_right,
#b-tour img.fimg_l {
float: none;
display: block;
margin: 0 auto 10px;
}
#b-tour table {
width: 100%;
box-sizing: border-box;
}
}

@media only screen and (max-width: 768px) {
    body#b-tour #left_column {
        display: none !important;
    }
}

.TB20 {
display: grid;
grid-template: auto / 1fr 1fr;
gap: 1em;
}
.TB20 img {
width: 100%;
margin: 0;
}
.TB20:has(img[src^="images/img03.jpg"]),
body.liquid .TB20:has(img[src^="images/renew01.jpg"]) {
display: grid;
grid-template: auto / 2fr 1fr;
place-content: space-between;
place-items: space-between;
}

.cont_in + .cont_in {
margin-top: 2em;
}

#tour01 figure img {
width: 200px !important;
margin-right: 10px !important;
}

@media only screen and (max-width: 768px) {
#low_mi { display: none; }
}

#tour01 figure img[src^="images/img28.jpg"] {
width: 100% !important;
float: none !important;
}

/* 固定ヘッダ（高さ90px）とコンテンツの被り防止（テスト .liquid 限定） */
@media only screen and (max-width: 768px) {
body#b-tour.liquid #content {
margin-top: 90px;
padding-top: 20px;
box-sizing: border-box;
}
}

/* 2カラム写真：768px以下でも2カラム維持＋縦サイズを揃える（テスト .liquid 限定） */
body#b-tour.liquid .TB20 {
grid-template-columns: 1fr 1fr;
align-items: stretch;
}
body#b-tour.liquid .TB20:has(img[src^="images/renew01.jpg"]) {
grid-template-columns: 2fr 1fr;
}
body#b-tour.liquid .TB20 a {
display: block;
margin: 0;
}
body#b-tour.liquid .TB20 a img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
margin: 0;
}

/* CT撮影下の2枚組も768px以下で2カラム維持＋縦サイズ揃え（テスト .liquid 限定） */
@media only screen and (max-width: 768px) {
body#b-tour.liquid .clearfix.B20:has(img.F_left):has(img.F_right) {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1em;
align-items: stretch;
}
body#b-tour.liquid .clearfix.B20:has(img.F_left):has(img.F_right) img {
float: none;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
margin: 0;
}
}

/* renew05 顔切れ防止：contain＋背景色（テスト .liquid 限定） */
body#b-tour.liquid .TB20 a img[src^="images/renew05.jpg"] {
object-fit: contain;
background-color: #fafafa;
}

/* レントゲン画像は768px以下でも回り込み維持（テスト .liquid 限定） */
@media only screen and (max-width: 768px) {
body#b-tour.liquid img.fimg_l {
float: left;
display: inline;
margin: 0 15px 10px 0;
max-width: 45%;
height: auto;
}
}

/* ===== 茶色トンマナ化（テスト .liquid 限定） ===== */
/* 画像見出しのテキスト化（price の h2.txt-ttl と同仕様） */
body#b-tour.liquid h2.txt-ttl {
font-size: 1.6em;
line-height: 1.4;
color: #523d38;
text-align: left;
font-weight: bold;
background: none;
margin: 0 0 20px;
padding: 0;
}
body#b-tour.liquid h3.txt-ttl {
font-size: 1.5em;
line-height: 1.4;
color: #523d38;
text-align: left;
font-weight: bold;
background: none;
border-bottom: 2px solid #8c7268;
margin: 20px 0 15px;
padding: 0 0 5px;
}

/* 医院ツアー見出し（テスト .liquid 限定）— recruit-notice と同仕様 */
body#b-tour.liquid .cont_in {
container-type: inline-size;
}
body#b-tour.liquid .tour-lead {
font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
font-size: 2em;
font-weight: bold;
text-align: center;
color: #523d38;
line-height: 1.3;
margin: 0 0 15px;
}
