:root {
  --stone: #f3f1ec;
  --stone-line: #e2ded3;
  --sumi: #262522;
  --sumi-soft: #55524b;
  --gold: #b6974c;
  --indigo: #2c3e50;
  --indigo-deep: #1a2634;
  --red: #b3261e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--stone);
  color: var(--sumi);
  line-height: 1.9;
  font-size: 18px;
}

/* ===== ヘッダー / フッター ===== */
header {
  position: relative;
  padding: 28px 48px;
  border-bottom: 1px solid var(--stone-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--indigo-deep);
  text-decoration: none;
}
header nav { display: flex; align-items: center; gap: 32px; }
header nav a { color: var(--sumi); text-decoration: none; font-size: 16px; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--sumi-soft);
}
.nav-toggle-icon { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 22px; height: 14px; }
.nav-toggle-icon span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--indigo-deep);
  transition: transform 0.25s;
}
.nav-toggle.open .nav-toggle-icon span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.open .nav-toggle-icon span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
header nav a.current { color: var(--indigo-deep); font-weight: 700; }

footer {
  text-align: center;
  padding: 48px;
  font-size: 12px;
  color: var(--sumi-soft);
  border-top: 1px solid var(--stone-line);
  margin-top: 80px;
}
footer a { color: var(--indigo); text-decoration: underline; }
footer a:hover { color: var(--indigo-deep); }
footer a.brand-link { color: inherit; text-decoration: none; }
.footer-nav { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer-nav a { font-size: 14px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

main.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 48px 120px;
}

h1, h2, h3 { font-family: 'Noto Serif JP', serif; font-weight: 500; color: var(--indigo-deep); }
h1 { font-size: 32px; line-height: 1.5; }

.back-link { font-size: 14px; color: var(--sumi-soft); text-decoration: none; }
.breadcrumb { font-size: 14px; color: var(--sumi-soft); margin-bottom: 48px; }
.breadcrumb a { color: var(--sumi-soft); }

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  padding: 18px 48px;
  background: var(--indigo-deep);
  color: #fff;
  border: none;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.2s;
}
.btn:hover:not(.is-inactive):not(:disabled) { background: var(--indigo); }
.btn:disabled { background: var(--stone-line); color: var(--sumi-soft); cursor: wait; }
.btn.is-inactive { background: var(--stone-line); color: var(--sumi-soft); }

/* ===== 反物一覧ページ ===== */
.page-head { margin-bottom: 64px; }
.page-head .eyebrow { font-size: 14px; color: var(--sumi-soft); letter-spacing: 0.1em; margin-bottom: 12px; }
.page-head h1 { font-size: 32px; }

.origin-group { margin-bottom: 96px; }
.origin-group:last-child { margin-bottom: 0; }
.origin-feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 48px;
}
/* 工房の様子：動画 or 写真のどちらかを掲載（販売者側で選択） */
.origin-video, .origin-photo {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stone-line);
  background: var(--stone-line);
}
.origin-video video, .origin-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.origin-video iframe { width: 100%; height: 100%; display: block; border: 0; }
.origin-copy .place { font-size: 14px; color: var(--sumi-soft); margin-bottom: 8px; letter-spacing: 0.05em; }
.origin-copy h2 { font-size: 26px; margin-bottom: 18px; }
.origin-copy p { font-size: 16px; margin-bottom: 18px; }
.origin-copy a { font-size: 14px; color: var(--indigo); }
.feature-divider { border-bottom: 2px solid var(--indigo); margin: 0 0 36px; }

.product-grid, .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 36px;
}
.product-card, .card { display: block; text-decoration: none; color: inherit; }
.card-image {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
  box-shadow: 0 1px 0 var(--stone-line), 0 16px 36px -20px rgba(38,37,34,0.3);
  margin-bottom: 18px;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sold-ribbon {
  position: absolute;
  top: 22px;
  left: -36px;
  width: 150px;
  transform: rotate(-45deg);
  background: var(--indigo-deep);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 2;
}

.product-card h3, .card h2.name {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.product-card .price, .card .price { font-size: 16px; font-weight: 700; }
.card .price span { font-size: 12px; font-weight: 400; color: var(--sumi-soft); margin-left: 2px; }
.card .price .sold-label { color: var(--red); font-weight: 700; margin-left: 8px; }
.card .main-copy {
  font-family: 'Noto Serif JP', serif;
  font-style: italic;
  font-size: 12px;
  line-height: 1.7;
  color: var(--sumi-soft);
  white-space: normal;
  margin: 2px 0 10px;
}

/* 販売中のみ絞り込み */
.filter-row { display: flex; align-items: baseline; gap: 32px; margin-bottom: 56px; }
.filter-link {
  font-family: 'Noto Serif JP', serif;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 16px;
  color: var(--sumi-soft);
  cursor: pointer;
  padding: 0 0 10px;
  transition: color 0.15s, border-color 0.15s;
}
.filter-link:hover { color: var(--indigo); }
.filter-link.active { color: var(--indigo-deep); font-weight: 500; border-bottom-color: var(--indigo); }
.card.hidden, .origin-group.hidden { display: none; }

/* ===== 商品詳細ページ ===== */
.product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.gallery { position: sticky; top: 24px; }
.gallery-main {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
  box-shadow: 0 1px 0 var(--stone-line), 0 20px 50px -24px rgba(38,37,34,0.35);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.shot-label, .zoom-hint {
  position: absolute;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--sumi);
  font-size: 12px;
  letter-spacing: 0.05em;
  border-radius: 4px;
  padding: 6px 14px;
  z-index: 2;
}
.shot-label { left: 18px; bottom: 18px; }
.zoom-hint { right: 18px; top: 18px; }

.product-info h1 { font-size: 36px; line-height: 1.5; margin-bottom: 20px; }
.product-info .main-copy {
  font-family: 'Noto Serif JP', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.9;
  color: var(--indigo-deep);
  white-space: pre-line;
  margin-bottom: 32px;
}

.price-block {
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--stone-line);
  border-left: 4px solid var(--indigo);
  margin-bottom: 40px;
}
.price-block .price {
  font-size: 40px;
  font-weight: 700;
  font-family: 'Noto Serif JP', serif;
  color: var(--indigo-deep);
}
.price-block .price span { font-size: 20px; font-weight: 400; margin-left: 4px; color: var(--sumi-soft); }
.price-block .price .sold-label { color: var(--red); font-weight: 700; margin-left: 10px; }
.price-block .note { font-size: 14px; color: var(--sumi-soft); margin-top: 10px; }

.pr-section { margin-bottom: 8px; }
.pr-section h2 {
  font-size: 20px;
  border-bottom: 2px solid var(--indigo);
  padding-bottom: 10px;
  margin: 32px 0 14px;
}
.pr-section p { font-size: 16px; }

.maker-section {
  margin-top: 48px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--stone-line);
}
.maker-section .maker-eyebrow { font-size: 12px; color: var(--sumi-soft); letter-spacing: 0.1em; margin-bottom: 8px; }
.maker-section h2 { font-size: 18px; margin-bottom: 12px; }
.maker-section p { font-size: 16px; }
.maker-section a { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--indigo); }

.cta { margin-top: 48px; }
.cta .sold-notice { color: var(--red); font-size: 14px; font-weight: 700; margin-bottom: 12px; text-align: center; }
.cta .btn { width: 100%; text-align: center; font-size: 20px; padding: 20px 56px; }

/* ===== このサイトについて ===== */
.hero { margin-bottom: 72px; }
.hero .eyebrow { font-size: 14px; letter-spacing: 0.15em; color: var(--sumi-soft); margin-bottom: 16px; }
.hero h1 { font-size: 34px; line-height: 1.6; }
.hero .lead { margin-top: 24px; font-size: 18px; }

section.about-section { margin-bottom: 64px; }
section.about-section h2 {
  font-size: 22px;
  border-bottom: 2px solid var(--indigo);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
section.about-section p { font-size: 16px; margin-bottom: 16px; }
section.about-section p:last-child { margin-bottom: 0; }

.flow-list { list-style: none; margin-top: 8px; }
.flow-list li { display: flex; align-items: stretch; gap: 28px; margin-bottom: 24px; }
.flow-num {
  flex-shrink: 0;
  width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--indigo);
  color: var(--indigo-deep);
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 32px;
}
.flow-text { flex: 1; padding: 4px 0; }
.flow-list li strong { display: block; font-family: 'Noto Serif JP', serif; font-size: 18px; color: var(--indigo-deep); line-height: 1.5; margin-bottom: 8px; }
.flow-list li span { display: block; font-size: 16px; color: var(--sumi); line-height: 1.8; }

.note-box {
  background: #fff;
  border: 1px solid var(--stone-line);
  padding: 28px 32px;
  font-size: 14px;
  color: var(--sumi-soft);
  margin-bottom: 32px;
}
.notice-box {
  background: #fff;
  border: 1px solid var(--stone-line);
  padding: 28px 32px;
  margin-top: 40px;
}
.notice-box ul { list-style: none; margin: 0; padding: 0; }
.notice-box li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  color: var(--sumi-soft);
  margin-bottom: 6px;
}
.notice-box li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.notice-box li:last-child { margin-bottom: 0; }
.notice-box li a { color: var(--indigo); }
form.stacked label.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
}
.checkbox-inline input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
  border: 1px solid var(--stone-line);
  background: #fff;
  position: relative;
  top: 1px; /* 幾何学的な中央と文字の視覚的な中央は一致しないため、1px下げて光学調整する */
  cursor: pointer;
}
.checkbox-inline input[type=checkbox]:checked {
  background: var(--indigo);
  border-color: var(--indigo);
}
.checkbox-inline input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-inline input[type=checkbox]:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.cta-box { text-align: center; }

/* ===== 利用規約 ===== */
.terms-page { max-width: 760px; margin: 0 auto; }
.terms-page h1 { font-size: 22px; margin-top: 20px; }
.terms-page .terms-note { font-size: 14px; color: var(--sumi-soft); margin-top: 16px; }
.terms-page article { margin-top: 48px; }
.terms-page article h2 { font-size: 18px; margin-bottom: 12px; }
.terms-page article p { font-size: 16px; margin-bottom: 10px; }
.terms-page article p:last-child { margin-bottom: 0; }
.terms-page .terms-supplementary { margin-top: 56px; font-size: 14px; color: var(--sumi-soft); }
.terms-page .clause-list { margin-top: 6px; }
.terms-page .clause-item { display: flex; margin-bottom: 4px; font-size: 16px; }
.terms-page .clause-item:last-child { margin-bottom: 0; }
.terms-page .clause-num { flex: none; }
.terms-page .clause-text { flex: 1; }

/* ===== 問い合わせフォーム ===== */
.form-page { max-width: 680px; margin: 0 auto; }
.form-page h1 { font-size: 28px; margin-top: 20px; }
.target-product { margin: 36px 0 40px; }
.target-product h2 {
  font-size: 14px;
  font-weight: 500;
  color: var(--sumi-soft);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.product-ref {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--stone-line);
  padding: 14px 20px;
}
.inquiry-thumb { width: 56px; height: 56px; flex-shrink: 0; object-fit: cover; border: 1px solid var(--stone-line); }
.maker-name { font-size: 12px; color: var(--sumi-soft); margin-bottom: 4px; }
.product-ref .product-name { font-family: 'Noto Serif JP', serif; font-size: 18px; color: var(--indigo-deep); }

form.stacked label { display: block; margin-top: 24px; font-weight: 700; font-size: 14px; }
.required-mark { color: var(--red); font-weight: 700; font-size: 12px; margin-left: 6px; }
form.stacked input[type=text],
form.stacked input[type=email],
form.stacked input[type=tel],
form.stacked input[type=number],
form.stacked input[type=password],
form.stacked input[type=url],
form.stacked select,
form.stacked textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  border: 1px solid var(--stone-line);
  background: #fff;
  color: var(--sumi);
  font-family: inherit;
  font-size: 16px;
}
form.stacked input:focus, form.stacked select:focus, form.stacked textarea:focus {
  outline: none;
  border-color: var(--indigo);
}
/* 数値入力の上下スピナー（増減ボタン）を非表示にする */
form.stacked input[type=number] { -moz-appearance: textfield; }
form.stacked input[type=number]::-webkit-inner-spin-button,
form.stacked input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
form.stacked .radio-inline { display: inline-flex; align-items: center; font-weight: 400; margin: 10px 28px 0 0; font-size: 16px; }
form.stacked input[type=radio] { accent-color: var(--indigo); width: 16px; height: 16px; margin: 0 6px 0 0; }

.submit-row { text-align: center; margin-top: 48px; }
.submit-row .btn { font-size: 18px; padding: 18px 56px; }

/* トースト */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(16px);
  background: var(--red);
  color: #fff;
  padding: 14px 28px;
  max-width: 90vw;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: pre-line;
  text-align: left;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 1000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--indigo-deep); }

/* ===== 送信完了ページ ===== */
.thanks { max-width: 640px; margin: 0 auto; text-align: center; padding: 48px 0; }
.thanks .check-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 32px;
  border: 1px solid var(--indigo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-deep);
}
.thanks .check-mark svg { width: 28px; height: 20px; }
.thanks .eyebrow { font-size: 14px; letter-spacing: 0.15em; color: var(--sumi-soft); margin-bottom: 16px; }
.thanks h1 { font-size: 30px; margin-bottom: 24px; }
.thanks .lead { font-size: 16px; color: var(--sumi-soft); margin-bottom: 8px; }
.thanks .product-ref-name { font-family: 'Noto Serif JP', serif; color: var(--indigo-deep); }
.thanks .stock-note { font-size: 14px; color: var(--red); margin-top: 12px; }
.thanks .next-box {
  margin-top: 48px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--stone-line);
  padding: 28px 32px;
}
.thanks .next-box h2 { font-size: 14px; font-weight: 500; color: var(--sumi-soft); letter-spacing: 0.05em; margin-bottom: 12px; }
.thanks .next-box p { font-size: 14px; color: var(--sumi-soft); }
.thanks .cta-box { margin-top: 48px; }

.form-image-preview { max-width: 200px; border: 1px solid var(--stone-line); margin-top: 8px; }
.error { color: var(--red); font-weight: 700; }

@media (max-width: 920px) {
  .product-grid, .grid { grid-template-columns: repeat(2, 1fr); }
  .origin-feature { grid-template-columns: 1fr; gap: 32px; }
  .product { grid-template-columns: 1fr; gap: 40px; }
  .gallery { position: static; }
  header, main.container { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  header { background: var(--stone); z-index: 95; }
  header nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 24px;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    background: var(--stone);
    border: 1px solid var(--stone-line);
    padding: 48px 28px;
    z-index: 100;
  }
  header nav.open { display: flex; }
  header nav a {
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    letter-spacing: 0.05em;
    color: var(--indigo-deep);
  }
  header nav a.current { text-decoration: underline; text-underline-offset: 6px; }
  .nav-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(38,37,34,0.5);
    z-index: 90;
  }
}
.nav-backdrop { display: none; }
.sp-break { display: none; }
.cta-break { display: none; }
@media (max-width: 580px) {
  .product-grid, .grid { grid-template-columns: 1fr; }
  .price-block { padding: 20px 20px; }
  .price-block .price { font-size: 30px; white-space: nowrap; }
  .price-block .price span { font-size: 16px; }
  .maker-section { padding: 20px 20px; }
  .notice-box { padding: 20px 20px; }
  .thanks .next-box { padding: 20px 20px; }
  form.stacked label.checkbox-inline { font-size: 14px; }
  .hero h1 { font-size: 24px; line-height: 1.5; }
  .hero .lead { font-size: 16px; }
  .note-box { padding: 20px 20px; }
  section.about-section h2 { font-size: 18px; }
  .flow-list li { gap: 16px; }
  .flow-num { width: 48px; font-size: 20px; }
  .maker-section h2 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sp-break { display: block; }
  .cta-break { display: block; }
  .product-info h1 { font-size: 26px; line-height: 1.5; margin-bottom: 12px; }
  .product-info .main-copy { font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
}
/* 921px〜1120px: .product が2カラムに戻る一方、右カラムがまだ狭くボタン文言が折り返す帯域（CTAボタン専用） */
@media (min-width: 921px) and (max-width: 1120px) {
  .cta-break { display: block; }
}

/* ===== 商品詳細ページ：ギャラリーサムネイル ===== */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.thumb {
  aspect-ratio: 1;
  border: 1px solid var(--stone-line);
  cursor: pointer;
  padding: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  transition: opacity 0.15s, border-color 0.15s;
}
.thumb:hover { opacity: 1; }
.thumb.active { opacity: 1; border-color: var(--indigo-deep); border-width: 2px; }

.cta button {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  padding: 20px 56px;
  width: 100%;
  background: var(--indigo-deep);
  color: #fff;
  border: none;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}
.cta button:hover:not(:disabled) { background: var(--indigo); }
.cta button:disabled { background: var(--stone-line); color: var(--sumi-soft); cursor: not-allowed; }

/* =====================================================================
   販売者側管理画面（SP専用レイアウト）
   公開側とクラス名が重複するもの（header / .logo / .btn / .toast）は
   body.seller 配下に限定して上書きする。
   ===================================================================== */
body.seller {
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 140px;
}
body.seller header.seller-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--stone-line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
body.seller .logo {
  font-size: 18px;
}
body.seller .seller-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px;
}
body.seller .page-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  color: var(--indigo-deep);
  margin-bottom: 20px;
}
body.seller .back-link {
  display: inline-block;
  margin-bottom: 16px;
}
body.seller .lead-note {
  font-size: 12px;
  color: var(--sumi-soft);
  margin-bottom: 20px;
}
body.seller form.stacked label {
  margin-top: 18px;
  font-size: 14px;
}
body.seller form.stacked label:first-of-type { margin-top: 0; }
body.seller form.stacked label .hint {
  font-weight: 400;
  color: var(--sumi-soft);
  font-size: 12px;
  display: block;
  margin-top: 2px;
}
body.seller section {
  background: #fff;
  border: 1px solid var(--stone-line);
  padding: 18px 16px;
  margin-bottom: 16px;
}
body.seller .form-actions { margin-top: 24px; }
body.seller section h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--sumi-soft);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stone-line);
}
body.seller section .section-note {
  font-size: 12px;
  color: var(--sumi-soft);
  margin-top: -6px;
  margin-bottom: 14px;
}
.optional-tag {
  font-size: 10px;
  font-weight: 400;
  color: var(--sumi-soft);
  letter-spacing: 0;
  margin-left: 2px;
}

/* 工房名プルダウン（設定・ログアウト） */
body.seller .account-menu { position: relative; }
body.seller .account-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--sumi-soft);
  cursor: pointer;
  padding: 6px 2px;
}
body.seller .account-toggle .chevron { font-size: 10px; transition: transform 0.15s; }
body.seller .account-toggle.open .chevron { transform: rotate(180deg); }
body.seller .account-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--stone-line);
  box-shadow: 0 10px 24px rgba(38,37,34,0.15);
  min-width: 140px;
  z-index: 30;
}
body.seller .account-dropdown.open { display: block; }
body.seller .account-dropdown a, body.seller .account-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--sumi);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
body.seller .account-dropdown a:not(:last-child),
body.seller .account-dropdown button:not(:last-child) {
  border-bottom: 1px solid var(--stone-line);
}

/* 下部タブバー */
body.seller .tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--stone-line);
  z-index: 15;
}
body.seller .tab-bar a {
  flex: 1; text-align: center;
  padding: 12px 0 14px;
  font-size: 12px;
  color: var(--sumi-soft);
  text-decoration: none;
}
body.seller .tab-bar a .tab-icon { display: block; margin: 0 auto 2px; width: 24px; height: 24px; }
body.seller .tab-bar a .tab-icon svg { width: 100%; height: 100%; }
body.seller .tab-bar a.active { color: var(--indigo-deep); font-weight: 700; }

/* 固定保存バー */
body.seller .save-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--stone-line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  z-index: 15;
}
body.seller .save-bar.above-tabbar { bottom: 72px; } /* JSが読み込み後に実測して上書きする。これは初期描画用のフォールバック値 */
body.seller .btn {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  padding: 16px;
  background: var(--indigo-deep);
  color: #fff;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-align: center;
}
body.seller .btn:active { background: var(--indigo); }
body.seller .btn:disabled { background: var(--stone-line); color: var(--sumi-soft); cursor: not-allowed; }
body.seller .save-bar.with-cancel { display: flex; justify-content: center; gap: 32px; }
body.seller .save-bar.with-cancel .btn { width: 160px; max-width: none; margin: 0; flex: none; }
body.seller .btn-cancel {
  width: 160px;
  flex: none;
  display: block;
  padding: 16px;
  background: #fff;
  color: var(--sumi-soft);
  border: 1px solid var(--stone-line);
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-align: center;
}
body.seller .btn-cancel:active { background: var(--stone); }
body.seller .save-bar .sold-note { text-align: center; font-size: 12px; color: var(--sumi-soft); margin-bottom: 10px; }
body.seller .save-bar .sold-note + .btn { width: 160px; margin: 0 auto; }

/* トースト（販売者側は左寄せ・下部固定バー直上） */
body.seller .toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 88px;
  max-width: 448px;
  margin: 0 auto;
  background: var(--sumi);
  color: #fff;
  padding: 14px 16px;
  font-size: 14px;
  text-align: left;
  white-space: pre-line;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 50;
}
body.seller .toast.show { opacity: 1; transform: translateY(0); }
body.seller .toast.error { background: var(--red); }

.empty-state { text-align: center; color: var(--sumi-soft); font-size: 14px; padding: 48px 16px; }

/* --- 反物管理（M） --- */
body.seller .page-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
body.seller .page-head-row .page-title { margin-bottom: 0; }
.btn-new {
  flex-shrink: 0;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  background: var(--indigo-deep);
  color: #fff;
  text-decoration: none;
}
.btn-new:active { background: var(--indigo); }
.product-card-wrap { position: relative; }
.product-card.flash { background: rgba(182,151,76,0.3); }
.product-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--stone-line);
  padding: 14px 84px 14px 14px;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: background-color 1.2s ease;
}
.card-side-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.card-menu { position: relative; }
.card-menu-toggle {
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid var(--stone-line);
  background: rgba(255,255,255,0.95);
  color: var(--sumi-soft);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.card-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid var(--stone-line);
  min-width: 108px;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.card-menu-dropdown.drop-up { top: auto; bottom: calc(100% + 4px); }
.card-menu-dropdown.open { display: block; }
.card-menu-item {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--sumi);
  background: none;
  border: none;
  border-bottom: 1px solid var(--stone-line);
  text-decoration: none;
  cursor: pointer;
}
.card-menu-item:last-child { border-bottom: none; }
.card-menu-item:active:not(:disabled) { background: var(--stone); }
.card-menu-item.danger { color: var(--red); }
.card-menu-item:disabled { color: var(--stone-line); cursor: not-allowed; }
.product-card img, .product-card .thumb-placeholder {
  width: 64px;
  aspect-ratio: 3/4;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--stone-line);
  background: var(--stone-line);
}
.product-card .thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  color: var(--sumi-soft);
  letter-spacing: 0.03em;
}
.product-card .info { flex: 1; min-width: 0; }
.product-card .name {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  color: var(--indigo-deep);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card .meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card .price { font-size: 14px; font-weight: 700; }
.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sumi-soft);
}
.card-status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stone-line);
  flex-shrink: 0;
}
.card-status-badge.published { color: var(--indigo-deep); font-weight: 700; }
.card-status-badge.published::before { background: var(--indigo-deep); }
.card-status-badge.sold { color: var(--red); font-weight: 700; }
.card-status-badge.sold::before { background: var(--red); }
.card-status-badge.incomplete { color: var(--gold); font-weight: 700; }
.card-status-badge.incomplete::before { background: var(--gold); }

/* --- 反物登録・編集（N） --- */
body.seller .title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
body.seller .title-row .page-title { margin-bottom: 0; }
body.seller .title-row .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 24px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--sumi-soft);
  background: var(--stone-line);
}
body.seller .title-row .badge.published { color: #fff; background: var(--indigo-deep); }
body.seller .title-row .badge.sold { color: #fff; background: var(--red); }
body.seller .title-row .badge.incomplete { color: #fff; background: var(--gold); }

.photo-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--stone-line);
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}
.photo-slot:last-child { margin-bottom: 0; }
.photo-slot:not(.filled) { cursor: pointer; }
.photo-slot-thumb {
  position: relative;
  width: 56px;
  aspect-ratio: 3/4;
  flex-shrink: 0;
  border: 1px dashed var(--stone-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sumi-soft);
  overflow: hidden;
  cursor: pointer;
}
.photo-slot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot-thumb svg { width: 22px; height: 22px; }
.photo-slot.filled .photo-slot-thumb { border-style: solid; border-color: #b5b0a4; color: var(--sumi-soft); }
.photo-slot-info { flex: 1; min-width: 0; }
.photo-slot-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  color: var(--indigo-deep);
  margin-bottom: 2px;
}
.photo-slot-desc { font-size: 12px; color: var(--sumi-soft); }
.photo-slot-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.photo-slot-change-btn {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 12px;
  padding: 6px 12px;
  background: #fff;
  color: var(--indigo-deep);
  border: 1px solid var(--indigo-deep);
  cursor: pointer;
}
.photo-slot-change-btn:active { background: var(--stone); }

.photo-ai-btn {
  display: block;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(182,151,76,0.1);
  color: var(--gold);
  border: 1px solid var(--gold);
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.photo-ai-btn:active:not(:disabled) { background: rgba(182,151,76,0.2); }
.photo-ai-btn:disabled { color: var(--sumi-soft); border-color: var(--stone-line); background: var(--stone); cursor: not-allowed; }

.ai-adjust-box { max-width: 420px; }
.ai-adjust-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.ai-adjust-options label { display: flex; align-items: center; font-size: 14px; font-weight: 400; cursor: pointer; }
.ai-adjust-options input[type=radio] { accent-color: var(--indigo); width: 18px; height: 18px; margin: 0 8px 0 0; }
.ai-adjust-preview { margin-bottom: 22px; }
.ai-adjust-preview img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; border: 1px solid var(--stone-line); }

.ai-generate-btn {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  background: rgba(182,151,76,0.1);
  color: var(--gold);
  border: 1px solid var(--gold);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.ai-generate-btn:active:not(:disabled) { background: rgba(182,151,76,0.2); }
.ai-generate-btn:disabled { color: var(--sumi-soft); border-color: var(--stone-line); background: var(--stone); cursor: wait; }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 70;
  cursor: zoom-out;
}
.lightbox-overlay.show { display: flex; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(38,37,34,0.5);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff;
  max-width: 360px;
  width: 100%;
  padding: 28px 24px 24px;
}
.modal-text { font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.modal-actions button {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 18px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.modal-btn-cancel {
  background: #fff;
  color: var(--sumi-soft);
  border: 1px solid var(--stone-line);
}
.modal-btn-cancel:active { background: var(--stone); }
.modal-btn-ok {
  background: var(--indigo-deep);
  color: #fff;
  border: none;
}
.modal-btn-ok:active { background: var(--indigo); }
.modal-btn-ok:disabled { background: var(--stone); color: var(--sumi-soft); cursor: wait; }

.spinner {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--stone-line);
  border-top-color: var(--indigo-deep);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-spinner { display: inline-block; vertical-align: -4px; margin-right: 8px; }
.modal-btn-danger {
  background: var(--red);
  color: #fff;
  border: none;
}
.modal-btn-danger:active { background: #8f1e18; }

/* --- 購入希望者一覧（O） --- */
.inquiry-card {
  display: block;
  background: #fff;
  border: 1px solid var(--stone-line);
  margin-bottom: 14px;
  padding: 14px 16px;
}
.inquiry-card .meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.inquiry-card .date { font-size: 12px; color: var(--sumi-soft); white-space: nowrap; }
.purpose-badge {
  font-size: 12px;
  padding: 2px 10px;
  border: 1px solid var(--stone-line);
  color: var(--sumi-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.purpose-badge.purchase { border-color: var(--indigo); color: var(--indigo-deep); font-weight: 700; }
body.seller .product-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 16px;
}
body.seller .inquiry-card .product-row { margin-top: 0; margin-bottom: 4px; }
body.seller .product-row .product-name {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  color: var(--indigo-deep);
  text-decoration: underline;
}
body.seller .product-row .product-name .product-name-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
body.seller .product-row .product-name .ext-icon { width: 12px; height: 12px; margin-top: 2px; flex-shrink: 0; }
body.seller .product-row .product-price { font-size: 14px; color: var(--sumi-soft); font-weight: 700; flex-shrink: 0; }
.buyer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.buyer-name { font-size: 14px; color: var(--sumi-soft); }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  flex-shrink: 0;
}
.status-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-badge.new { background: rgba(179,38,30,0.08); color: var(--red); }
.status-badge.new::before { background: var(--red); }
.status-badge.progress { background: rgba(182,151,76,0.14); color: var(--indigo-deep); }
.status-badge.progress::before { background: var(--gold); }
.status-badge.done { background: rgba(26,38,52,0.07); color: var(--indigo-deep); }
.status-badge.done::before { background: var(--indigo-deep); }
.status-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--stone-line);
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo-deep);
  text-decoration: underline;
}
.status-link:active { color: var(--indigo); }

/* --- 購入希望者詳細（R） --- */
.detail-row { margin-bottom: 10px; }
.detail-row:last-child { margin-bottom: 0; }
.detail-row .label { font-size: 12px; color: var(--sumi-soft); margin-bottom: 2px; }
.detail-row .value { font-size: 14px; }
.detail-row a.value { color: var(--indigo); word-break: break-all; }

.status-badge-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo-deep);
  background: rgba(182,151,76,0.14);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.status-badge-current::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.status-badge-current.done { background: rgba(26,38,52,0.07); color: var(--indigo-deep); }
.status-badge-current.done::before { background: var(--indigo-deep); }

.log-list { margin-bottom: 16px; }
.log-entry { padding: 12px 0; border-bottom: 1px solid var(--stone-line); }
.log-entry:first-child { padding-top: 0; }
.log-entry:last-child { border-bottom: none; padding-bottom: 0; }
.log-entry .log-time { font-size: 10px; color: var(--sumi-soft); margin-bottom: 4px; }
.log-entry .log-text { font-size: 16px; }
.log-entry.system .log-text { color: var(--sumi-soft); font-size: 12px; padding-left: 1.3em; text-indent: -1.3em; }
.log-entry.system .log-text::before { content: "・ "; }
.log-entry .log-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.log-entry .log-row .log-text { flex: 1; min-width: 0; word-break: break-word; }
.log-entry .log-actions { display: flex; gap: 4px; flex-shrink: 0; }
.log-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  color: var(--sumi-soft);
  cursor: pointer;
}
.log-icon-btn svg { width: 16px; height: 16px; }
.log-icon-btn:active { color: var(--indigo-deep); }
.log-edit-row { margin-top: 8px; }
.log-edit-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--stone-line);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
  min-height: 60px;
}
.log-edit-textarea:focus { outline: none; border-color: var(--indigo); }
.log-edit-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 6px; }

.note-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--stone-line);
}
.note-form-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.btn-note-add {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  padding: 10px 20px;
  background: var(--indigo-deep);
  color: #fff;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
}
.btn-note-add:active { background: var(--indigo); }

/* --- 工房情報（P） --- */
.media-type-row { display: flex; gap: 20px; margin-top: 4px; }
#videoField, #photoField { margin-top: 18px; }
body.seller form.stacked .media-type-row label {
  display: inline-flex;
  align-items: center;
  font-weight: 400;
  font-size: 14px;
  margin-top: 0;
}
body.seller form.stacked .media-type-row input[type=radio] {
  accent-color: var(--indigo);
  width: 18px;
  height: 18px;
  margin: 0 6px 0 0;
}
body.seller form.stacked label.photo-upload {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px dashed var(--stone-line);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--sumi-soft);
  font-size: 14px;
  gap: 8px;
  margin-top: 16px;
  cursor: pointer;
}
.photo-upload .icon { display: block; width: 24px; height: 24px; }
.photo-upload .icon svg { display: block; width: 100%; height: 100%; }
.photo-preview-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin-top: 16px;
  border: 1px solid var(--stone-line);
  overflow: hidden;
}
.photo-preview-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.photo-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(38,37,34,0.7);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-remove-btn:active { background: rgba(38,37,34,0.9); }

/* --- 販売者ログイン（L） --- */
body.seller-login {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--stone);
  color: var(--sumi);
  line-height: 1.8;
  font-size: 16px;
}
.login-frame {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
}
.login-logo {
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--indigo-deep);
  margin-bottom: 4px;
}
.login-logo small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--sumi-soft);
  margin-top: 6px;
}
.login-card {
  background: #fff;
  border: 1px solid var(--stone-line);
  padding: 32px 24px;
  margin-top: 40px;
}
.login-card label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-top: 20px;
}
.login-card label:first-child { margin-top: 0; }
.login-card input[type=email], .login-card input[type=password] {
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  border: 1px solid var(--stone-line);
  font-size: 16px;
  background: #fff;
  font-family: inherit;
}
.login-card input:focus { outline: none; border-color: var(--indigo); }
.login-terms-note { margin-top: 20px; font-size: 12px; color: var(--sumi-soft); text-align: center; }
.login-terms-note a { color: var(--indigo); }
.login-btn { margin-top: 20px; display: block; width: fit-content; margin-left: auto; margin-right: auto; }

@media (max-width: 480px) {
  body.seller .seller-main { padding: 20px 16px; }
}
