/* ------------------------------
  基本設定・共通スタイル
------------------------------ */

:root {
  --bg: #ffffff;
  --accent: #ff9fb5;
  --accent-sub: #ffd9e3;
  --text-main: #5b4636;
  --text-sub: #8c7564;
  --border-soft: #f0e0d2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  height: 100%;
  font-size: 100%;
}

body {
  margin: 0;
  height: 100%;
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  background: var(--bg);
  color: var(--text-main);
  font-size: 0.95rem;    /* 全体の基本サイズ */
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* ------------------------------
  ヘッダー（共通）
------------------------------ */

.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
}

.page-header__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand a {
  font-family:
    "Yu Mincho",
    "MS Mincho",
    "MS 明朝",
    "Hiragino Mincho ProN",
    serif; 
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text-main);
}

/* ------------------------------
  グローバルナビ（共通）
------------------------------ */

.nav__list {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  padding-bottom: 4px;
  text-decoration: none;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
}

.nav__item.is-current .nav__link {
  color: var(--accent);
  border-color: var(--accent);
}

.nav__link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-sub);
}

/* タブ型フィルタボタン共通 */

.tab-btn {
  display: inline-block;
  padding: 0 0 4px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  box-sizing: border-box;
}

/* ------------------------------
  共通ページ用フッター
------------------------------ */

.page-footer {
  padding: 20px 0;
  background: #fff;
  border-top: 1px solid var(--border-soft);
}

.page-footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.page-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ------------------------------
  メインレイアウト（共通）
------------------------------ */

.page-main {
  max-width: 1040px;
  margin: 32px auto 80px;
  padding: 0 20px;
}

.page-main__header {
  margin-bottom: 0;
  text-align: center;
}

.page-title {
  margin: 0 0 4px;
  font-family:
    "Yu Mincho",
    "MS Mincho",
    "MS 明朝",
    "Hiragino Mincho ProN",
    serif;
  font-size: 24px;
  letter-spacing: 0.16em;
  text-align: center;
}

.page-title a {
  color: inherit;
  text-decoration: none;
}

.page-lead {
  margin: 0;
}

/* ------------------------------
  index専用レイアウト
------------------------------ */

/* 画面いっぱいの背景画像 */
.full-bg {
  position: fixed;   /* 画面に固定して常に後ろに表示 */
  inset: 0;          /* top, right, bottom, left を0に */
  z-index: -1;       /* 他要素より背面に置く */
}

.full-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画面いっぱいにトリミング表示 */
  object-position: center center;
  display: block;
}

/* index専用ヘッダー */
.page-header-index {
  position: sticky;   /* 他ページと同じ動きならこのまま */
  top: 0;
  z-index: 10;
  background: transparent;   /* 完全に透明 */
}

/* 中身のレイアウトは共通ヘッダーと同じ */
.page-header-index .page-header__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-footer-index .page-footer__copy {
  margin: 0;
}

.page-footer-index {
  padding: 20px 0;
  position: fixed;   /* 画面の下に固定 */
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;  /* 背景は透明のまま */
}

/* index中央クリックエリア */
.index-center-link {
  position: fixed;
  /* 画面中央にボックスを配置 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* クリック可能な範囲（お好みで調整） */
  width: 70vw;
  height: 70vh;
  /* 背景は透明で見えないようにする */
  background: transparent;
  /* 他要素より前面に出す */
  z-index: 20;
}

/* 必要ならスマホ用に少し小さくする例 */
@media (max-width: 576px) {
  .index-center-link {
    width: 60vw;
    height: 70vh;
  }
}

/* ------------------------------
  Works：カテゴリフィルタ
------------------------------ */

.work-filter {
  margin: 0 auto 20px;
  text-align: center;
}

.work-filter__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* project.html / works.html 共通の見た目 */

.work-filter__link {
  display: inline-block;
  padding: 0 0 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;        /* 色も親の color をそのまま使う */
  border-bottom: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.work-filter__link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-sub);
}

.work-filter__link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ------------------------------
  Works：作品グリッド
------------------------------ */
/* カード */

.work-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 1.6;
}

.work-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-card__link {
  display: block;
  padding: 0;
}

.work-card__thumb {
  position: relative;
  width: 100%;
  margin: 0 auto 6px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;     /* Shopと同じ角丸 */
}

.work-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-card__body {
  padding: 4px 4px 0;
}

.work-card__caption {
  margin: 10px 0 6px;
}

.work-card__meta {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-sub);
}

.work-card:hover .work-card__thumb img {
  transform: scale(1.1);
}

/* NEW バッジ */

.work-card__badge--title {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background-color: #e53935;
  border-radius: 999px;
  position: static;
}

/* ------------------------------
  Works：ページネーション
------------------------------ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: #fff;
  font: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.pagination button:hover {
  border-color: var(--accent);
}

.pagination button.is-active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  cursor: default;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.pagination button:disabled:hover {
  border-color: transparent;
}

/* ------------------------------
  Works 詳細ページ
------------------------------ */

/* 見出し・メタ情報 */

.work-detail__header {
  margin-bottom: 24px;
}

.work-detail__title {
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #ff8000;
}

.work-detail__meta {  /* works 左文章の年号とカテゴリー */
  font-size: 0.9rem;
  color: #8c7564;
}

.work-detail__thumb canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Works 見出しのすぐ下に出るコンテンツリスト */

.works-list {
  margin-top: 0;
  border-top: none;
}

/* 画像＋テキストの2カラム */

.work-detail__content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* 左カラム：画像　画像の保存ができない */

.work-detail__thumb {
  position: relative;
  flex: 0 0 65%;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}

.work-detail__thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.work-detail__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

/* 右カラム：本文 */
.work-detail__body {
  flex: 1;
}

/* 768（576と迷ってる）px以下：スマホだけ縦並びに切り替え */
@media (max-width: 768px) {
  .work-detail__content {
    flex-direction: column;
    align-items: center;
  }

  .work-detail__thumb {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .work-detail__thumb img {
    display: block;
    width: 100%;
    height: auto;
  }

  .work-detail__body {
    flex: none;
    width: 100%;
    padding-inline: 14px;
  }

  .work-detail__text {
    width: 100%;
    padding-inline: 14px;
  }
}

/* 作品詳細テキスト */

.work-detail__desc a {
  color: #f26265;
  text-decoration: none;
}

.work-detail__desc a.is-disabled-link {
  pointer-events: none;
  cursor: default;
  color: inherit;
  text-decoration: none;
}

/* 上部「一覧に戻る」リンク */

.work-detail__back-top {
  margin: 8px 0 16px;
  text-align: left;
}

.work-detail__back-top a {
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* フィルタとそろえた見た目の戻るリンク */

.work-detail__back-top .work-filter__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 4px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.work-detail__back-top .work-filter__back--with-icon::before {
  content: "＜";
  display: inline-block;
}

/* ------------------------------
  Aboutページ
------------------------------ */

.about-profile__thumb {
  flex: 0 0 30%;
  max-width: 400px;
}

.about-profile__text {
  flex: 1;
}

.about-profile__desc a {
  color: #f26265;
  text-decoration: none;
}

/* ------------------------------
  Contactページ
------------------------------ */

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 10px 12px;
  resize: vertical;
  border: 2px solid var(--border-soft);
  border-radius: 4px;
  font: inherit;
  color: #5b4636;  /* 文字を記入したときの色 */
  background-color: #fff;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus,
.contact-form__input:hover,
.contact-form__select:hover,
.contact-form__textarea:hover {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 159, 181, 0.15);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #f0e0d2;  /* 例で使用する色 */
}

.contact-form__item--submit {
  margin-top: 8px;
  text-align: center;
}

.contact-form__submit {
  display: block;
  width: 160px;
  margin: 0 auto;
  padding: 10px 0;
  text-align: center;
  border: none;
  border-radius: 999px;
  background-color: var(--accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  text-decoration: none;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

/* 送信ボタンのホバー・クリック */

.contact-form__submit:hover {
  opacity: 0.9;
  transform: translateY(2px);
}

.contact-form__submit:active {
  opacity: 0.85;
  transform: translateY(3px);
}

.contact-form__required {  /* 必須 */
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  font-size: 0.8rem;
  color: #fff;
  background-color: var(--accent);
  border-radius: 0.7rem;
  vertical-align: middle;
}

.page-main__inner .contact__title {
  margin-top: 0;
  margin-bottom: 0;
}

/* Thanksページ：お問い合わせありがとうの下だけ余白を付ける */
.contact__message > .contact__title + .page-lead {
  margin-top: 1.5em;  /* 好みで 1.0〜2.0em に調整 */
}

/* ------------------------------
  Contact：はい/いいえラジオ
------------------------------ */

/* 縦方向に「〇 はい」「〇 いいえ」を並べる */
.contact-form__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 1行分の配置（〇 と 文字） */
.contact-form__option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}

/* 本物のラジオボタンを隠す */
.contact-form__option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  opacity: 0;
}

/* 大きめの〇（枠は --border-soft の薄茶） */
.contact-form__radio-mark {
  width: 30px;   /* もとの約3倍 */
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);  /* 指定の茶色 */
  position: relative;
  flex-shrink: 0;
}

/* 選択されたとき、枠の中だけピンクにする */
.contact-form__option input[type="radio"]:checked
  + .contact-form__radio-mark::after {
  content: "";
  position: absolute;
  inset: 5px;          /* 外枠より一回り小さい円 */
  border-radius: 50%;
  background-color: var(--accent);  /* ピンク */
}

/* 「制作したイラスト〜」項目の下を少し広げる */
/* publish ブロックのひとつ前の .contact-form__item に余白を足す */
.contact-form__item--publish {
  margin-top: 12px;   /* ラベルとの間を広げる */
  margin-bottom: 40px;/* 次の「お問い合わせ内容」との間も広げる */
}

/* Contact：注意書きエリア（位置と上下の余白） */
.page-lead-box {
  margin-top: 12px;     /* 上の余白（お好みで調整） */
  margin-bottom: 30px;  /* 下の余白：ここを増やすと「お名前」との間が広がる */
}

/* Contact：注意書き自体を文字幅のピンクの箱にする */
.page-lead--small {
  display: inline-block;       /* 文字の長さ分だけの箱にする */
  padding: 10px 20px;           /* 文字のまわりの余白 */
  border-radius: 6px;
  background-color: #ffe4ec;   /* ピンクの四角 */
  font-size: 0.9rem;             /* 他より小さめ */
  line-height: 1.6;
}

/* contact 576px以下になったら文章の左右に余白を入れる */

@media (max-width: 576px) {
  .contact-form {
    padding-inline: 14px;
  }
}

/* Thanks：中央寄せレイアウト */

.contact__inner--center {
  max-width: 720px;         /* 幅を少し細めに */
  margin: 0 auto;           /* セクションの中で横中央に配置 */
  text-align: center;       /* 中身の文字やボタンを中央揃え */
}

/* メッセージ全体の上下の余白を調整 */
.contact__message {
  margin-top: 0;      /* Contact 見出しとの間を詰める */
  padding: 24px 20px;    /* かたまりの中は少し余裕を残す */
}

/* HOMEに戻るボタンの上だけ広げる */
.contact__back {
  margin-top: 40px;      /* 注意書きとの間をゆったり空ける */
}

.shop-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* JSONでリンクの名前をひと塊にする */
.shops a {
  white-space: nowrap;
}

/* Contact 完了メッセージのタイトル */
.contact__title {
  font-size: 1.3rem;
  font-weight: 600;
}

/* 画像部分をWorksのカードと同じ形に */

.shop-card__thumb {
  position: relative;
  width: 100%;
  margin: 0 auto 6px;
  aspect-ratio: 1 / 1;      /* 正方形に固定 */
  overflow: hidden;
  border-radius: 12px;       /* Worksと同じ角丸 */
}

.shop-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* はみ出しトリミング */
  transition: transform 0.3s ease;
}

.shop-card__thumb:hover img {
  transform: scale(1.1);    /* 拡大率もWorksと同じ */
}

.shop-card__body {
  padding: 4px 4px 0;
}

.shop-card__caption {
  margin: 10px 0 6px;
}

.shop-card__meta {
  margin-top: 6px;
}

/* NEWバッジ風のバッジが必要ならここは好みで調整 */
.shop-card__badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background-color: #f0839a;
  color: #fff;
}

/* 576px以下：Worksと同じ余白 */
@media (max-width: 576px) {
  .page-header__inner {
    padding-inline: 14px;
  }

  .nav__list {
    gap: 10px;
  }

  .page-main {
    margin-top: 24px;
    padding-inline: 14px;
  }

  .work-card__body {
    padding: 12px 14px 14px;
  }

  .work-grid {
    gap: 16px;
  }

  .shop-grid {
    gap: 16px;
  }
}

/* Shop：価格の数字部分 */
.shop-card__price {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0rem;
}

/* Shop：円マークだけ少し小さく */
.shop-card__yen {
  font-size: 0.8em;   /* 親（数字）の 0.8倍 */
  margin-left: 0.1em; /* 数字との間を少し空ける */
}

/* ------------------------------
  Shop：カテゴリフィルタ
------------------------------ */

.shop-filter {
  margin: 0 auto 20px;
  text-align: center;
}

.shop-filter__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ------------------------------
  Shop 詳細
------------------------------ */

.shop-detail__back {
  margin-bottom: 1.5rem;
}

.shop-detail__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #666;
  text-decoration: none;
}

.shop-detail__back-link::before {
  content: "←";
}

/* 右側情報エリア */

.shop-detail__info {
  display: flex;
  flex-direction: column;
}

/* タイトルと価格・年 */

.shop-detail__title {
  margin: 0 0 0.5rem;
}

.shop-detail__price {
  margin: 0 0 0.5rem;
  color: #b44a3c;
}

.shop-detail__meta {  /* 右の文章のタイトル下の価格と年号 */
  margin: 0 0 1.5rem;
  font-size: inherit;
  color: inherit;
}

/* desc */

.shop-detail__desc p {
  margin: 0 0 0.75rem;
}

/* タブ */

.shop-detail__tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.95rem;
}

.shop-detail__tab {
  padding: 0.4rem 0;
  border: none;
  background: none;
  font: inherit;
  color: #777;
  cursor: pointer;
  position: relative;
}

.shop-detail__tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background-color: #333;
  transition: width 0.2s ease;
}

.shop-detail__tab.is-active {
  color: #333;
}

.shop-detail__tab.is-active::after {
  width: 100%;
}

/* タブの中身 */

.shop-detail__panels {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.shop-detail__panel {
  display: none;
}

.shop-detail__panel.is-active {
  display: block;
}

/* 外部ショップボタン */

.shop-detail__shops {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.shop-btn-extern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background-color: #f0839a;
  transition:
    opacity 0.2s ease,
    transform 0.1s ease;
}

.shop-btn-extern:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.shop-btn-extern--minne {
  background-color: #34a853;
}

.shop-btn-extern--creema {
  background-color: #0099cc;
}

/* ------------------------------
  Shop 詳細ページ：画像＋テキスト2カラム
------------------------------ */

/* 577px以上：横並び 画像＋テキスト */
/* Shop 詳細コンテンツの幅を page-main と揃える */
.shop-detail__content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
}

/* 左カラム：画像 */
.shop-detail__thumb {
  flex: 0 0 55%;  /* 比率は好みで調整OK */
  margin: 0;
}

.shop-detail__thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* 右カラム：本文 */
.shop-detail__body {
  flex: 1;
}

/* 576px以下：縦並びに切り替え */
@media (max-width: 576px) {
  .shop-detail__content {
    flex-direction: column;
  }

  .shop-detail__thumb,
  .shop-detail__body {
    flex: 1 1 auto;
  }
}

/* Shop 詳細：テキスト見た目調整 */
.shop-detail__title {
  margin: 0 0 4px;
  font-size: 20px;
}

/* JS で差し込んだ最上位ラッパーにも保険で適用 */
.shop-detail__content > * {
  box-sizing: border-box;
/*  width: 100%;　*/
  max-width: 100%;
}

/* ------------------------------
  Works / Shop グリッド共通
------------------------------ */

/* 900px以上：4列 */
.work-grid,
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* 577〜899px：3列 */
@media (max-width: 899px) and (min-width: 577px) {
  .work-grid,
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* 576px以下：2列 */
@media (max-width: 576px) {
  .work-grid,
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* ------------------------------
  Product 詳細
------------------------------ */

.product__inner {
  padding-bottom: 64px;
}

/* 上段：画像＋基本情報 2カラム（PC） */
.product__top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* 左カラム：メイン画像＋サムネイル群 */

.product__image {
  flex: 0 0 55%;
  margin: 0;
  border-radius: 12px;   /* 角丸 */
  overflow: hidden;      /* これもないと丸くならない */
}

.product__image img {
  display: block;
  width: 100%;
  height: auto;
}

/* サムネイル一覧 */
.product__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.product__thumb {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

.product__thumb img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
}

/* 右カラム：基本情報テキスト */

.product__main {
  flex: 1;
}

.product__head {
  margin-bottom: 24px;
}

.product__title { /* 商品タイトル */
  font-size: 1.5rem;
}

/* 価格 */

.product__price-num {
  font-size: 1.4rem;
  font-weight: 600;
}

/* カラーチップ */

.color-chip-list {
  display: inline-flex;
  gap: 6px;
  vertical-align: middle;
}

.color-chip {
  padding: 0;
  border: none;
  background: transparent;
  cursor: default;
}

.color-chip__inner {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: #f5f5f5;
}

.color-chip__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文字だけの旧形式用（他商品の「ホワイト / ピンク」など） */
.color-chip__inner--text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* テキスト行との余白を少し整える */
.product__color-block {
  margin-top: 8px;
}

.product__color-text
 {
  margin-bottom: 4px;
}

/* 下段：説明＋仕様 2カラム（PC） */

.product__bottom {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  border-top: 1px solid #f0e0d2;
  border-bottom: 1px solid #f0e0d2;
  padding-bottom: 1.5rem;
}

/* 左：商品の説明 */

.product__description { /* テキスト */
  flex: 1;
}

/* 右：仕様・サイズ */

.product__spec { /* テキスト */
  flex: 1;
}

/* 見出し（説明・仕様どちらも） */
.product__subheading {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

/* 見出しの下線（説明・仕様どちらも） */
.product__bottom .product__subheading {
  border-bottom: 3px solid #f0e0d2;
}

/* 仕様テーブル */

.product__spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #f0e0d2;   /* 表の外枠 */
}

/* 行の線 */
.product__spec-row {
  border-top: 1px solid #f0e0d2;
}

.product__spec-row:first-child {
  border-top: none;
}

/* th, td の共通設定 */
/* ここの設定には絶対にpaddingを入れないこと */
.product__spec-table th,
.product__spec-table td {
  vertical-align: top;
  border: 1px solid #f0e0d2;   /* 各セルの枠線 */
}

/* 左セル：サイズ / カラー / 年 */
.product__spec-heading {
  width: 7em;                  /* 左カラムの幅 */
  padding-top: 0.7rem;    /* 上だけ指定 */
  padding-bottom: 0.7rem; /* 下だけ指定 */
  white-space: nowrap;
  font-weight: 400;
  background-color: #f9f3ec;   /* 左側だけ色付き */
}

/* 右セル：文章の書き出し位置 */
.product__spec-data {
  padding-top: 0.7rem;    /* 上だけ指定 */
  padding-bottom: 0.7rem; /* 下だけ指定 */
  padding-left: 1.5rem; /* 左だけ指定 */
}

/* スマホレイアウト：上下とも縦並び */

@media (max-width: 768px) {
  .product__top {
    flex-direction: column;
    gap: 24px;
  }

  .product__image {
    flex-basis: auto;
  }

  .product__bottom {
    flex-direction: column;
    gap: 1.5rem;
  }
}