/* ------------------------------------------------------------
   注意: BASE Template では CSS 内の「;」省略やスペースなしの
   ミニファイ記述がテンプレートタグと誤認識される。
   必ず「セレクタ␣{␣プロパティ: 値;␣}」の形で書くこと。
   ------------------------------------------------------------ */

/* --- ブランドパレット --------------------------------------- */
:root {
  --ink: #1C1B19;
  --mid: #5A5850;
  --light: #9A9690;
  --paper: #FAFAF8;
  --subpaper: #F0EDE7;
  --dark: #2E2C2A;
  --gold: #C8B87A;
  --line: #E4E1DA;
  --darkline: #45423E;
  --pad: 20px;
  /* ロゴの大きさはここだけ変えれば効く（スマホ / PC）。
     余白を切り落としたロゴ（比率 3.32:1）を前提にした値。
     余白入りの画像を使うと、指定しても見た目が小さいままになる。 */
  --logo-h: 24px;
  --logo-h-footer: 26px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--ink); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--gold); }

ul, ol { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 { margin: 0; font-weight: 500; }

p { margin: 0; }

.serif {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

/* --- 写真待ちのプレースホルダ ---------------------------------
   URL を差し替えるまでは壊れた画像アイコンが出るので隠しておく。
   ファイルアップローダーの URL に置換すれば自動的に表示される。 */
img[src="HERO_IMAGE_URL"],
img[src="MATERIAL_IMAGE_URL"],
img[src="ABOUT_IMAGE_URL"],
img[src="LOGO_WHITE_URL"] { display: none; }

/* --- 共通パーツ --------------------------------------------- */
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
}

.rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.section-title {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* --- ヘッダー ----------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.header-logo { display: flex; align-items: center; }

/* {LogoTag} が出力する img には BASE 側のサイズ指定が付いてくる。
   max-height では上限に届かず、通常の height 指定でも上書きされるため、
   !important で強制している。大きさは --logo-h で調整する。 */
.header-logo img,
.header-logo .logoImage {
  height: var(--logo-h) !important;
  width: auto !important;
  max-height: none !important;
}
.header-logo .logoText {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-size: 17px;
  letter-spacing: 0.16em;
}

.header-right { display: flex; align-items: center; gap: 16px; }

/* PC用グローバルナビ（スマホでは隠してドロワーに寄せる） */
.gnav { display: none; }

/* BASE 提供のカート／BASEリンク。非表示・改変は禁止 */
#baseMenu ul { display: flex; align-items: center; gap: 10px; }
#baseMenu img { height: 22px; width: auto; }
#baseMenu .cart { position: relative; }

/* ドロワー（チェックボックス制御。JS不要） */
#drawerToggle { display: none; }

.drawer-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.drawer-button span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 320px);
  height: 100vh;
  background: var(--dark);
  color: var(--paper);
  padding: 88px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 60;
  overflow-y: auto;
}
#drawerToggle:checked ~ .drawer { transform: translateX(0); }

.drawer a { color: var(--paper); }
.drawer a:hover { color: var(--gold); }

.drawer-close {
  position: absolute;
  top: 26px;
  right: 28px;
  width: 22px;
  height: 22px;
  cursor: pointer;
}
.drawer-close span {
  position: absolute;
  top: 10px;
  left: 0;
  display: block;
  width: 22px;
  height: 1px;
  background: var(--paper);
}
.drawer-close span:nth-child(1) { transform: rotate(45deg); }
.drawer-close span:nth-child(2) { transform: rotate(-45deg); }

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.22em;
}

.drawer-sub {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--darkline);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.drawer-sub a { color: var(--light); }

.drawer-close-layer {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 25, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 55;
}
#drawerToggle:checked ~ .drawer-close-layer { opacity: 1; visibility: visible; }

/* --- ヒーロー ----------------------------------------------- */
/* スマホでは写真を先に見せたいので column-reverse。
   PC では下の @media で grid に切り替わり、左テキスト＋右写真になる。 */
.hero { display: flex; flex-direction: column-reverse; }

/* リード文の改行はPC用。スマホでは自然な折り返しに任せる */
.hero-lead br { display: none; }

.hero-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--subpaper);
  overflow: hidden;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 44px var(--pad) 48px;
}

.hero-title {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.hero-lead {
  font-size: 13px;
  line-height: 2.1;
  color: var(--mid);
}

/* --- コンセプト（ダーク） ------------------------------------ */
.concept {
  background: var(--dark);
  padding: 64px var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.concept-copy {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 2.6;
  color: #F4F1EC;
}

/* --- 商品一覧 ----------------------------------------------- */
.items { padding: 64px 0 72px; }

.item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 16px;
  margin-top: 40px;
}

.item-card a { display: flex; flex-direction: column; gap: 12px; }

.item-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--subpaper);
  overflow: hidden;
}
.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}
.item-card a:hover .item-thumb img { transform: scale(1.04); }

.item-name {
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--ink);
}

.item-price {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mid);
}

.item-soldout {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--light);
}

.badge-soldout {
  position: absolute;
  left: 0;
  top: 0;
  padding: 5px 12px;
  background: rgba(46, 44, 42, 0.86);
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.items-empty {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--mid);
}

.more-wrap { display: flex; justify-content: center; margin-top: 48px; }

.more-link {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--mid);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 8px;
}

/* --- 素材について -------------------------------------------- */
.material { background: var(--subpaper); }

.material-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #DAD7D0;
  overflow: hidden;
}
.material-visual img { width: 100%; height: 100%; object-fit: cover; }

.material-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 48px var(--pad) 56px;
}

.material-text {
  font-size: 13px;
  line-height: 2.2;
  color: var(--mid);
}

/* --- パンくず ----------------------------------------------- */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--light);
}
.breadcrumb a { color: var(--light); }
.breadcrumb ol, .breadcrumb ul { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li::after { content: '/'; margin-left: 8px; color: var(--line); }
.breadcrumb li:last-child::after { content: ''; }

/* --- 商品詳細 ----------------------------------------------- */
.detail { padding: 24px 0 80px; }

.detail-grid { display: flex; flex-direction: column; gap: 32px; }

.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--subpaper);
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.gallery-thumbs li {
  width: 64px;
  height: 64px;
  background: var(--subpaper);
  cursor: pointer;
  overflow: hidden;
}
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs li.is-active { outline: 1px solid var(--gold); outline-offset: -1px; }

/* 商品画像が1枚しかないときはサムネイル列ごと隠す */
.gallery-thumbs:has(li:only-child) { display: none; }

.detail-info { display: flex; flex-direction: column; gap: 22px; }

.detail-title {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

.detail-price {
  font-size: 16px;
  letter-spacing: 0.08em;
}
.detail-price .tax { font-size: 11px; color: var(--light); margin-left: 6px; }

.detail-proper {
  font-size: 12px;
  color: var(--light);
  text-decoration: line-through;
}

.detail-sale {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #A5644E;
}

.detail-desc {
  font-size: 13px;
  line-height: 2.2;
  color: var(--mid);
  word-break: break-word;
}

.detail-status {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--light);
}

/* 購入フォーム（BASE が form / select / button を出力する）
   ここの font-size / color は BASE が出す「数量」などのラベルに効く。
   select と button は下で明示しているので影響しない。 */
.purchase {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--light);
}

.purchase select {
  width: 100%;
  height: 48px;
  margin-top: 2px;
  padding: 0 14px;
  border: 1px solid #D8D5CE;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  appearance: none;
  -webkit-appearance: none;
}

.purchase button,
.purchase input[type="submit"] {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition: opacity 0.25s;
}
.purchase button:hover,
.purchase input[type="submit"]:hover { opacity: 0.82; }

.purchase button[disabled],
.purchase input[type="submit"][disabled] {
  background: #C9C6C0;
  color: var(--paper);
  cursor: default;
}

.detail-note {
  font-size: 11px;
  line-height: 1.9;
  color: var(--light);
}

/* BASE が出力する注意文・通報リンク */
.detail-attention {
  font-size: 11px;
  line-height: 1.9;
  color: var(--light);
}
.detail-attention a { color: var(--mid); }

.detail-report {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.detail-report a { color: var(--light); }

/* --- 汎用ページ（About / 特商法 / プライバシー / お問い合わせ） --- */
.page { padding: 48px 0 88px; }

.page-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 40px;
}

.page-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 2.2;
  color: var(--mid);
  word-break: break-word;
}
.page-body a { color: var(--mid); border-bottom: 1px solid var(--line); }
.page-body img { margin: 16px 0; }
.page-body table { width: 100%; border-collapse: collapse; }
.page-body th, .page-body td {
  padding: 14px 4px;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 300;
  vertical-align: top;
}
.page-body th { width: 34%; color: var(--light); font-size: 12px; letter-spacing: 0.08em; }
.page-body input, .page-body textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D8D5CE;
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
}
.page-body input[type="submit"], .page-body button {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  height: 52px;
  letter-spacing: 0.24em;
  cursor: pointer;
}

.about-visual {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--subpaper);
  margin-bottom: 40px;
  overflow: hidden;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }

.about-signature {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--light);
  text-align: center;
  line-height: 2.2;
}

/* --- フッター ----------------------------------------------- */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: 56px 0 28px;
}

.footer a { color: var(--light); }
.footer a:hover { color: var(--gold); }

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img {
  height: var(--logo-h-footer) !important;
  width: auto !important;
  max-height: none !important;
  align-self: flex-start;
}

/* 白ロゴが未アップの間だけ、代わりにショップ名を出す */
.footer-logo-text { display: none; }
.footer-logo-img[src="LOGO_WHITE_URL"] ~ .footer-logo-text {
  display: block;
  font-size: 17px;
  letter-spacing: 0.16em;
  color: var(--paper);
}

.footer-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 2;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--darkline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.14em;
}

/* --- タブレット以上 ------------------------------------------ */
@media screen and (min-width: 768px) {
  :root { --pad: 40px; --logo-h: 30px; --logo-h-footer: 30px; }

  body { font-size: 14px; }

  .header-inner { height: 88px; }

  .header-right { gap: 28px; }

  .gnav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--mid);
  }
  .gnav a { color: var(--mid); }

  .drawer-button { display: none; }

  .hero {
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: stretch;
  }
  .hero-body {
    gap: 26px;
    padding: 72px 48px 72px var(--pad);
    justify-content: center;
  }
  .hero-title { font-size: 40px; }
  .hero-visual { aspect-ratio: auto; min-height: 520px; }
  .hero-lead br { display: inline; }

  .concept { padding: 96px var(--pad); gap: 30px; }
  .concept-copy { font-size: 16px; letter-spacing: 0.12em; }

  .items { padding: 96px 0 88px; }
  .item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 32px;
    margin-top: 52px;
  }

  .section-title { font-size: 24px; }

  .material {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .material-visual { aspect-ratio: auto; min-height: 520px; }
  .material-body { gap: 22px; padding: 72px 64px; justify-content: center; }

  .detail { padding: 32px 0 112px; }
  .detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    align-items: start;
  }
  .detail-info { gap: 26px; padding-top: 8px; }
  .detail-title { font-size: 28px; }
  .gallery-thumbs li { width: 80px; height: 80px; }
  .gallery-thumbs { gap: 10px; margin-top: 12px; }

  .page { padding: 72px 0 120px; }
  .page-head { margin-bottom: 56px; }

  .footer { padding: 72px 0 36px; }
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-nav { gap: 36px; }
}

@media screen and (min-width: 1120px) {
  :root { --pad: 64px; }
  .hero-title { font-size: 44px; }
}
