/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #faf8f3;
  --warm:    #f2ede3;
  --charcoal:#1c1a17;
  --gold:    #9b7d3c;
  --gray:    #7a7369;
  --border:  #ddd8ce;
  --white:   #ffffff;

  --serif: 'Noto Serif JP', 'Yu Mincho', serif;
  --sans:  'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --en:    'Cormorant Garamond', Georgia, serif;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.85;
  overflow-x: hidden;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,248,243,0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
.nav.scrolled { background: rgba(250,248,243,0.99); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--charcoal);
}
/* ロゴ丸：mix-blend-mode で白背景を消す */
.nav-logo-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}
.nav-logo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-logo-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-text {
  font-family: var(--en);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  line-height: 1.3;
}
.nav-logo-sub {
  font-family: var(--en);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--gray);
  font-style: italic;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-parent-link {
  color: var(--gold) !important;
  border: 1px solid rgba(155,125,60,0.4);
  padding: 0.28rem 0.9rem !important;
  border-radius: 2px;
  font-size: 0.75rem !important;
  transition: all 0.25s !important;
}
.nav-parent-link:hover { background: var(--gold) !important; color: white !important; border-color: var(--gold) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--charcoal); transition: 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(250,248,243,0.98);
  padding: 2rem 2.5rem;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.05);
}

/* ===== Hero + Story ===== */
.hero {
  background: var(--cream);
  padding-top: 68px;
  padding-bottom: 5rem;
  position: relative;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2.5rem 3rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 6rem;
  align-items: start;
}

.hero-logo-col { position: sticky; top: 100px; }
/* ロゴ：まん丸、白背景を消す */
.hero-kamon-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  mix-blend-mode: multiply;
  box-shadow: 0 20px 60px rgba(28,26,23,0.12);
}
.hero-kamon { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-eyebrow {
  font-family: var(--en);
  font-size: 0.75rem;
  letter-spacing: 0.38em;
  color: var(--gold);
  font-style: italic;
  display: block;
  margin-bottom: 1.1rem;
}
.hero-title {
  font-family: var(--en);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1.3rem;
}
.hero-rule { width: 36px; height: 1px; background: var(--gold); margin-bottom: 1.3rem; }
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
  color: var(--gray);
  letter-spacing: 0.14em;
  line-height: 2.2;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-story-body { border-top: 1px solid var(--border); padding-top: 2rem; margin-bottom: 2rem; }
.story-lead { font-family: var(--serif); font-size: 1rem; color: var(--charcoal); line-height: 2.1; margin-bottom: 1.2rem; font-weight: 300; }
.hero-story-body p { font-size: 0.93rem; color: var(--gray); margin-bottom: 1rem; line-height: 2.1; }
.hero-story-body strong { color: var(--charcoal); font-weight: 400; }
.story-quote {
  font-family: var(--serif);
  font-size: 0.94rem;
  color: var(--charcoal);
  padding: 1rem 1.3rem;
  border-left: 2px solid var(--gold);
  background: rgba(155,125,60,0.05);
  margin: 1.5rem 0 0;
  line-height: 2;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num { font-family: var(--en); font-size: 1.5rem; font-weight: 400; color: var(--charcoal); line-height: 1; letter-spacing: 0.04em; }
.stat-num small { font-size: 0.78rem; }
.stat-label { font-size: 0.67rem; color: var(--gray); letter-spacing: 0.1em; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

.story-inline-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(155,125,60,0.4);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.story-inline-link:hover { color: var(--charcoal); border-color: var(--charcoal); }

.story-parent-link {
  display: inline-block;
  font-size: 0.84rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(155,125,60,0.35);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.story-parent-link:hover { color: var(--charcoal); border-color: var(--charcoal); }

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  font-family: var(--en);
  opacity: 0.45;
  padding-bottom: 1rem;
}
.hero-scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scroll-fade 2.2s ease-in-out infinite; }
@keyframes scroll-fade { 0%,100%{opacity:.35}50%{opacity:1} }

/* ===== Layout Commons ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.section-eyebrow { font-family: var(--en); font-size: 0.64rem; letter-spacing: 0.52em; color: var(--gold); font-style: italic; margin-bottom: 0.8rem; display: block; }
.section-heading { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 400; letter-spacing: 0.06em; line-height: 1.55; color: var(--charcoal); margin-bottom: 1.2rem; }
.section-sub { font-size: 0.9rem; color: var(--gray); line-height: 2.1; margin-bottom: 3.5rem; }

/* ===== 作品・制作品（統合セクション） ===== */
.works {
  padding: 9rem 0;
  background: var(--warm);
  border-top: 1px solid var(--border);
}

/* ブロックタイトル（販売バッジ付き） */
.works-block-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.8rem;
}
.gallery-label-text {
  font-family: var(--serif);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  color: var(--charcoal);
}
.on-sale {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--gold);
  padding: 0.15rem 0.65rem;
  border-radius: 1px;
  font-family: var(--sans);
}

/* 家紋ギャラリー 10枚均一 */
.kamon-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 3rem;
}
.kg-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
}
.kg-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s var(--ease); }
.kg-item:hover img { transform: scale(1.04); }

/* ギャラリー下テキスト＋注文CTA */
.works-info-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.works-info-text p { font-size: 0.93rem; color: var(--gray); line-height: 2.1; margin-bottom: 1rem; }
.works-info-text strong { color: var(--charcoal); font-weight: 400; }

.works-order-cta { display: flex; flex-direction: column; gap: 0.9rem; }
.product-badge { display: inline-block; font-size: 0.64rem; letter-spacing: 0.28em; color: var(--gold); border: 1px solid rgba(155,125,60,0.4); padding: 0.2rem 0.85rem; }
.works-order-cta h3 { font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 400; letter-spacing: 0.06em; color: var(--charcoal); }
.works-order-cta p { font-size: 0.88rem; color: var(--gray); line-height: 2; }
.product-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.82rem 2rem;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: background 0.3s;
}
.product-btn:hover { background: var(--gold); }

/* 制作風景 */
.seisaku-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.seisaku-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform 0.5s var(--ease); cursor: zoom-in; }
.seisaku-grid img:hover { transform: scale(1.03); }

/* その他の制作品（小物・ステッカー） */
.other-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 700px;
}
.other-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.other-card:hover { box-shadow: 0 10px 36px rgba(28,26,23,0.09); transform: translateY(-2px); }

.other-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--warm);
}
.other-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s var(--ease); }
.other-card:hover .other-card-img img { transform: scale(1.04); }

/* ステッカー：丸いロゴ */
.sticker-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  position: relative;
}

/* ステッカー個別選択グリッド（注文フォーム内） */
.sticker-select-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.sticker-sel-item {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.sticker-sel-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.sticker-sel-item .sticker-circle {
  width: 90px; height: 90px;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
}
.sticker-sel-item:has(input:checked) .sticker-circle {
  border-color: var(--gold);
  opacity: 0.88;
}
.sticker-sel-item:has(input:checked) .sel-check-overlay { opacity: 1; }
.sticker-sel-item .sel-check-overlay {
  position: absolute;
  top: 5px; right: 5px;
}
.sticker-sel-num {
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.05em;
}

/* ステッカー2枚グリッド（商品カード内） */
.sticker-preview-grid {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
}
.sticker-preview-grid .sticker-circle { width: 100px; height: 100px; }
.sticker-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sticker-card-name {
  font-family: var(--serif);
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.08em;
}

/* 熨斗ビジュアル */
.noshi-visual {
  margin: 0.8rem 0 0.4rem;
  padding: 0 0.5rem;
}
.noshi-paper {
  background: white;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.4rem 1.6rem 1.4rem 1.2rem;
  position: relative;
  max-width: 380px;
}
.noshi-field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; }
.noshi-field--bottom { margin-top: 0.9rem; margin-bottom: 0; }
.noshi-field-label {
  font-size: 0.68rem;
  color: var(--gray);
  letter-spacing: 0.1em;
}
.noshi-input {
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--charcoal);
  text-align: center;
  letter-spacing: 0.18em;
  padding: 0.3rem 0.5rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.noshi-input:focus { border-color: var(--gold); }
.noshi-input::placeholder { font-size: 0.76rem; color: #bbb; letter-spacing: 0.06em; }
.noshi-mizuhiki { margin: 0.5rem 0; padding-right: 44px; }
.noshi-mizuhiki svg { width: 100%; height: auto; display: block; }
.noshi-ornament {
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  opacity: 0.75;
}

/* 受取人トグル */
.recipient-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.2rem 0;
}
.recipient-toggle input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px; height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.recipient-toggle-label {
  font-size: 0.84rem;
  color: var(--charcoal);
  letter-spacing: 0.05em;
}

/* ステッカーオプション動的生成用 */
.sticker-opt-group {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
  background: var(--warm);
}
.sticker-opt-group-title {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--charcoal);
  letter-spacing: 0.1em;
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* 見本バッジ */
.sample-badge {
  position: absolute;
  bottom: 8px; right: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--gray);
  background: rgba(250,248,243,0.88);
  border: 1px solid var(--border);
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
}

/* 注文フォーム内の見本注記 */
.sample-note {
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.sticker-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  mix-blend-mode: multiply;
}
.sticker-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }

.other-card-body { padding: 1.3rem 1.4rem 1.5rem; }
.other-card-body h4 { font-family: var(--serif); font-size: 0.98rem; font-weight: 400; letter-spacing: 0.07em; margin-bottom: 0.6rem; color: var(--charcoal); }
.other-card-body p { font-size: 0.82rem; color: var(--gray); line-height: 1.85; margin-bottom: 1rem; }
.card-link { font-size: 0.78rem; color: var(--gold); text-decoration: none; letter-spacing: 0.06em; border-bottom: 1px solid rgba(155,125,60,0.3); padding-bottom: 1px; transition: color 0.25s, border-color 0.25s; }
.card-link:hover { color: var(--charcoal); border-color: var(--charcoal); }

/* ===== 価格・商品スペック ===== */
.price-block {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0.3rem 0 0.8rem;
}
.price {
  font-family: var(--en);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.04em;
}
.price-note {
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.08em;
}
.price-block--small .price { font-size: 1.3rem; }

.product-spec {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.spec-row {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.7;
}
.spec-label {
  flex-shrink: 0;
  min-width: 90px;
  color: var(--charcoal);
  font-weight: 400;
}
.spec-row--point { color: var(--gold); }
.spec-row--point .spec-label { color: var(--gold); }

/* 商品状態バッジ */
.condition-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #5a7a5a;
  background: rgba(90,122,90,0.1);
  border: 1px solid rgba(90,122,90,0.3);
  padding: 0.18rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 0.7rem;
}
.condition-badge--used {
  color: #8b6914;
  background: rgba(155,125,60,0.08);
  border-color: rgba(155,125,60,0.3);
}

.product-notes {
  list-style: none;
  margin: 0.8rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.product-notes li {
  font-size: 0.78rem;
  color: var(--gray);
  padding-left: 1em;
  position: relative;
  line-height: 1.7;
}
.product-notes li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.card-spec {
  font-size: 0.76rem;
  color: var(--gray);
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
}

/* ステッカー価格表 */
.sticker-prices { margin: 0.5rem 0 1rem; }
.sticker-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.sticker-size { font-size: 0.82rem; color: var(--gray); letter-spacing: 0.05em; }
.price-sm {
  font-family: var(--en);
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
}
.price-sm small { font-size: 0.68rem; color: var(--gray); margin-left: 2px; letter-spacing: 0.05em; }

.sticker-note {
  font-size: 0.74rem;
  color: var(--gray);
  line-height: 1.8;
  margin-top: 0.7rem;
}

/* ===== Contact ===== */
.contact {
  padding: 9rem 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.contact-center {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}

/* Instagram DMボタン */
.dm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.6rem;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  border-radius: 2px;
}
.dm-btn:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

.dm-note {
  font-family: var(--en);
  font-size: 0.82rem;
  color: var(--gray);
  letter-spacing: 0.15em;
  text-align: center;
  margin-top: 2.5rem;
}
.dm-sub {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 2;
  text-align: center;
}
.contact-links {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-sub-link {
  font-size: 0.82rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.25s;
  border-bottom: 1px solid rgba(155,125,60,0.3);
  padding-bottom: 2px;
}
.contact-sub-link:hover { color: var(--charcoal); border-color: var(--charcoal); }

.contact-how {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 0.5rem;
}

/* ボタン2つ並び */
.contact-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.template-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-family: var(--serif);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  border-radius: 2px;
}
.template-btn:hover { transform: translateY(-1px); }
.template-btn--order   { background: var(--charcoal); color: var(--cream); }
.template-btn--order:hover { background: var(--gold); }
.template-btn--inquiry { background: transparent; color: var(--charcoal); border: 1px solid var(--border); }
.template-btn--inquiry:hover { background: var(--warm); border-color: var(--charcoal); }

/* ━━ モーダル ━━ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 23, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--cream);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 24px 64px rgba(28,26,23,0.18);
  animation: modal-in 0.25s var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--gray);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--charcoal); }

.modal-label {
  font-family: var(--en);
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1rem;
}

.modal-text {
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 2;
  color: var(--charcoal);
  background: var(--warm);
  border: 1px solid var(--border);
  padding: 1.2rem 1.4rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 1.4rem;
  border-radius: 2px;
}

.modal-actions {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.modal-copy-btn {
  flex: 1;
  padding: 0.8rem 1rem;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 2px;
}
.modal-copy-btn:hover { background: var(--gold); }
.modal-copy-btn.copied { background: #5a7a5a; }

.modal-dm-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: all 0.3s;
  border-radius: 2px;
}
.modal-dm-btn:hover { background: var(--warm); border-color: var(--charcoal); }

.modal-hint {
  font-size: 0.74rem;
  color: var(--gray);
  text-align: center;
  letter-spacing: 0.06em;
}

/* ===== Contact Form ===== */

/* タブ */
.form-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.8rem;
}
.form-tab {
  flex: 1;
  padding: 0.9rem 1rem;
  background: var(--warm);
  border: none;
  border-right: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.form-tab:last-child { border-right: none; }
.form-tab--active { background: var(--charcoal); color: var(--cream); }
.form-tab:hover:not(.form-tab--active) { background: var(--border); color: var(--charcoal); }

/* 商品ブロック */
.order-product-block {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.4rem;
  margin-bottom: 1rem;
  background: var(--white);
}
.order-product-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.order-product-name {
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  color: var(--charcoal);
}
.order-price-tag {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* 家紋画像チェックグリッド */
.kamon-select-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 0.8rem;
}
.kamon-sel-item {
  position: relative;
  cursor: pointer;
  display: block;
}
.kamon-sel-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.kamon-sel-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  border-radius: 2px;
}
.kamon-sel-item:has(input:checked) img {
  border-color: var(--gold);
  opacity: 0.85;
}
.sel-check-overlay {
  position: absolute;
  top: 5px; right: 5px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  line-height: 0;
}
.kamon-sel-item:has(input:checked) .sel-check-overlay { opacity: 1; }
.kamon-sel-num {
  position: absolute;
  bottom: 5px; left: 6px;
  font-size: 0.65rem;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  line-height: 1;
}
.kamon-sel-note {
  font-size: 0.76rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}

/* トートバッグ・ステッカー選択 */
.other-sel-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  cursor: pointer;
  padding: 0.9rem;
  border: 2px solid transparent;
  border-radius: 3px;
  background: var(--warm);
  transition: border-color 0.2s, background 0.2s;
}
.other-sel-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.other-sel-item:has(input:checked) {
  border-color: var(--gold);
  background: rgba(155,125,60,0.06);
}
.other-sel-item:has(input:checked) .sel-check-overlay { opacity: 1; }
.other-sel-item .sel-check-overlay {
  position: absolute;
  top: 8px; right: 8px;
}
.other-sel-img {
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--cream);
}
.other-sel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sticker-sel-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
}
.other-sel-info { display: flex; flex-direction: column; gap: 0.4rem; }
.other-sel-name {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--charcoal);
  letter-spacing: 0.06em;
}

/* ステッカーオプション */
.sticker-opts {
  display: none;
  margin-top: 0.8rem;
  padding: 1rem 1.1rem;
  background: var(--warm);
  border-radius: 2px;
  border: 1px solid var(--border);
}
.sticker-opt-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 0;
}
.sticker-opt-row + .sticker-opt-row { border-top: 1px solid var(--border); }
.opt-label {
  font-size: 0.8rem;
  color: var(--charcoal);
  letter-spacing: 0.05em;
  min-width: 44px;
  flex-shrink: 0;
}

/* ラジオグループ */
.radio-group {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.84rem;
  color: var(--charcoal);
  cursor: pointer;
  letter-spacing: 0.04em;
}
.radio-item input[type="radio"] {
  accent-color: var(--gold);
  width: 15px; height: 15px;
  cursor: pointer;
}

/* フォームブロック */
.form-block {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.4rem;
  margin-bottom: 1rem;
  background: var(--white);
}
.form-block-title {
  font-family: var(--serif);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  color: var(--charcoal);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.6rem 1rem;
  align-items: start;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(221,216,206,0.5);
}
.form-row:last-child { border-bottom: none; }
.form-label {
  font-size: 0.8rem;
  color: var(--charcoal);
  letter-spacing: 0.05em;
  padding-top: 0.5rem;
  line-height: 1.5;
}
.form-req {
  font-size: 0.68rem;
  color: #c05a3a;
  margin-left: 3px;
}
.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--charcoal);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--gold); }
.form-input--short { max-width: 140px; }
.form-textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--charcoal);
  border-radius: 2px;
  outline: none;
  resize: vertical;
  line-height: 1.85;
  transition: border-color 0.2s;
}
.form-textarea:focus { border-color: var(--gold); }

.form-section-title {
  font-family: var(--serif);
  font-size: 0.88rem;
  color: var(--charcoal);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
/* 商品選択と入力欄の区切り */
.form-section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1rem;
}
.form-section-divider::before,
.form-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.form-section-divider span {
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--gray);
  white-space: nowrap;
}

.form-notice {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 2;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.1rem;
  background: var(--warm);
  border-left: 2px solid var(--border);
  border-radius: 0 2px 2px 0;
}

/* 生成ボタン */
.generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.2rem;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}
.generate-btn:hover { background: var(--gold); transform: translateY(-1px); }
.generate-hint {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

/* ===== Footer ===== */
.footer { background: var(--charcoal); padding: 5rem 0 2.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4rem; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 1.1rem; }
.footer-logo-circle { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #1a1714; }
.footer-logo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.footer-name { font-family: var(--en); font-size: 0.96rem; color: rgba(255,255,255,0.8); letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.footer-tagline { font-family: var(--serif); font-size: 0.72rem; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; margin-bottom: 0.2rem; }
.footer-sub { font-size: 0.68rem; color: rgba(255,255,255,0.2); letter-spacing: 0.06em; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1.5rem; }
.footer-nav { display: flex; gap: 2rem; }
.footer-nav a { font-size: 0.76rem; color: rgba(255,255,255,0.38); text-decoration: none; letter-spacing: 0.1em; transition: color 0.25s; }
.footer-nav a:hover { color: rgba(255,255,255,0.75); }
.footer-external { display: flex; align-items: center; gap: 2rem; }
.footer-ig, .footer-parent { display: flex; align-items: center; gap: 0.45rem; font-size: 0.76rem; color: rgba(255,255,255,0.38); text-decoration: none; letter-spacing: 0.08em; transition: color 0.25s; }
.footer-ig:hover, .footer-parent:hover { color: rgba(255,255,255,0.75); }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 2rem; text-align: center; font-size: 0.68rem; color: rgba(255,255,255,0.18); letter-spacing: 0.06em; }

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,8,6,0.93);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 4rem;
}
.lightbox.open { display: flex; }

.lb-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
  animation: lb-in 0.22s var(--ease);
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: none; }
}

.lb-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  background: none; border: none;
  color: white; font-size: 1.5rem;
  cursor: pointer; opacity: 0.6;
  line-height: 1; padding: 6px;
  transition: opacity 0.2s;
}
.lb-close:hover { opacity: 1; }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  font-size: 2.2rem;
  line-height: 1;
  width: 44px; height: 68px;
  cursor: pointer;
  border-radius: 3px;
  opacity: 0.65;
  transition: opacity 0.2s, background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lb-prev:hover, .lb-next:hover { opacity: 1; background: rgba(255,255,255,0.18); }
.lb-prev { left: 0.8rem; }
.lb-next { right: 0.8rem; }
.lb-prev[hidden], .lb-next[hidden] { visibility: hidden; }

/* 画像にカーソルを付ける */
.kamon-gallery .kg-item img,
.seisaku-grid img,
.other-card-img > img { cursor: zoom-in; }

/* ===== Animations ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1060px) {
  .hero-inner { grid-template-columns: 260px 1fr; gap: 4rem; }
  .kamon-gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem 2rem; }
  .hero-logo-col { position: static; }
  .hero-kamon-wrap { width: 200px; margin: 0 auto; }
  .hero-title, .hero-eyebrow, .hero-tagline { text-align: center; }
  .hero-rule { margin: 0 auto 1.3rem; }
  .works-info-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-btn { align-self: auto; width: 100%; text-align: center; }
  .seisaku-grid { grid-template-columns: repeat(2, 1fr); }
  .other-cards { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { flex-direction: column; }
  .footer-right { align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; gap: 1rem 2rem; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.5rem; }
  .works, .contact { padding: 6rem 0; }
  .kamon-gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat-div { display: none; }
  .other-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-external { flex-wrap: wrap; gap: 1rem; }
  .kamon-select-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .sticker-opt-row { flex-wrap: wrap; gap: 0.5rem; }
  .generate-btn { width: 100%; justify-content: center; }
  .modal-actions { flex-direction: column; }
  .lightbox { padding: 1rem 3rem; }
  .lb-prev, .lb-next { width: 36px; height: 56px; font-size: 1.8rem; }
  .lb-prev { left: 0.4rem; }
  .lb-next { right: 0.4rem; }
}
