/* 診療案内
   左上に小さな日本語と大きな英字、淡い面を左に敷き、1枚の白い面を細い線で4列×2段（スマホは2列）に区切って、絵と名前を並べる。
   自費診療の費用の目安は、参考にない段を足さず、この段の中に白い表で収めた */
.medical { position: relative; }
.medical__inner { padding-bottom: 10px; }
.medical__inner { padding-top: 50px; }
.medical__txt { margin-top: 14px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
  background: var(--white);
}
/* 区切りの線：右と下に引き、行の端と最後の段では消す */
.tiles__item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiles__item:nth-child(2n) { border-right: 0; }
.tiles__item:nth-last-child(-n + 2) { border-bottom: 0; }
.tiles__item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 0 8px;
  text-align: center;
  transition: background-color 0.3s ease;
}
.tiles__ic { flex: none; width: 60px; height: 60px; margin-bottom: 18px; }
.tiles__txt {
  display: block;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

/* 自費診療の費用の目安 */
.price { margin-top: 50px; }
.price__head { font-size: 18px; line-height: 1.6; letter-spacing: 0.1em; }
.price__lead { margin-top: 12px; font-size: 13px; line-height: 1.9; }
.price__table {
  width: 100%;
  margin-top: 24px;
  background: var(--white);
  font-size: 13px;
  line-height: 1.8;
}
.price__table thead { display: none; }
.price__table tr { display: block; padding: 22px 20px 20px; }
.price__table tr + tr { border-top: 1px solid var(--line); }
.price__table tbody th {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-align: left;
}
.price__th-sub { font-size: 13px; }
.price__table td { display: block; margin-top: 12px; }
.price__table td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-sub);
}
.price__table small { display: block; font-size: 12px; color: var(--ink-sub); }
.price__yen { font-weight: 700; font-size: 15px; }
.price__yen small { font-weight: 400; }
.price__notes { margin-top: 14px; font-size: 12px; line-height: 1.8; color: var(--ink-sub); }

@media (min-width: 600px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles__item:nth-child(2n) { border-right: 1px solid var(--line); }
  .tiles__item:nth-child(4n) { border-right: 0; }
  .tiles__item:nth-last-child(-n + 4) { border-bottom: 0; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .tiles__item a { height: 170px; }
}

@media (min-width: 1024px) {
  .medical::before {
    content: "";
    position: absolute;
    top: 83px;
    bottom: 0;
    left: 0;
    width: min(1062px, 74%);
    background: var(--panel);
  }
  .medical__inner {
    position: relative;
    max-width: 1580px;
    padding: 0 40px 100px;
  }
  .medical__txt { max-width: 680px; margin-top: 20px; }
  .tiles {
    width: 100%;
    max-width: 1080px;
    margin: 80px auto 0;
  }
  .tiles__item a { height: 250px; }
  .tiles__item a:hover { background-color: var(--yellow-pale); }
  .tiles__ic { width: 70px; height: 70px; margin-bottom: 36px; }
  .tiles__txt { font-size: min(1.6vw, 20px); letter-spacing: 0.15em; }
  .tiles__item a:hover .tiles__txt { color: var(--sky-deep); letter-spacing: 0.25em; }

  .price { max-width: 1080px; margin: 80px auto 0; }
  .price__head { font-size: 24px; }
  .price__lead { margin-top: 16px; font-size: 15px; }
  .price__table { margin-top: 30px; font-size: 14px; }
  .price__table thead { display: table-header-group; }
  .price__table tr { display: table-row; padding: 0; }
  .price__table th,
  .price__table td {
    display: table-cell;
    margin: 0;
    padding: 24px 18px;
    vertical-align: top;
    text-align: left;
  }
  .price__table thead th {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .price__table tbody th { display: table-cell; width: 15%; padding-left: 30px; font-size: 16px; }
  .price__th-sub { display: block; }
  .price__table td::before { content: none; }
  .price__table td:nth-of-type(1) { width: 26%; }
  .price__table td:nth-of-type(2) { width: 18%; }
  .price__table td:nth-of-type(3) { width: 14%; }
  .price__table td:nth-of-type(4) { padding-right: 30px; }
  .price__yen { font-size: 16px; }
  .price__notes { font-size: 13px; }
  .medical__btn { margin-top: 50px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .price__table tbody th { padding-left: 20px; font-size: 15px; }
  .price__table th,
  .price__table td { padding-left: 14px; padding-right: 14px; }
}
