/* ========================================
   お買い物ガイド 共通スタイル
   guide.css
   ======================================== */




img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.4em;
}

/* ---- ページ全体のレイアウト ---- */
.page-wrapper {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ---- パンくず ---- */
.breadcrumb {
  padding: 16px 0 24px;
  font-size: 0.8rem;
  color: #999;
}

.breadcrumb__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "›";
  margin-right: 4px;
  color: #bbb;
}

.breadcrumb__item a {
  color: #999;
  text-decoration: none;
}

.breadcrumb__item a:hover {
  color: #555;
  text-decoration: underline;
}

/* ---- ページタイトル ---- */
.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #222;
  padding-bottom: 14px;
  margin-bottom: 32px;
  border-bottom: 2px solid #222;
}

/* ---- 目次 ---- */
.toc {
  background-color: #f4f3f0;
  border: 1px solid #e5e4e0;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.toc__title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc__list li a {
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.toc__list li a::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: #aaa;
  flex-shrink: 0;
}

.toc__list li a:hover {
  color: #222;
}

/* ---- セクション ---- */
.guide-section {
  margin-bottom: 56px;
  padding: 0;
}

/* ---- 見出し H2 ---- */
.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #222;
  padding: 0 0 10px 14px;
  margin-bottom: 24px;
  border-left: 3px solid #555;
  border-bottom: 1px solid #e5e4e0;
  line-height: 1.5;
}

/* ---- 見出し H3 ---- */
.block-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #555;
  margin-bottom: 8px;
}

/* ---- ブロック間のスペース ---- */
.content-block {
  margin-bottom: 24px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block p {
  margin-bottom: 8px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block ul,
.content-block ol {
  margin-bottom: 8px;
}

.content-block li {
  margin-bottom: 4px;
}

/* ---- テーブル ---- */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 4px 0;
}

.guide-table th,
.guide-table td {
  padding: 10px 14px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.guide-table thead th {
  background-color: #f0efec;
  font-weight: 600;
  font-size: 0.85rem;
  color: #444;
}

.guide-table tbody th {
  background-color: #f7f6f3;
  font-weight: 500;
  white-space: nowrap;
}

.guide-table .text-center {
  text-align: center;
}

/* ---- コールアウト（強調ボックス） ---- */
.callout {
  background-color: #f4f3f0;
  border-left: 3px solid #888;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin: 8px 0;
}

/* ---- 注意テキスト（赤） ---- */
.text-caution {
  color: #c0392b;
}

.text-caution-bold {
  color: #c0392b;
  font-weight: 600;
}

/* ---- 注意ボックス ---- */
.attention-box {
  background-color: #fff9f8;
  border: 1px solid #f0ccc8;
  padding: 20px 24px;
  margin-bottom: 24px;
}

/* ---- 定義リスト（DL） ---- */
.definition-list {
  font-size: 0.9rem;
}

.definition-list dt {
  font-weight: 600;
  color: #444;
  margin-top: 16px;
  margin-bottom: 4px;
}

.definition-list dt:first-child {
  margin-top: 0;
}

.definition-list dd {
  padding-left: 1em;
  color: #555;
}

.definition-list dd.text-caution {
  padding-left: 1em;
}

/* ---- 囲み（ケース説明など） ---- */
.case-box {
  background-color: #f7f6f3;
  border: 1px solid #e5e4e0;
  padding: 20px 24px;
}

/* ---- タブ ---- */
.tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 2px solid #ddd;
}

.tab-btn {
  padding: 10px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #ddd;
  border-bottom: none;
  background: #f4f3f0;
  color: #888;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.tab-btn.is-active {
  background: #fff;
  color: #222;
  border-color: #ddd;
  position: relative;
  bottom: -2px;
}

.tab-btn:hover:not(.is-active) {
  background: #ede;
  color: #555;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

/* ---- 戻るボタン ---- */
.btn-return {
  text-align: center;
  margin: 48px 0 36px;
}

.btn-return a {
  display: inline-block;
  padding: 12px 36px;
  border: 1px solid #555;
  color: #555;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-return a:hover {
  background: #555;
  color: #fff;
}

/* ---- お問い合わせブロック ---- */
.inquiry-block {
  background-color: #f4f3f0;
  border: 1px solid #e5e4e0;
  padding: 24px 28px;
  text-align: center;
}

.inquiry-block__title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 8px;
}

.inquiry-block__hours {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 14px;
}

.inquiry-btn {
  display: inline-block;
  padding: 10px 32px;
  background: #444;
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
  border: none;
}

.inquiry-btn:hover {
  background: #222;
  color: #fff;
}

/* ---- レスポンシブ ---- */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  .page-wrapper {
    padding: 0 16px 48px;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.05rem;
  }

  .toc {
    padding: 18px 20px;
  }

  .guide-table th,
  .guide-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .tab-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .guide-table tbody th {
    white-space: normal;
  }
}
