@charset "utf-8";
/* 手術名（タイトル行） */
.item-name {
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  color: black;
  word-break: break-word;
  white-space: normal;
}
/* 詳細行内部のFlexコンテナ */
.detail-flex {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
/* 左側画像コンテナ（固定幅、縮小可） */
.thumbnail-wrapper {
  flex-shrink: 0;
  width: 300px;
  max-width: 100%;
}
/* サムネイル画像自身 */
.thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
  background-color: #f1f5f9;
  cursor: pointer;
  object-fit: cover;
}
/* 右側情報エリア（自動で残り幅を占める） */
.info-area {
  flex: 1;
  padding-top: 4px;
}
/* 価格・時間 */
.price-time {
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
}
.price-time-bottom {
  margin-bottom: 8px;
}
/* 説明文 */
.description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: black;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}
/* 行クリック用 */
.clickable-row {
  cursor: pointer;
}
/* 下線（詳細行のみ） */
.bottomline {
  border-bottom: solid 1px #CCCCCC;
}
/* 価格色 */
.datacel {
  color: rgb(215, 0, 0);
}
/* タイトル行の下線を消す */
.item-title-row td {
  border-bottom: none;
  padding-bottom: 6px;
}
/* スマホ調整 */
@media (max-width: 600px) {
  .detail-flex {
    gap: 8px;
  }
  .thumbnail-wrapper {
    width: 150px;
  }
  .mobile_table td {
    padding: 2px 10px;
  }
  .item-name {
    font-size: 1rem;
  }
  .price-time {
    font-size: 1rem;
  }
  .price-time-bottom {
    margin-bottom: 5px;
  }
  .description {
    font-size: 0.8rem;
  }
  .info-area {
    padding-top: 0px;
  }
}

.thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.1s;
}
.thumb:active {
  transform: scale(0.96);
}
/* 全画面オーバーレイ背景 */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.fullscreen-overlay.active {
  visibility: visible;
  opacity: 1;
}
.fullscreen-img {
  display: block;
  width: 400px;
  height: 300px;
  transform-origin: center center;
  cursor: grab;
}
.fullscreen-img:active {
  cursor: grabbing;
}
.close-btn {
  filter: invert(100%);
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 28px;
  text-align: center;
  line-height: 44px;
  cursor: pointer;
  z-index: 10000;
}