@charset "utf-8";
/*
Theme Name: SERUM Child
Template: serum_tcd096
*/

iframe {
  width: 100%;
}

/* PC表示（幅992px以上）の時、強制的にメニューを表示する修正 */
@media screen and (min-width: 992px) {
  /* ハンバーガーボタンを消す */
  #drawer_menu_button {
    display: none !important;
  }
  /* PC用メニューを表示する */
  #global_menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.open_header #side_icon_button {
    display: block;
    background-color: #fff;
  }
}
.pc {
  display: block;
}
.sp {
  display: none;
}
@media screen and (max-width: 768px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
}
/* --------------------------------------------------
   LINEボタンのデザイン（画像不要版）
   -------------------------------------------------- */
.header-line-banner {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
}

/* ボタン本体のデザイン */
.header-line-banner .line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background-color: #06c755;
  color: #fff;

  font-size: 16px;
  font-weight: bold;
  text-decoration: none;

  width: 100%;
  max-width: 400px;
  padding: 15px 20px;
  border-radius: 50px;

  box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3);
  transition: all 0.3s ease;
  line-height: 1.4;
}

/* マウスを乗せた時の動き */
.header-line-banner .line-btn:hover {
  background-color: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(6, 199, 85, 0.4);
  opacity: 1;
}

/* --------------------------------------------------
   トップページ：買取品目一覧のデザイン
   -------------------------------------------------- */
.custom_genre_list .genre_item .clearfix::after {
  content: none !important;
}
.top-concept {
  margin: 40px 0 0 0;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.2rem;
}
.cb_content_wrap h2 {
  text-align: center;
  margin: 3rem 0;
  color: #c9a063;
}
.custom_genre_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
}

/* カード全体のデザイン */
.custom_genre_list .genre_item {
  display: flex;
  align-items: center;
  width: 33%;
  border: 1px solid #eee;
  padding: 15px;
  text-decoration: none;
  color: #333;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  box-sizing: border-box;
  border-radius: 5px;
}

/* ホバー時の動き */
.custom_genre_list .genre_item:hover {
  opacity: 0.8;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* 画像エリア */
.custom_genre_list .genre_item .img_box {
  width: 60px;
  height: 60px;
  margin-right: 20px;
  flex-shrink: 0;
}

/* 画像（丸くする） */
.custom_genre_list .genre_item .img_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* テキストエリア */
.custom_genre_list .genre_item .txt_box h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

/* ------------------------- */
/* お客様の声 */
/* ------------------------- */
.post_content h2 {
  margin: 0 0 2rem 0;
}
/* ------------------------- */
/* レスポンシブ */
/* ------------------------- */
@media screen and (max-width: 768px) {
  .custom_genre_list {
    width: 100%;
  }
  .custom_genre_list .genre_item {
    display: block;
    padding: 15px 3px;
    text-align: center;
  }
  .custom_genre_list .genre_item .img_box {
    margin: 0 auto 10px auto;
  }
  .custom_genre_list .genre_item .txt_box h3 {
    font-size: 15px;
  }
}

/* ------------------------------------------ */
/* 親テーマにあった追加CSS */
/* ------------------------------------------ */
/* テーブル全体 */
table.inquiry {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  table-layout: fixed;
  word-wrap: break-word;
}

/* セル共通 */
table.inquiry th,
table.inquiry td {
  border: 1px solid #ddd;
  padding: 12px;
  vertical-align: middle;
}

/* 見出しセル */
table.inquiry th {
  background-color: #f9f9f9;
  text-align: left;
  width: 35%;
  font-weight: bold;
  font-size: 15px;
  color: #333;
}

/* 入力セル */
table.inquiry td {
  background-color: #f3f5f7;
}

/* 入力フィールド */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 15px;
  background-color: #f3f5f7;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #333;
  transition: border-color 0.3s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: #aaa;
}

/* フォーカス時 */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: #8ab4f8;
  outline: none;
}

/* テキストエリア調整 */
textarea {
  height: 140px;
  resize: vertical;
}

/* 必須/任意 ラベル */
.haveto,
.any {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  color: #fff;
  vertical-align: middle;
}

.haveto {
  background-color: #f28b82;
}

.any {
  background-color: #8ab4f8;
}

/* 中央寄せ用クラス */
.center,
center {
  text-align: center;
  margin-top: 20px;
}

/* 送信ボタン */
#formbtn {
  background-color: #8ab4f8;
  color: #fff;
  padding: 12px 30px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 20px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

#formbtn:hover {
  background-color: #7aa3e6;
}

/* reCAPTCHA説明など */
small {
  font-size: 12px;
  color: #666;
  display: block;
  margin-top: 10px;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  table.inquiry th,
  table.inquiry td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  table.inquiry th {
    border-bottom: none;
    font-size: 14px;
    padding: 8px 10px;
  }

  table.inquiry td {
    font-size: 14px;
    padding: 10px;
  }

  #formbtn {
    width: 100%;
    font-size: 16px;
  }
}

/* ボタンを完全に中央に寄せる */
#formbtn {
  display: block;
  margin: 20px auto 40px; /* ← 下に余白追加（40px） */
  background-color: #8ab4f8;
  color: #fff;
  padding: 14px 36px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
}

/* ホバー時の色変化 */
#formbtn:hover {
  background-color: #7aa3e6;
}

/* reCAPTCHAまわりの説明文も中央寄せ */
center small,
center p {
  text-align: center;
  margin-top: 16px;
}

.container {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 22px;
  color: #c9a063;
  margin-top: 40px;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

h3 {
  font-size: 18px;
  margin-top: 20px;
  color: #555;
}

.box {
  background-color: #fdf8f1;
  padding: 20px;
  border: 1px solid #e0d2b8;
  border-radius: 8px;
  margin-bottom: 30px;
}

.tag {
  display: inline-block;
  background-color: #c9a063;
  color: #fff;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* マップ */
.map-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 20px auto; /* 上0、左右auto、下20px */
}
.map-container iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}

/* ========= 買取品目 ========== */
:root {
  --accent: #bfa37a;
  /* ベージュ寄りのアクセント色 */
  --text: #222;
  --muted: #666;
  --border: #e8e6e3;
  --card-bg: #fff;
}

.buy-items {
  background: #fff;
}

.buy-items__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px;
}

/* 見出し・リード */
.buy-items__eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.buy-items__title {
  margin: 0 0 12px;
  line-height: 1.2;
}

.buy-items__lead {
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 24px;
}

/* グリッド */
.buy-items__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .buy-items__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .buy-items__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* カード */
.buy-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  height: 100%;
}

/* aタグを入れる場合のための配慮（入ってなくても崩れない） */
.buy-card a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.buy-card:hover,
.buy-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #ded9d2;
}

/* 画像＋キャプション */
.buy-card figure {
  margin: 0;
  display: grid;
  grid-template-rows: auto min-content;
  height: 100%;
}

.buy-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center; /* ← 画像の中央を表示する */
  background: #f6f5f3;
}

.buy-card figcaption {
  text-align: center;
  font-weight: 500;
  color: var(--text);
  padding: 12px 10px;
  line-height: 1.4;
}

/* 注記 */
.buy-items__note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* アクセシビリティ */
.buy-card a:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 60%, white);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ダークモード軽い対応（必要な場合） */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f2f2;
    --muted: #b6b6b6;
    --border: #3a3a3a;
    --card-bg: #191919;
  }
  .buy-items {
    background: #0f0f0f;
  }
  .buy-card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
  .buy-card:hover,
  .buy-card:focus-within {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  }
}
/* 追記：キャプションをしっかりセンターに */
.buy-card figure {
  display: flex; /* ← gridからflexにすると誤差が出にくい */
  flex-direction: column;
  height: 100%;
  margin: 0; /* 念のためリセット */
}

.buy-card figcaption {
  margin: 0; /* ブラウザ既定のマージンを打消し */
  display: flex;
  align-items: center; /* 垂直センター */
  justify-content: center; /* 水平センター */
  text-align: center;
  padding: 14px 12px;
  min-height: 52px; /* 行高差が出ても見た目を揃える */
  line-height: 1.4;
}

.buy-card .price {
  display: block;
  font-weight: bold;
  color: #c82d2d;
  font-size: 1.2em;
  margin-top: 4px;
}

.buy-card figure {
  margin: 0;
}

.buy-card figcaption {
  padding: 10px 0;
}

.item-title {
  font-size: 1rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 5px; /* 上段と下段の間隔 */
}

.item-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #c82d2d;
}

/* 画像とキャプションの2段構造を安定させる */
.buy-card figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

/* キャプション帯 */
.buy-card .cap {
  display: flex;
  flex-direction: column;
  gap: 6px; /* 上段と下段の間隔 */
  padding: 12px 16px;
  background: #fff; /* 白い帯 */
}

/* 上段：商品タイトル */
.buy-card .cap-top {
  font-size: 12px;
  font-weight: 800;
  color: #222;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* タイトルが長い時に「…」 */
}

.grecaptcha-badge {
  visibility: hidden;
}

#return_top {
  display: none !important;
}
