/* =========================================================
   贈るふるさと — 和モダン・ラグジュアリー (深藍 × 金 × 明朝)
   ========================================================= */
:root {
  --ink: #0a0d1c;
  --ink-2: #11162b;
  --gold: #d9b45b;
  --gold-bright: #e9c46a;
  --gold-dim: rgba(217, 180, 91, 0.35);
  --cream: #f5efe3;
  --text: #e9e7df;
  --muted: #a7a5b3;
  --red-seal: #b3362f;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, #1a2140 0%, transparent 55%),
    radial-gradient(ellipse 100% 70% at 80% 110%, #251a30 0%, transparent 60%),
    var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.9;
}

::selection { background: var(--gold-dim); }

/* ---- 3D背景と装飾レイヤー ---- */
#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  transition: opacity 0.9s ease;
}
body.dim-3d #bg3d { opacity: 0.4; }

.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 55%, rgba(5, 7, 15, 0.75) 100%);
}

/* ---- 共通 ---- */
.section-en {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.55em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- ヘッダー ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(9, 12, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(217, 180, 91, 0.18);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream);
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(217, 180, 91, 0.28), rgba(217, 180, 91, 0.05));
}
.brand-text {
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.28em;
}
.nav { display: flex; gap: 1.8rem; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  transition: color 0.3s;
}
.nav a:hover { color: var(--gold-bright); }

/* ---- ヒーロー ---- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 1.5rem 4rem;
}
.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  color: var(--gold-bright);
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
  padding: 0.55rem 1.4rem;
  margin-bottom: 2.4rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.6vw, 4.3rem);
  line-height: 1.55;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.8rem;
}
.hero-subtitle {
  font-size: clamp(0.92rem, 1.6vw, 1.08rem);
  letter-spacing: 0.14em;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 3rem;
}
.hero-cta {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.98rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--gold-bright);
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 1rem 3.2rem;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
  z-index: 1;
}
.hero-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.hero-cta:hover { color: var(--ink); }
.hero-cta:hover::before { transform: scaleX(1); }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.scroll-hint-label {
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--muted);
}
.scroll-hint-line {
  width: 1px;
  height: 56px;
  background: var(--gold-dim);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--gold-bright);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -40%; }
  60%, 100% { top: 110%; }
}

/* ---- 手紙メッセージ ---- */
.message {
  padding: 8rem 1.5rem;
  display: flex;
  justify-content: center;
}
.message-frame {
  max-width: 760px;
  width: 100%;
  position: relative;
  background: linear-gradient(165deg, rgba(20, 25, 47, 0.88), rgba(12, 15, 30, 0.92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gold-dim);
  outline: 1px solid rgba(217, 180, 91, 0.12);
  outline-offset: 6px;
  padding: 4rem 3.2rem 4.4rem;
  text-align: center;
}
.message-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cream);
  margin-bottom: 2.4rem;
}
.message-body {
  text-align: left;
  font-size: 0.98rem;
  line-height: 2.35;
  letter-spacing: 0.08em;
  color: var(--text);
}
.message-body p + p { margin-top: 1.6em; }
.message-seal {
  position: absolute;
  right: 2rem;
  bottom: 1.8rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  color: #f2ddd6;
  background: radial-gradient(circle at 35% 30%, #cd4b40, var(--red-seal));
  box-shadow: 0 2px 14px rgba(179, 54, 47, 0.45);
  transform: rotate(-8deg);
}

/* ---- 商品セクション ---- */
.products {
  padding: 4rem 1.5rem 6rem;
  max-width: 1150px;
  margin: 0 auto;
}
.products-heading { text-align: center; margin-bottom: 4.5rem; }
.products-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--cream);
  margin-bottom: 1.2rem;
}
.products-lead {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  max-width: 640px;
  margin: 0 auto;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  perspective: 1400px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: linear-gradient(160deg, rgba(21, 26, 48, 0.9), rgba(11, 14, 28, 0.94));
  border: 1px solid rgba(217, 180, 91, 0.22);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}
.product-card:hover {
  border-color: rgba(217, 180, 91, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(217, 180, 91, 0.08);
}
.product-card.rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.product-card.rev .card-visual { order: 2; }
.product-card.rev .card-body { order: 1; }

/* 画像面 */
.card-visual {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-visual::after {
  /* 青海波パターン */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.4'%3E%3Cpath d='M0 40a40 40 0 0 1 80 0'/%3E%3Cpath d='M0 40a28 28 0 0 1 56 0M24 40a28 28 0 0 1 56 0'/%3E%3Cpath d='M8 40a16 16 0 0 1 32 0M40 40a16 16 0 0 1 32 0M-24 40a16 16 0 0 1 32 0M72 40a16 16 0 0 1 32 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 40px;
  pointer-events: none;
}
.card-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-emoji {
  font-size: clamp(4.5rem, 8vw, 7rem);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
  transform: translateZ(50px);
  animation: emojiFloat 5.5s ease-in-out infinite;
}
@keyframes emojiFloat {
  0%, 100% { transform: translateZ(50px) translateY(0) rotate(-2deg); }
  50% { transform: translateZ(50px) translateY(-14px) rotate(3deg); }
}
.card-no {
  position: absolute;
  top: 0.6rem;
  left: 1.2rem;
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 239, 227, 0.65);
  letter-spacing: 0.05em;
  line-height: 1;
  z-index: 2;
}

/* テーマ別グラデーション（画像未設定時のプレート） */
.theme-grape      { background: linear-gradient(140deg, #33204a, #6d4a8f); }
.theme-beef       { background: linear-gradient(140deg, #47141f, #96303f); }
.theme-ocean      { background: linear-gradient(140deg, #5c1e10, #c2571f); }
.theme-unagi      { background: linear-gradient(140deg, #34210e, #7d5522); }
.theme-melon      { background: linear-gradient(140deg, #1e4a31, #8fae5f); }
.theme-sake       { background: linear-gradient(140deg, #1c3756, #5c85ad); }
.theme-hotate     { background: linear-gradient(140deg, #123f45, #3e8891); }
.theme-strawberry { background: linear-gradient(140deg, #560f23, #c23a56); }
.theme-hida       { background: linear-gradient(140deg, #3b1721, #7e3548); }
.theme-matcha     { background: linear-gradient(140deg, #263c1d, #5e7d3e); }
.theme-kaki       { background: linear-gradient(140deg, #8a3d0a, #e0913a); }
.theme-sakura     { background: linear-gradient(140deg, #5f3d49, #bd8f9c); }
.theme-default    { background: linear-gradient(140deg, #2a2f4d, #56618f); }

/* テキスト面 */
.card-body {
  padding: 2.6rem 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.chip {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  padding: 0.22rem 0.95rem;
}
.muni {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.card-catch {
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  margin-bottom: 0.7rem;
}
.card-name {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--cream);
  margin-bottom: 1rem;
}
.card-desc {
  font-size: 0.92rem;
  line-height: 2.05;
  letter-spacing: 0.05em;
  color: var(--text);
  opacity: 0.88;
  margin-bottom: 1.8rem;
}
.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.price-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.price-value {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(217, 180, 91, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-cta::after { content: "→"; transition: transform 0.3s ease; }
.card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(217, 180, 91, 0.42);
}
.card-cta:hover::after { transform: translateX(4px); }

/* ---- 締め ---- */
.closing {
  padding: 8rem 1.5rem 9rem;
  text-align: center;
}
.closing-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cream);
  margin-bottom: 1.6rem;
}
.closing-text {
  color: var(--muted);
  font-size: 0.96rem;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
}
.closing-cta {
  display: inline-block;
  font-family: var(--serif);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold-bright);
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 1.05rem 3.4rem;
  transition: background 0.4s ease, color 0.4s ease;
}
.closing-cta:hover {
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  color: var(--ink);
}

/* ---- フッター ---- */
.site-footer {
  border-top: 1px solid rgba(217, 180, 91, 0.16);
  background: rgba(7, 9, 18, 0.85);
  padding: 2.6rem 1.6rem 2rem;
}
.footer-note {
  max-width: 860px;
  margin: 0 auto 1.6rem;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.9;
}
.footer-bottom {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.footer-admin {
  font-size: 0.74rem;
  color: rgba(167, 165, 179, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-admin:hover { color: var(--gold-bright); }

/* ---- レスポンシブ ---- */
@media (max-width: 860px) {
  .nav { display: none; }
  .product-card,
  .product-card.rev { grid-template-columns: 1fr; }
  .product-card.rev .card-visual { order: 0; }
  .product-card.rev .card-body { order: 1; }
  .card-visual { min-height: 230px; }
  .card-body { padding: 1.9rem 1.6rem 2.2rem; }
  .message-frame { padding: 2.8rem 1.6rem 3.4rem; }
  .message-body { font-size: 0.92rem; }
  .footer-bottom { flex-direction: column; }
}
