.breadcrumb {
  font-size: 0.9em;
  margin-bottom: 16px;
  color: #666;
}

.breadcrumb a {
  color: #0077aa;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 画像エリア：各カードで同じサイズの枠を用意 */
.similar-image {
  width: 100%;
  height: 190px;                 /* 画像＋引用を収める高さ（お好みで） */
  display: flex;
  flex-direction: column;        /* 縦方向に並べる（画像 → クレジット） */
  align-items: center;
  justify-content: flex-end;     /* 下側に寄せる（中央にしたければ center） */
  margin-bottom: 1em;
}

/* ブランド一覧ページ内の画像だけ、枠の中にフィットさせる */
.perfume-img-article {
  max-width: 100%;
  max-height: 150px;             /* 実際のボトル画像の上限高さ */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.image-credit-article {
  font-size: 0.7em;
  color: #777;
  margin-top: 6px;
  line-height: 1.2;
  max-width: 150px;
  word-break: break-word;
  display: inline-block;
}

.image-credit-article a {
  text-decoration: none;
  color: #777;
}

/* カード全体を同じ幅にする */
.brand-perfume-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 10px; /* 行間・列間はお好みで */
  justify-content: center;
}

.brand-perfume-item {
  width: 210px;          /* ★ カードの幅を固定（お好みで調整） */
  text-align: center;
}

.perfume-name {
  text-align: center;
}

.perfume-price {
    margin: 0px;
    font-size: 14px;
}

/* サイズ表示まわり */
.perfume-sizes {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.size-tag {
  display: inline-block;
  padding: 3px 6px;
  margin-right: 5px;
  margin-top: 3px;
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  color: #444;
}

.size-tag:last-child {
  margin-right: 0;
}

.guide-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 20px 20px;
  background-color: #fff;
  color: #333;
}

.brand-h3 {
  border-bottom: solid 1px #ccc;
}

.brand-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}

.brand-list li {
  background: #f5f5f5;
  padding: 5px 10px;
  border-radius: 6px;
}

.brand-list li a {
  text-decoration: none;
  color: #333;
}

.brand-description {
  margin-bottom: 20px;
  line-height: 1.8;
}

.featured-grid {
  display: flex;
  gap: 12px;
}

.featured-item img {
  width: 100px;
}

.brand-en {
  font-size: 0.8em;
  color: #666;
}

.featured-perfume-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.featured-perfume-row {
  display: flex;
  gap: 16px;
  min-width: max-content;
}

.featured-perfume-item {
  position: relative;
  flex: 0 0 200px; /* ← 横幅固定 */
}

/* ランキング */
.featured-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
}

.brand-h1 {
  font-size: 1.6em;
  margin-bottom: 1em;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  color: #222;
}

.brand-h2 {
  font-size: 1.25em;
  color: #444;
  margin-bottom: 1.0em;
  border-left: 5px solid #90E2E4;
  padding: 7px 0 7px 12px;
  background-color: #eee;
}

.is-hidden-article {
  display: none;
}

.more-articles-wrap {
  margin-top: 20px;
  text-align: center;
}

.more-articles-button {
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: #222;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

/* =========================
   scent.php
========================= */

.scent-lead {
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.9;
  color: #5f524b;
}

.scent-section {
  margin-top: 52px;
}

.scent-section:first-of-type {
  margin-top: 26px;
}

.scent-section .brand-h2 {
  margin-bottom: 18px;
}

/* 一覧グリッド */
.scent-article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.scent-article-grid > * {
  min-width: 0;
}

/* カード本体 */
.scent-article-item {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 1px solid #e5d8cf;
  border-radius: 18px;
  overflow: hidden;
  background: #f8f4f1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.scent-article-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #d8c5b8;
}

/* リンク全体 */
.scent-article-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #f8f4f1;
}

/* 画像 */
.scent-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8f4f1;
  line-height: 0;
}

.scent-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: top;
  transition: transform 0.35s ease;
}

.scent-article-item:hover .scent-card-img {
  transform: scale(1.04);
}

/* タイトル */
.scent-article-title {
  margin: 0;
  padding: 0 14px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: #f8f4f1;
  color: #3f312b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;

  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {

  /* 2列になるようにカード幅を調整（100%の半分 - 余白） */
  .brand-perfume-item {
    width: calc(50% - 20px); /* 隙間ができないように調整 */
  }

  /* グリッドの隙間をスマホ向けに少し縮める */
  .brand-perfume-grid {
    gap: 24px 16px;
    justify-content: center; /* 真ん中寄せになるように */
  }

  /* 画像枠の高さ調整（やや小さめにしてもOK） */
  .similar-image {
    height: 170px;  /* PCより少し低く */
  }

  .brand-perfume-grid .perfume-img-article {
    max-height: 140px; /* 画面幅が狭いので少しだけ縮める */
  }

  /* 文字サイズも調整してバランスを取る */
  .perfume-name {
    font-size: 15px;
  }

  .perfume-price {
    font-size: 14px;
  }

  .size-tag {
    font-size: 12px;
    padding: 2px 5px;
  }

  .brand-h1 {
    font-size: 1.2em;
  }

  .brand-h2 {
    font-size: 1.2em;
  }

  .scent-lead {
    font-size: 0.94rem;
    line-height: 1.8;
  }

  .scent-section {
    margin-top: 40px;
  }

  .scent-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .scent-article-item {
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  }

  .scent-article-title {
    padding: 0 10px;
    height: 64px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

}