/* style.css for Custom Plugin */
.table-container {
    overflow-x: auto;
}
.taxonomy-value {
    margin-right: 5px;
}


/* ▼ 共通／PC表示用スタイル（デフォルト） */
.post-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin: 20px 0;
  transition: transform 0.2s ease;
  background-color: #fff;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card-inner {
  display: flex;
  flex-direction: row; /* ← PCでは横並び */
  align-items: stretch;
}

.post-card-thumb {
  margin: 10px 0 10px 10px;
  padding: 5px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-sizing: border-box;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-thumb.no-thumb {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #aaa;
  font-size: 14px;
  background: #f2f2f2;
  height: 100%;
}

.post-card-content {
  padding: 15px;
  flex: 1;
  min-width: 0;
}

.post-card-content h3 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
}

.post-card-content p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}

.shop-name,
.shop-address {
  font-weight: 500;
}

.shop-stations,
.shop-television {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.shop-stations .station-tag {
  display: inline-block;
  background-color: #e0f4ff;
  color: #007acc;
  padding: 3px 8px;
  margin-right: 5px;
  border-radius: 15px;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.shop-stations .station-tag:hover {
  background-color: #cde9fc;
}

.shop-television .television-tag {
  display: inline-block;
  background-color: #fff3d4;
  color: #c47a00;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 13px;
  margin-right: 5px;
  text-decoration: none;
}

.shop-television .television-tag:hover {
  background-color: #ffe9b0;
}


/* ▼ スマホ表示用スタイル（600px以下） */
@media (max-width: 600px) {
  .post-card-inner {
    flex-direction: column; /* ← スマホでは縦並びに */
  }

  .post-card-thumb {
    margin: 10px;
    width: 100%; /* 画面幅いっぱいに */
    height: auto;
  }

  .post-card-thumb img {
    width: 100%;
    height: auto;
    max-height: 250px; /* 必要なら上限を設定 */
  }

  .post-card-content {
    padding: 10px;
  }
}



.related-keyword-cards {
  margin-top: 2em;
}

.keyword-section {
  margin-bottom: 2em;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  max-width: 900px; /* ← 広くする */
  width: 100%;
}

.card:hover {
  transform: scale(1.01);
}

.card img.thumb {
  width: 180px;
  height: 135px;         /* 固定縦サイズにする（例：4:3比率） */
  object-fit: contain;   /* 切れないように全体表示 */
  object-position: center center;
  background-color: #f8f8f8;  /* 背景色で空白をカバー（任意） */
  flex-shrink: 0;
}


/* タイトル + 説明 */
.card-content {
  padding: 0.8em 1em;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.card-title a {
  text-decoration: none;
  color: #333;
  display: block;
}

.card-description {
  font-size: 0.9em;
  color: #555;
  line-height: 1.4;
}

/* モバイル対応 */
@media (max-width: 480px) {
  .card {
    flex-direction: column;
    max-width: 100%;
  }

  .card img.thumb {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .card-content {
    text-align: center;
  }
}
