@charset "utf-8";
/* ===================================================
   1. Contact Page Specific (レイアウト・配置)
   =================================================== */
.contact-intro-text {
  font-size: 0.95rem;
  line-height: 1.8 !important;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .contact-intro-text br {
    display: none;
  }
}
.contact-phone-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  padding: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  margin-bottom: 3rem;
}
.contact-phone-card .card-inner {
  border: 1px solid var(--c-gold);
  padding: 40px 20px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact-phone-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  font-family: var(--font-mincho);
  color: var(--c-black);
}
.contact-phone-card .tel-number {
  font-size: 2.2rem;
  color: var(--c-black);
  line-height: 1.1;
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s;
}
.contact-phone-card .tel-number:hover {
  color: var(--c-gold);
}
.contact-phone-card .business-hours {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
  font-family: var(--font-gothic);
}
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}
.recaptcha-notice {
  font-size: 10px !important;
  opacity: 0.6;
  text-align: center;
}
.recaptcha-notice a {
  color: var(--c-purple) !important;
  text-decoration: underline;
}
.wpcf7-list-item {
  display: inline-block;
  margin: 0 15px 10px 0;
}
.wpcf7-list-item-label {
  margin-left: 5px;
  font-weight: normal;
  color: #444;
}
.MailForm h4 {
  font-size: 1.1rem;
  color: var(--c-gold);
  border-bottom: 1px solid rgba(184, 158, 103, 0.3);
  margin-top: 2rem;
}
.w-25 {
  width: 25% !important;
  min-width: 100px;
}
/* ★ここにあったボタン非表示の記述を削除しました★ */
@media (max-width: 991px) {
  .contact-form-wrapper {
    padding: 40px 20px;
    margin-bottom: 80px;
  }
  .contact-phone-card {
    margin-top: 0;
  }
  .form-group label {
    text-align: left !important;
    margin-bottom: 10px;
    display: block;
  }
  .wpcf7-list-item {
    display: block;
    margin-bottom: 10px;
  }
  .w-25 {
    width: 40% !important;
  }
}
/* ===================================================
   2. Site Policy & Overview
   =================================================== */
.policy-intro {
  font-size: 0.95rem;
  line-height: 2;
  color: #444;
}
.policy-item {
  margin-bottom: 50px;
}
.policy-item-title {
  font-size: 1.15rem;
  color: var(--c-black);
  border-left: 3px solid var(--c-purple);
  padding-left: 15px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.policy-text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #666;
}
.policy-list {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 2;
}
.policy-list li {
  list-style-type: square;
  margin-bottom: 5px;
}
.spec-box {
  background-color: #fcfcf9;
  border: 1px solid #eee;
  padding: 20px;
  line-height: 1.8;
  color: #777;
}
.policy-contact-info {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
}
.policy-contact-info .company-name {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
/* スマホ対応 */
@media (max-width: 767px) {
  .policy-item-title {
    font-size: 1.1rem;
  }
}
/* ===================================================
   3. About / Hero Area (Page Specifics)
   =================================================== */
.about-hero-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
}
.hero-bg-anim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  animation: cinemagraph 15s ease-out forwards;
}
@keyframes cinemagraph {
  0% {
    transform: scale(1.0);
    filter: grayscale(100%) brightness(0.8);
  }
  100% {
    transform: scale(1.15);
    filter: grayscale(0%) brightness(1);
  }
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(40, 30, 20, 0.35);
  z-index: 2;
}
.hero-content-container {
  position: relative;
  z-index: 3;
  padding: 20px;
}
.decorative-frame {
  position: relative;
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
}
.decorative-frame::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
}
.decorative-frame::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
}
.vertical-text-hero {
  writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  font-family: var(--font-mincho);
  font-size: 2.2rem;
  letter-spacing: 0.4em;
  line-height: 1.8;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.about-lead-text p {
  font-family: var(--font-mincho);
  font-size: 1.0rem;
  line-height: 2.4;
  color: #444;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
}
.history-image-box {
  display: inline-block;
  background-color: #fff;
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.history-img-sign {
  max-height: 350px;
  width: auto;
}
.history-img-square {
  max-width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
}
.sub-english-title {
  display: block;
  font-family: var(--font-mincho);
  color: var(--c-gold);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  margin-bottom: 5px;
}
.history-title {
  font-family: var(--font-mincho);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--c-gold);
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 0;
  color: var(--c-black);
}
.company-profile-list {
  border-top: 1px solid #e0e0e0;
  border-color: #e0e0e0 !important;
}
.profile-row {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
}
.profile-row dt {
  width: 140px;
  font-weight: bold;
  color: var(--c-black);
  padding-left: 10px;
}
.profile-row dd {
  flex: 1;
  margin-bottom: 0;
  color: #444;
}
.company-section img {
  transition: opacity 0.3s;
}
.company-section img:hover {
  opacity: 0.8;
}
.content-line-height {
  line-height: 2.0;
}
.caption-text {
  font-size: 0.75rem;
  color: #888;
  font-family: var(--font-gothic);
}
.rotate-style {
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.rotate-style:hover {
  transform: rotate(0deg) scale(1.02);
}
.shop-link-title {
  letter-spacing: 0.1em;
  color: #666;
}
@media (max-width: 767px) {
  .about-hero-wrapper {
    height: 300px;
  }
  .vertical-text-hero {
    font-size: 1.6rem;
    letter-spacing: 0.2em;
  }
  .decorative-frame {
    padding: 25px 20px;
  }
  .about-lead-text p {
    text-align: left !important;
    line-height: 2.0;
  }
  .profile-row {
    flex-direction: column;
    padding: 15px 0;
  }
  .profile-row dt {
    margin-bottom: 5px;
    color: var(--c-gold);
  }
  .history-img-sign {
    max-height: 250px;
  }
}
/* ===================================================
   4. Maintenance (Knowledge) Page
   =================================================== */
.img-uniform-box {
  width: 100%;
  height: 260px;
  padding: 20px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-label {
  background-color: var(--c-gold);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-family: 'Shippori Mincho', serif;
  display: inline-block;
}
/* ページ内リンクナビゲーション */
.page-anchor-nav a {
  position: relative;
  display: block;
  padding: 5px 0;
  transition: color 0.3s;
}
.page-anchor-nav a:hover {
  color: var(--c-gold) !important;
}
.page-anchor-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 50%;
  background-color: var(--c-gold);
  transition: all 0.3s ease-in-out;
}
.page-anchor-nav a:hover::after {
  width: 100%;
  left: 0;
}
.btn-video-link {
  font-size: 0.75rem;
  text-decoration: none !important;
  border-color: var(--c-gold) !important;
  transition: all 0.3s ease;
  background-color: transparent;
  color: #6c757d;
}
.btn-video-link:hover {
  background-color: var(--c-gold);
  color: #fff !important;
}
.step-prep-box {
  border-left: 3px solid var(--c-gold);
}
.text-sub-note {
  font-size: 0.75rem;
  opacity: 0.8;
}
.step-description {
  line-height: 2.2;
}
.step-img-sm {
  max-height: 180px;
}
.desc-line-height {
  line-height: 2.0;
}
.care-list {
  line-height: 2.2;
}
.care-list li {
  text-indent: -1em;
}
.care-card.card-border-top-gold {
  border-top: 4px solid var(--c-gold) !important;
}
.care-card.card-border-top-danger {
  border-top: 4px solid #d9534f !important;
}
@media (max-width: 767px) {
  .img-uniform-box {
    height: auto;
    min-height: 200px;
    padding: 15px;
  }
  .pl-md-5, .px-md-4 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}
/* ===================================================
   5. Repair Page
   =================================================== */
.table-gold {
  border: 1px solid rgba(184, 158, 103, 0.4) !important;
}
.table-gold th, .table-gold td {
  border: 1px solid rgba(184, 158, 103, 0.2) !important;
  vertical-align: middle;
}
.table-gold thead th {
  background-color: #f9f7f2;
  color: var(--c-black);
  border-bottom: 2px solid rgba(184, 158, 103, 0.4) !important;
}
.table-gold td.bg-light {
  background-color: #fdfdfd !important;
}
.table-gold .bg-light {
  background-color: #f9f7f2 !important;
}
.price-table th, .price-table td {
  vertical-align: middle !important;
}
.border-left.border-gold {
  border-left: 4px solid var(--c-gold) !important;
  padding-left: 15px !important;
}
.card-header {
  background-color: transparent;
}
.bg-light-gold {
  background-color: #fcfbf9 !important;
}
.bg-highlight-white {
  background-color: #fffefb !important;
}
.bg-light-warning {
  background-color: #fffbf2 !important;
}
.policy-check-list {
  line-height: 2.2;
}
.shop-list-box {
  display: inline-block;
  width: 100%;
  max-width: 400px;
  text-align: left;
}
.address-box {
  font-style: normal;
  line-height: 1.8;
}
.payment-info-box {
  line-height: 2.0;
}
.text-note {
  font-size: 0.75rem;
  opacity: 0.8;
}
.privacy-notice {
  line-height: 1.8;
}
.file-note {
  font-size: 0.75rem;
}
@media (max-width: 767px) {
  .table-responsive {
    border: 0;
  }
  .contact-info-section .p-5 {
    padding: 2rem !important;
  }
}
/* ===================================================
   6. Shop Info Page
   =================================================== */
.map-container iframe {
  border: 0;
  min-height: 300px;
}
.dept-card {
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.dept-img {
  max-height: 200px;
  width: auto;
}
.dept-info {
  line-height: 1.8;
}
.guide-grid-full {
    border-bottom: none !important;
}
.guide-grid-full .guide-col::after {
    display: none !important; /* 中央の縦線を消す */
}
.guide-grid-full .guide-col {
    border-bottom: 1px solid rgba(184, 158, 103, 0.3);
}
@media (max-width: 767px) {
    .guide-grid-full .guide-col {
        border-bottom: 1px dashed rgba(184, 158, 103, 0.4) !important;
    }
}


/* ===================================================
   7. Catalog Download Section (固定ページ用)
   =================================================== */
.catalog-cta-section {
  position: relative;
  z-index: 1;
}

.catalog-modern-wrap .border-gold-top {
  border-top: 5px solid var(--c-gold);
  overflow: visible !important;
}

.category-catalog-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* バナーリンク共通設定 */
.cat-banner-link {
  position: relative;
  height: 180px;
  background-color: var(--c-light);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(184, 158, 103, 0.2);
  display: block;
  overflow: hidden;
}

.cat-banner-link .bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s ease;
}

.cat-banner-link::after {
  content: '';
  position: absolute;
  top: 10px; right: 10px; bottom: 10px; left: 10px;
  border: 1px solid rgba(184, 158, 103, 0.3);
  z-index: 4;
  pointer-events: none;
  transition: all 0.4s ease;
}

.cat-banner-link:hover::after {
  top: 15px; right: 15px; bottom: 15px; left: 15px;
  border-color: var(--c-gold);
}

.overlay-base {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.4s;
}

.overlay-grad {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.6) 100%);
}

.cat-banner-link:hover .bg-img { transform: scale(1.08); }
.cat-banner-link:hover .overlay-base { background: rgba(0, 0, 0, 0.15); }

.cat-title {
  font-family: var(--font-mincho);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--c-white) !important;
  z-index: 5;
  margin-bottom: 12px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  padding-bottom: 8px;
  text-align: center;
}

.btn-label {
  font-family: var(--font-gothic);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 3px 18px;
  border: 1px solid var(--c-white);
  background: rgba(0, 0, 0, 0.4);
  display: inline-block;
  color: var(--c-white) !important;
  backdrop-filter: blur(2px);
}

/* --- Catalog Main Item (3カラムのカード) --- */
.catalog-main-item {
  display: block;
  text-decoration: none !important;
  background-color: #ffffff;
  position: relative;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              background-color 0.4s ease;
  z-index: 1;
  opacity: 1 !important; /* ★不透明を維持 */
}

.catalog-main-item .cta-inner-content {
  padding: 60px 40px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* ホバー時のカード挙動 */
.catalog-main-item:hover {
  z-index: 50;
  transform: translateY(-15px) scale(1.05);
  background-color: #f0ede6;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(184, 158, 103, 0.1);
  opacity: 1 !important; /* ★半透明化を防止 */
}

/* ホバー時の下線アニメーション連動 */
.catalog-main-item:hover .action-line {
  width: 130%;
  background-color: var(--c-black);
}

/* ホバー時のテキスト色連動 */
.catalog-main-item:hover .action-text {
  color: var(--c-black) !important;
  opacity: 1 !important;
}

.category-eng {
  font-size: 0.65rem;
  color: var(--c-gold) !important;
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
  display: block;
  font-family: var(--font-mincho);
}

.catalog-main-item h4 {
  font-size: 1.3rem;
  color: var(--c-black);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.catalog-main-item p {
  font-size: 0.8rem;
  color: #666;
  line-height: 2.0;
  margin-bottom: 3rem;
  flex-grow: 1;
}

.catalog-main-item:hover h4 {
  color: var(--c-black) !important;
}

.watermark-text { display: none; }

.catalog-modern-wrap .border-right {
  border-right: 1px solid rgba(184, 158, 103, 0.15) !important;
}

@media (max-width: 991px) {
  .catalog-main-item .cta-inner-content {
    padding: 40px 20px !important;
  }
  .catalog-main-item:hover {
    transform: translateY(-8px) scale(1.02);
    opacity: 1 !important;
  }
  .catalog-modern-wrap .border-right {
    border-right: none !important;
    border-bottom: 1px solid rgba(184, 158, 103, 0.15) !important;
  }
}

.vertical-text {
  writing-mode: vertical-rl !important;
  text-orientation: upright !important;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  font-family: var(--font-mincho);
  display: block;
  margin: 0 auto;
}
/* カート追加モーダル */
.cart-confirm-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.cart-confirm-modal.is-visible {
    display: flex;
}
.cart-modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.cart-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    z-index: 2;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: fadeUp 0.3s ease;
}
.cart-modal-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
}
.close-cart-modal {
    position: absolute;
    top: -10px; right: 0;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}
.close-cart-modal:hover { color: #333; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ===================================================
   YouTube Responsive Classes (New)
   =================================================== */
.yt-responsive-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
}
.yt-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 767px) {
    .text-center .btn-group.btn-group-sm {
        display: flex !important;
        width: 100% !important;
    }
    .text-center .btn-group.btn-group-sm .btn {
        flex: 1 1 50% !important;
        width: 50% !important;
        min-width: 0 !important; /* ★ここで220pxの縛りを解除！ */
        white-space: nowrap !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ===================================================
   10. Product Category Page (Taxonomy) - Final Fix
   =================================================== */

/* 商品画像ボックス（既存維持） */
.prod-img-box {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}
.prod-img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* --- 新しいカテゴリーカードデザイン (クラス名変更版) --- */

/* カードリンク全体 */
a.cat-nav-card-link {
    display: block !important;
    background-color: #fff !important;
    text-decoration: none !important;
    border: 1px solid #eee !important;
    border-radius: 4px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    color: inherit !important;
}

/* ホバー時 */
a.cat-nav-card-link:hover {
    background-color: #fff !important;
    border-color: #b89e67 !important; /* 金色 */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* カード内部コンテナ */
.cat-nav-card-inner {
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
}

/* ラベル (CATEGORY) */
.cat-nav-label {
    display: block;
    font-size: 0.65rem;
    color: #b89e67;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    opacity: 0.8;
}

/* タイトル (カテゴリー名) */
.cat-nav-title {
    display: block;
    font-size: 1.0rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: 500;
}

/* 矢印アイコン */
.cat-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #ccc;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

/* ホバー時に矢印も色づく */
a.cat-nav-card-link:hover .cat-nav-arrow {
    background-color: #b89e67;
    color: #fff;
}

/* スマホ調整 */
@media (max-width: 767px) {
    .cat-nav-card-inner {
        padding: 15px 10px;
        min-height: 100px;
    }
    .cat-nav-title {
        font-size: 0.9rem;
    }
}

/* ===================================================
   11. Product Catalog List View (Final Refined)
   =================================================== */

/* カタログアイテム（カード全体） */
.catalog-item-row {
    position: relative;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    margin-bottom: 3rem;
    padding: 2.5rem !important;
    border-radius: 4px;
}

/* 画像エリアのラッパー */
.catalog-img-grid {
    display: flex;
    gap: 20px;
    height: 100%;
    align-items: center;     /* 上下中央揃え */
    justify-content: center; /* 左右中央揃え */
}

/* ★修正: 1枚表示のときは、画像に合わせてコンテナを縮める */
.catalog-img-grid.has-one-image .zoom-container {
    width: auto;            /* 幅なりゆき */
    max-width: 100%;
    height: auto;           /* 高さなりゆき */
    display: inline-block;  /* 画像サイズにフィットさせる */
}

/* 1枚画像のimgタグサイズ指定 */
.catalog-img-grid.has-one-image .zoom-container img {
    max-height: 300px; /* ★ 高さを最大300pxに制限（これ以上は大きくならない） */
    height: auto;      /* ★ 横幅が縮んだら高さも自動で縮める */
    width: auto;       /* 幅はなりゆき */
    max-width: 100%;   /* 親要素からはみ出さない */
}

/* 2枚表示（こちらはレイアウト優先で固定枠のままが良い場合が多いが、同様に調整可） */
.catalog-img-grid.has-two-images .zoom-container {
    width: calc(50% - 10px);
    height: 250px;
}
.catalog-img-grid.has-two-images .zoom-container img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}


/* ★ズームコンテナ */
.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    background-repeat: no-repeat;
    background-color: #fff;
    border: 1px solid #eee;
    
    /* 枠の余白 */
    padding: 15px; 
    
    /* 背景画像をパディングの内側に留める設定 */
    background-origin: content-box;
    background-clip: content-box;
    
    background-size: 0; 
    background-position: center;
    transition: border-color 0.3s ease;
    
    /* コンテナ自体を丸くするなら */
    border-radius: 2px;
}

.zoom-container:hover {
    border-color: #ccc;
}

/* ズーム発動時 */
.zoom-container.is-active {
    background-size: 200%; 
}

/* 通常時の画像 */
.zoom-container img {
    display: block;
    /* paddingはコンテナ側にあるので0 */
    padding: 0; 
    transition: opacity 0.2s;
    pointer-events: none;
    opacity: 1;
}

/* ズーム時はimgタグを消す */
.zoom-container.is-active img {
    opacity: 0;
}

/* 右側情報エリア */
.catalog-info {
    position: relative;
    padding-left: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 上下中央揃え */
}

/* 商品説明文 */
.catalog-description {
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* 価格表テーブル */
.catalog-price-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 0;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 0.9rem;
    /* ★テーブル自体の上の線を、他の線と同じ色・太さに指定 */
    border-top: 1px solid #f5f5f5; 
}

.catalog-price-table thead th {
    border-bottom: 1px solid #ccc;
    background-color: transparent;
    color: #333;
    font-weight: normal;
    padding: 10px;
    white-space: nowrap;
    font-size: 0.8rem;
}

/* ★thead（項目行）がある場合、テーブル自体のborder-topを消す（二重線を防ぐ） */
.catalog-price-table thead + tbody {
    border-top: none;
}

.catalog-price-table tbody td {
    border-bottom: 1px solid #f5f5f5;
    padding: 12px 10px;
    vertical-align: middle;
    color: #333;
}

/* ★一番上の行のセルにある上線を消す（二重線を防ぐ） */
.catalog-price-table tbody tr:first-child td {
    border-top: none;
}

/* ★もしBootstrapの .table クラスが tbody 全体に線を引いている場合の対策 */
.catalog-price-table > tbody {
    border-top: none !important;
}

.text-gold {
    color: #b89e67 !important;
    font-feature-settings: "palt";
}

.catalog-price-table-wrapper {
    margin-bottom: 2rem;
}
.catalog-price-table-wrapper:last-child {
    margin-bottom: 0;
}

/* カテゴリー一覧スタイル */
a.cat-nav-card-link {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}
a.cat-nav-card-link.is-active {
    background-color: #fff !important;
    border: 1px solid #b89e67 !important;
    box-shadow: 0 5px 15px rgba(184, 158, 103, 0.25) !important;
    transform: translateY(-2px);
    pointer-events: none;
    position: relative;
}
a.cat-nav-card-link.is-active::after {
    content: 'CURRENT';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    color: #fff;
    background-color: #b89e67;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.1em;
}
a.cat-nav-card-link.is-active .cat-nav-title {
    color: #b89e67;
    font-weight: bold;
}
a.cat-nav-card-link.is-active .cat-nav-arrow {
    background-color: #b89e67;
    color: #fff;
}

/* スマホ対応 */
@media (max-width: 991px) {
    .catalog-item-row {
        padding: 1.5rem !important;
    }
    .zoom-container {
        padding: 0!important;
    }
    .catalog-info {
        padding-left: 0;
        margin-top: 1rem;
    }
    .catalog-img-grid {
        flex-wrap: wrap;
    }
    .catalog-img-grid.has-one-image .zoom-container {
        /* スマホでは少し小さくてもいいかも */
        max-width: 100%;
    }
    .catalog-img-grid.has-one-image .zoom-container img {
        width: 100%;   /* 横幅を親要素に合わせる */
        height: auto;  /* 高さを自動にして比率を保つ */
        max-width: 100%;
    }
    .catalog-img-grid.has-two-images .zoom-container {
        height: 200px;
    }
}
/* ===================================================
   Product Buttons (Order & Back) - High-End Design
   =================================================== */

/* 共通設定: ボタンコンテナ */
.catalog-info .text-right {
    margin-top: 2.5rem !important; /* 価格表との距離を空ける */
}

/* --- 1. 注文ボタン (Primary CTA) --- */
.btn-order-link {
    display: inline-block;
    position: relative;
    background-color: #b89e67; /* ブランドカラーの金 */
    color: #fff !important;
    border: 1px solid #b89e67;
    padding: 14px 45px;
    min-width: 260px; /* 幅を持たせて堂々と */
    border-radius: 0; /* 角丸なし（和風モダン） */
    text-decoration: none !important;
    font-size: 1.0rem;
    font-family: "Yu Mincho", "YuMincho", serif;
    letter-spacing: 0.1em; /* 文字間を広げて高級感 */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: none; /* 安っぽい影は消す */
    cursor: pointer; /* ボタンタグ用に追加 */
}

/* ホバーエフェクト: 白抜きに反転 */
.btn-order-link:hover {
    background-color: #fff;
    color: #b89e67 !important;
    transform: translateY(-2px); /* わずかに浮く */
    box-shadow: 0 10px 20px rgba(184, 158, 103, 0.15); /* 上品な影 */
}

/* アイコンの間隔調整 */
.btn-order-link i {
    margin-right: 12px;
    font-size: 0.9em;
    position: relative;
    top: -1px;
}

/* スマホ対応 */
@media (max-width: 767px) {
    .btn-order-link {
        width: 100%; /* スマホでは幅いっぱい */
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .catalog-info .text-right {
        text-align: center !important; /* スマホでは中央寄せ */
    }
}


/* ===================================================
   ★ここから追加: カート追加確認モーダル (Cart Confirm Modal)
   =================================================== */

/* モーダル全体 */
.cart-confirm-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    font-family: "Yu Mincho", "YuMincho", serif;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.cart-confirm-modal.is-visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* 背景の黒幕 */
.cart-modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* 白いコンテンツボックス */
.cart-modal-content {
    background: #fff;
    width: 90%;
    max-width: 540px; /* PCで見やすい幅 */
    z-index: 2;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.cart-confirm-modal.is-visible .cart-modal-content {
    transform: translateY(0);
}

/* モーダルタイトル */
.cart-modal-header {
    margin-bottom: 30px;
    font-size: 1.4rem;
    color: #b89e67;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* 閉じるボタン (×) */
.close-cart-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #ccc;
    line-height: 1;
    transition: color 0.3s;
}
.close-cart-modal:hover { color: #b89e67; }


/* ===================================================
   モーダル内ボタンレイアウト (サイズ統一・隙間調整)
   =================================================== */

.modal-btn-wrap {
    display: flex;
    flex-direction: column; /* スマホは縦並び */
    gap: 20px; /* ★ボタン間の隙間を確保 */
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 30px;
}

/* モーダル内ボタンの共通設定 */
.modal-btn-wrap .btn-base {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; 
    max-width: 320px; /* スマホで広がりすぎない制限 */
    height: 60px;     /* ★高さを固定して揃える */
    margin: 0;        /* 余白はgapで管理 */
    padding: 0; 
    box-sizing: border-box;
    text-decoration: none !important;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* PC表示（タブレット以上） */
@media (min-width: 768px) {
    .cart-modal-content {
        padding: 60px 50px;
    }
    .modal-btn-wrap {
        flex-direction: row; /* ★横並び */
        gap: 20px;           /* ★横の隙間 */
    }
    .modal-btn-wrap .btn-base {
        width: 100%; 
        max-width: none;
        flex: 1; /* ★2つのボタンを等幅にする */
    }
}

/* アニメーション定義 */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   12. Product Image Zoom Container (Final Fix)
   =================================================== */

/* ★ズームコンテナ */
.zoom-container {
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-color: #fff;
    border: 1px solid #eee;
    
    /* 枠の余白（この部分の色が変わります） */
    padding: 20px; 
    
    background-size: 0; 
    background-position: center;
    
    /* アニメーション設定 */
    transition: 
        border-color 0.4s ease,
        background-color 0.4s ease,
        box-shadow 0.4s ease;
    
    border-radius: 0; 

    /* ★修正: 色を白に変更した虫眼鏡カーソル (stroke='%23ffffff') */
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cfilter id='shadow'%3E%3CfeDropShadow dx='1' dy='1' stdDeviation='1' flood-color='rgba(0,0,0,0.5)'/%3E%3C/filter%3E%3Cg filter='url(%23shadow)'%3E%3Ccircle cx='10' cy='10' r='7'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='15' y2='15'%3E%3C/line%3E%3Cline x1='10' y1='7' x2='10' y2='13'%3E%3C/line%3E%3Cline x1='7' y1='10' x2='13' y2='10'%3E%3C/line%3E%3C/g%3E%3C/svg%3E") 12 12, zoom-in;
}

/* ホバー時のスタイル（ベージュ背景・金枠・影） */
.zoom-container:hover {
    border-color: #b89e67;          /* 有次の金色 */
    background-color: #fbf8f1;      /* 生成り色（ベージュ） */
    box-shadow: 0 10px 30px rgba(184, 158, 103, 0.15); 
}

/* ズーム発動時 */
.zoom-container.is-active {
    background-size: 200%; 
    /* ズーム中はカーソルを変える（白の十字） */
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cfilter id='shadow'%3E%3CfeDropShadow dx='1' dy='1' stdDeviation='1' flood-color='rgba(0,0,0,0.5)'/%3E%3C/filter%3E%3Cpath filter='url(%23shadow)' d='M12 5v14M5 12h14'/%3E%3C/svg%3E") 16 16, crosshair;
}

/* 通常時の画像 */
.zoom-container img {
    display: block;
    padding: 0; 
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
    pointer-events: none;
    opacity: 1;
    /* 画像の白背景を透過させてベージュと馴染ませる（乗算） */
    mix-blend-mode: multiply; 
}

/* ズーム時はimgタグを消す */
.zoom-container.is-active img {
    opacity: 0;
}


/* ===================================================
   13. Variant Select Modal (Popover) - Refined
   =================================================== */

.order-btn-wrapper {
    position: relative; /* モーダルの基準位置 */
}

/* モーダル本体 */
.variant-select-modal {
    display: none; /* 初期状態は非表示 */
    position: absolute;
    bottom: 100%; /* ボタンの上に表示 */
    right: 0;
    width: 380px; /* 幅を少し広げて見やすく */
    max-width: 90vw;
    background: #fff;
    border: 1px solid #b89e67;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 100;
    margin-bottom: 12px;
    text-align: left;
    border-radius: 2px;
}

/* 吹き出しの矢印 */
.variant-select-modal::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 40px; /* ボタンの真ん中あたりに来るように調整 */
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #b89e67 transparent transparent transparent;
}

/* 表示時のクラス */
.variant-select-modal.is-visible {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ヘッダー */
.variant-modal-header {
    background-color: #fbf8f1; /* 薄い金背景 */
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.close-variant-modal {
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    color: #999;
    padding: 0 5px;
}
.close-variant-modal:hover {
    color: #333;
}

/* リスト */
.variant-list {
    max-height: 300px;
    overflow-y: auto;
    /* スクロールバー装飾 */
    scrollbar-width: thin;
    scrollbar-color: #ddd #f9f9f9;
}
.variant-list::-webkit-scrollbar {
    width: 6px;
}
.variant-list::-webkit-scrollbar-track {
    background: #f9f9f9; 
}
.variant-list::-webkit-scrollbar-thumb {
    background-color: #ddd; 
    border-radius: 3px;
}

.variant-list li {
    border-bottom: 1px solid #f0f0f0;
}
.variant-list li:last-child {
    border-bottom: none;
}

/* 行のスタイル（リンク・非リンク共通） */
.variant-link, 
.variant-link.disabled-row {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 14px 18px;
    text-decoration: none !important;
    color: #333;
    transition: background-color 0.2s;
    font-family: "Yu Gothic", "YuGothic", sans-serif;
    line-height: 1.4;
}

/* ホバー（有効な行のみ） */
a.variant-link:hover {
    background-color: #fcfcfc;
}

/* --- レイアウト詳細 --- */

/* 左側：商品名とサイズ */
.v-info {
    flex: 1; /* 余白を埋める */
    margin-right: 15px;
}

.v-name {
    display: block;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.v-size {
    font-size: 0.8rem;
    color: #888;
    display: inline-block;
}

/* 右側：価格 */
.v-price-box {
    text-align: right;
    white-space: nowrap; /* 価格は折り返さない */
}
.v-price {
    font-weight: bold;
}

/* 無効な行（グレー網掛け） */
li.is-disabled .variant-link,
.variant-link.disabled-row {
    background-color: #f2f2f2; /* グレー背景 */
    color: #aaa;
    cursor: not-allowed;
    pointer-events: none; /* クリック無効化 */
}
li.is-disabled .v-name,
li.is-disabled .v-price {
    color: #aaa; /* 文字色も薄く */
    font-weight: normal;
}

/* スマホ対応 */
@media (max-width: 767px) {
    .variant-select-modal {
        right: 50%;
        transform: translateX(50%);
        bottom: 115%;
        width: 92vw;
        max-width: none;
    }
    .variant-select-modal::after {
        right: 50%;
        margin-right: -4px;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translate(50%, 5px); }
        to { opacity: 1; transform: translate(50%, 0); }
    }
}

/* 注釈（Catalog Notes）スタイル */
.catalog-notes {
    line-height: 1.6;
    color: #777;
    margin-top: 0.5rem;
    padding-left: 0.5em;
    border-left: 2px solid #eee;
}

/* --- 固定ボタンのスタイル --- */
.floating-order-btn {
    position: fixed;
    top: 110px;
    left: 30px;
    z-index: 9999;
    display: none; /* 初期は非表示 (JSで制御) */
    align-items: center;
    justify-content: flex-start; /* 左揃えでアイコン固定 */
    background-color: #b89e67; /* ブランドカラー(金) */
    color: #fff !important;
    text-decoration: none !important;
    width: 60px;  /* 通常時の幅 */
    height: 60px; /* 高さ */
    border-radius: 30px; /* 丸くする */
    overflow: hidden; /* テキストを隠す */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* 滑らかな動き */
    box-shadow: 0 5px 15px rgba(184, 158, 103, 0.4);
}

/* アイコンエリア */
.floating-order-btn .f-btn-icon {
    width: 60px; /* アイコンエリアは常に固定幅 */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0; /* 縮小させない */
    position: relative;
}

/* 商品数バッジ */
.cart-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #d9534f; /* 赤 */
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 50%;
    text-align: center;
    font-family: sans-serif;
    display: none; /* 数があれば表示 */
}

/* テキストエリア */
.floating-order-btn .f-btn-text {
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding-right: 25px; /* 右側の余白 */
}

/* --- PCホバー時：Pill状に伸びる --- */
@media (min-width: 992px) {
    .floating-order-btn:hover {
        width: 200px; /* 伸ばす幅 */
        background-color: #a38b55; /* 少し濃く */
    }
    .floating-order-btn:hover .f-btn-text {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- スマホ調整 --- */
@media (max-width: 991px) {
    .floating-order-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    .floating-order-btn .f-btn-icon {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }
    /* スマホではテキストを表示しない（ホバー効果無効） */
    .floating-order-btn .f-btn-text {
        display: none;
    }
}

/* ===================================================
   14. Order Form: Layout & Guidance Card
   =================================================== */

/* 案内カードのベース */
.order-guidance-card {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

/* 区切り線（破線） */
.border-gold-thin-dashed {
    border-top: 1px dashed rgba(184, 158, 103, 0.4);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* --- タイトルの網掛けデザイン --- */
.h-guidance-title {
    background: #f4f4f4; /* 薄いグレーの網掛け */
    padding: 15px;
    display: inline-block;
    width: 100%;
    border-radius: 4px;
}

/* --- PC：十字線で区切るレイアウト --- */
.guidance-grid {
    /*margin-top: 2rem;*/
}

.guidance-col {
    padding: 40px !important;
    position: relative;
}

/* 縦の区切り線 */
.guidance-col:nth-child(odd)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: rgba(184, 158, 103, 0.3);
}

/* 横の区切り線（上2つ） */
.guidance-col:nth-child(1),
.guidance-col:nth-child(2) {
    border-bottom: 1px solid rgba(184, 158, 103, 0.3);
}

/* --- スマホ：点線で区切るレイアウト --- */
@media (max-width: 767px) {
    .guidance-col {
        padding: 25px 15px !important;
        border-bottom: 1px dashed rgba(184, 158, 103, 0.4) !important;
    }
    
    .guidance-col:last-of-type {
        border-bottom: none !important;
    }

    /* PC用の線を消す */
    .guidance-col::after {
        display: none;
    }
    .guidance-col:nth-child(1),
    .guidance-col:nth-child(2) {
        border-bottom: 1px dashed rgba(184, 158, 103, 0.4) !important;
    }
}

/* アイコンボックス基本設定 */
.display-4 {
    font-size: 2.2rem;
}

/* 注意書きアラート（PC/共通） */
.alert.border-gold-thin {
    border: 1px solid rgba(184, 158, 103, 0.3) !important;
}


/* ===================================================
   15. Order Form: Flow Chart (Responsive Optimized)
   =================================================== */

/* PC：中央に寄せる設定 */
.order-flow-chart {
    justify-content: center !important; /* 幅いっぱいではなく中央寄せ */
    /*gap: 20px;*/ /* ステップと矢印の間の余白 */
    max-width: 900px;
    margin: 0 auto;
}

.flow-step {
    flex: 0 1 auto; /* 幅を固定せず中身に合わせる */
    min-width: 140px;
}

/* ステップ円 */
.step-circle {
    width: 50px; 
    height: 50px;
    border-radius: 50%;
    display: flex; 
    justify-content: center; 
    align-items: center;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 1.2rem;
    border: 1px solid #b89e67;
    background-color: #fff;
    color: #b89e67;
    margin: 0 auto 10px;
}

/* 矢印アイコン */
.flow-arrow {
    font-size: 1rem;
    opacity: 0.5;
    padding-bottom: 25px; /* テキストの高さ分、矢印を少し上に調整 */
}

/* スマホ対応：中央配置 ＋ 頭揃え */
@media (max-width: 767px) {
    .order-flow-wrapper {
        display: flex;
        justify-content: center; /* コンテナ全体を中央に */
    }

    .order-flow-chart {
        display: inline-flex !important; /* 中身の幅に合わせる */
        flex-direction: column;
        align-items: flex-start !important; /* ★ここが重要：左端（数字）を揃える */
        gap: 0;
        margin: 0 auto;
        padding-left: 10px; /* 全体的な微調整 */
    }

    .flow-step {
        display: flex;
        flex-direction: row; /* 横並びに戻す（左：円、右：テキスト） */
        align-items: center;
        text-align: left;
        width: auto;
        min-width: 0;
        padding: 5px 0;
    }

    .step-circle {
        margin: 0 15px 0 0 !important; /* 右側にだけ余白 */
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    /* スマホの矢印：円の中心にラインを合わせる */
    .flow-arrow {
        padding: 0;
        margin: 2px 0 2px 14px !important; /* 左マージンで円の真下に配置 */
        font-size: 0.75rem;
        opacity: 0.3;
        line-height: 1;
    }
}


/* ===================================================
   16. Order Form: Legal Buttons (Stylish)
   =================================================== */

.btn-legal-outline {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    min-width: 260px; /* ボタンの幅を揃える */
    text-align: center;
    border-radius: 4px;
}

.btn-legal-outline:hover {
    border-color: #b89e67;
    color: #b89e67;
    background-color: #fcfcfc;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

@media (max-width: 767px) {
    .btn-legal-outline {
        width: 100%;       /* スマホでは幅いっぱい */
        margin: 5px 0;     /* 上下の間隔 */
        min-width: 0;      /* 最小幅解除 */
        display: block;    /* ブロック要素にして縦積みに */
    }
}


/* ===================================================
   17. Order Form: International Alert (Align Top)
   =================================================== */

@media (max-width: 767px) {
    /* アラートボックス全体の調整 */
    .alert.border-gold-thin {
        padding: 20px 15px !important; 
        margin-top: 0 !important;      
        display: flex !important;      /* Flex維持（上揃えのため） */
        flex-direction: row !important;/* 横並び維持 */
        align-items: flex-start !important; /* ★上揃え */
        text-align: left !important; 
        height: auto !important;       
    }

    /* 親要素のカラム調整 */
    .col-12.mt-4 {
        margin-top: 1.5rem !important; 
        padding-top: 0 !important;    
    }

    /* アイコンボックスの調整 */
    .alert.border-gold-thin .icon-box {
        margin: 0 15px 0 0 !important; /* 右に余白 */
        padding: 0 !important;               
        min-width: 40px !important;
        width: auto !important;              
    }
}


/* ===================================================
   18. Order Form: Input Fields & Separators
   =================================================== */

/* 日付選択 (カレンダー) */
input[type="date"].custom-input {
    appearance: none;
    -webkit-appearance: none;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background-color: #fbfbfb;
    border-radius: 0;
    font-family: inherit;
    color: #333;
    width: 100%;
    max-width: 100%;
}
input[type="date"].custom-input:focus {
    background-color: #fff;
    border-color: #b89e67;
    outline: none;
}

/* 数量・用途・削除ボタン共通 */
.list-qty, .list-use, .list-delete {
    border: 1px solid #ddd;
    background-color: #fff;
}
.list-qty:focus, .list-use:focus {
    border-color: #b89e67;
}
.list-delete {
    border-radius: 50%;
    line-height: 28px;
    width: 30px; 
    height: 30px;
    padding: 0;
}


/* ===================================================
   19. Order Form: Order Table (PC View)
   =================================================== */

.order-confirm-table thead th {
    background-color: #fbf8f1;
    color: #555;
    font-weight: normal;
    border-bottom: 2px solid rgba(184, 158, 103, 0.2);
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}


/* ===================================================
   20. Order Form: Order Table (Mobile Card View)
   =================================================== */

@media (max-width: 767px) {
    .contents-box-wrapper,
    .order-guidance-card {
        padding: 30px 15px !important;
    }

    .order-confirm-table {
        display: block;
        width: 100%;
        border: 0;
        margin-bottom: 2rem;
    }
    .order-confirm-table thead { display: none; }
    .order-confirm-table tbody { display: block; width: 100%; }

    .order-confirm-table tr {
        display: block;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 20px;
        padding: 15px;
        position: relative;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .order-confirm-table td {
        display: block;
        width: 100%;
        padding: 4px 0 !important;
        text-align: left;
        border: none;
    }

    /* 各セル調整 */
    .order-confirm-table td:nth-child(1) { display: none; }
    .order-confirm-table td:nth-child(2) {
        font-weight: bold; font-size: 1rem; margin-bottom: 8px;
        border-bottom: 1px dashed #eee; padding-bottom: 10px !important; padding-right: 40px !important;
    }
    .order-confirm-table td:nth-child(3)::before { content: "サイズ："; color: #999; font-size: 0.8rem; }
    .order-confirm-table td:nth-child(4)::before { content: "価格："; color: #999; font-size: 0.8rem; }
    .order-confirm-table td:nth-child(4)::after { content: " 円"; font-size: 0.8rem; }
    .order-confirm-table td:nth-child(5) { display: inline-flex; width: 45%; align-items: center; margin-top: 10px; }
    .order-confirm-table td:nth-child(5)::before { content: "数量："; font-weight: bold; margin-right: 5px; font-size: 0.85rem; }
    .order-confirm-table td:nth-child(6) { display: inline-flex; width: 55%; align-items: center; margin-top: 10px; justify-content: flex-end; }
    .order-confirm-table td:nth-child(6)::before { content: "用途："; font-weight: bold; margin-right: 5px; font-size: 0.85rem; }
    
    .list-qty { width: 60px !important; text-align: center; }
    .list-use { width: 100%; max-width: 140px; }
    
    .order-confirm-table td:nth-child(7) { position: absolute; top: 10px; right: 10px; width: auto !important; }
}


/* ===================================================
   21. Order Form: Submit Button Styling
   =================================================== */

a.btn-submit-gold {
    display: block; 
    max-width: 300px;
    margin: 0 auto;   
    background-color: #b89e67 !important;
    border: 1px solid #b89e67 !important;
    color: #fff !important;
    font-family: "Noto Serif JP", serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none !important;
    border-radius: 0;
    transition: all 0.3s ease;
}
a.btn-submit-gold:hover {
    background-color: #fff !important;
    color: #b89e67 !important;
}

@media (max-width: 767px) {
    .submit-btn-wrapper {
        width: 100% !important;
        margin: 2rem 0 0 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }
    input.wpcf7-form-control.wpcf7-submit,
    input[type="submit"].btn-submit-gold,
    a.btn-submit-gold,
    .btn-submit-gold {
        width: 100% !important;         
        max-width: 100% !important;     
        min-width: 0 !important;        
        margin: 0 !important;           
        padding: 16px 0 !important;     
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }
}

/* ===================================================
   22. Global Fixes: Icon Conflicts
   =================================================== */

.icon-box .display-4, .icon-box .fas, .icon-box .far, .fa-stack .display-4 {
    font-weight: 900 !important;
    font-family: "Font Awesome 5 Free" !important;
}

/* ===================================================
   23. Shopping Guide Page Styling
   =================================================== */

/* グリッドレイアウト（十字線デザイン） */
.guide-grid {
    border-top: 1px solid rgba(184, 158, 103, 0.3);
    border-bottom: 1px solid rgba(184, 158, 103, 0.3);
}

.guide-col {
    padding: 40px !important;
    position: relative;
    /* 高さ揃え */
    display: flex;
    flex-direction: column;
}

/* 縦の区切り線（奇数番目の要素の右側） */
.guide-col:nth-child(odd)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 5%;
    height: 90%;
    width: 1px;
    background-color: rgba(184, 158, 103, 0.3);
}

/* 横の区切り線（1行目の下） */
.guide-col:nth-child(1),
.guide-col:nth-child(2) {
    border-bottom: 1px solid rgba(184, 158, 103, 0.3);
}

/* ステップバッジ（数字）のデザイン */
.step-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background-color: #b89e67;
    color: #fff;
    border-radius: 50%;
    font-family: "Yu Mincho", serif;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* スマホ対応：点線に変更して縦積みに */
@media (max-width: 767px) {
    .guide-grid {
        border-top: none;
        border-bottom: none;
    }

    .guide-col {
        padding: 30px 15px !important;
        border-bottom: 1px dashed rgba(184, 158, 103, 0.4) !important;
    }
    
    .guide-col:last-child {
        border-bottom: none !important;
    }

    /* PC用の縦線を消す */
    .guide-col:nth-child(odd)::after {
        display: none;
    }
    
    /* PC用の横線をリセット（点線で統一するため） */
    .guide-col:nth-child(1),
    .guide-col:nth-child(2) {
        border-bottom: 1px dashed rgba(184, 158, 103, 0.4) !important;
    }
}

/* ==============================================
   サイトマップ用スタイル (Rich Design)
   ============================================== */

/* リンクカード（全体） */
.sitemap-link-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1.5rem 2rem;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.05); /* 非常に薄い枠線 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); /* ふんわりした影 */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* ホバー時の動き */
.sitemap-link-card:hover {
    transform: translateY(-5px); /* 少し浮く */
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.15); /* 金色の影 */
    text-decoration: none;
    border-color: rgba(197, 160, 89, 0.3);
}

/* 左端のアクセントライン（ホバーで出現） */
.sitemap-link-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #c5a059; /* 有次ゴールド */
    transform: scaleY(0); /* 最初は隠す */
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.sitemap-link-card:hover::before {
    transform: scaleY(1); /* ホバーで伸びる */
    transform-origin: top;
}

/* テキストエリア */
.card-text-group {
    display: flex;
    flex-direction: column;
}

.card-ja {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.2rem;
    transition: color 0.3s;
    letter-spacing: 0.05em;
}

.card-en {
    font-size: 0.7rem;
    color: #999;
    font-family: "Yu Gothic", "游ゴシック", sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* アイコンエリア（右側の丸いボタン） */
.card-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ccc;
    font-size: 0.9rem;
}

/* ホバー時のテキスト・アイコン変化 */
.sitemap-link-card:hover .card-ja {
    color: #c5a059;
}

.sitemap-link-card:hover .card-icon-box {
    background: #c5a059;
    color: #fff;
    transform: translateX(5px);
}

/* セクション見出しの調整 */
.sitemap-section-head {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}
.sitemap-section-head::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: #c5a059;
    margin: 1rem auto 0;
    opacity: 0.5;
}

/* 戻るボタン */
.btn-sitemap-back {
    display: inline-block;
    border: 1px solid #333;
    background: #fff;
    color: #333;
    padding: 1rem 4rem;
    transition: all 0.3s;
    letter-spacing: 0.1em;
    text-decoration: none;
}
.btn-sitemap-back:hover {
    background: #333;
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

/* ==============================================
   採用情報ページ用 (Recruit Page)
   ============================================== */

/* 募集要項の定義リスト調整（店舗案内より少し余白を広めに） */
.recruit-list dt {
    padding-top: 0.5rem;
}
.recruit-list dd {
    padding-bottom: 0.5rem;
}

/* 応募先・お問い合わせボックス */
.recruit-contact-wrapper {
    background: #fff;
    border: 1px solid rgba(197, 160, 89, 0.3); /* ゴールドの薄い枠 */
    padding: 3rem 2rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.recruit-contact-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    display: inline-block;
}

.recruit-tel {
    font-size: 1.8rem;
    color: #333;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.recruit-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
}

/* ハローワークと本社問い合わせの区切り線（スマホでは消す） */
.recruit-divider {
    border-right: 1px solid #ddd;
}
@media screen and (max-width: 768px) {
    .recruit-divider {
        border-right: none;
        border-bottom: 1px solid #ddd;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
}

/* ===================================================
   Catalog FAX Order Banner (Stylish)
   =================================================== */
.catalog-fax-banner {
    border-top: 5px solid #b89e67; /* 上の3兄弟と線を揃える */
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}
/* ホバー時：少し浮いて影が濃くなる */
.catalog-fax-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(184, 158, 103, 0.1) !important;
}

/* FAXアイコンの丸い背景 */
.fax-icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #fcfbf9;
    border: 1px solid rgba(184, 158, 103, 0.2);
    border-radius: 50%;
    color: #b89e67;
    font-size: 1.5rem;
    transition: all 0.4s ease;
}
.catalog-fax-banner:hover .fax-icon-circle {
    background-color: #b89e67;
    color: #fff;
}

/* スタイリッシュなボタン */
.btn-outline-gold-chic {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid #b89e67;
    color: #b89e67;
    font-family: "Yu Mincho", "YuMincho", serif;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    background: transparent;
}
.catalog-fax-banner:hover .btn-outline-gold-chic {
    background-color: #b89e67;
    color: #fff;
}