/* =====================================================
   SELECT CLOSET - Global Stylesheet
   ===================================================== */

:root {
  --bg:      #FFFFFF;
  --surface: #F8F6F2;
  --ink:     #0F0E0C;
  --muted:   #8A8678;
  --border:  #E8E4DC;
  --accent:  #0F0E0C;
  --cta:     #FF0211;
  --gold:    #B8860B;
  --mercari: #FF0211;
  --rakuma:  #E8380D;
  --yahoo:   #FF0033;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Typography ── */
.font-display {
  font-family: 'Cormorant Garamond', serif;
}
.font-mono {
  font-family: 'DM Mono', monospace;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 2px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #333; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-mercari {
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  display: flex !important;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  margin-top: auto;
  flex-shrink: 0;
}
.btn-mercari:hover { background: #cc0010; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,2,17,.35); }

/* ── Navigation ── */
#app-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  transition: background .3s, border-color .3s;
}
/* ヒーロー動画背景時：ナビを透過してビデオの上に重ねる */
#app-nav.nav-over-video {
  background: rgba(0,0,0,0.15);
  border-bottom-color: rgba(255,255,255,0.08);
}
#app-nav.nav-over-video .nav-logo,
#app-nav.nav-over-video .nav-links a,
#app-nav.nav-over-video .nav-toggle {
  color: #fff !important;
}
#app-nav.nav-over-video .nav-links a.active::after {
  background: #fff;
}
#app-nav.nav-over-video .hamburger span {
  background: #fff;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--cta); }
.nav-links a.active { color: var(--cta); border-bottom: 1px solid var(--cta); padding-bottom: 2px; }

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s;
}
.nav-toggle:hover { background: #333; }
.nav-toggle.admin-mode { background: #1e3a5f; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 1001;
  position: relative;
  pointer-events: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1100;
  flex-direction: column;
  padding: 32px 24px;
  gap: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── Page wrapper ── */
#page-content { padding-top: 60px; min-height: 100vh; }

/* ── Floating CTA ── */
#floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
}
#floating-cta a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cta);
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255,2,17,.4);
  transition: all .25s;
}
#floating-cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255,2,17,.5);
}

/* ── Hero Section ── */
.hero {
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   Hero Video Mode — PC・モバイル完全対応
   ─────────────────────────────────────────────
   構造:
     section.hero-video-section  ← margin-top:-60px でナビ下に潜り込む
       div.hero-video-wrap        ← アスペクト比コンテナ
         div.hero-video-layer     ← iframe + オーバーレイ (absolute fill)
           iframe
           div.hero-video-overlay
         div.hero-video-text      ← テキスト (absolute, 下寄せ)
   ═══════════════════════════════════════════════ */

/* セクション: ナビバー(60px)の下に潜り込む */
.hero-video-section {
  margin-top: -60px;
  padding: 0 !important;
}

/* ── PC: 16:9 aspect-ratio で高さを確定 ── */
.hero-video-wrap {
  position: relative;
  width: 100%;
  /* aspect-ratio が効くブラウザ(Chrome/Safari/FF 最新) */
  aspect-ratio: 16 / 9;
  /* フォールバック: padding-top 56.25% */
  background: #000;
  overflow: hidden;
}
/* aspect-ratioが効かない古いブラウザ用フォールバック */
@supports not (aspect-ratio: 16/9) {
  .hero-video-wrap::before {
    content: '';
    display: block;
    padding-top: 56.25%;
  }
}

/* iframe と overlay: ラップ全体を完全カバー */
.hero-video-layer {
  position: absolute;
  inset: 0;
}
.hero-video-layer iframe {
  /* translate + max() で黒帯なしフルカバー */
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* 横が足りない場合は高さ基準、縦が足りない場合は幅基準 */
  width: max(100%, calc(100vh * 16 / 9));
  height: max(100%, calc(100vw * 9 / 16));
  border: none;
  pointer-events: none;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.40);
}

/* テキストブロック: 動画の下部に重ねる */
.hero-video-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 48px 6% 52px;
  background: linear-gradient(to top,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.30) 50%,
    transparent 100%);
  box-sizing: border-box;
}
.hero-video-text .hero-badge {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}
.hero-video-text .hero-title {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
  font-size: clamp(28px, 3.8vw, 64px);
}
.hero-video-text .hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: clamp(12px, 1.2vw, 15px);
  max-width: 520px;
}

/* ─── モバイル (≤768px): フルスクリーン動画表示 ─── */
@media (max-width: 768px) {
  .hero-video-section {
    margin-top: 0;       /* ナビバーとの重なりをリセット */
    position: relative;
  }
  .hero-video-wrap {
    /* スマホではビューポート全体を使う */
    aspect-ratio: unset;
    height: 100svh;      /* Safe viewport height: アドレスバー分を除く */
    min-height: 500px;
    max-height: none;
    width: 100%;
  }
  @supports not (height: 100svh) {
    /* svh非対応ブラウザのフォールバック */
    .hero-video-wrap { height: 100vh; }
  }
  @supports not (aspect-ratio: 16/9) {
    .hero-video-wrap::before { padding-top: 0; }
  }
  .hero-video-text {
    padding: 32px 5% 48px;
  }
  .hero-video-text .hero-title {
    font-size: clamp(22px, 7vw, 38px) !important;
  }
  .hero-video-text .hero-sub {
    font-size: 12px !important;
    max-width: 100% !important;
  }
  .hero-video-text .hero-btns {
    flex-direction: column;
    gap: 8px;
  }
  .hero-video-text .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--ink);
}
.hero-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-images {
  position: relative;
  height: 560px;
}
.hero-img-main {
  position: absolute;
  right: 0; top: 0;
  width: 65%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.hero-img-sub {
  position: absolute;
  left: 0; bottom: 40px;
  width: 45%;
  height: 55%;
  object-fit: cover;
  border-radius: 2px;
  border: 4px solid #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.hero-badge-img {
  position: absolute;
  top: 20px; left: 10px;
  background: var(--cta);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  letter-spacing: .08em;
}

/* ── Ticker ── */
.ticker {
  background: var(--ink);
  color: #fff;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: marquee 20s linear infinite;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.ticker-inner span { padding: 0 32px; }

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: 'DM Mono', monospace;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  color: var(--ink);
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.product-card {
  cursor: pointer;
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); }

.product-card .img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface);
  margin-bottom: 12px;
  flex-shrink: 0;
}
.product-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* 高解像度ディスプレイ向け */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }

/* overlay は使用しない（削除済み）— 残存スタイルはno-op */
.product-card .overlay { display: none !important; }

/* ── カードアクション（購入ボタン＋詳細ボタン） ── */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  flex-shrink: 0;
}

/* 商品詳細ボタン */
.btn-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 7px 8px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
}
.btn-detail:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}

/* モバイルでのcard-actions調整 */
@media (max-width: 768px) {
  .card-actions { gap: 5px; }
  .btn-detail {
    font-size: 9px;
    padding: 6px 4px;
    letter-spacing: 0;
  }
}

.condition-badge {
  display: none !important;
}
.sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sold-badge {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  padding: 8px 20px;
  transform: rotate(-15deg);
}

.product-card .info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
}
.product-card .brand {
  display: block;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.product-card .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
  flex: 1;
  min-height: 0;
}
.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.product-card .price {
  font-size: 15px;
  font-weight: 700;
  color: var(--cta);
  font-family: 'DM Mono', monospace;
}
.platform-dots { display: flex; gap: 4px; align-items: center; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-m  { background: var(--mercari); }
.dot-r  { background: var(--rakuma); }
.dot-y  { background: var(--yahoo); }
.dot-off{ background: #ddd; }

/* ── 動画カード（Shorts/縦動画対応）── */
.product-card.video-card .img-wrap {
  aspect-ratio: 9/16;
}

/* ── モバイル商品カード統一レイアウト ── */
@media (max-width: 768px) {
  .product-card {
    border-radius: 4px;
  }
  .product-card .info {
    padding: 6px 0 0;
  }
  .product-card .brand {
    font-size: 9px;
    margin-bottom: 2px;
  }
  .product-card .name {
    font-size: 11px;
    line-height: 1.35;
    margin-bottom: 4px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card .price-row {
    margin-bottom: 6px;
  }
  .product-card .price {
    font-size: 12px;
  }
  .product-card .btn-mercari {
    font-size: 10px !important;
    padding: 8px 2px !important;
    letter-spacing: 0 !important;
    gap: 3px !important;
    white-space: nowrap !important;
    min-height: 36px;
  }
  .product-card.video-card .img-wrap {
    aspect-ratio: 9/16;
  }
}

@media (max-width: 480px) {
  .product-card .name {
    font-size: 10px;
  }
  .product-card .price {
    font-size: 11px;
  }
  .product-card .btn-mercari {
    font-size: 9px !important;
    padding: 7px 2px !important;
    min-height: 32px;
  }
}

/* 商品グリッド内のカードを行ごとに統一（stretch使用） */
.product-grid {
  align-items: stretch;
}

.ranking-list { display: flex; flex-direction: column; gap: 24px; }
.ranking-item {
  display: grid;
  grid-template-columns: 80px 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  transition: box-shadow .3s;
}
.ranking-item:hover { box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.rank-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  text-align: center;
}
.ranking-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.ranking-info .brand { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.ranking-info .name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 500; margin: 4px 0 8px; }
.ranking-info .stats { font-size: 12px; color: var(--muted); display: flex; gap: 16px; }

/* ── Lookbook Grid ── */
.lookbook-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 280px 280px;
  gap: 8px;
}
.lookbook-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.lookbook-item.large { grid-row: span 2; }
.lookbook-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lookbook-item:hover img { transform: scale(1.04); }
.lookbook-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  padding: 32px 20px 20px;
  font-size: 14px;
}
.lookbook-caption strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 20px; margin-bottom: 4px; }

/* ── Brand Quote ── */
.brand-quote {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface);
}
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.seller-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-top: 16px; }
.stat-item { text-align: center; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 600; color: var(--ink); }
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: .1em; }

/* ── Blog Cards ── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.blog-card {
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .3s;
  cursor: pointer;
}
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--muted);
  padding: 3px 8px;
  margin-bottom: 10px;
  font-family: 'DM Mono', monospace;
}
.blog-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 500; margin-bottom: 8px; line-height: 1.4; }
.blog-card p  { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.blog-read-more { font-size: 12px; color: var(--ink); letter-spacing: .08em; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* ── Catalog Sidebar ── */
.catalog-layout { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding-top: 40px; }
.catalog-sidebar { position: sticky; top: 80px; align-self: start; }
.filter-section { margin-bottom: 28px; }
.filter-title { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-family: 'DM Mono', monospace; }
.filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: all .2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.filter-btn:hover { color: var(--cta); }
.filter-btn.active { color: var(--cta); font-weight: 500; border-bottom: 1px solid var(--cta); }

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.sort-bar select {
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
}
.item-count { font-size: 13px; color: var(--muted); }

/* ── Story Page ── */
.story-hero {
  height: 60vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.story-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: .1em;
}
.mission-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  color: var(--ink);
}
.commitment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 48px; }
.commitment-item {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--border);
}
.commitment-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--border);
  display: block;
  margin-bottom: 12px;
}
.commitment-item h3 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.commitment-item p  { font-size: 13px; color: var(--muted); line-height: 1.7; }

.achievement-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 48px; text-align: center; }
.achievement-item .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.achievement-item .label { font-size: 13px; color: var(--muted); }

/* ── Blog Post ── */
.blog-post-layout { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.blog-post-header { margin-bottom: 40px; }
.blog-post-header .tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--cta); font-family: 'DM Mono', monospace; }
.blog-post-header h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 5vw, 44px); font-weight: 500; line-height: 1.3; margin: 12px 0 16px; }
.blog-post-header .meta { font-size: 12px; color: var(--muted); }
.blog-post-header img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-top: 24px; }

.blog-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.blog-content h3 { font-size: 17px; font-weight: 500; margin: 28px 0 12px; }
.blog-content p  { font-size: 15px; line-height: 1.9; color: var(--ink); margin-bottom: 20px; }
.blog-content ul { margin: 0 0 20px 20px; }
.blog-content li { font-size: 15px; line-height: 1.9; margin-bottom: 8px; }

/* Product CTA Card in Blog */
.product-cta-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  margin: 24px 0;
  background: var(--surface);
}
.product-cta-card img { width: 100px; aspect-ratio: 3/4; object-fit: cover; }
.product-cta-card .info .brand { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product-cta-card .info h4 { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 500; margin: 4px 0; }
.product-cta-card .info .price { font-size: 15px; font-weight: 700; color: var(--cta); font-family: 'DM Mono', monospace; }

/* ── Mercari Redirect ── */
.mercari-redirect {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.mercari-redirect .logo { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 600; letter-spacing: .15em; margin-bottom: 16px; }
.mercari-redirect .counter { font-size: 48px; font-weight: 700; color: var(--cta); font-family: 'DM Mono', monospace; margin: 24px 0; }

/* ── Footer ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 60px 24px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: #fff; letter-spacing: .15em; display: block; margin-bottom: 12px; }
.footer-brand p  { font-size: 13px; line-height: 1.8; }
.footer-col h4   { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; font-family: 'DM Mono', monospace; }
.footer-col ul   { list-style: none; }
.footer-col li   { margin-bottom: 10px; }
.footer-col a    { font-size: 13px; color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 12px; }
.sns-links { display: flex; gap: 16px; }
.sns-links a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  text-decoration: none;
  transition: all .2s;
}
.sns-links a:hover { border-color: #fff; color: #fff; }

/* ── Admin UI ── */
.admin-wrapper {
  min-height: calc(100vh - 60px);
  background: #f4f5f7;
  padding: 24px;
}
.admin-header {
  background: #1e3a5f;
  color: #fff;
  padding: 20px 28px;
  margin-bottom: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-header h1 { font-size: 20px; font-weight: 600; }
.admin-tabs {
  display: flex;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-tab {
  flex: 1;
  min-width: 100px;
  padding: 14px 16px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all .2s;
  border-bottom: 3px solid transparent;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}
.admin-tab:hover { background: #f9fafb; color: #374151; }
.admin-tab.active { color: #1e3a5f; border-bottom-color: #1e3a5f; background: #f0f4f8; }

.admin-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  margin-bottom: 24px;
}

/* KPI Cards */
.kpi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border-left: 4px solid #e5e7eb;
}
.kpi-card.green  { border-left-color: #16a34a; }
.kpi-card.yellow { border-left-color: #d97706; }
.kpi-card.red    { border-left-color: #dc2626; }
.kpi-card.blue   { border-left-color: #2563eb; }
.kpi-label { font-size: 12px; color: #6b7280; letter-spacing: .05em; margin-bottom: 8px; font-weight: 500; }
.kpi-value { font-size: 32px; font-weight: 700; color: #111827; font-family: 'DM Mono', monospace; }
.kpi-sub   { font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: #f9fafb;
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.data-table tr:hover td { background: #fafafa; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.badge-active   { background: #dcfce7; color: #16a34a; }
.badge-sold     { background: #fee2e2; color: #dc2626; }
.badge-draft    { background: #fef9c3; color: #ca8a04; }
/* インラインステータス変更セレクト */
.status-inline-select {
  border: none;
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  min-width: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 20px;
}

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1/-1; }
.form-label { font-size: 12px; font-weight: 600; color: #374151; letter-spacing: .05em; text-transform: uppercase; }
.form-input, .form-select, .form-textarea {
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  transition: border-color .2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #1e3a5f;
}
.form-textarea { resize: vertical; min-height: 100px; }

.profit-preview {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: #16a34a;
  font-weight: 600;
}

/* Platform toggle */
.platform-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 10px;
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: .3s;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
}
.toggle-switch input:checked + .toggle-slider { background: #1e3a5f; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Tags */
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0e7ff;
  color: #3730a3;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
}
.tag-item button { background: none; border: none; cursor: pointer; color: #3730a3; font-size: 14px; line-height: 1; padding: 0; }

/* Chart bars */
.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { font-size: 12px; width: 140px; text-align: right; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; background: #f3f4f6; border-radius: 4px; height: 24px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 4px; display: flex; align-items: center; padding-left: 10px; font-size: 11px; font-weight: 600; color: #fff; transition: width .8s ease; }
.bar-val   { font-size: 12px; font-weight: 600; color: #374151; width: 70px; font-family: 'DM Mono', monospace; }

/* Dead stock warning */
.dead-stock-list { display: flex; flex-direction: column; gap: 8px; }
.dead-stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 13px;
}
.dead-stock-item .days { color: #d97706; font-weight: 700; font-family: 'DM Mono', monospace; }

/* AI button */
.btn-ai {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}
.btn-ai:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,.4); }
.btn-ai:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Search bar */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
}
.search-input:focus { outline: none; border-color: #1e3a5f; }
.filter-select {
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}

/* Checkbox */
.cb-row td:first-child { width: 40px; }
input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #1e3a5f; }

/* Inline action buttons */
.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  font-weight: 500;
  transition: all .2s;
}
.btn-edit { background: #eff6ff; color: #1d4ed8; }
.btn-edit:hover { background: #dbeafe; }
.btn-delete { background: #fef2f2; color: #dc2626; }
.btn-delete:hover { background: #fee2e2; }

/* Loader */
.loader {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* SNS Section */
.sns-section {
  background: var(--ink);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}
.sns-section h2 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 500; margin-bottom: 8px; }
.sns-section p  { color: rgba(255,255,255,.7); margin-bottom: 28px; }
.sns-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-instagram { background: linear-gradient(45deg, #f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.btn-tiktok    { background: #010101; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-x-twitter { background: #000; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-x-twitter:hover { background: #1a1a1a; color: #fff; }

/* ======================================
   Responsive
   ====================================== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .catalog-layout { grid-template-columns: 160px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-toggle { display: none; }
  .hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; min-height: auto; }
  .hero-images { height: 360px; }

  .product-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .lookbook-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .lookbook-item.large { grid-row: span 1; }

  .ranking-item { grid-template-columns: 50px 80px 1fr; }
  .ranking-item .btn-mercari { display: none; }
  .rank-num { font-size: 36px; }

  .blog-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }

  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .commitment-grid { grid-template-columns: 1fr; }
  .achievement-grid { grid-template-columns: repeat(2,1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .admin-wrapper { padding: 12px; }
  .admin-tabs { overflow-x: auto; }
  .admin-tab { min-width: 80px; font-size: 12px; padding: 10px 10px; }

  .product-cta-card { grid-template-columns: 80px 1fr; }
  .product-cta-card .btn-mercari { display: none; }

  #floating-cta { bottom: 16px; right: 16px; }
  #floating-cta a { padding: 12px 16px; font-size: 12px; }
}

/* =========================================================
   モバイル追加修正 (スマートフォン対応強化)
   ========================================================= */

/* 超小型スクリーン (375px以下: iPhone SE等) */
@media (max-width: 480px) {
  body { font-size: 14px; }

  /* ナビゲーション */
  .nav-inner { padding: 0 16px; height: 52px; }
  .nav-logo { font-size: 16px; letter-spacing: .1em; }

  /* ヒーロー */
  .hero { padding: 32px 16px; gap: 24px; }
  .hero-title { font-size: clamp(28px, 8vw, 40px); }
  .hero-sub { font-size: 13px; }
  .hero-images { height: 280px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* ティッカー */
  .ticker { font-size: 11px; }

  /* セクション */
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .section-title { font-size: 22px; }

  .product-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  /* product-card のモバイルスタイルは上の @media (max-width:768px) ブロックで定義済み */

  /* ランキング */
  .ranking-item { grid-template-columns: 40px 70px 1fr; gap: 10px; padding: 14px 0; }
  .rank-num { font-size: 28px; }
  .ranking-info { gap: 4px; }
  .ranking-name { font-size: 13px; }

  /* ルックブック */
  .lookbook-grid { grid-template-columns: 1fr; gap: 12px; }
  .lookbook-item { height: 240px; }

  /* ブログ */
  .blog-card { border-radius: 4px; }
  .blog-card-img { height: 160px; }
  .blog-card-body { padding: 14px; }
  .blog-card-title { font-size: 14px; }

  /* カタログ */
  .catalog-sidebar { padding: 16px; margin-bottom: 16px; }
  .catalog-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }

  /* フッター */
  footer { padding: 40px 16px 24px; }
  .footer-logo { font-size: 18px; }
  .footer-desc { font-size: 12px; }

  /* フローティングCTA */
  #floating-cta { bottom: 12px; right: 12px; }
  #floating-cta a { padding: 10px 14px; font-size: 11px; }

  /* ストーリー */
  .story-section { padding: 48px 16px; }
  .story-heading { font-size: 26px; }
  .commitment-item { padding: 20px 16px; }

  /* ブログ詳細 */
  .blog-post-layout { padding: 32px 16px; }
  .blog-post-title { font-size: 22px; }
}

/* タッチデバイス向け改善 */
@media (hover: none) and (pointer: coarse) {
  /* ボタンのタップ領域を広げる */
  .btn { min-height: 44px; }
  .hamburger { padding: 8px; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
  .nav-toggle { min-width: 44px; min-height: 44px; }

  /* ホバー効果を無効化 */
  .product-card:hover { transform: none; box-shadow: none; }
  .btn-primary:hover { opacity: 1; }
  .btn-outline:hover { color: var(--ink); background: transparent; }

  /* モバイルメニューリンクのタップ領域 */
  .mobile-menu a { min-height: 48px; display: flex; align-items: center; }
}

/* ── Shop Rule Modal (テキスト色強制) ── */
#shop-rule-modal { color: #1a1a2e !important; }
#shop-rule-modal p { color: #374151 !important; font-size: 13px !important; line-height: 1.7 !important; }
#shop-rule-modal h2 { color: #1a1a2e !important; }
#shop-rule-modal strong { color: #1a1a2e !important; }
#shop-rule-modal a { color: #6366f1 !important; }
#shop-rule-modal .shop-rule-content { background: #fff !important; }

/* ════════════════════════════════════════
   管理画面 モバイル対応
   ════════════════════════════════════════ */

/* 在庫テーブルの横スクロール */
.admin-card .data-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-card .data-table-scroll .data-table {
  min-width: 700px;
}

/* content-header のボタン群を折り返し可能に */
.content-header {
  flex-wrap: wrap;
}
.content-header > div:last-child {
  flex-wrap: wrap;
}

/* テーブルラッパーの横スクロール強制（全幅） */
.admin-card {
  overflow: visible !important;
}
.admin-card > div[style*="overflow-x"] {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  /* 管理画面: サイドバーをモバイル対応 */
  #admin-sidebar {
    width: 240px !important;
    min-width: 240px !important;
  }

  /* content-header を縦積みに */
  .content-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  .content-header > div:last-child {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  /* フィルターバーを縦積みに */
  .filter-bar {
    flex-direction: column;
    gap: 6px;
  }
  .filter-bar .filter-input,
  .filter-bar .filter-select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* ボタンサイズ調整（タップしやすく） */
  .btn-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .btn-primary,
  .btn-outline,
  .btn-sm,
  .btn-refresh {
    font-size: 12px;
    padding: 7px 10px;
  }

  /* フォームグリッドを1列に */
  .form-grid-2 {
    grid-template-columns: 1fr !important;
  }
  .form-row-2 {
    grid-template-columns: 1fr !important;
  }
  .dash-grid-2 {
    grid-template-columns: 1fr !important;
  }

  /* コンテンツタイトル縮小 */
  .content-title {
    font-size: 15px !important;
  }

  /* KPIグリッドを2列に */
  .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* admin-card のpadding縮小 */
  .admin-card {
    padding: 12px !important;
    margin-bottom: 10px !important;
  }

  /* タッチデバイス: ホバー効果を抑制 */
  @media (hover: none) {
    .btn-primary:hover,
    .btn-outline:hover,
    .btn-sm:hover,
    .btn-icon:hover {
      opacity: 1;
      background: initial;
      color: initial;
      border-color: initial;
    }
  }
}

@media (max-width: 480px) {
  /* さらに小さい画面向け */
  .content-header {
    padding: 0;
  }
  .content-title {
    font-size: 14px !important;
  }
  .btn-primary,
  .btn-outline,
  .btn-sm,
  .btn-refresh {
    font-size: 11px;
    padding: 6px 8px;
  }
}

/* ── form-actions（登録/更新ボタン行） ── */
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 0 24px;
}

/* ── フォームグリッド（デスクトップ: 2列 / モバイル: 1列） ── */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.form-actions .btn-primary,
.form-actions .btn-outline {
  min-width: 120px;
  min-height: 44px;
  font-size: 14px;
  padding: 10px 20px;
}
@media (max-width: 768px) {
  .form-actions {
    flex-direction: column-reverse;
    padding: 16px 0 40px; /* 下部に余白を追加してボタンが見切れない */
  }
  .form-actions .btn-primary,
  .form-actions .btn-outline {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
    padding: 12px 20px;
    text-align: center;
  }
}
