@charset "UTF-8";
/*--------------------------------------------------------------
*   全ページ共通スタイル（Live Sass Compileでcss/style.cssへ出力）
--------------------------------------------------------------*/
/*--------------------------------------------------------------
*   Variables（仕様書10章：骨格ラフジュ工房／余白・画像比率・カート等kinarino準拠のトークン）
--------------------------------------------------------------*/
/* キーカラー（2026-08-10登録。用途はまだ未確定の箇所も含む） */
/*--------------------------------------------------------------
*   Mixin（temple踏襲）
--------------------------------------------------------------*/
/*--------------------------------------------------------------
*   Reset
--------------------------------------------------------------*/
* {
  box-sizing: border-box;
}

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img,
ul,
li,
nav,
header,
footer,
section,
article,
figure,
figcaption {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  cursor: pointer;
}

/*--------------------------------------------------------------
*   Base（全ページ共通。仕様書6章 UI要件）
--------------------------------------------------------------*/
/* ==========================================================================
   アイコンフォント「temple」（旧shopテーマから移植）。商品ページ本文の
   「組立難易度」表示（<i class="icon-set1/2/3">、商品ごとのpost_content内に
   直接書かれている）で使用する。フォント本体はテーマのfonts/フォルダに配置。
   このテーマではicon-set1〜3のみ使用するが、post_content側に他のicon-*クラスが
   含まれる可能性も考え、[class^="icon-"]の共通設定ごと移植している。
   ========================================================================== */
@font-face {
  font-family: "temple";
  src: url("../fonts/temple.eot");
  src: url("../fonts/temple.eot#iefix") format("embedded-opentype"), url("../fonts/temple.ttf") format("truetype"), url("../fonts/temple.woff") format("woff"), url("../fonts/temple.svg#temple") format("svg");
  font-weight: normal;
  font-style: normal;
}
[class^=icon-],
[class*=" icon-"] {
  font-family: "temple" !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-set1:before {
  content: "\e958";
}

.icon-set2:before {
  content: "\e959";
}

.icon-set3:before {
  content: "\e95a";
}

html.is-loader-active,
html.is-loader-active body {
  overflow: hidden;
  height: 100%;
}

body {
  color: #1a1a1a;
  background: #f1e8dd;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
}

/* WordPressのグローバルスタイル（global-styles-inline-css）が
   body{padding-top:0px;...}を出力し、同じbodyセレクタ同士だと
   読み込み順次第で上書きされてしまうため、詳細度を上げて確実に勝たせる */
html body {
  padding-top: 119px;
}
@media (max-width: 767px) {
  html body {
    padding-top: 56px;
  }
}

.max-width {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ページ内アンカーがヘッダーの下に潜らないように（仕様書6.2） */
[id] {
  scroll-margin-top: calc(119px + 12px);
}
@media (max-width: 767px) {
  [id] {
    scroll-margin-top: calc(56px + 10px);
  }
}

/* ==========================================================================
   Loader
   ========================================================================== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

html.is-loader-skip #loader {
  display: none;
}

.loader-content {
  text-align: center;
}

.logo-mask img {
  width: 140px;
}

/* ==========================================================================
   固定ヘッダー（仕様書6.2）
   下部固定タブは採用しない。固定ヘッダーでカート・マイページへの到達性を担保する。
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #fff;
  background-image: url(../img/common/bg1.png);
  background-repeat: repeat;
  color: #664b12;
  border-bottom: 1px solid #d8d8d8;
}

.site-header__top {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 6px 20px;
  border-bottom: 1px solid #d8d8d8;
  font-size: 12px;
  color: #664b12;
}
@media (max-width: 767px) {
  .site-header__top {
    display: none;
  }
}

.site-header__main {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 0;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .site-header__main {
    padding: 8px 14px;
    height: 56px;
  }
}

.site-header__logo {
  flex-shrink: 0;
  padding-left: 20px;
}
@media (max-width: 767px) {
  .site-header__logo {
    padding-left: 0;
  }
}

.site-header__logo img {
  height: 40px;
  width: auto;
}
@media (max-width: 767px) {
  .site-header__logo img {
    height: 34px;
  }
}

.site-header__search {
  flex: 0 0 auto;
  width: 275px;
  margin-left: auto;
  padding: 10px 20px 0;
}
@media (max-width: 767px) {
  .site-header__search {
    display: none;
    width: auto;
    margin-left: 0;
    padding: 0;
  }
}
.site-header__search form {
  position: relative;
}
.site-header__search input[type=text] {
  width: 100%;
  height: 34px;
  box-sizing: border-box;
  border: 0;
  border-radius: 17px;
  background: #f6f6f6;
  padding: 0 52px 0 16px;
  font-size: 13px;
  color: #1a1a1a;
}
.site-header__search button {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  height: 26px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  padding: 0 12px;
  font-size: 12px;
  color: #664b12;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.site-header__search button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.site-header__actions {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  font-size: 13px;
  padding-right: 20px;
}
@media (max-width: 767px) {
  .site-header__actions {
    gap: 10px;
    font-size: 11px;
    padding-right: 0;
  }
}

/* アイコン＋下ラベル（kinarino準拠）。アイコンは仮素材、実アセット用意後に差し替える */
.header-iconlink {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: #664b12;
  text-align: center;
}

.header-iconlink__icon {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.header-iconlink__icon svg {
  width: 100%;
  height: 100%;
}

.header-iconlink__label {
  white-space: nowrap;
}
@media (max-width: 767px) {
  .header-iconlink__label {
    display: none;
  }
}

/* ヘッダーのカート点数バッジ。丸だと桁数が増えたときにはみ出るため四角で表示する */
.header-iconlink__icon--cart {
  position: relative;
}

.header-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: #511f1f;
  color: #f4efe6;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 3px;
}
.header-cart-count.is-hidden {
  display: none;
}

.header-usermenu {
  position: relative;
}

.header-usermenu__popup {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid #d8d8d8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  z-index: 20;
  padding: 6px 0;
}

.header-usermenu:hover .header-usermenu__popup,
.header-usermenu:focus-within .header-usermenu__popup {
  display: block;
}
@media (max-width: 767px) {
  .header-usermenu:hover .header-usermenu__popup,
  .header-usermenu:focus-within .header-usermenu__popup {
    display: none;
  }
}

.header-usermenu__popup a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
  color: #664b12;
}
.header-usermenu__popup a:hover {
  background: #f6f6f6;
}

/*
 * ログイン・会員登録のスマートフォン専用パネル。
 * ハンバーガードロワーとは別に、右から100%幅でスライド展開する。
 */
.header-usermenu-panel {
  position: fixed;
  top: 56px;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  transform: translateX(100%);
  z-index: 95;
  overflow-y: auto;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.header-usermenu-panel.is-open {
  transform: translateX(0);
}

.header-usermenu-panel__head {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px;
  border-bottom: 1px solid #d8d8d8;
  font-size: 14px;
  font-weight: bold;
}

.header-usermenu-panel ul li {
  border-bottom: 1px solid #d8d8d8;
}

.header-usermenu-panel ul li a {
  display: block;
  padding: 16px 14px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
}
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }
}

/* グローバルナビ（仕様書3.5） */
.global-nav {
  position: relative;
  border-top: 1px solid #d8d8d8;
}
@media (max-width: 767px) {
  .global-nav {
    display: none;
  }
}

.global-nav__list {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  justify-content: center;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.global-nav__list > li {
  font-size: 13px;
}

/* グローバルナビのリンク：ホバー・開いている間は少し暗くして選択状態がわかるようにする */
.global-nav__list > li > a {
  display: inline-block;
  padding: 12px 10px;
  border-radius: 4px;
  white-space: nowrap;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}

.global-nav__list > li > a:hover {
  background: rgba(0, 0, 0, 0.06);
}

.global-nav__list > li.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  margin-bottom: 1px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.global-nav__list > li.is-open > a {
  background: rgba(0, 0, 0, 0.1);
}

.global-nav__list > li.is-open > a::after {
  transform: rotate(180deg);
}

/* サブメニュー：kinarino準拠、全幅背景＋中身は複数列（仕様書10章）。クリックで開閉する */
.sub-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #fff;
  background-image: url(../img/common/bg.png);
  background-repeat: repeat;
  border-top: 1px solid #d8d8d8;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.global-nav__list > li.is-open .sub-panel {
  display: block;
}

.sub-panel__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px 24px;
}

.sub-panel a,
.sub-panel__disabled {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 3px;
}

.sub-panel a:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* リンク先未定のプレースホルダー項目（例：メーカー別のHAKONIWA） */
.sub-panel__disabled {
  color: #9b9b9b;
  cursor: default;
}

/* カテゴリ内の登録商品点数（参考：https://miniature-club.com/contents2/） */
.sub-panel__count {
  color: #9b9b9b;
  font-size: 12px;
}

/* 各サブメニュー先頭の「○○トップ」：他の項目と見分けがつくよう差別化する */
.sub-panel__top {
  font-weight: 700;
  color: #511f1f;
  margin-bottom: 6px;
  border-bottom: 1px solid #d8d8d8;
}

/* SPドロワー */
#site-drawer {
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 90;
  background: #fff;
  overflow-y: auto;
  padding: 20px 14px;
  transform: translateX(-100%);
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
#site-drawer.is-open {
  transform: translateX(0);
}
#site-drawer nav ul li {
  border-bottom: 1px solid #d8d8d8;
}
#site-drawer nav ul li a {
  display: block;
  padding: 14px 4px;
  font-size: 14px;
}
#site-drawer {
  /*
   * サブメニューをドロワー内で展開する（仕様書のPCメガメニューと同じデータを流用）。
   * ミニチュア家具などをタップ → ドロワー全体を覆う形で「戻る」＋トップリンク＋子カテゴリ一覧を表示する。
   */
}
#site-drawer .sub-panel {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  overflow-y: auto;
  padding: 20px 14px;
  z-index: 5;
}
#site-drawer li.is-open > .sub-panel {
  display: block;
}
#site-drawer .sub-panel__inner {
  display: block;
  max-width: none;
  padding: 0;
}
#site-drawer .sub-panel a,
#site-drawer .sub-panel__disabled {
  border-bottom: 1px solid #d8d8d8;
  padding: 14px 4px;
}
#site-drawer .drawer-submenu-back {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d8d8d8;
  padding: 14px 4px;
  margin-bottom: 4px;
  font-size: 14px;
  color: #664b12;
}

.drawer-submenu-back {
  display: none;
}

/* ==========================================================================
   パンくずリスト（temple踏襲）
   ========================================================================== */
.page-breadcrumb {
  border-bottom: 1px solid #d8d8d8;
}

.breadcrumb {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  list-style: none;
  font-size: 12px;
  color: #6b6b6b;
}
@media (max-width: 767px) {
  .breadcrumb {
    padding: 8px 14px;
    font-size: 11px;
  }
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 8px;
  border-top: 1px solid #b0b0b0;
  border-right: 1px solid #b0b0b0;
  transform: rotate(45deg);
}
.breadcrumb a {
  color: #6b6b6b;
}
.breadcrumb a:hover {
  color: #511f1f;
}

/* ==========================================================================
   固定ページ タイトルエリア（パンくず直下、仕様書対象外の共通テンプレート）
   ========================================================================== */
.page-head {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 28px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
@media (max-width: 767px) {
  .page-head {
    padding: 26px 14px 20px;
  }
}

.page-head__title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
}
@media (max-width: 767px) {
  .page-head__title {
    font-size: 20px;
  }
}

.page-head__lead {
  margin-top: 12px;
  font-size: 14px;
  color: #6b6b6b;
  line-height: 1.8;
}

/* ==========================================================================
   トップページ ブロック（仕様書3.3）
   ========================================================================== */
.top-block {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px;
}
@media (max-width: 767px) {
  .top-block {
    padding: 20px 14px;
  }
}

/* 特集スライダーのブロックのみ画面幅いっぱいに表示（SPでは通常の.top-blockに戻す） */
.top-block--slider {
  max-width: none;
  padding: 0;
}
@media (max-width: 767px) {
  .top-block--slider {
    max-width: 1180px;
    padding: 20px 14px 0;
  }
}

.top-block__head {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.top-block__head h2 {
  font-size: 18px;
  margin: 0;
}
.top-block__head .more {
  display: inline-block;
  border: 1px solid #511f1f;
  color: #511f1f;
  font-size: 12px;
  padding: 6px 18px;
  border-radius: 4px;
  text-decoration: none;
  margin-left: auto;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.top-block__head .more:hover {
  background: #511f1f;
  color: #f4efe6;
}
.top-block__head .search-result-count {
  font-size: 12px;
  color: #6b6b6b;
  margin-left: auto;
}
.top-block__head {
  /* 商品カテゴリ・読みもの・特集などの一覧ページタイトル（h1単体で子要素が他に無い場合）。
     検索結果ページのh1は隣に件数（.search-result-count）が並ぶ横並びのままにしたいため、
     :only-childでタイトル単体のケースだけをセンター＋ボーダー区切りに整形する。 */
}
.top-block__head h1:only-child {
  width: 100%;
  text-align: center;
  font-size: 22px;
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #d8d8d8;
}

/* 特集詳細ページ：冒頭のアイキャッチ＋タイトル（クライアント要望：文字を画像に重ねず下に配置） */
.feature-detail-hero__image {
  width: 100%;
  aspect-ratio: 16/5;
  background: #ececec center/cover no-repeat;
  border-radius: 4px;
}
@media (max-width: 767px) {
  .feature-detail-hero__image {
    aspect-ratio: 4/3;
  }
}

.feature-detail-intro {
  margin: 20px 0 24px;
}
.feature-detail-intro h1 {
  font-size: 24px;
  margin: 0 0 10px;
}
.feature-detail-intro p {
  margin: 0;
  font-size: 14px;
  color: #6b6b6b;
  line-height: 1.8;
}

/* 特集・固定ページ・読みものページ本文（the_content()）の基本タイポグラフィ。
   single-feature.php / page.php / single-column.php で共通利用 */
.entry-content {
  font-size: 14px;
  line-height: 1.9;
  color: #1a1a1a;
}
.entry-content p {
  margin: 0 0 1.4em;
}
.entry-content h2 {
  font-size: 19px;
  margin: 2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 1px solid #d8d8d8;
}
.entry-content h3 {
  font-size: 16px;
  margin: 1.6em 0 0.6em;
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}
.entry-content li {
  margin-bottom: 0.4em;
}
.entry-content img {
  max-width: 100%;
  height: auto;
}
.entry-content {
  /* 特集ページ：とくに取り上げたい花などを強調するハイライトグリッド（4枚カード想定） */
}
.entry-content .feature-flower-highlight {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0 0 1.6em;
  padding: 0;
}
@media (max-width: 767px) {
  .entry-content .feature-flower-highlight {
    grid-template-columns: repeat(2, 1fr);
  }
}
.entry-content .feature-flower-highlight__item {
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  padding: 16px;
  margin: 0;
}
.entry-content .feature-flower-highlight__item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.entry-content .feature-flower-highlight__item h3 a {
  color: #511f1f;
  text-decoration: none;
}
.entry-content .feature-flower-highlight__item h3 a:hover {
  text-decoration: underline;
}
.entry-content .feature-flower-highlight__item p {
  margin: 0;
  font-size: 13px;
  color: #6b6b6b;
  line-height: 1.7;
}
.entry-content {
  /* 特集ページ：ハイライト以外の花などをまとめて紹介するシンプルなリスト */
}
.entry-content .feature-flower-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6em;
}
.entry-content .feature-flower-list li {
  padding: 12px 0;
  border-bottom: 1px solid #d8d8d8;
  margin: 0;
}
.entry-content .feature-flower-list a {
  display: inline-block;
  min-width: 9em;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}
.entry-content .feature-flower-list a:hover {
  color: #511f1f;
  text-decoration: underline;
}
.entry-content .feature-flower-list span {
  color: #6b6b6b;
}
.entry-content {
  /* 特集ページ：新ブランド立ち上げ告知（HAKONIWA特集）用のロゴ・コンセプト文・お知らせ文 */
}
.entry-content .feature-brand-logo {
  text-align: center;
  margin: 0 0 32px;
}
.entry-content .feature-brand-logo img {
  display: block;
  max-width: 640px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.entry-content .feature-brand-lead {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #6b6b6b;
  margin: 0 0 16px;
}
.entry-content .feature-brand-concept {
  text-align: center;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.9;
  color: #9f723d;
  margin: 0 0 40px;
  padding: 0 0 32px;
  border-bottom: 1px solid #d8d8d8;
}
@media (max-width: 767px) {
  .entry-content .feature-brand-concept {
    font-size: 17px;
  }
}
.entry-content .feature-brand-message {
  text-align: center;
}
.entry-content .feature-brand-note,
.entry-content .feature-note {
  background: #f6f6f6;
  border-radius: 6px;
  padding: 20px 24px;
  margin-top: 32px;
  font-size: 13px;
  color: #6b6b6b;
  line-height: 1.9;
}
.entry-content {
  /* 特集ページ：写真を並べて紹介するギャラリー（お部屋特集など、今後写真が増える想定） */
}
.entry-content .feature-photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
@media (max-width: 767px) {
  .entry-content .feature-photo-gallery {
    grid-template-columns: 1fr;
  }
}
.entry-content .feature-photo-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.entry-content .feature-photo-gallery {
  /* the_content()のwpautopが画像の間に挿入するbrがグリッドの1コマを
     占有してしまい横並びが崩れるため、非表示にして無効化する */
}
.entry-content .feature-photo-gallery br {
  display: none;
}

/* 本文中の素のリンク（他に色指定の無いプレーンなリンク）向けの既定色。
   .entry-content aとして書くと、guide-block__link・guide-cat-grid__linkなど
   同じ.entry-content配下にある既存コンポーネント（1クラスのみ）より詳細度が高くなり
   意図せず上書きしてしまうため、詳細度を持たない:where()でaにのみ掛かるようにする */
:where(.entry-content) a {
  color: #511f1f;
}

/* ショッピング完了ページ（templates/cart/completion.php）。page.php経由で.entry-content内に
   そのまま出力され、素の<h3>+<div class="post">のみで未整形だったためカード状に整える。
   代引き以外の支払方法（銀行振込等）では.header_explanation内に振込先情報が追加されることも
   あるため、本文は中央揃えにせず左揃えのまま読みやすくする。 */
.entry-content h3:has(+ .post) {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 24px;
}

.entry-content .post {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .entry-content .post {
    padding: 28px 20px;
  }
}
.entry-content .post .header_explanation,
.entry-content .post .footer_explanation {
  font-size: 14px;
  line-height: 1.8;
  color: #1a1a1a;
}
.entry-content .post .header_explanation p,
.entry-content .post .footer_explanation p {
  margin: 0 0 12px;
}
.entry-content .post .header_explanation p:last-child,
.entry-content .post .footer_explanation p:last-child {
  margin-bottom: 0;
}
.entry-content .post .header_explanation:empty,
.entry-content .post .footer_explanation:empty {
  display: none;
}
.entry-content .post .send {
  margin-top: 24px;
  text-align: center;
}
.entry-content .post .back_to_top_button {
  display: inline-block;
  padding: 13px 40px;
  border: 0;
  border-radius: 4px;
  background: #511f1f;
  color: #f4efe6;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.entry-content .post .back_to_top_button:hover {
  background: #302c29;
}

/* 商品カテゴリ5タイル：PCは5列、SPはkinarino準拠の2列（仕様書6.1/6.4） */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 767px) {
  .category-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #1a1a1a;
  text-decoration: none;
}
.category-tile__thumb {
  width: 100%;
  aspect-ratio: 4/3;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 10px;
}
.category-tile__thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.category-tile__label {
  font-size: 13px;
}
.category-tile:hover .category-tile__thumb img {
  transform: scale(1.05);
}
@media (max-width: 767px) {
  .category-tile:last-child {
    grid-column: span 2;
  }
  .category-tile:last-child .category-tile__thumb {
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 商品グリッド（画像1:1統一、仕様書5.2/3.3） */
.item-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
}
@media (max-width: 767px) {
  .item-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
  }
}

.item-card__thumb {
  aspect-ratio: 1/1;
  background: #ececec;
  border-radius: 4px;
  overflow: hidden;
}
.item-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-card__name {
  font-size: 13px;
  margin: 8px 0 2px;
}

.item-card__price {
  font-size: 13px;
  font-weight: bold;
  color: #511f1f;
}

.item-card__price--soldout {
  font-weight: normal;
  color: #9b9b9b;
}

.item-card {
  position: relative;
}

.item-card.is-soldout .item-card__thumb img {
  opacity: 0.45;
}

.item-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #302c29;
  color: #f4efe6;
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 2px;
}

/* 全商品一覧への導線バナー（トップページ「今注目の商品」下部） */
.view-all-banner {
  margin-top: 24px;
  padding: 28px 20px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #f6f6f6;
  text-align: center;
}

.view-all-banner__button {
  display: inline-block;
  background: #511f1f;
  color: #f4efe6;
  border-radius: 4px;
  padding: 12px 32px;
  font-size: 14px;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.view-all-banner__button:hover {
  background: #302c29;
}

/* 商品一覧：件数・並べ替え（仕様書5章） */
.item-sort-bar {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #6b6b6b;
}

.item-sort-bar__form select {
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  background: #fff;
}

/* ページネーション（WP-PageNaviに依存しない自前実装。my_pagination()が出力） */
#pagination_wrapper {
  margin-top: 30px;
}

.pagination {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination li {
  display: flex;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  font-size: 13px;
  color: #1a1a1a;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination a.page-numbers:hover {
  border-color: #511f1f;
  color: #511f1f;
}

.pagination .page-numbers.current {
  background: #9f723d;
  border-color: #9f723d;
  color: #f4efe6;
}

.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* 読みものグリッド */
.column-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 767px) {
  .column-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
  }
}

.column-card__thumb {
  aspect-ratio: 4/3;
  background: #ececec;
  border-radius: 4px;
  overflow: hidden;
}
.column-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.column-card__title {
  font-size: 13px;
  margin: 8px 0 2px;
}
.column-card__date {
  font-size: 11px;
  color: #9b9b9b;
  margin: 0 0 2px;
}

.column-card__feature-tag {
  font-size: 11px;
  color: #9b9b9b;
}

/* 読みもの個別ページ：タイトルをしっかり見せるためセンター揃え・大きめの太字にし、
   掲載日・カテゴリは小さいまま横並びにして下にボーダーで区切る */
.column-detail__header {
  text-align: center;
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d8d8d8;
}

.column-detail__title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 12px;
}
@media (max-width: 767px) {
  .column-detail__title {
    font-size: 20px;
  }
}

.column-detail__meta {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: #6b6b6b;
}
.column-detail__meta a {
  color: #6b6b6b;
}

/* お知らせ：サムネイル無しのシンプルな一覧（トップページ・お知らせ一覧で共通利用） */
.news-list {
  border-top: 1px solid #d8d8d8;
}

.news-list__item {
  border-bottom: 1px solid #d8d8d8;
}

.news-list__item a {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 4px;
}
@media (max-width: 767px) {
  .news-list__item a {
    flex-direction: column;
    gap: 4px;
  }
}

.news-list__date {
  flex: 0 0 auto;
  font-size: 12px;
  color: #6b6b6b;
}

.news-list__title {
  font-size: 14px;
}

.note {
  font-size: 12px;
  color: #9b9b9b;
}

/* お知らせ等、投稿の個別ページ（single.php）。タイトルを本文・日付とはっきり区別するため
   下線を引く。ページ送り（前後記事ナビ）はクライアント要望により設けない */
.post-detail__title {
  font-size: 24px;
  margin: 0 0 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid #511f1f;
}
@media (max-width: 767px) {
  .post-detail__title {
    font-size: 19px;
  }
}

.post-detail__date {
  font-size: 13px;
  color: #6b6b6b;
  margin: 0 0 28px;
}

.post-detail__thumb {
  margin: 0 0 28px;
}
.post-detail__thumb img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   フッターバナー（送料無料案内／ドールハウス相談。フッター本体の上に表示）
   ========================================================================== */
.footer-banner {
  background: #302c29;
  color: #f4efe6;
  padding: 48px 20px;
}

.footer-banner__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 767px) {
  .footer-banner__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-banner__col {
  text-align: center;
}

.footer-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.1);
}
.footer-banner__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #f4efe6;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.footer-banner__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: bold;
}

.footer-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.85;
}

.footer-banner__button {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 32px;
  border: 1px solid #f4efe6;
  border-radius: 4px;
  color: #f4efe6;
  font-size: 14px;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.footer-banner__button:hover {
  background: #f4efe6;
  color: #302c29;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
  border-top: 1px solid #b0b0b0;
  background: #424e42;
  padding: 32px 20px;
  text-align: center;
  font-size: 12px;
  color: #f4efe6;
}
.site-footer a {
  color: #f4efe6;
}
.site-footer nav {
  margin-bottom: 8px;
}
.site-footer {
  /* SPでは.gototopが画面最下部に幅100%・高さ40pxで固定表示されるため、
     その分フッター下端が隠れないよう余白を足す */
}
@media (max-width: 767px) {
  .site-footer {
    padding-bottom: 72px;
  }
}

.site-footer__logo {
  margin-bottom: 16px;
}
.site-footer__logo img {
  margin: 0 auto;
}

/*
 * トップに戻る（temple踏襲：.js-topに.activeでopacity表示、.js-gotopでスムーススクロール）。
 */
.gototop {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  opacity: 0;
  visibility: hidden;
  z-index: 150;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.gototop.active {
  opacity: 1;
  visibility: visible;
}
.gototop a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: #511f1f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.gototop a:hover {
  background: #302c29;
}
.gototop a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid #f4efe6;
}
.gototop {
  /* スマホ：右下の丸ボタンではなく、画面最下部に幅100%で固定するバーにする */
}
@media (max-width: 767px) {
  .gototop {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 40px;
  }
  .gototop a {
    border-radius: 0;
  }
}

/* ==========================================================================
   商品詳細（wc_templates/wc_item_single.php、仕様書7.6）
   ========================================================================== */
.item-detail__layout {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
@media (max-width: 767px) {
  .item-detail__layout {
    flex-direction: column;
    gap: 20px;
  }
}

.item-detail__gallery {
  flex: 0 0 46%;
  max-width: 46%;
}
@media (max-width: 767px) {
  .item-detail__gallery {
    flex: 1;
    max-width: none;
    width: 100%;
  }
}

/* 商品詳細のメイン画像スライダー（Slick）。JS未初期化時（画像1枚のみ）でも
   最初のスライドがそのままブロックとして表示されるよう単体でも成立する見た目にする */
.item-detail__main-slider {
  border-radius: 4px;
  overflow: hidden;
}
.item-detail__main-slider .slick-prev,
.item-detail__main-slider .slick-next {
  z-index: 1;
}
.item-detail__main-slider .slick-prev {
  left: 10px;
}
.item-detail__main-slider .slick-next {
  right: 10px;
}
.item-detail__main-slider .slick-prev::before,
.item-detail__main-slider .slick-next::before {
  color: #302c29;
}

.item-detail__main-slide {
  aspect-ratio: 1/1;
  background: #ececec;
}
.item-detail__main-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-detail__thumbs-slider {
  margin-top: 10px;
}
.item-detail__thumbs-slider .slick-slide {
  margin-right: 8px;
}
.item-detail__thumbs-slider .slick-track {
  margin-left: 0;
}
.item-detail__thumbs-slider {
  /* SlickはスライドDOM自体に slick-current を付与する（別要素でラップしない）ため、
     子孫セレクタではなく同一要素向けの複合セレクタにする必要がある */
}
.item-detail__thumbs-slider .slick-current.item-detail__thumb-slide {
  border-color: #511f1f;
  opacity: 1;
}

.item-detail__thumb-slide {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  cursor: pointer;
  opacity: 0.7;
  /* transitionは付けない：Slickがasナビ連動で短時間に複数回クラスを付け替えると、
     ブラウザ側でopacity/border-colorのトランジションが重なって止まってしまい、
     選択中のサムネイルがずっと薄いまま（またはその逆）になる不具合が起きるため */
}
.item-detail__thumb-slide:hover {
  opacity: 1;
}
.item-detail__thumb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-detail__info {
  flex: 1;
  min-width: 0;
}

.item-detail__title {
  font-size: 20px;
  margin: 0 0 16px;
  line-height: 1.5;
}

.item-detail__price-row {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
}

.item-detail__price {
  font-size: 22px;
  font-weight: bold;
  color: #664b12;
}

.item-detail__cprice {
  display: block;
  font-size: 13px;
  color: #9b9b9b;
  text-decoration: line-through;
  font-weight: normal;
}

.item-detail__options {
  margin-top: 14px;
}

.item-detail__option-row {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.item-detail__option-row select {
  flex: 1;
  max-width: 280px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
}
@media (max-width: 767px) {
  .item-detail__option-row select {
    max-width: none;
  }
}

.item-detail__option-name {
  font-size: 13px;
  color: #6b6b6b;
  min-width: 80px;
}

.item-detail__soldout {
  margin-top: 16px;
  padding: 14px;
  background: #f6f6f6;
  color: #6b6b6b;
  text-align: center;
  border-radius: 4px;
}

.item-detail__buy-row {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.item-detail__quantity {
  font-size: 13px;
  color: #6b6b6b;
}
.item-detail__quantity input {
  width: 60px;
  margin-left: 8px;
  padding: 8px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
}

.item-detail__cart-button input,
.item-detail__cart-button button {
  background: #511f1f;
  color: #f4efe6;
  border: 0;
  border-radius: 4px;
  padding: 12px 28px;
  font-size: 14px;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.item-detail__cart-button input:hover,
.item-detail__cart-button button:hover {
  background: #302c29;
}

.item-detail__error {
  color: #511f1f;
  font-size: 12px;
  margin-top: 8px;
}

/* カート追加時の「カートに追加しました」フィードバック（JSでis-visibleを付与） */
.item-detail__added-message {
  min-height: 1.4em;
  margin-top: 8px;
  color: #511f1f;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.item-detail__added-message.is-visible {
  opacity: 1;
  visibility: visible;
}

/* 商品についての問い合わせ（カート・製作オプションの下に配置。仕様: 全商品ページ共通） */
.item-detail__inquiry {
  margin-top: 16px;
}

.item-detail__inquiry-button {
  display: inline-block;
  border: 1px solid #511f1f;
  background: transparent;
  color: #511f1f;
  border-radius: 4px;
  padding: 11px 27px;
  font-size: 14px;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.item-detail__inquiry-button:hover {
  background: #511f1f;
  color: #f4efe6;
}

/* 閲覧数（人気順の元データ）。管理者にのみ表示する運用メモ */
.item-detail__view-count {
  margin-top: 10px;
  padding: 6px 10px;
  background: #ececec;
  border-radius: 4px;
  color: #6b6b6b;
  font-size: 12px;
}

/* 商品ページ本文（商品コード・材質・商品説明などの表を含む）。.item-detail__layoutの
   外に出して、画像＋商品情報の2カラムの下に幅100%で表示する（クライアント要望） */
.item-detail__description {
  width: 100%;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #d8d8d8;
  line-height: 1.9;
  font-size: 14px;
  color: #1a1a1a;
}
.item-detail__description img {
  max-width: 100%;
  height: auto;
}
.item-detail__description table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
}
.item-detail__description th,
.item-detail__description td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #d8d8d8;
}
.item-detail__description th {
  width: 160px;
  background: #f6f6f6;
  color: #1a1a1a;
  font-weight: 700;
  white-space: nowrap;
}
.item-detail__description td {
  background: #fff;
}
@media (max-width: 767px) {
  .item-detail__description th,
  .item-detail__description td {
    display: block;
    width: 100%;
  }
  .item-detail__description th {
    border-bottom: none;
  }
}
.item-detail__description {
  /* 本文中（編集画面）で <div class="kumitate"><a>...</a></div> のように挿入して使う、
     「組み立てキットタイプ」「製作サポートオプション」へのリンクをボタン化するクラス。
     旧shopテーマから踏襲、配色は新テーマのボタン基調色（$key-wine）に合わせる。 */
}
.item-detail__description .kumitate,
.item-detail__description .seisakusup {
  margin: 0.6em 0;
}
.item-detail__description .kumitate a,
.item-detail__description .seisakusup a {
  display: inline-block;
  background: #511f1f;
  color: #f4efe6;
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.item-detail__description .kumitate a:hover,
.item-detail__description .seisakusup a:hover {
  background: #302c29;
  color: #f4efe6;
}

/* 本文のすぐ下に続く「この商品をご覧になった方はこんな商品も見ています」との
   境目がはっきりしないため、区切り線と余白を追加する（隣接セレクタで.top-block全体には
   影響させず、本文の直後にある場合のみ対象にする） */
.item-detail__description + .top-block {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #d8d8d8;
}

/* ==========================================================================
   固定ページ本文（ガイド系）：画像＋説明文セクションの繰り返し構成
   ドールハウスの世界 / キットの作り方 等、同系統の固定ページで共通利用
   ========================================================================== */
.guide-content {
  padding: 8px 0 0;
}

.guide-block {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  gap: 28px;
  margin-bottom: 64px;
}
@media (max-width: 767px) {
  .guide-block {
    display: block;
    margin-bottom: 40px;
  }
}

.guide-block__image {
  flex: 0 0 360px;
}
.guide-block__image img {
  display: block;
  width: 100%;
  border-radius: 4px;
}
.guide-block__image img + img {
  margin-top: 12px;
}
@media (max-width: 767px) {
  .guide-block__image {
    margin-bottom: 16px;
  }
}

.guide-block__body {
  flex: 1;
  min-width: 0;
}

.guide-block__title {
  font-size: 18px;
  font-weight: bold;
  color: #511f1f;
  margin: 0 0 12px;
}

.guide-block__text {
  line-height: 1.9;
  margin: 0;
}

.guide-block__link {
  display: inline-block;
  margin-top: 16px;
  background: #511f1f;
  color: #f4efe6;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 13px;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.guide-block__link:hover {
  background: #302c29;
}

/* 未公開メーカー等の「枠だけ」プレースホルダー用 */
.guide-block__placeholder {
  aspect-ratio: 4/3;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ececec;
  border: 1px dashed #b0b0b0;
  border-radius: 4px;
  color: #9b9b9b;
  font-size: 13px;
}

/* ガイド系ページ：FAQ（質問・簡潔な回答・詳細説明の3段構成） */
.guide-faq {
  margin: 0 0 40px;
}

.guide-faq__item {
  padding: 24px 0;
  border-bottom: 1px solid #d8d8d8;
}
.guide-faq__item:first-child {
  border-top: 1px solid #d8d8d8;
}

.guide-faq__q,
.guide-faq__a {
  position: relative;
  padding-left: 34px;
  font-weight: 700;
  margin: 0 0 8px;
}
.guide-faq__q::before,
.guide-faq__a::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: -2px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-faq__q {
  font-size: 15px;
  color: #511f1f;
}
.guide-faq__q::before {
  content: "Q";
  background: #511f1f;
  color: #f4efe6;
}

.guide-faq__a {
  font-size: 14px;
}
.guide-faq__a::before {
  content: "A";
  background: #ececec;
  color: #511f1f;
}

.guide-faq__a-detail {
  padding-left: 34px;
  color: #6b6b6b;
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}

/* ガイド系ページ：文書形式（見出し＋小見出し＋本文、表を含む規約系ページ） */
.guide-doc__section {
  margin-bottom: 40px;
}
.guide-doc__section:last-child {
  margin-bottom: 0;
}

.guide-doc__title {
  font-size: 18px;
  font-weight: 700;
  color: #511f1f;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8d8d8;
}

.guide-doc__subtitle {
  font-size: 14px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.guide-doc__subtitle:first-of-type {
  margin-top: 0;
}

.guide-doc__text {
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}

.guide-doc__list {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.9;
}

.guide-highlight {
  color: #511f1f;
  font-weight: 700;
}

.guide-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 13px;
}
.guide-table th,
.guide-table td {
  padding: 10px 12px;
  border: 1px solid #d8d8d8;
  text-align: left;
  vertical-align: top;
}
.guide-table th {
  background: #f6f6f6;
  width: 140px;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .guide-table th,
  .guide-table td {
    display: block;
    width: auto;
  }
  .guide-table th {
    border-bottom: none;
  }
}

/* 特定商取引法の記載など、項目名が長めの法定情報テーブル用（列幅を広めに） */
.guide-table--info {
  margin-top: 0;
}
.guide-table--info th {
  width: 190px;
  white-space: normal;
}
.guide-table--info table.guide-table {
  margin-top: 8px;
}

.guide-text {
  margin-bottom: 40px;
}
.guide-text p {
  line-height: 1.9;
  margin: 0;
}
@media (max-width: 767px) {
  .guide-text {
    margin-bottom: 28px;
  }
}

/* ガイド系ページ：小項目リスト（アイコン＋見出し＋説明文の繰り返し） */
.guide-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.guide-list__item {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #d8d8d8;
}
.guide-list__item:first-child {
  border-top: 1px solid #d8d8d8;
}
@media (max-width: 767px) {
  .guide-list__item {
    gap: 14px;
  }
}

.guide-list__image {
  flex: 0 0 96px;
}
.guide-list__image img {
  display: block;
  width: 100%;
  border-radius: 4px;
}
@media (max-width: 767px) {
  .guide-list__image {
    flex: 0 0 64px;
  }
}

.guide-list__body {
  flex: 1;
  min-width: 0;
}

.guide-list__title {
  font-size: 15px;
  font-weight: bold;
  color: #511f1f;
  margin: 0 0 6px;
}

.guide-list__text {
  line-height: 1.8;
  font-size: 13px;
  color: #6b6b6b;
  margin: 0;
}

/* ガイド系ページ：リストのカード表示バリエーション（画像を上に大きく見せる2列グリッド） */
.guide-list--cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
@media (max-width: 767px) {
  .guide-list--cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.guide-list--cards .guide-list__item {
  display: block;
  padding: 0;
  border: none;
}

.guide-list--cards .guide-list__item:first-child {
  border-top: none;
}

.guide-list--cards .guide-list__image {
  flex: none;
  width: 100%;
  margin-bottom: 14px;
}

.guide-list--cards .guide-list__title {
  font-size: 16px;
}

/* ガイド系ページ：カテゴリートップ用の3列カードグリッド（写真＋タイトル＋一言説明） */
.guide-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}
@media (max-width: 767px) {
  .guide-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* 特集一覧など、2列で見せたい場合の修飾子 */
.guide-cat-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* 横長バナー画像を1列で見せる場合の修飾子（特集一覧など） */
.guide-cat-grid--banner {
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (max-width: 767px) {
  .guide-cat-grid--banner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.guide-cat-grid--banner .guide-cat-grid__thumb {
  aspect-ratio: 1140/500;
}
.guide-cat-grid--banner .guide-cat-grid__title,
.guide-cat-grid--banner .guide-cat-grid__subtitle {
  text-align: left;
}
.guide-cat-grid--banner .guide-cat-grid__title {
  font-size: 18px;
}
.guide-cat-grid--banner .guide-cat-grid__subtitle {
  margin-top: 6px;
  font-size: 13px;
}

.guide-cat-grid__link {
  display: block;
  color: #1a1a1a;
}

.guide-cat-grid__thumb {
  display: block;
  aspect-ratio: 5/4;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #d8d8d8;
  background: #ececec;
}
.guide-cat-grid__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.guide-cat-grid__link:hover .guide-cat-grid__thumb img {
  transform: scale(1.04);
}

.guide-cat-grid__title {
  display: block;
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.guide-cat-grid__subtitle {
  display: block;
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b6b6b;
  line-height: 1.7;
  text-align: center;
}

/* ガイド系ページ：CTAボタン（他ページへの誘導） */
.guide-cta {
  text-align: center;
  margin: 0 0 40px;
  padding: 32px 20px;
  background: #f6f6f6;
  border-radius: 6px;
}

.guide-cta__text {
  margin: 0 0 14px;
  font-size: 14px;
}

.guide-cta__button {
  display: inline-block;
  background: #511f1f;
  color: #f4efe6;
  border-radius: 4px;
  padding: 12px 32px;
  font-size: 14px;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.guide-cta__button:hover {
  background: #302c29;
}

/* ガイド系ページ：本文中の見出し（フォームの前など） */
.guide-section-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #511f1f;
  margin: 48px 0 24px;
}

/* ガイド系ページ：番号付き手順（画像＋説明文） */
.guide-steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  counter-reset: guide-step;
}

.guide-steps__item {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  counter-increment: guide-step;
}
@media (max-width: 767px) {
  .guide-steps__item {
    display: block;
    margin-bottom: 16px;
  }
}

.guide-steps__image {
  flex: 0 0 200px;
  position: relative;
}
.guide-steps__image img {
  display: block;
  width: 100%;
  border-radius: 4px;
}
.guide-steps__image::before {
  content: counter(guide-step);
  position: absolute;
  top: -10px;
  left: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #511f1f;
  color: #f4efe6;
  font-size: 13px;
  font-weight: bold;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767px) {
  .guide-steps__image {
    margin-bottom: 20px;
  }
}

.guide-steps__text {
  flex: 1;
  min-width: 0;
}
.guide-steps__text p {
  line-height: 1.8;
  font-size: 13px;
  margin: 0;
}

/* ==========================================================================
   ガイド系ページ：問い合わせフォーム（Contact Form 7）
   orderform / mail / usces-inquiry で共通利用。CF7側の既存クラス
   （table-contactform7、required-contactform7 等）にスタイルを当てる。
   ========================================================================== */
.guide-form {
  margin: 0 0 40px;
}

.guide-form .table-contactform7 {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 13px;
}

.guide-form .table-contactform7 tr {
  border: 1px solid #d8d8d8;
}

.guide-form .table-contactform7 th {
  padding: 12px;
  text-align: left;
  white-space: nowrap;
  background: #f6f6f6;
  vertical-align: middle;
  border-bottom: 1px solid #d8d8d8;
}
@media (max-width: 767px) {
  .guide-form .table-contactform7 th {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-bottom: none;
  }
}

.guide-form .table-contactform7 td {
  padding: 12px;
  text-align: left;
  background: #fff;
  border-bottom: 1px solid #d8d8d8;
}
@media (max-width: 767px) {
  .guide-form .table-contactform7 td {
    display: block;
    width: 100%;
    padding: 8px 12px 14px;
  }
}

.guide-form .required-contactform7,
.guide-form .free-contactform7 {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  margin-right: 8px;
  border-radius: 3px;
}

.guide-form .required-contactform7 {
  border: 1px solid #511f1f;
  color: #511f1f;
}

.guide-form .free-contactform7 {
  border: 1px solid #b0b0b0;
  color: #6b6b6b;
}

.guide-form .title-contactform7 {
  font-weight: 700;
}

.guide-form input[type=text],
.guide-form input[type=email],
.guide-form input[type=tel],
.guide-form input[type=number] {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  width: 100%;
  max-width: 260px;
}
@media (max-width: 767px) {
  .guide-form input[type=text],
  .guide-form input[type=email],
  .guide-form input[type=tel],
  .guide-form input[type=number] {
    max-width: none;
  }
}

/* CF7は各項目を個別の.wpcf7-form-control-wrapで囲むため、確認用メール等
   1つの項目内で複数フィールドが<br>で並ぶ場合はここで隙間を作る。
   「お名前　様」のように後ろに文字が続くケースがあるためinline-blockのまま
   （blockにすると後続テキストが改行されてしまう）、margin-bottomで隙間を作る。 */
.guide-form .wpcf7-form-control-wrap {
  display: inline-block;
  vertical-align: middle;
}

.guide-form .wpcf7-form-control-wrap:has(+ br + .wpcf7-form-control-wrap) {
  margin-bottom: 10px;
}

.guide-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  min-height: 120px;
}

.guide-form select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  width: 100%;
  max-width: 320px;
}
@media (max-width: 767px) {
  .guide-form select {
    max-width: none;
  }
}

.guide-form ::placeholder {
  color: #9b9b9b;
}

/* ラジオ・チェックボックス（CF7標準のリスト項目をカスタム表示に差し替え） */
.guide-form .wpcf7-list-item {
  margin: 0 16px 8px 0;
  display: inline-flex;
  align-items: center;
}

.guide-form input[type=radio],
.guide-form input[type=checkbox] {
  position: absolute;
  opacity: 0;
  width: 18px;
  height: 18px;
}

.guide-form .wpcf7-list-item-label {
  position: relative;
  padding-left: 26px;
  cursor: pointer;
  font-size: 13px;
}

.guide-form .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  border: 1px solid #b0b0b0;
  background: #fff;
}

.guide-form input[type=radio] + .wpcf7-list-item-label::before {
  border-radius: 50%;
}

.guide-form input[type=checkbox] + .wpcf7-list-item-label::before {
  border-radius: 3px;
}

.guide-form input[type=radio]:checked + .wpcf7-list-item-label::before {
  border-color: #511f1f;
  background: radial-gradient(circle, #511f1f 42%, transparent 44%);
}

.guide-form input[type=checkbox]:checked + .wpcf7-list-item-label::before {
  border-color: #511f1f;
  background: #511f1f;
}

.guide-form input[type=checkbox]:checked + .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 45%;
  width: 7px;
  height: 3px;
  border-left: 2px solid #f4efe6;
  border-bottom: 2px solid #f4efe6;
  transform: translateY(-65%) rotate(-45deg);
}

/* 送信・確認・戻るボタン（CF7タグの class:btn class:btn-successN で付与） */
.guide-form .text-center {
  text-align: center;
  margin-top: 20px;
}

.guide-form .btn {
  display: inline-block;
  padding: 13px 32px;
  margin: 4px;
  border: 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}

.guide-form .btn-success2 {
  background: #511f1f;
  color: #f4efe6;
}
.guide-form .btn-success2:hover {
  background: #302c29;
}

.guide-form .btn-success1 {
  background: #f6f6f6;
  color: #1a1a1a;
  border: 1px solid #b0b0b0;
}
.guide-form .btn-success1:hover {
  background: #ececec;
}

.guide-form .btn-success3 {
  background: transparent;
  color: #6b6b6b;
  border: 1px solid #d8d8d8;
}
.guide-form .btn-success3:hover {
  background: #f6f6f6;
}

/* エラー・送信結果メッセージ */
.guide-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;
  color: #511f1f;
  font-size: 12px;
}

.guide-form .wpcf7-response-output {
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid #511f1f;
  border-radius: 4px;
  color: #511f1f;
  font-size: 13px;
}

.guide-form .wpcf7-spinner {
  margin: 8px auto 0;
  display: block;
}

/* Confirm Plus for Contact Form 7：送信前の確認画面（#wpcf7cpcnf、プラグインがJSで
   フォームの代わりに挿入するテーブル）。.table-contactform7と同じ配色・罫線にして統一する。
   プラグイン本体のCSS（div#wpcf7cpcnf th/td 等、IDセレクタ）より詳細度を上げるため
   .guide-formを頭に付ける（ページ本文で[contact-form-7]を<div class="guide-form">で
   囲んでいるため、確認画面もこの配下に描画される）。 */
.guide-form #wpcf7cpcnf table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 24px;
	font-size: 13px;
}
.guide-form #wpcf7cpcnf tr {
	border: 1px solid #d8d8d8;
}
.guide-form #wpcf7cpcnf th,
.guide-form #wpcf7cpcnf td {
	padding: 12px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid #d8d8d8;
}
.guide-form #wpcf7cpcnf th p,
.guide-form #wpcf7cpcnf td p {
	margin: 0;
}
.guide-form #wpcf7cpcnf th {
	width: 30%;
	white-space: nowrap;
	background: #f6f6f6;
	font-weight: 700;
}
.guide-form #wpcf7cpcnf td {
	background: #fff;
}
.guide-form .wpcf7cp-btns {
	justify-content: center;
	margin-top: 20px;
}
.guide-form .wpcf7cp-cfm-edit-btn,
.guide-form .wpcf7cp-cfm-submit-btn {
	display: inline-block;
	padding: 13px 32px;
	margin: 4px;
	border: 0;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}
.guide-form .wpcf7cp-cfm-edit-btn {
	background: #f6f6f6;
	color: #1a1a1a;
	border: 1px solid #b0b0b0;
}
.guide-form .wpcf7cp-cfm-edit-btn:hover {
	background: #ececec;
}
.guide-form .wpcf7cp-cfm-submit-btn {
	background: #511f1f;
	color: #f4efe6;
}
.guide-form .wpcf7cp-cfm-submit-btn:hover {
	background: #302c29;
}
@media (max-width: 767px) {
	.guide-form #wpcf7cpcnf th,
	.guide-form #wpcf7cpcnf td {
		display: block;
		width: 100%;
		border-bottom: none;
	}
	.guide-form #wpcf7cpcnf th {
		padding: 10px 12px;
	}
	.guide-form #wpcf7cpcnf td {
		padding: 8px 12px 14px;
	}
}

/* ==========================================================================
   Welcart 会員ログイン（デフォルトCSS：プラグイン側 usc-e-shop/css/usces_cart.css）
   .loginboxが幅220px・inputが幅200pxのため箱からはみ出す。お問い合わせフォーム
   （.guide-form）と統一感のあるスタイルに上書きする。
   マイページの注文履歴等、他の会員ページも #memberpages を共有し幅の広いテーブルを
   持つため、#memberpages自体ではなく.loginbox配下だけを対象にする。
   Welcart側のセレクタ（#memberpages div.loginbox 等）と互角以上の詳細度にするため
   #page を頭に付けている（読み込み順でWelcart側のCSSが後に来るため）。
   ========================================================================== */
#memberpages .header_explanation {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

#page #memberpages div.loginbox {
  width: auto;
  max-width: 400px;
  margin: 40px auto 0;
  padding: 32px;
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  box-sizing: border-box;
}

#memberpages .loginbox label {
  display: block;
  font-size: 13px;
}

#page #memberpages input.loginmail,
#page #memberpages input.loginpass {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  line-height: normal;
  box-sizing: border-box;
}

#memberpages .loginbox p.submit {
  text-align: center;
  margin-top: 8px;
}

#memberpages .loginbox input[type=submit] {
  display: inline-block;
  padding: 13px 40px;
  border: 0;
  border-radius: 4px;
  background: #511f1f;
  color: #f4efe6;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#memberpages .loginbox input[type=submit]:hover {
  background: #302c29;
}

/* パスワードをお忘れの方（フォーム内、テキストリンクのまま） */
#memberpages .loginbox form p.nav {
  text-align: center;
}
#memberpages .loginbox form p.nav a {
  color: #511f1f;
}

/* 新規ご入会はこちら（フォーム外。案内の弱さを解消するため見た目をボタン化）
   Welcart側に同一セレクタでpadding-top:0の指定があり読み込み順で負けるため、#pageで詳細度を上げる */
#page #memberpages .loginbox p#nav {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #d8d8d8;
}

#memberpages .loginbox p#nav a {
  display: inline-block;
  padding: 11px 32px;
  border: 1px solid #511f1f;
  border-radius: 4px;
  color: #511f1f;
  font-size: 14px;
  font-weight: 700;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#memberpages .loginbox p#nav a:hover {
  background: #511f1f;
  color: #f4efe6;
}

/* ==========================================================================
   Welcart 完了ページ（#memberpages .post：新規入会／会員情報変更／パスワード再発行／
   パスワード変更の4パターンが同じテンプレート templates/member/completion.php を共有する）
   デフォルトは文字が並ぶだけの素の見た目のため、.loginboxと統一感のあるカードにする。
   ========================================================================== */
#memberpages .post {
  max-width: 440px;
  margin: 40px auto 0;
  padding: 40px 32px;
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  text-align: center;
  box-sizing: border-box;
}
#memberpages .post > p:first-of-type {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 28px;
}
#memberpages .post .header_explanation,
#memberpages .post .footer_explanation {
  font-size: 13px;
  color: #6b6b6b;
  line-height: 1.8;
}
#memberpages .post .header_explanation:empty,
#memberpages .post .footer_explanation:empty {
  display: none;
}
#memberpages .post p a {
  display: inline-block;
  padding: 11px 32px;
  border: 1px solid #511f1f;
  border-radius: 4px;
  color: #511f1f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 12px;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#memberpages .post p a:hover {
  background: #511f1f;
  color: #f4efe6;
}
#memberpages .post .send {
  margin-top: 8px;
}
#memberpages .post .back_to_top_button {
  display: inline-block;
  padding: 13px 40px;
  border: 0;
  border-radius: 4px;
  background: #511f1f;
  color: #f4efe6;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#memberpages .post .back_to_top_button:hover {
  background: #302c29;
}

/* ==========================================================================
   Welcart 新規入会フォーム（#newmember）
   デフォルトCSSは入力欄が幅120px前後で狭く罫線も無い素の表組みのため、
   お問い合わせフォーム（.guide-form）と統一感のあるスタイルに上書きする。
   マイページ編集フォーム（#memberinfo）等、他の会員ページは今回対象外。
   Welcart側の#newmember .customer_form input#zipcode 等ID指定セレクタと
   互角以上の詳細度にするため #page を頭に付けている。
   ========================================================================== */
#newmember .header_explanation {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.8;
}

#newmember .error_message:not(:empty) {
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid #511f1f;
  border-radius: 4px;
  color: #511f1f;
  font-size: 13px;
}

#newmember table.customer_form {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13px;
}

#newmember table.customer_form th {
  padding: 12px;
  width: 180px;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
}
@media (max-width: 767px) {
  #newmember table.customer_form th {
    display: block;
    width: 100%;
    border-bottom: none;
  }
}

#newmember table.customer_form td {
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid #d8d8d8;
}
@media (max-width: 767px) {
  #newmember table.customer_form td {
    display: block;
    width: 100%;
    padding: 8px 12px 14px;
  }
}

#newmember table.customer_form td.name_td {
  width: 50%;
}
@media (max-width: 767px) {
  #newmember table.customer_form td.name_td {
    width: 100%;
  }
}

#newmember table.customer_form em {
  font-style: normal;
  color: #511f1f;
  margin-right: 2px;
}

#newmember table.customer_form .member_name,
#newmember table.customer_form .member_furigana {
  margin-right: 8px;
  font-size: 13px;
  color: #6b6b6b;
}

#page #newmember table.customer_form input[type=text],
#page #newmember table.customer_form input[type=password] {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  #page #newmember table.customer_form input[type=text],
  #page #newmember table.customer_form input[type=password] {
    max-width: none;
  }
}

#newmember table.customer_form select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  width: 100%;
  max-width: 320px;
}
@media (max-width: 767px) {
  #newmember table.customer_form select {
    max-width: none;
  }
}

#page #newmember table.customer_form input.search-zipcode {
  display: inline-block;
  margin-left: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #f6f6f6;
  color: #1a1a1a;
  font-size: 13px;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#page #newmember table.customer_form input.search-zipcode:hover {
  background: #ececec;
}

/* 会員規約同意エリア */
#page #newmember .agree_member_area {
  margin: 24px 0;
}

#page #newmember .at_cont_text {
  width: 100%;
  height: 200px;
  padding: 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #f6f6f6;
  font-size: 12px;
  line-height: 1.8;
  box-sizing: border-box;
}

#page #newmember .at_check_area {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
}
#page #newmember .at_check_area label {
  cursor: pointer;
}

/* 送信ボタン */
#page #newmember .send {
  text-align: center;
  margin-top: 24px;
}

#newmember .send input[type=submit] {
  display: inline-block;
  padding: 13px 48px;
  border: 0;
  border-radius: 4px;
  background: #511f1f;
  color: #f4efe6;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#newmember .send input[type=submit]:hover {
  background: #302c29;
}

/* ==========================================================================
   Welcart マイページ（#memberinfo、ログイン後の会員情報ページ）
   会員情報の要約表・サブメニュー・見出しがWelcart既定のまま（罫線や配色が
   サイトのデザインと合っていない）だったため整える。購入履歴テーブル本体
   （列ごとに幅指定された細かいスタイル）は今回のテストデータでは検証できない
   ため、既定のスタイルを維持し変更しない。
   ========================================================================== */
#memberinfo .header_explanation {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: #6b6b6b;
}

/* 会員番号側の列（左）と入会日側の列（右）が50:50になるよう、th/tdの幅をそれぞれ
   統一した比率にする（table-layout:fixedで1行目のセル幅どおりに列幅を確定させる） */
#memberinfo #memberdetail {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 24px;
}

#memberinfo #memberdetail th,
#memberinfo #memberdetail td {
  padding: 12px;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
  border: 1px solid #d8d8d8;
  color: #1a1a1a;
  background: #fff;
}

#memberinfo #memberdetail th {
  width: 15%;
  background: #f6f6f6;
  font-weight: 700;
  white-space: nowrap;
}

#memberinfo #memberdetail td {
  width: 34%;
}

#memberinfo #memberdetail .blank_cell,
#memberinfo #memberdetail th.blank,
#memberinfo #memberdetail td.blank {
  border: none;
  background: transparent;
  padding: 0;
  width: 2%;
}

@media (max-width: 767px) {
  #memberinfo #memberdetail {
    display: block;
    overflow-x: auto;
  }
}
/* 購入履歴（.history-area）もSPでは会員情報の表と同様、横スクロールで見せる。
   Welcart既定でテーブル自体がwidth:100%固定のため、SPでは横に伸びられるようwidth:autoに戻す */
@media (max-width: 767px) {
  #memberinfo .history-area {
    overflow-x: auto;
  }
  #memberinfo .history-area table {
    width: auto;
    min-width: 600px;
  }
}
#memberinfo .member_submenu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

#memberinfo .member_submenu li {
  margin: 0;
  padding: 0;
}

#memberinfo .member_submenu a {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}

#memberinfo .member_submenu .edit_member a {
  border: 1px solid #511f1f;
  color: #511f1f;
}
#memberinfo .member_submenu .edit_member a:hover {
  background: #511f1f;
  color: #f4efe6;
}

#memberinfo .member_submenu .logout_member a {
  border: 1px solid #b0b0b0;
  color: #6b6b6b;
}
#memberinfo .member_submenu .logout_member a:hover {
  background: #f6f6f6;
}

#page #memberinfo h3 {
  float: none;
  height: auto;
  margin: 32px 0 16px;
  padding: 0 0 10px;
  border-bottom: 2px solid #511f1f;
  background: none;
  text-indent: 0;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
}

#memberinfo .currency_code {
  margin-bottom: 8px;
  font-size: 12px;
  color: #6b6b6b;
}

#memberinfo .usces_filter_history {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 13px;
}
@media (max-width: 767px) {
  #memberinfo .usces_filter_history {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

#memberinfo .exclude_cancel label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

#memberinfo .usce_period {
  display: flex;
  align-items: center;
  gap: 6px;
}

#memberinfo .usce_period select {
  height: 34px;
  padding: 0 8px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
}

/* 会員情報編集フォーム（#newmember と同じ考え方。Welcart側のID指定セレクタと
   互角以上の詳細度にするため #page を頭に付けている箇所がある） */
#page #memberinfo table.customer_form input[type=text],
#page #memberinfo table.customer_form input[type=password] {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  #page #memberinfo table.customer_form input[type=text],
  #page #memberinfo table.customer_form input[type=password] {
    max-width: none;
  }
}

#memberinfo table.customer_form select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  width: 100%;
  max-width: 320px;
}
@media (max-width: 767px) {
  #memberinfo table.customer_form select {
    max-width: none;
  }
}

#memberinfo table.customer_form th,
#memberinfo table.customer_form td {
  padding: 12px;
  text-align: left;
  border: 1px solid #d8d8d8;
}
@media (max-width: 767px) {
  #memberinfo table.customer_form th,
  #memberinfo table.customer_form td {
    display: block;
    width: 100%;
  }
}

#memberinfo table.customer_form th {
  width: 180px;
  white-space: nowrap;
  background: #f6f6f6;
}
@media (max-width: 767px) {
  #memberinfo table.customer_form th {
    border-bottom: none;
  }
}

#memberinfo table.customer_form td {
  background: #fff;
}

#memberinfo table.customer_form em {
  font-style: normal;
  color: #511f1f;
  margin-right: 2px;
}

#page #memberinfo table.customer_form input.search-zipcode {
  display: inline-block;
  margin-left: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #f6f6f6;
  color: #1a1a1a;
  font-size: 13px;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#page #memberinfo table.customer_form input.search-zipcode:hover {
  background: #ececec;
}

#memberinfo .send {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

#memberinfo .send input[type=submit],
#memberinfo .send input[type=button] {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}

#memberinfo .send input[name=editmember] {
  border: 0;
  background: #511f1f;
  color: #f4efe6;
}
#memberinfo .send input[name=editmember]:hover {
  background: #302c29;
}

#memberinfo .send input[name=top] {
  border: 1px solid #b0b0b0;
  background: #fff;
  color: #1a1a1a;
}
#memberinfo .send input[name=top]:hover {
  background: #f6f6f6;
}

#memberinfo .send input[name=deletemember] {
  border: 1px solid #d8d8d8;
  background: transparent;
  color: #9b9b9b;
  font-weight: 400;
}
#memberinfo .send input[name=deletemember]:hover {
  color: #511f1f;
  border-color: #511f1f;
}

/* ==========================================================================
   Welcart 会員認証メール送信完了ページ（member_edit_verifying_form）
   会員情報編集で重要項目（メールアドレス等）を変更した際、認証メールを送信した
   ことを知らせる案内ページ。get_header()/get_footer()のみ本テーマのものを使うが、
   中身のマークアップ（.member-page 配下）はWelcartの別テーマ（welcart_default）
   由来の構造で、当テーマの.max-width.top-block等を一切使っておらず未整形だった。
   ========================================================================== */
.member-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
@media (max-width: 767px) {
  .member-page {
    padding: 20px 14px 60px;
  }
}

.member_page_title {
  margin: 0 0 24px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

#memberedit {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  text-align: center;
}
@media (max-width: 767px) {
  #memberedit {
    padding: 28px 20px;
  }
}

#memberedit h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #511f1f;
}

#memberedit p {
  margin: 0 0 12px;
  text-align: left;
  font-size: 13px;
  line-height: 1.8;
  color: #1a1a1a;
}

#memberedit .send {
  margin-top: 24px;
}

#memberedit .send input.back {
  display: inline-block;
  -webkit-appearance: none;
  appearance: none;
  padding: 13px 40px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#memberedit .send input.back:hover {
  background: #f6f6f6;
}

/* ==========================================================================
   Welcart カートページ（クライアント要望：全体的に古い印象をフラットデザインへ刷新。
   ステップナビの背景画像(cart_navi_bg1〜4.jpg)、赤・黄系のボタン/見出し色を廃止し
   サイトの配色（ワイン・チャコール等）に統一する。usces_cart.css・wcex-amazonpay側の
   CSSが本テーマのstyle.cssより後に読み込まれるため、詳細度を上げる必要がある箇所は
   #pageを頭に付けている。
   ========================================================================== */
/* ステップナビ（カート/お客様情報/配送・支払方法/内容確認） */
#page div.usccart_navi ol.ucart {
  display: flex;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  gap: 4px;
  height: auto;
}

#page div.usccart_navi li.ucart {
  flex: 1;
  margin: 0;
  padding: 12px 4px;
  background: #f6f6f6;
  background-image: none;
  color: #6b6b6b;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  border-bottom: 3px solid #d8d8d8;
  float: none;
  width: auto;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
@media (max-width: 767px) {
  #page div.usccart_navi li.ucart {
    font-size: 11px;
    padding: 10px 2px;
  }
}

#page div.usccart_navi li.ucart.usccart_cart,
#page div.usccart_navi li.ucart.usccart_customer,
#page div.usccart_navi li.ucart.usccart_delivery,
#page div.usccart_navi li.ucart.usccart_confirm {
  background: #fff;
  background-image: none;
  color: #511f1f;
  border-bottom-color: #511f1f;
}

/* カート内商品テーブル */
#page #cart table {
  border: none;
}

#page #cart_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}

#page #cart th,
#page #cart td {
  padding: 12px 10px;
  border: 1px solid #d8d8d8;
  color: #1a1a1a;
  vertical-align: middle;
}

#page #cart thead th {
  background: #f6f6f6;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

#page #cart td.productname {
  text-align: left;
}

#cart td.thumbnail img {
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

#page #cart input.quantity {
  width: 56px;
  height: 36px;
  padding: 0 6px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
}

#page #cart tfoot th {
  background: #f6f6f6;
}

#page #cart tfoot .subtotal {
  color: #511f1f;
  font-size: 15px;
  font-weight: 700;
}

/* ボタン類（フラットデザインに統一） */
#page #cart .upbutton {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding-right: 0;
  font-size: 12px;
  color: #6b6b6b;
  text-align: right;
}
@media (max-width: 767px) {
  #page #cart .upbutton {
    justify-content: space-between;
  }
}

#page #cart .upbutton input[type=submit] {
  display: inline-block;
  padding: 9px 24px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#page #cart .upbutton input[type=submit]:hover {
  background: #f6f6f6;
}

#page #cart input.delButton {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  color: #6b6b6b;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#page #cart input.delButton:hover {
  border-color: #511f1f;
  color: #511f1f;
}

/* チェックアウトボックス（wcex-amazonpayが出力するカート下部の購入ボタン群） */
#page #cart_checkout_box .text h4,
#page #cart_checkout_box .cart-next .text h4,
#page #cart_checkout_box .amazon-next .text h4 {
  color: #1a1a1a;
}

#page #cart_checkout_box .text p {
  color: #6b6b6b;
}

#page #cart_checkout_box .cart-buttons > * {
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}

#page #cart_checkout_box .continue_shopping_button {
  border: 1px solid #b0b0b0;
  background: #fff;
  color: #1a1a1a;
}
#page #cart_checkout_box .continue_shopping_button:hover {
  background: #f6f6f6;
}

#page #cart_checkout_box .pinkButton,
#page #cart_checkout_box .to_customerinfo_button {
  border: 0;
  background: #511f1f;
  color: #f4efe6;
}
#page #cart_checkout_box .pinkButton:hover,
#page #cart_checkout_box .to_customerinfo_button:hover {
  background: #302c29;
}

#page #cart_checkout_box .line > div:first-child,
#page #cart_checkout_box .line > div:last-child {
  border-top-color: #d8d8d8;
}

#page #cart_checkout_box .line > div:nth-child(2) {
  color: #9b9b9b;
}

/* SP：カード形式のレスポンシブテーブル（td[data-label]属性を利用して項目名を表示）。
   #page #cart th/td に1px罫線を当てるPC用ルールの詳細度が高く（#page + #cart の2ID）、
   ここで単に#cart_table td { border:none }としても負けて古い罫線が透けて見えてしまうため、
   同様に#pageを頭に付けて確実に上書きする（商品ごとの区切りが分かりにくかった原因）。 */
@media (max-width: 767px) {
  #page #cart_table thead {
    display: none;
  }
  #page #cart_table,
  #page #cart_table tbody,
  #page #cart_table tr {
    display: block;
    width: 100%;
  }
  #page #cart_table tbody tr {
    margin-bottom: 20px;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }
  #page #cart_table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid #d8d8d8;
    text-align: right;
    background: #fff;
  }
  #page #cart_table tbody td:last-child {
    border-bottom: none;
  }
  #page #cart_table tbody td.num {
    display: none;
  }
  #page #cart_table tbody td.thumbnail {
    justify-content: center;
    padding: 16px;
    background: #f6f6f6;
  }
  #page #cart_table tbody td[data-label]::before {
    content: attr(data-label);
    font-weight: 700;
    color: #6b6b6b;
    font-size: 12px;
  }
  #page #cart_table tbody td.productname {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  #page #cart_table tbody td.productname::before {
    margin-bottom: 6px;
  }
  #page #cart_table tbody td.action {
    justify-content: center;
    background: #f6f6f6;
  }
  #page #cart_table tfoot,
  #page #cart_table tfoot tr {
    display: block;
    width: 100%;
  }
  #page #cart_table tfoot tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    padding: 14px 16px;
    background: #f6f6f6;
  }
  #page #cart_table tfoot th {
    border: none;
    background: none;
    padding: 0;
  }
  #page #cart_table tfoot th.num,
  #page #cart_table tfoot th.thumbnail,
  #page #cart_table tfoot th.stock,
  #page #cart_table tfoot th.action {
    display: none;
  }
}
/* ==========================================================================
   Welcart お客様情報ページ（#customer-info、カート→お客様情報の入力画面）
   新規入会フォーム（#newmember）と同じ考え方で整える。デフォルトは見出しが
   ティール(#669999)/送信ボタン上の罫線がオレンジ(#ff9900)、入力欄も幅50%指定などで
   古い印象だったため、サイトの配色・.customer_formの体裁に統一する。
   usces_cart.css側のCSSが本テーマのstyle.cssより後に読み込まれるため、
   詳細度を上げる必要がある箇所は#pageを頭に付けている。
   ========================================================================== */
#page #customer-info .header_explanation {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.8;
}

#page #customer-info .error_message:not(:empty) {
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid #511f1f;
  border-radius: 4px;
  color: #511f1f;
  font-size: 13px;
}

#page #customer-info h5 {
  margin: 32px 0 16px;
  padding: 10px 16px;
  background: #f6f6f6;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  border-left: 3px solid #511f1f;
  border-radius: 4px;
  height: auto;
}

#page #customer-info h5:first-of-type {
  margin-top: 0;
}

#page #customer-info table.customer_form {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 13px;
}

#page #customer-info table.customer_form th {
  width: 180px;
  padding: 12px;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 767px) {
  #page #customer-info table.customer_form th {
    display: block;
    width: 100%;
    border-bottom: none;
  }
}

#page #customer-info table.customer_form td {
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid #d8d8d8;
  color: #1a1a1a;
  font-size: 13px;
}
@media (max-width: 767px) {
  #page #customer-info table.customer_form td {
    display: block;
    width: 100%;
    padding: 8px 12px 14px;
  }
}

#page #customer-info table.customer_form td.name_td {
  width: 50%;
}
@media (max-width: 767px) {
  #page #customer-info table.customer_form td.name_td {
    width: 100%;
  }
}

#page #customer-info table.customer_form em {
  font-style: normal;
  color: #511f1f;
  margin-right: 2px;
}

#page #customer-info table.customer_form .member_name,
#page #customer-info table.customer_form .member_furigana {
  margin-right: 8px;
  font-size: 13px;
  color: #6b6b6b;
}

#page #customer-info table.customer_form input[type=text],
#page #customer-info table.customer_form input[type=password] {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  #page #customer-info table.customer_form input[type=text],
  #page #customer-info table.customer_form input[type=password] {
    max-width: none;
  }
}

#page #customer-info table.customer_form select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  width: 100%;
  max-width: 320px;
}
@media (max-width: 767px) {
  #page #customer-info table.customer_form select {
    max-width: none;
  }
}

#page #customer-info table.customer_form input.search-zipcode {
  display: inline-block;
  margin-left: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #f6f6f6;
  color: #1a1a1a;
  font-size: 13px;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#page #customer-info table.customer_form input.search-zipcode:hover {
  background: #ececec;
}

#page #customer-info p#nav {
  margin: 12px 0 0;
  font-size: 13px;
}

#page #customer-info p#nav a {
  color: #511f1f;
}

#page #customer-info .agree_member_area {
  margin: 24px 0;
}

#page #customer-info .at_cont_text {
  width: 100%;
  height: 200px;
  padding: 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #f6f6f6;
  font-size: 12px;
  line-height: 1.8;
  box-sizing: border-box;
}

#page #customer-info .at_check_area {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
}
#page #customer-info .at_check_area label {
  cursor: pointer;
}

#page #customer-info .send {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}

#customer-info .send input[type=submit] {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}

#customer-info .send input.back_cart_button {
  border: 1px solid #b0b0b0;
  background: #fff;
  color: #1a1a1a;
}
#customer-info .send input.back_cart_button:hover {
  background: #f6f6f6;
}

#customer-info .send input.to_deliveryinfo_button,
#customer-info .send input[name=customerlogin] {
  border: 0;
  background: #511f1f;
  color: #f4efe6;
}
#customer-info .send input.to_deliveryinfo_button:hover,
#customer-info .send input[name=customerlogin]:hover {
  background: #302c29;
}

#customer-info .send input.to_reganddeliveryinfo_button {
  border: 1px solid #511f1f;
  background: #fff;
  color: #511f1f;
}
#customer-info .send input.to_reganddeliveryinfo_button:hover {
  background: #511f1f;
  color: #f4efe6;
}

/* ==========================================================================
   Welcart 配送・支払方法ページ（#delivery-info、カート→配送・支払方法の入力画面）
   #customer-info と同じ考え方で整える。デフォルトは見出しがオレンジ(#ff6600)、
   送信ボタン上の罫線もオレンジ、テーブルも古い配色（背景#f3f3f3・枠線#e6e6e6）
   だったため、サイトの配色・.customer_formの体裁に統一する。
   usces_cart.css側のCSSが本テーマのstyle.cssより後に読み込まれるため、
   詳細度を上げる必要がある箇所は#pageを頭に付けている。
   ========================================================================== */
#page #delivery-info .header_explanation {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.8;
}

#page #delivery-info .error_message:not(:empty) {
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid #511f1f;
  border-radius: 4px;
  color: #511f1f;
  font-size: 13px;
}

#page #delivery-info table.customer_form {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 13px;
}

#page #delivery-info table.customer_form th {
  width: 180px;
  padding: 12px;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 767px) {
  #page #delivery-info table.customer_form th {
    display: block;
    width: 100%;
    border-bottom: none;
  }
}

#page #delivery-info table.customer_form td {
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid #d8d8d8;
  color: #1a1a1a;
  font-size: 13px;
}
@media (max-width: 767px) {
  #page #delivery-info table.customer_form td {
    display: block;
    width: 100%;
    padding: 8px 12px 14px;
  }
}

#page #delivery-info table.customer_form td.name_td {
  width: 50%;
}
@media (max-width: 767px) {
  #page #delivery-info table.customer_form td.name_td {
    width: 100%;
  }
}

#page #delivery-info table.customer_form em {
  font-style: normal;
  color: #511f1f;
  margin-right: 2px;
}

#page #delivery-info table.customer_form .member_name,
#page #delivery-info table.customer_form .member_furigana {
  margin-right: 8px;
  font-size: 13px;
  color: #6b6b6b;
}

#page #delivery-info table.customer_form input[type=text] {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  #page #delivery-info table.customer_form input[type=text] {
    max-width: none;
  }
}

#page #delivery-info table.customer_form select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  width: 100%;
  max-width: 320px;
}
@media (max-width: 767px) {
  #page #delivery-info table.customer_form select {
    max-width: none;
  }
}

#page #delivery-info table.customer_form input.search-zipcode {
  display: inline-block;
  margin-left: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #f6f6f6;
  color: #1a1a1a;
  font-size: 13px;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#page #delivery-info table.customer_form input.search-zipcode:hover {
  background: #ececec;
}

/* 配送先・支払方法のラジオボタン */
#page #delivery-info table.customer_form input[type=radio] {
  accent-color: #511f1f;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

#delivery-info table.customer_form label {
  font-size: 13px;
  cursor: pointer;
}

/* 支払方法（dl/dt/dd） */
#delivery-info table.customer_form dl {
  margin: 0;
  padding: 0;
}

#delivery-info table.customer_form dt {
  margin: 0 0 4px;
  font-size: 13px;
  color: #1a1a1a;
}

#delivery-info table.customer_form dd {
  margin: 0 0 12px;
  padding-left: 24px;
  font-size: 12px;
  color: #6b6b6b;
  line-height: 1.6;
}

/* 備考欄 */
#page #delivery-info table.customer_form textarea.notes {
  width: 100%;
  height: 120px;
  padding: 10px 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

/* 送信ボタン */
#page #delivery-info .send {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}

#delivery-info .send input[type=submit] {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}

#delivery-info .send input.back_to_customer_button {
  border: 1px solid #b0b0b0;
  background: #fff;
  color: #1a1a1a;
}
#delivery-info .send input.back_to_customer_button:hover {
  background: #f6f6f6;
}

#delivery-info .send input.to_confirm_button {
  border: 0;
  background: #511f1f;
  color: #f4efe6;
}
#delivery-info .send input.to_confirm_button:hover {
  background: #302c29;
}

/* ==========================================================================
   Welcart 内容確認ページ（#info-confirm、カート最後の確認画面）
   注文商品一覧（#cart_table）は既存の#cart_table用スタイルがそのまま効くため対象外。
   お客様情報／配送先情報／その他をまとめる#confirm_tableが未整形（見出しが赤橙
   #ff3300・背景が薄黄色#ffffef、データ行の枠線も薄いグレー#e6e6e6）だったため、
   .customer_form系ページと同じ配色・体裁に統一する。
   usces_cart.css側のCSSが本テーマのstyle.cssより後に読み込まれるため、
   詳細度を上げる必要がある箇所は#pageを頭に付けている。
   ========================================================================== */
#page #confirm_table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}

#page #confirm_table tr.ttl td,
#page #confirm_table td.ttl {
  padding: 10px 12px;
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  border-left: 3px solid #511f1f;
}

#page #confirm_table h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

#page #confirm_table th {
  width: 180px;
  padding: 12px;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  background: #fff;
  border: 1px solid #d8d8d8;
  color: #6b6b6b;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 767px) {
  #page #confirm_table th {
    display: block;
    width: 100%;
    border-bottom: none;
  }
}

#page #confirm_table td {
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid #d8d8d8;
  color: #1a1a1a;
  font-size: 13px;
}
@media (max-width: 767px) {
  #page #confirm_table td {
    display: block;
    width: 100%;
    padding: 8px 12px 14px;
  }
}

#page #info-confirm .send {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}

#info-confirm .send input[type=submit] {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}

#info-confirm .send input.back_to_delivery_button {
  border: 1px solid #b0b0b0;
  background: #fff;
  color: #1a1a1a;
}
#info-confirm .send input.back_to_delivery_button:hover {
  background: #f6f6f6;
}

#info-confirm .send input.checkout_button {
  border: 0;
  background: #511f1f;
  color: #f4efe6;
  padding: 13px 48px;
  font-size: 15px;
}
#info-confirm .send input.checkout_button:hover {
  background: #302c29;
}

/* ==========================================================================
   Welcart カートが空の状態（#inside-cart .no_cart）
   メッセージが黄色寄りのオレンジ(#FF9900)、ボタン上の罫線も黄色(#ffcc00)、
   「買い物を続ける」ボタンも未装飾のデフォルトボタンだったため統一する。
   usces_cart.css側のCSSが本テーマのstyle.cssより後に読み込まれるため、
   詳細度を上げる必要がある箇所は#pageを頭に付けている。
   ========================================================================== */
#page #inside-cart .no_cart {
  margin: 48px 0;
  color: #6b6b6b;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

#page #inside-cart .send {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #d8d8d8;
  text-align: center;
}

#inside-cart .send input.continue_shopping_button {
  display: inline-block;
  -webkit-appearance: none;
  appearance: none;
  padding: 13px 40px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -moz-transition: all 0.15s ease;
  -o-transition: all 0.15s ease;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
#inside-cart .send input.continue_shopping_button:hover {
  background: #f6f6f6;
}

/* ==========================================================================
   Turnstileスパム対策　ポジション
   ========================================================================== */
.cf-turnstile {
  text-align: center;
  margin-bottom: 20px;
}