/* =========================================
   オプション ページ固有スタイル
   ========================================= */

/* 絞り込みエリア全体 */
.option-filters-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

/* 各フィルターグループ（ラベル＋ボタン行） */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group-label {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--text-sub);
}

/* 目的グループ：ラベルとボタンを横並び */
.filter-group--inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.filter-group--inline .filter-group-label {
  flex-shrink: 0;
}
.filter-group--inline .filter-group-label::after {
  content: "：";
}
@media (max-width: 768px) {
  .filter-group--inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .filter-group--inline .filter-group-label::after {
    content: none;
  }
}

.filter-group-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .option-filters-wrap {
    gap: 12px;
    margin-bottom: 28px;
  }
}

/* プラットフォームボタン追加色 */
.nav-btn-yahoo {
  border-color: #f26526;
  color: #f26526;
}
.nav-btn-yahoo.active,
.nav-btn-yahoo:hover {
  background: #f26526;
  border-color: #f26526;
  color: #fff;
}
.nav-btn-google {
  border-color: #4285f4;
  color: #4285f4;
}
.nav-btn-google.active,
.nav-btn-google:hover {
  background: #4285f4;
  border-color: #4285f4;
  color: #fff;
}

/* 目的タグボタン */
.tag-filter-btn {
  padding: 4px 14px;
  font-size: 14px;
  font-weight: bold;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-sub);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tag-filter-btn:hover {
  background-color: var(--primary-mint);
  border-color: var(--primary-mint);
  color: #fff;
}
.tag-filter-btn.active {
  background-color: var(--primary-mint);
  border-color: var(--primary-mint);
  color: #fff;
}

/* 商材グリッド（1列レイアウト） */
.option-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 商材カード（横並び） */
.option-card {
  display: flex;
  flex-direction: row;
  border: 1px solid #eee;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-flat);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s;
  animation: optionCardFadeIn 0.35s ease forwards;
}
.option-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0px rgba(157, 189, 166, 0.5);
}
.option-card.is-hidden {
  display: none;
}
.option-card-link {
  display: flex;
  flex-direction: row;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 768px) {
  .option-card {
    flex-direction: column;
  }
  .option-card-link {
    flex-direction: column;
  }
}

/* サムネイル */
.option-card-thumb {
  flex-shrink: 0;
  width: 200px;
  overflow: hidden;
  background: #f5f7f9;
}
.option-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.option-card:hover .option-card-thumb img {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .option-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* カード本体 */
.option-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 24px;
}
@media (max-width: 768px) {
  .option-card-body {
    padding: 16px;
  }
}

/* タイトル */
.option-card-title {
  margin-bottom: 10px;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  color: var(--text-main);
}
@media (max-width: 768px) {
  .option-card-title {
    font-size: 16px;
  }
}

/* 概要（グレー網掛け部分） */
.option-card-summary {
  margin-bottom: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  background: #f5f7f9;
  border-radius: 8px;
}
.option-card-summary p {
  margin: 0;
}
@media (max-width: 768px) {
  .option-card-summary {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* ハッシュタグ */
.option-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.option-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.4;
  border-radius: 50px;
}

/* カテゴリタグ（サービス別カラー） */
.option-tag.tag-line {
  color: #fff;
  background: #06c755;
  border: 1px solid #06c755;
}
.option-tag.tag-google {
  color: #fff;
  background: #4285f4;
  border: 1px solid #4285f4;
}
.option-tag.tag-yahoo {
  color: #fff;
  background: #ff0033;
  border: 1px solid #ff0033;
}
.option-tag.tag-bp {
  color: #fff;
  background: var(--primary-hover);
  border: 1px solid var(--primary-hover);
}

/* その他タグ */
.option-tag.tag-other {
  color: var(--text-muted);
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
}

/* 詳細ページ共通：料金金額表示 */
.option-price {
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
  margin: 0;
}

.option-price-unit {
  font-size: 0.55em;
  font-weight: normal;
}

/* 詳細ページ共通：info-box内見出し */
.info-box-heading {
  font-weight: bold;
  margin-bottom: 12px;
}

.info-box-heading-center {
  text-align: center;
}

.info-box-sub {
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* フィルターアニメーション */
@keyframes optionCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
