/* ════════════════════════════════════════
   【④CSS編集】TUCSON SHOW 2026 | Purestone.com
   ════════════════════════════════════════ */

:root {
  --terracotta:  #C4714A;
  --adobe:       #B8553A;
  --sand:        #F0E0C4;
  --sandstone:   #E8CFA8;
  --dust:        #D4B896;
  --mesa:        #8B6355;
  --sage:        #7A9E7E;
  --sky:         #7EB8C8;
  --dusk:        #5A8FA0;
  --earth:       #3D2B1F;
  --bark:        #6B4C3B;
  --white:       #FAF6EF;
  --off-white:   #F5EDE0;
  --text-main:   #3D2B1F;
  --text-sub:    #7A6155;
  --text-light:  #A89080;
  --border:      #D4B896;
  --border-light: rgba(196,113,74,.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Serif JP', 'Source Sans 3', sans-serif;
  background: var(--white);
  color: var(--text-main);
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--sandstone); }
::-webkit-scrollbar-thumb { background: var(--terracotta); border-radius: 3px; }

/* ════════════════════════════════════════
   ヘッダー
   ════════════════════════════════════════ */
.lp-header {
  position: sticky; top: 0; z-index: 500;
  background: #fff;
  border-bottom: 2px solid var(--sandstone);
  box-shadow: 0 2px 16px rgba(61,43,31,.10);
}
.lp-header__inner {
  width: 100%; padding: 0 clamp(12px, 3vw, 48px);
  height: 68px; display: flex; align-items: center;
}
.lp-header__logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
  margin-right: clamp(16px, 3vw, 48px);
}
.lp-header__logo-img { height: 40px; width: auto; display: block; }
.lp-header__logo-text { align-items: baseline; gap: 1px; }
.lp-header__logo-p { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--earth); }
.lp-header__logo-dot { font-size: 14px; font-weight: 600; color: var(--terracotta); }
.lp-header__nav { display: flex; align-items: center; flex: 1; }
.lp-header__nav-link {
  padding: 0 clamp(10px, 1.5vw, 22px); height: 68px;
  display: flex; align-items: center;
  font-family: 'Source Sans 3', sans-serif; font-size: 13.5px; font-weight: 600;
  color: #444; text-decoration: none; letter-spacing: .5px;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s; white-space: nowrap;
}
.lp-header__nav-link:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.lp-header__right { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.lp-header__search {
  display: flex; align-items: center;
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 3px; overflow: hidden; margin-right: 8px;
}
.lp-header__search-input {
  border: none; background: transparent; padding: 6px 10px;
  font-size: 12.5px; color: var(--text-main);
  width: clamp(80px, 14vw, 200px); outline: none;
  font-family: 'Source Sans 3', sans-serif;
}
.lp-header__search-btn {
  background: none; border: none; padding: 6px 10px;
  cursor: pointer; color: var(--text-sub);
  display: flex; align-items: center; transition: color .2s;
}
.lp-header__search-btn:hover { color: var(--terracotta); }
.lp-header__icon-link {
  display: flex; flex-direction: column; align-items: center;
  gap: 1px; padding: 6px 10px; text-decoration: none;
  color: #555; transition: color .2s; border-radius: 3px;
}
.lp-header__icon-link:hover { color: var(--terracotta); background: var(--off-white); }
.lp-header__icon-label { font-size: 9px; letter-spacing: .5px; font-family: 'Source Sans 3', sans-serif; font-weight: 600; white-space: nowrap; }
.lp-header__cart {
  display: flex; flex-direction: column; align-items: center;
  gap: 1px; padding: 6px 14px;
  background: var(--terracotta); color: #fff;
  text-decoration: none; border-radius: 3px;
  transition: background .2s; margin-left: 4px;
}
.lp-header__cart:hover { background: var(--adobe); }
.lp-header__cart .lp-header__icon-label { color: #fff; }
.lp-header__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-left: 8px;
}
.lp-header__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--earth); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.lp-header__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-header__hamburger.open span:nth-child(2) { opacity: 0; }
.lp-header__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.lp-header__drawer {
  display: none; flex-direction: column;
  background: #fff; border-top: 1px solid var(--sandstone); padding: 8px 0 16px;
}
.lp-header__drawer.open { display: flex; }
.lp-drawer__link {
  padding: 13px clamp(16px, 4vw, 32px);
  font-family: 'Source Sans 3', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--text-main); text-decoration: none;
  border-bottom: 1px solid var(--off-white); transition: background .15s;
}
.lp-drawer__link:hover { background: var(--off-white); color: var(--terracotta); }
.lp-drawer__divider { height: 1px; background: var(--sandstone); margin: 8px 0; }

/* ════════════════════════════════════════
   告知バー
   ════════════════════════════════════════ */
.lp-announce-bar {
  background: var(--terracotta); color: #fff;
  padding: 10px 24px; display: flex; align-items: center;
  justify-content: center; gap: 16px; flex-wrap: wrap;
  font-family: 'Source Sans 3', sans-serif;
}
.lp-announce-bar__badge {
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4);
  padding: 2px 12px; font-size: 10px; font-weight: 700;
  letter-spacing: 3px; border-radius: 2px;
}
.lp-announce-bar__text { font-size: 13px; opacity: .95; }
.lp-announce-bar__cta {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #fff;
  border: 1px solid rgba(255,255,255,.6); padding: 4px 16px;
  text-decoration: none; border-radius: 2px; transition: background .2s;
}
.lp-announce-bar__cta:hover { background: rgba(255,255,255,.15); }

/* ════════════════════════════════════════
   共通パーツ
   ════════════════════════════════════════ */
.ts-label {
  display: block; font-family: 'Source Sans 3', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 5px;
  color: var(--terracotta); margin-bottom: 12px; text-transform: uppercase;
}
.ts-label--light { color: var(--sand); }
.ts-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700; line-height: 1.25;
  color: var(--earth); margin-bottom: 20px;
}
.ts-title em { font-style: italic; color: var(--terracotta); }
.ts-title--light { color: var(--white); }
.ts-body { font-size: 15px; line-height: 2; color: var(--text-sub); }
.ts-body--light { color: rgba(250,246,239,.8); }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.ts-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Source Sans 3', sans-serif; font-size: 13px;
  font-weight: 700; letter-spacing: 2px; text-decoration: none;
  padding: 14px 36px; border-radius: 3px; transition: all .25s;
}
.ts-btn--primary { background: var(--terracotta); color: #fff; border: 2px solid var(--terracotta); }
.ts-btn--primary:hover { background: var(--adobe); border-color: var(--adobe); }
.ts-btn--outline { background: transparent; color: var(--earth); border: 2px solid var(--earth); }
.ts-btn--outline:hover { background: var(--earth); color: #fff; }
.ts-btn--outline-dark { background: transparent; color: var(--white); border: 2px solid rgba(250,246,239,.5); }
.ts-btn--outline-dark:hover { background: rgba(250,246,239,.12); border-color: var(--white); }
.ts-btn--lg { padding: 18px 48px; font-size: 14px; }

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.ts-hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.ts-hero__bg { position: absolute; inset: 0; }
.ts-hero__bg-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #E8D5B4 0%, #DFC8A0 30%, #D4B888 55%, #C8A878 70%, #BF9868 80%, #B88858 90%, #A87848 100%);
}
.ts-hero__bg-mesa {
  position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(to bottom, transparent 0%, rgba(139,99,85,.25) 40%, rgba(184,85,58,.35) 100%);
}
.ts-hero__bg-ground {
  position: absolute; bottom: 0; left: 0; right: 0; height: 28%;
  background: linear-gradient(to bottom, rgba(107,76,59,.0) 0%, rgba(107,76,59,.55) 100%);
}
.ts-hero__bg-dust {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px; opacity: .6; pointer-events: none;
}
.ts-hero__content {
  position: relative; z-index: 2; width: 100%;
  padding: clamp(80px, 10vh, 120px) clamp(20px, 8vw, 120px) clamp(60px, 8vh, 100px);
  text-align: center;
}
.ts-hero__overline {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 28px;
  animation: fadeUp .7s ease forwards;
}
.ts-overline-line { height: 1px; width: 40px; background: var(--terracotta); }
.ts-overline-text { font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 5px; color: var(--terracotta); }
.ts-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 900; line-height: 1.15; color: var(--earth); margin-bottom: 20px;
  animation: fadeUp .7s ease forwards .1s; opacity: 0;
}
.ts-hero__title strong { color: var(--terracotta); font-style: italic; }
.ts-hero__sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(15px, 2vw, 18px); line-height: 1.8; color: var(--bark); margin-bottom: 36px;
  animation: fadeUp .7s ease forwards .2s; opacity: 0;
}
.ts-hero__sub-accent { background: var(--terracotta); color: #fff; padding: 2px 10px; border-radius: 2px; font-weight: 700; }
.ts-hero__stats {
  display: flex; align-items: center; justify-content: center; margin-bottom: 40px;
  background: rgba(250,246,239,.75); backdrop-filter: blur(4px);
  border: 1px solid rgba(196,113,74,.25); border-radius: 4px; padding: 20px 0;
  animation: fadeUp .7s ease forwards .3s; opacity: 0;
}
.ts-hero__stat { flex: 1; text-align: center; }
.ts-hero__stat-num { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: var(--terracotta); line-height: 1; }
.ts-hero__stat-num span { font-size: .55em; color: var(--bark); }
.ts-hero__stat-label { font-family: 'Source Sans 3', sans-serif; font-size: 11px; letter-spacing: 2px; color: var(--text-sub); margin-top: 4px; font-weight: 600; }
.ts-hero__stat-divider { width: 1px; height: 48px; background: var(--border); }
.ts-hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeUp .7s ease forwards .4s; opacity: 0; }
.ts-hero__strata { position: absolute; bottom: 0; left: 0; right: 0; height: 6px; display: flex; flex-direction: column; gap: 1px; }
.ts-strata-line { height: 2px; }
.ts-strata-line--1 { background: var(--terracotta); opacity: .7; }
.ts-strata-line--2 { background: var(--mesa); opacity: .5; }
.ts-strata-line--3 { background: var(--bark); opacity: .35; }

/* ════════════════════════════════════════
   STORY
   ════════════════════════════════════════ */
.ts-story { padding: 100px 0; background: var(--off-white); border-bottom: 1px solid var(--border); }
.ts-story__inner {
  width: 100%; padding: 0 clamp(16px, 4vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.ts-story__visual { position: relative; }
.ts-story__map-bg {
  border-radius: 4px; overflow: hidden; aspect-ratio: 4/3;
  position: relative; border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(61,43,31,.12);
}
.ts-story__card {
  position: absolute; background: var(--white);
  border: 1px solid var(--border); padding: 14px 20px;
  border-radius: 3px; box-shadow: 0 4px 16px rgba(61,43,31,.1);
}
.ts-story__card--1 { bottom: -20px; left: -20px; }
.ts-story__card--2 { top: -16px; right: -16px; }
.ts-story__card-num { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--terracotta); line-height: 1; }
.ts-story__card-text { font-size: 11px; letter-spacing: 1px; color: var(--text-sub); margin-top: 3px; font-family: 'Source Sans 3', sans-serif; }
.ts-story__points { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.ts-story__point {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px; background: var(--white);
  border: 1px solid var(--border-light); border-left: 3px solid var(--terracotta);
  border-radius: 0 3px 3px 0;
}
.ts-story__point-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  background: rgba(196,113,74,.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ts-story__point-text { display: flex; flex-direction: column; gap: 3px; }
.ts-story__point-text strong { font-size: 14px; font-weight: 700; color: var(--earth); font-family: 'Source Sans 3', sans-serif; }
.ts-story__point-text span { font-size: 13px; color: var(--text-sub); line-height: 1.6; }

/* ════════════════════════════════════════
   PRODUCT BROWSER
   ════════════════════════════════════════ */
.ts-browser { padding: 80px 0 100px; background: var(--white); }
.ts-browser__header { text-align: center; margin-bottom: 48px; padding: 0 clamp(16px, 4vw, 64px); }
.ts-browser__desc { font-family: 'Source Sans 3', sans-serif; font-size: 15px; color: var(--text-light); margin-top: 8px; }
.ts-browser__layout {
  width: calc(100% - clamp(32px, 8vw, 128px));
  margin: 0 auto; display: grid;
  grid-template-columns: clamp(180px, 20vw, 280px) 1fr;
  align-items: start; border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; min-height: 640px;
}

/* ── サイドバー ── */
.ts-sidebar {
  background: var(--off-white); border-right: 1px solid var(--border);
  position: sticky; top: 68px;
  height: calc(100vh - 80px); overflow-y: auto;
}
.ts-sidebar::-webkit-scrollbar { width: 3px; }
.ts-sidebar::-webkit-scrollbar-thumb { background: var(--border); }
.ts-sidebar__header {
  padding: 20px 20px 14px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--off-white); z-index: 2;
}
.ts-sidebar__title { font-family: 'Source Sans 3', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 5px; color: var(--terracotta); }
.ts-sidebar__sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.ts-sidebar__list { padding: 8px 0; }

/* 石種アイテム */
.gem-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px; cursor: pointer; transition: background .15s;
  border-bottom: 1px solid rgba(196,113,74,.06); position: relative;
}
.gem-item:hover { background: rgba(196,113,74,.06); }
.gem-item.active { background: rgba(196,113,74,.1); }
.gem-item.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--terracotta);
}
.gem-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color .15s;
}
.gem-item.active .gem-radio { border-color: var(--terracotta); }
.gem-item.active .gem-radio::after {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: var(--terracotta);
}
.gem-info { flex: 1; min-width: 0; }
.gem-name-ja { font-size: 13px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; transition: color .15s; }
.gem-item.active .gem-name-ja,
.gem-item:hover .gem-name-ja { color: var(--terracotta); }
.gem-name-en { font-family: 'Source Sans 3', sans-serif; font-size: 9px; letter-spacing: 2px; color: var(--text-light); margin-top: 1px; }
.gem-count { font-family: 'Source Sans 3', sans-serif; font-size: 10px; color: var(--text-light); flex-shrink: 0; }

/* ── 全石種セクションエリア ── */
.ts-all-sections {
  background: #fff;
  overflow-y: auto;
  height: calc(100vh - 80px);
  scroll-behavior: smooth;
}
.ts-all-sections::-webkit-scrollbar { width: 4px; }
.ts-all-sections::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* 初期ローディング */
.ts-sections-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 80px 24px;
  color: var(--text-light);
}

/* 各石種セクション */
.gem-section { border-bottom: 2px solid var(--sandstone); }

.gem-section__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 14px;
  position: sticky; top: 0; background: #fff; z-index: 10;
  border-bottom: 1px solid var(--sandstone);
}
.gem-section__title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: var(--earth);
}
.gem-section__title span {
  font-family: 'Source Sans 3', sans-serif; font-size: 11px;
  font-weight: 600; letter-spacing: 2px; color: var(--text-light);
  margin-left: 12px; vertical-align: middle;
}
.gem-section__actions { display: flex; align-items: center; gap: 12px; }
.gem-section__count { font-size: 12px; color: var(--text-light); font-family: 'Source Sans 3', sans-serif; }
.gem-section__viewall {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: #fff; background: var(--terracotta);
  padding: 5px 14px; border-radius: 2px;
  text-decoration: none; white-space: nowrap; transition: background .2s;
}
.gem-section__viewall:hover { background: var(--adobe); }
.gem-section__loading {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 40px 24px;
  color: var(--text-light); font-size: 13px;
  font-family: 'Source Sans 3', sans-serif;
}
.gem-section__empty {
  padding: 28px 24px; text-align: center;
  color: var(--text-light); font-size: 13px;
  font-family: 'Source Sans 3', sans-serif;
}

/* ── 商品グリッド ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--sandstone);
  animation: fadeInPanel .3s ease;
}
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
.product-card {
  background: #fff; display: block; text-decoration: none;
  color: inherit; cursor: pointer; overflow: hidden;
  transition: box-shadow .25s; position: relative;
}
.product-card:hover { box-shadow: inset 0 0 0 2px var(--terracotta); z-index: 2; }
.product-img-wrap { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--off-white); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; display: block; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-img-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--off-white), var(--sandstone));
}
.placeholder-icon { width: 48px; height: 48px; opacity: .3; }
.placeholder-text { font-family: 'Source Sans 3', sans-serif; font-size: 9px; letter-spacing: 3px; color: var(--text-light); font-weight: 700; }
.product-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(61,43,31,.7) 0%, transparent 55%);
  opacity: 0; transition: opacity .25s;
}
.product-card:hover .product-overlay { opacity: 1; }
.product-quick-btn {
  position: absolute; bottom: 48px; left: 50%;
  transform: translateX(-50%) translateY(6px);
  font-family: 'Source Sans 3', sans-serif; font-size: 9px;
  font-weight: 700; letter-spacing: 3px; color: #fff;
  background: var(--terracotta); padding: 7px 20px;
  white-space: nowrap; opacity: 0;
  transition: opacity .2s, transform .2s;
  border-radius: 2px;
}
.product-card:hover .product-quick-btn { opacity: 1; transform: translateX(-50%) translateY(0); }
.product-badge-new {
  position: absolute; top: 8px; left: 8px;
  font-family: 'Source Sans 3', sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 2px;
  color: #fff; background: var(--terracotta); padding: 3px 9px; border-radius: 2px;
}
.product-badge-sold {
  position: absolute; top: 8px; left: 8px;
  font-family: 'Source Sans 3', sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 2px;
  color: #fff; background: rgba(80,80,80,.75);
  border: 1px solid rgba(255,255,255,.3); padding: 3px 9px; border-radius: 2px;
  z-index: 3;
}

/* SOLD OUT カードをグレーアウト */
.product-card:has(.product-badge-sold) .product-img-wrap img {
  filter: grayscale(100%) opacity(0.25);
}
.product-card:has(.product-badge-sold) .product-img-wrap {
  background: #aaa;
}
.product-card:has(.product-badge-sold) {
  opacity: 0.5;
}
.product-body { padding: 10px 14px 12px; border-top: 1px solid var(--sandstone); }
.product-name {
  font-size: 12px; line-height: 1.5; color: var(--text-main);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; font-weight: 500;
}

/* ローディングスピナー */
.loading-spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--sandstone);
  border-top-color: var(--terracotta);
  border-radius: 50%; animation: spin 1s linear infinite;
}
.loading-text { font-family: 'Source Sans 3', sans-serif; font-size: 11px; letter-spacing: 4px; color: var(--text-light); font-weight: 600; }

/* ════════════════════════════════════════
   WHOLESALE
   ════════════════════════════════════════ */
.ts-wholesale {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--earth) 0%, var(--bark) 50%, #5A3A2A 100%);
  position: relative; overflow: hidden;
}
.ts-wholesale::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(250,246,239,.02) 2px, rgba(250,246,239,.02) 4px);
}
.ts-wholesale__inner { position: relative; width: 100%; padding: 0 clamp(16px, 4vw, 64px); }
.ts-wholesale__content { text-align: center; margin-bottom: 60px; }
.ts-wholesale__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.ts-wholesale__card { background: rgba(250,246,239,.07); border: 1px solid rgba(250,246,239,.12); padding: 32px 24px; border-radius: 3px; transition: background .25s; }
.ts-wholesale__card:hover { background: rgba(250,246,239,.12); }
.ts-wholesale__card-icon { width: 52px; height: 52px; background: rgba(196,113,74,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.ts-wholesale__card-title { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--sand); margin-bottom: 10px; }
.ts-wholesale__card-body { font-family: 'Source Sans 3', sans-serif; font-size: 13px; line-height: 1.8; color: rgba(250,246,239,.6); }

/* ════════════════════════════════════════
   CTA
   ════════════════════════════════════════ */
.ts-cta {
  padding: 100px clamp(20px, 5vw, 80px);
  background: linear-gradient(135deg, #E8D5B4, #D4B888);
  text-align: center; position: relative; overflow: hidden;
}
.ts-cta::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(196,113,74,.05) 60px, rgba(196,113,74,.05) 61px);
}
.ts-cta__inner { position: relative; width: min(720px, 100%); margin: 0 auto; }
.ts-cta__title { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 48px); font-weight: 700; color: var(--earth); margin-bottom: 16px; line-height: 1.25; }
.ts-cta__sub { font-family: 'Source Sans 3', sans-serif; font-size: 15px; color: var(--bark); margin-bottom: 40px; line-height: 1.8; }
.ts-cta__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════
   フッター
   ════════════════════════════════════════ */
footer { background: var(--earth); padding: 48px clamp(16px, 4vw, 64px); }
.ts-footer-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.ts-footer-logo { display: flex; align-items: baseline; gap: 2px; }
.ts-footer-logo__main { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--sand); }
.ts-footer-logo__dot { font-family: 'Source Sans 3', sans-serif; font-size: 12px; color: var(--terracotta); font-weight: 600; }
.ts-footer-tagline { font-family: 'Source Sans 3', sans-serif; font-size: 12px; letter-spacing: 2px; color: rgba(240,224,196,.4); }
.ts-footer-copy { font-family: 'Source Sans 3', sans-serif; font-size: 11px; color: rgba(240,224,196,.3); letter-spacing: 1px; }

/* ════════════════════════════════════════
   アニメーション
   ════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInPanel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(196,113,74,.5); } 50% { box-shadow: 0 0 0 8px rgba(196,113,74,.0); } }

/* ════════════════════════════════════════
   レスポンシブ
   ════════════════════════════════════════ */
@media (max-width: 960px) {
  .lp-header__nav, .lp-header__search, .lp-header__icon-link { display: none; }
  .lp-header__hamburger { display: flex; }
  .lp-header__cart { margin-left: auto; }
  .ts-story__inner { grid-template-columns: 1fr; gap: 40px; }
  .ts-story__card--1 { left: 0; bottom: -16px; }
  .ts-wholesale__grid { grid-template-columns: repeat(2, 1fr); }
  .ts-browser__layout {
    grid-template-columns: 1fr;
    width: calc(100% - clamp(16px, 4vw, 48px) * 2);
  }
  .ts-sidebar {
    position: static; height: auto; max-height: 240px;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .ts-sidebar__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .ts-all-sections { height: auto; max-height: none; overflow-y: visible; }
  .gem-item { border-bottom: none; border-right: 1px solid rgba(196,113,74,.06); }
}

@media (max-width: 640px) {
  .ts-hero__stats { flex-direction: column; gap: 0; padding: 16px; }
  .ts-hero__stat-divider { width: 60%; height: 1px; margin: 0 auto; }
  .ts-sidebar__list { grid-template-columns: repeat(2, 1fr); }
  .ts-wholesale__grid { grid-template-columns: 1fr; }
  footer { padding: 32px 16px; }
  .ts-footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .ts-story__card--1 { left: 0; }
  .ts-story__card--2 { right: 0; }
}

@media (max-width: 400px) {
  .ts-hero__actions { flex-direction: column; align-items: center; }
  .ts-btn { width: 100%; text-align: center; justify-content: center; }
  .ts-cta__btns { flex-direction: column; align-items: center; }
  .lp-announce-bar { font-size: 11px; gap: 8px; }
}

/* ════════════════════════════════════════
   TOPSTONE バナー
   ════════════════════════════════════════ */
.ts-topstone-banner {
  background: linear-gradient(135deg, #003F5C 0%, #005F8A 50%, #0080B3 100%);
  position: relative;
  overflow: hidden;
}
.ts-topstone-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,180,210,.18) 0%, transparent 65%);
  pointer-events: none;
}
.ts-topstone-banner__inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 6vw, 80px);
  text-decoration: none;
  color: inherit;
  transition: background .2s;
  position: relative;
}
.ts-topstone-banner__inner:hover {
  background: rgba(255,255,255,.04);
}
.ts-topstone-banner__left {
  flex-shrink: 0;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.15);
  padding-right: clamp(24px, 4vw, 64px);
}
.ts-topstone-banner__badge {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 9px; font-weight: 700; letter-spacing: 3px;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.25);
  padding: 2px 10px; border-radius: 2px;
  margin-bottom: 10px;
}
.ts-topstone-banner__logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  line-height: 1;
}
.ts-topstone-banner__tag {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: #5DD8F0;
  margin-top: 6px;
}
.ts-topstone-banner__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}
.ts-topstone-banner__text {
  font-family: 'Source Sans 3', 'Noto Serif JP', sans-serif;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.9;
  color: rgba(255,255,255,.85);
}
.ts-topstone-banner__text strong {
  color: #5DD8F0;
  font-weight: 700;
}
.ts-topstone-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: #fff;
  background: rgba(0,180,210,.35);
  border: 1.5px solid rgba(93,216,240,.6);
  padding: 12px 24px;
  border-radius: 3px;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.ts-topstone-banner__inner:hover .ts-topstone-banner__cta {
  background: rgba(0,180,210,.55);
  border-color: #5DD8F0;
}
.ts-topstone-banner__external {
  font-size: 9px;
  opacity: .6;
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .ts-topstone-banner__inner { flex-direction: column; align-items: flex-start; }
  .ts-topstone-banner__left { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); padding-right: 0; padding-bottom: 16px; width: 100%; text-align: left; }
}