/* ================================================================
   WAVE SALAD - 在庫一覧ページ 共通スタイル
   stock/index.html で使用。ヘッダー・フッター・ナビ・閉じCTAの部分は
   news/css/news.css と同じ内容(既存サイトの配色・フォントに合わせるため、
   このプロジェクトの既存の慣習どおり複製している)。
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.stock-body {
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  background: #f7f5f2;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}
.stock-body a { text-decoration: none; color: inherit; }
.stock-body img { display: block; max-width: 100%; }

/* ── ヘッダー(既存サイトと共通デザイン) ── */
.site-header {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(229,221,211,0.7);
  position: sticky; top: 0; z-index: 300;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; height: 76px;
}
.logo-title { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.logo-title img { height: 32px; width: auto; flex-shrink: 0; }
.logo-title-text { font-family: 'Shippori Mincho', serif; font-size: 16px; font-weight: 600; letter-spacing: 0.14em; color: #2d2d2d; white-space: nowrap; }
.catalog-nav { display: flex; align-items: center; gap: 6px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px; position: relative;
  padding: 10px 14px; font-size: 13px; letter-spacing: 0.02em; color: #444; white-space: nowrap;
  transition: color 0.2s; cursor: pointer;
}
.nav-link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px;
  background: #8b6f47; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav-link:hover { color: #6b5438; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-item.is-active > .nav-link { color: #6b5438; font-weight: 500; }
.nav-item.is-active > .nav-link::after { transform: scaleX(1); }
.nav-link .caret { font-size: 9px; opacity: 0.55; transition: transform 0.2s ease; }
.nav-item:hover .nav-link .caret { transform: rotate(180deg); }
.nav-item.nav-cta .nav-link { background: #8b6f47; color: #fff; border-radius: 3px; padding: 9px 18px; margin-left: 6px; }
.nav-item.nav-cta .nav-link::after { display: none; }
.nav-item.nav-cta .nav-link:hover { background: #6d5438; color: #fff; }
.nav-dropdown {
  opacity: 0; visibility: hidden; pointer-events: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border: 1px solid #ece3d5; border-radius: 4px; box-shadow: 0 14px 32px rgba(0,0,0,0.1);
  min-width: 200px; z-index: 500; padding: 8px 0;
  transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-dropdown a { display: block; padding: 10px 20px; font-size: 12.5px; color: #555; transition: background 0.15s, color 0.15s, padding-left 0.15s; }
.nav-dropdown a:hover { background: #f9f6f3; color: #8b6f47; padding-left: 24px; }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mobile-search-btn, .mobile-menu-btn { display: none; }
@media (max-width: 900px) {
  .catalog-nav { display: none; }
  .header-inner { padding: 0 20px; }
}

/* ── ハンバーガーメニュー(スマホ) ── */
.mobile-menu-btn {
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0;
}
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: #666; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,16,12,0.45); z-index: 280; opacity: 0; transition: opacity 0.28s ease;
}
.mobile-nav-overlay.show { display: block; }
.mobile-nav-overlay.is-visible { opacity: 1; }
.mobile-nav-panel {
  background: #fff; border-bottom: 2px solid #e5ddd3; padding: 8px 0 20px;
  max-height: 100%; overflow-y: auto;
  transform: translateY(-16px); opacity: 0;
  transition: transform 0.3s cubic-bezier(.16,.84,.44,1), opacity 0.28s ease;
}
.mobile-nav-overlay.is-visible .mobile-nav-panel { transform: translateY(0); opacity: 1; }
.mobile-nav-cta-row { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 6px; }
.mobile-nav-cta { display: block; text-align: center; padding: 13px; border-radius: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.mobile-nav-cta.primary { background: #8b6f47; color: #fff; }
.mobile-nav-cta.outline { border: 1px solid #8b6f47; color: #8b6f47; }
.mobile-nav-link { display: block; padding: 13px 24px; border-bottom: 1px solid #f5f0ea; font-size: 14px; color: #444; transition: color 0.15s, background 0.15s; }
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:active { background: #f9f6f3; color: #8b6f47; }
.mobile-nav-link.is-active { color: #8b6f47; font-weight: 500; }
.mobile-nav-toggle {
  width: 100%; display: flex; align-items: stretch; justify-content: space-between;
  border-bottom: 1px solid #f5f0ea;
}
.mobile-nav-toggle-link { flex: 1; padding: 13px 24px; font-size: 14px; color: #444; }
.mobile-nav-toggle-chev {
  padding: 13px 20px; border: none; background: none; font-family: inherit; cursor: pointer; flex-shrink: 0;
}
.mobile-nav-toggle-chev .chev { font-size: 11px; opacity: 0.55; transition: transform 0.25s ease; }
.mobile-nav-toggle-chev.open .chev { transform: rotate(180deg); }
.mobile-nav-submenu { max-height: 0; overflow: hidden; background: #faf8f5; transition: max-height 0.3s ease; }
.mobile-nav-submenu a { display: block; padding: 12px 24px 12px 40px; font-size: 13px; color: #666; border-bottom: 1px solid #f0ebe3; }
.mobile-nav-submenu a:last-child { border-bottom: none; }
@media (max-width: 640px) {
  .mobile-menu-btn { display: flex; }
  .logo-title-text { font-size: 14px; }
}

/* ── パンくず ── */
.stock-breadcrumb {
  max-width: 900px; margin: 0 auto; padding: 24px 24px 0;
  font-size: 12px; color: #6b6b6b;
}
.stock-breadcrumb a { color: #8b6f47; }
.stock-breadcrumb a:hover { text-decoration: underline; }
.stock-breadcrumb .sep { margin: 0 6px; color: #ccc; }

/* ── ページ見出し ── */
.stock-page-hero { background: #fff; border-bottom: 1px solid #e5ddd3; padding: 56px 24px 40px; text-align: center; }
.stock-page-eyebrow {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 12px; letter-spacing: 0.3em; color: #a8987e; text-transform: uppercase;
}
.stock-page-title {
  font-family: 'Shippori Mincho', serif; font-size: 26px; font-weight: 600;
  color: #2d2d2d; margin: 12px 0 0; letter-spacing: 0.08em;
}
.stock-page-lead { font-size: 12.5px; color: #6b6b6b; margin-top: 12px; }

/* ── 検索ボックス・絞り込み ── */
.stock-search-wrap {
  max-width: 720px; margin: 0 auto; padding: 28px 24px 0;
  display: flex; flex-direction: column; gap: 12px;
}
.stock-search-box {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e0d8ce; border-radius: 24px;
  padding: 12px 20px;
}
.stock-search-box svg { flex-shrink: 0; width: 16px; height: 16px; color: #a8987e; }
.stock-search-box input {
  flex: 1; border: none; outline: none; font: inherit; font-size: 14px;
  background: none; color: #333;
}
.stock-search-box input::placeholder { color: #b5ab9c; }

.stock-filter-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: #6b6b6b; margin-bottom: 16px;
}
.stock-filter-row select {
  font: inherit; font-size: 12.5px; color: #6b5438; background: #fff;
  border: 1px solid #e0d8ce; border-radius: 20px; padding: 7px 16px;
  cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b6f47' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
  padding-right: 30px;
}
.stock-filter-row select:hover { border-color: #8b6f47; }

/* ── 一覧 ──
   .stock-row と .stock-table-head は同じ grid-template-columns を持たせて
   列幅をそろえている(幅は別々に管理しない)。在庫状況の列が視覚的に中央寄りに
   見えるよう、3列を均等に近い比率(1.2fr / 1fr / 1fr)にしている
   (商品名列だけを大きくflex:1で伸ばすと、在庫状況が右端に寄って見えるため)。 */
.stock-list-wrap { max-width: 900px; margin: 0 auto; padding: 32px 24px 96px; }
.stock-list-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px;
  margin-bottom: 12px; padding: 0 4px;
}
.stock-list-title {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 13px; letter-spacing: 0.22em; color: #8b6f47; text-transform: uppercase;
}
.stock-list-count { font-size: 12px; color: #6b6b6b; }

.stock-table-head {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; gap: 20px;
  padding: 10px 24px; background: #faf8f5; border: 1px solid #e5ddd3; border-bottom: none;
  border-radius: 4px 4px 0 0;
  font-size: 11px; letter-spacing: 0.04em; color: #767066; text-transform: uppercase;
}
.stock-sort-btn {
  display: flex; align-items: center; gap: 5px;
  font: inherit; font-size: 11px; letter-spacing: inherit; text-transform: inherit;
  color: #767066; background: none; border: none; padding: 0; cursor: pointer;
  transition: color 0.15s;
}
.stock-sort-btn:hover { color: #6b5438; }
.stock-sort-btn.is-active { color: #6b5438; font-weight: 500; }
.stock-sort-arrow { font-size: 10px; width: 0.9em; display: inline-block; }
/* 「商品名」「品番」は別々に並び替えできる2つのボタンとして横に並べる
   (以前は1つのボタンで「商品名・品番・カラー」とまとめて商品名のみで並び替えていた) */
.stock-table-head-main { display: flex; align-items: center; gap: 18px; }
.stock-table-head-main .stock-sort-btn + .stock-sort-btn { position: relative; padding-left: 18px; }
.stock-table-head-main .stock-sort-btn + .stock-sort-btn::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 11px; background: #d8cfc2;
}
.stock-table-head .stock-row-date.stock-sort-btn { justify-content: flex-end; }
.stock-table-head .stock-table-head-status { font-size: 11px; letter-spacing: inherit; text-transform: inherit; }

.stock-loading { padding: 56px 24px; text-align: center; color: #767066; font-size: 13px; }

.stock-list {
  list-style: none; background: #fff; border: 1px solid #e5ddd3; border-top: none;
  border-radius: 0 0 4px 4px; overflow: hidden;
}
.stock-row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; gap: 20px;
  padding: 18px 24px; border-bottom: 1px solid #f0ebe3;
  transition: background 0.2s;
}
.stock-row:last-child { border-bottom: none; }
.stock-row:hover { background: #faf8f5; }

.stock-row-main { min-width: 0; }
.stock-row-name { font-size: 14px; font-weight: 600; color: #2d2d2d; letter-spacing: 0.02em; }
.stock-row-name a:hover { text-decoration: underline; color: #6b5438; }
.stock-row-nameja { font-size: 11.5px; color: #767066; font-weight: 400; margin-left: 8px; }
.stock-row-sub { display: flex; gap: 10px; margin-top: 4px; font-size: 11.5px; color: #767066; }
.stock-row-sku {
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 500; letter-spacing: 0.03em; color: #6b5438;
}
.stock-row-color::before { content: '/'; margin-right: 10px; color: #ccc; }

.stock-row-status { font-size: 12.5px; }
.stock-status-line { display: flex; align-items: center; gap: 6px; font-weight: 500; color: #3a3a3a; }
.stock-status-dot { font-size: 10px; line-height: 1; }
.stock-row-status[data-status="in-stock"] .stock-status-dot { color: #6f9a56; }
.stock-row-status[data-status="low"] .stock-status-dot { color: #c59a4a; }
.stock-row-status[data-status="shortage"] .stock-status-dot { color: #b56a5e; }
.stock-row-status[data-status="discontinued"] .stock-status-dot { color: #888; }
.stock-row-status[data-status="discontinued"] .stock-status-line { color: #767066; }
/* 在庫コメント。在庫状況の列自体を広めの比率にしたことで表示領域を確保している */
.stock-status-note { margin-top: 6px; font-size: 11.5px; color: #7d6a4f; line-height: 1.7; }

.stock-row-date {
  text-align: right;
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px; color: #7d6a4f;
}

.stock-empty { padding: 56px 24px; text-align: center; color: #767066; font-size: 13px; }

@media (max-width: 640px) {
  .stock-row, .stock-table-head {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "main main" "status date";
    row-gap: 10px; column-gap: 16px;
    padding: 16px 18px;
  }
  .stock-row-main { grid-area: main; }
  .stock-row-status { grid-area: status; }
  .stock-row-date { grid-area: date; justify-self: end; }
}

/* ── 閉じCTA(既存サイト共通) ── */
.closing-cta { background: #2d2a26; color: #efe9df; padding: 72px 24px; text-align: center; }
.closing-cta-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #a99a85;
  text-transform: uppercase;
}
.closing-cta-title { font-family: 'Shippori Mincho', serif; font-size: 24px; margin: 14px 0 12px; }
.closing-cta-lead { font-size: 12.5px; color: #b5ab9c; max-width: 32em; margin: 0 auto 28px; line-height: 1.9; }
.closing-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.closing-cta .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 3px; font-size: 13px; letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, border-color 0.2s; cursor: pointer;
  border: 1px solid transparent;
}
.closing-cta .btn-outline { border-color: #cfc7ba; color: #efe9df; }
.closing-cta .btn-outline:hover { background: #efe9df; color: #2d2a26; }
.closing-cta .btn-muted { border-color: #55504a; color: #a99a85; background: none; }
.closing-cta .btn-muted:hover { background: #3d3833; color: #efe9df; border-color: #6b6255; }
@media (max-width: 640px) {
  .closing-cta { padding: 44px 20px; }
  .closing-cta-title { font-size: 20px; margin: 10px 0 8px; }
  .closing-cta-lead { margin-bottom: 20px; }
}

/* ── フッター(既存サイト共通) ── */
.site-footer { background: #2d2a26; color: #cfc7ba; padding: 56px 32px 24px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto 32px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand-logo { font-family: 'Shippori Mincho', serif; font-size: 18px; color: #fff; letter-spacing: 0.12em; margin-bottom: 12px; }
.footer-brand-desc { font-size: 12.5px; line-height: 1.9; color: #b5ab9c; margin-bottom: 12px; }
.footer-brand-company { font-size: 12px; line-height: 1.8; color: #9c9284; }
.footer-brand-link {
  display: inline-block; font-size: 12px; color: #b5ab9c; margin-top: 10px;
  text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s;
}
.footer-brand-link:hover { color: #fff; }
.footer-col h4 { font-size: 13px; color: #fff; font-weight: 500; margin-bottom: 14px; letter-spacing: 0.05em; }
.footer-col h4 a:hover { color: #b5ab9c; }
.footer-col a { display: block; font-size: 12.5px; color: #b5ab9c; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 20px; border-top: 1px solid #45403a; font-size: 11px; color: #857c6e; text-align: center; }
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-col--catalog > a { display: none; }
  .footer-col--catalog h4 { margin-bottom: 0; }
}
