/* =============================================================================
 ベーススタイル（single-hotel.css からの継承）
=============================================================================
*/

/* ヘッダー周り */
.c-prNotation {
  margin-right: 8px;
}
.hotel-last-updated {
  text-align: right;
  font-size: 13px;
  color: #666;
  margin: 10px 0 20px;
  line-height: 1;
}
.hotel-last-updated i {
  margin-right: 4px;
  color: #999;
}
@media (max-width: 768px) {
  .hotel-last-updated {
    font-size: 12px;
    margin-right: 10px;
  }
}

/* 画像エリア */
.hotel-image-container {
  position: relative;
  margin-bottom: 30px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.hotel-image-container .wp-block-image {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
}
.hotel-image-container .wp-block-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hotel-image-container:hover img {
  transform: scale(1.05);
}

/* 評価ボックス */
.oyacompass-summary-box {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
}
.oyacompass-summary-title {
  text-align: center;
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}
.rating-scores-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.rating-score-box {
  text-align: center;
}
.rating-score-box h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #555;
}
.rating-score-box .score-value {
  font-size: 16px;
  color: #777;
  margin-bottom: 8px;
}
.rating-score-box .score-value span {
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
}
.score-bar {
  background-color: #e0e0e0;
  border-radius: 5px;
  height: 10px;
  overflow: hidden;
}
.score-bar div {
  height: 100%;
  border-radius: 5px;
}
.rating-score-box.good-box {
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  padding: 15px;
  border-radius: 6px;
}
.rating-score-box.bad-box {
  background: #fff1f0;
  border: 1px solid #ffa39e;
  padding: 15px;
  border-radius: 6px;
}

@media screen and (max-width: 767px) {
  .rating-scores-container {
    grid-template-columns: 1fr;
  }
}

/* 見出し */
.post_content h2 {
  font-size: 20px;
  margin: 40px 0 20px 0;
  color: #333;
  border-left: 5px solid var(--color_main);
  border-top: 2px solid var(--color_main);
  border-bottom: 2px solid var(--color_main);
  padding: 15px 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* テーブル */
.wp-block-table {
  margin: 20px 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: white;
}
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.wp-block-table th {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #333;
  font-weight: 600;
  padding: 15px 20px;
  border: 1px solid #dee2e6;
  text-align: left;
  vertical-align: top;
  width: 200px !important;
}
.wp-block-table td {
  padding: 15px 20px;
  border: 1px solid #dee2e6;
  line-height: 1.6;
  color: #555;
  vertical-align: top;
}
@media screen and (max-width: 767px) {
  .wp-block-table th {
    width: 120px !important;
  }
}

/* アコーディオン・詳細リスト */
.family-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}
.family-item {
  border: none;
  border-radius: 4px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.family-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  cursor: pointer;
  transition: background 0.3s;
}
.family-item-header:hover {
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
}
@media screen and (max-width: 767px) {
  .family-item-header {
    display: block;
  }

  .family-items-service-container .family-item-header {
    display: flex;
  }
}
.family-item-title {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  display: flex;
  align-items: center;
}
@media screen and (max-width: 767px) {
  .family-item-title {
    margin-bottom: 12px;
  }
}
.family-item-status {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}
.family-item-details {
  display: none;
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  background: white;
  animation: slideDown 0.3s ease;
}
.family-item.expanded .family-item-details {
  display: block;
}
.family-item-toggle {
  font-size: 18px;
  font-weight: bold;
  color: #667eea;
  margin-left: 15px;
}
.family-item.expanded .family-item-toggle {
  transform: rotate(45deg);
}

/* 箇条書きリストのスタイル */
.point-list-container ul {
  text-align: left;
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
}
.point-list-container li {
  margin-bottom: 5px;
  list-style-type: disc; /* 黒丸 */
}

/* ステータスカラー */
.status-good {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
  color: #388e3c;
}
.status-warning {
  background: linear-gradient(135deg, #fff3e0, #ffcc80);
  color: #f57c00;
}
.status-bad {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  color: #d32f2f;
}
.status-rating {
  background: #fff8e1;
  color: #ff8f00;
  border: 1px solid #ffecb3;
} /* ★評価用 */
.status-normal {
  background: #f0f0f0;
  color: #777;
}

/* =============================================================================
 OTAボタン（スポット専用カラー調整）
=============================================================================
*/
.ota-links-container-bordered {
  margin: 40px 0 !important;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  text-align: center;
}
.ota-links-container-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
  position: relative;
}
.ota-links-container-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: var(--color_main);
}
.ota-links-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.ota-link-bordered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 28px 8px 8px;
  position: relative;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
  min-width: 220px;
  flex-grow: 1;
  max-width: 320px;
  box-sizing: border-box;
}
.ota-link-bordered:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: #fff;
}
.ota-link-bordered .ota-brand-name {
  font-weight: 700;
  margin-right: 0.5em;
  font-size: 1.1em;
}
.ota-link-bordered .ota-text {
  font-size: 0.9em;
}
.ota-link-bordered .ota-arrow {
  position: absolute;
  right: 15px;
  width: 8px;
  height: 8px;
  border-top: 2px solid;
  border-right: 2px solid;
  transform: rotate(45deg);
  transition: border-color 0.3s;
}
.ota-link-bordered:hover .ota-arrow {
  border-color: #fff;
}

/* Klook (オレンジ) */
.ota-link-bordered.ota-link-klook {
  border-color: #ff5722;
}
.ota-link-bordered.ota-link-klook:hover {
  background: #ff5722;
  border-color: #ff5722;
}
.ota-link-bordered.ota-link-klook .ota-brand-name {
  color: #ff5722;
}
.ota-link-bordered.ota-link-klook .ota-arrow {
  border-color: #ff5722;
}
.ota-link-bordered.ota-link-klook:hover .ota-brand-name {
  color: #fff;
}

/* HotPepper (赤) */
.ota-link-bordered.ota-link-hotpepper {
  border-color: #fa5e4d;
}
.ota-link-bordered.ota-link-hotpepper:hover {
  background: #fa5e4d;
  border-color: #fa5e4d;
}
.ota-link-bordered.ota-link-hotpepper .ota-brand-name {
  color: #fa5e4d;
}
.ota-link-bordered.ota-link-hotpepper .ota-arrow {
  border-color: #fa5e4d;
}
.ota-link-bordered.ota-link-hotpepper:hover .ota-brand-name {
  color: #fff;
}

/* 公式サイト (黒/グレー) */
.ota-link-bordered.ota-link-official {
  border-color: #333;
}
.ota-link-bordered.ota-link-official:hover {
  background: #333;
  border-color: #333;
}
.ota-link-bordered.ota-link-official .ota-brand-name {
  color: #333;
}
.ota-link-bordered.ota-link-official .ota-arrow {
  border-color: #333;
}
.ota-link-bordered.ota-link-official:hover .ota-brand-name {
  color: #fff;
}

/* アニメーション定義 */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .ota-links-buttons-wrapper {
    flex-direction: column;
  }
  .ota-link-bordered {
    width: 100%;
    max-width: none;
  }
}

/* --- グルメスライダー --- */
.gourmet-card {
  display: block;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gourmet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.gourmet-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}
.gourmet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gourmet-info {
  padding: 10px;
}
.gourmet-genre {
  font-size: 10px;
  color: #fff;
  background: #ffa726;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 5px;
}
.gourmet-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gourmet-catch {
  font-size: 11px;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spot-gourmet-slider .swiper-button-next,
.spot-gourmet-slider .swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.spot-gourmet-slider .swiper-button-next::after,
.spot-gourmet-slider .swiper-button-prev::after {
  font-size: 14px;
}

/*
=============================================================================
関連スポット (Slickスライダー)
=============================================================================
*/

/* 関連スポットコンテナ */
.related-spots-container {
  margin-top: 48px;
  border-top: 2px solid #f2f2f2;
  overflow: hidden;
  order: 3;
}

.related-spots-container h2 {
  font-size: 20px;
  margin: 40px 0 20px 0;
  color: #333;
  padding: 15px 20px;
  text-align: center;
  font-weight: bold;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

/* スライダー内の各アイテム（Slickが生成するラッパー間）の余白調整 */
.related-spot-slide-item {
  padding: 0 10px;
  box-sizing: border-box;
}

/* カード本体のスタイル */
.related-spot-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  background: #fff;
  margin-bottom: 10px;
}

.related-spot-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-spot-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* スポット画像エリア */
.related-spot-image {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.related-spot-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* スポット情報エリア */
.related-spot-content {
  padding: 15px;
}

/* 類似理由ラベル */
.related-reason-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.related-reason-badge {
  background-color: #ffeaa7;
  color: #a07d00;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}

.related-spot-meta {
  font-size: 14px;
  color: #555;
}

.related-spot-price {
  font-size: 16px;
  font-weight: bold;
  color: #d9534f;
  margin-bottom: 5px;
}

/* Slickスライダーの矢印（左右）の調整 */
.related-spots-slider .slick-prev,
.related-spots-slider .slick-next {
  width: 40px;
  height: 40px;
}
.related-spots-slider .slick-prev {
  left: 10px;
  z-index: 10;
}
.related-spots-slider .slick-next {
  right: 10px;
}

.related-spots-slider .slick-prev:before,
.related-spots-slider .slick-next:before {
  font-size: 40px;
  opacity: 1;
}

/* スマホ表示 */
@media (max-width: 767px) {
  .related-spot-title {
    font-size: 16px;
    min-height: 0;
  }

  /* スマホでは矢印を非表示 (スワイプ操作がメインのため) */
  .related-spots-slider .slick-prev,
  .related-spots-slider .slick-next {
    display: none !important;
  }
}

/* Slickスライダーのトラック自体をFlexbox化（高さ揃えの核） */
.related-spots-slider .slick-track {
  display: flex;
}
.related-spots-slider .slick-track .slick-slide {
  height: auto;
  display: flex;
}
.related-spots-slider .slick-track .slick-slide > div {
  height: 100%;
  width: 100%;
}

/* スライドのパディング調整 */
.related-spot-slide-item {
  padding: 0 10px;
  box-sizing: border-box;
  height: 100%;
}

/* カード本体をFlexコンテナ化 */
.related-spot-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* リンクも高さを継承 */
.related-spot-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* スポット情報エリア（テキスト部分） */
.related-spot-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* 類似理由ラベル */
.related-reason-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  min-height: 19px;
}

/* タイトル */
.related-spot-title {
  font-size: 17px;
  font-weight: bold;
  margin: 0 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

/* メタ情報（価格とエリア） */
.related-spot-meta {
  font-size: 14px;
  color: #555;
  margin-top: auto;
}
