/* ============================================
   いっしょの一皿 — 案B改：上質ライフスタイルD2C
   ============================================ */

:root {
  --ivory: #FAF7F2;
  --ivory-deep: #F2EDE3;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #3D3530;
  --muted: #8A8076;
  --line: #E5DED1;
  --gold: #A67C52;
  --gold-deep: #8B6440;
  --bordeaux: #5C2E2E;
  --bordeaux-deep: #4A2424;

  --serif: 'Shippori Mincho B1', 'Yu Mincho', 'YuMincho', serif;
  --sans: 'Noto Sans JP', -apple-system, sans-serif;
  --en: 'Cormorant Garamond', serif;

  --max: 1180px;
  --max-narrow: 760px;
  --pad: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.85;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.container.narrow { max-width: var(--max-narrow); }
.center { text-align: center; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-label {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.section-label.center { text-align: center; }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4.2vw, 42px);
  line-height: 1.55;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 32px;
}
.section-title.center { text-align: center; }
.title-sub {
  display: inline-block;
  font-size: 0.55em;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-top: 8px;
}

.lede {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 2.1;
  color: var(--ink-soft);
  margin-bottom: 1.5em;
}
.lede.small { font-size: 14px; line-height: 2; }

em {
  font-style: normal;
  font-family: var(--serif);
  color: var(--bordeaux);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(250, 247, 242, 0);
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(250, 247, 242, 0.96);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(8px);
}
.site-header.dark .brand,
.site-header.dark .nav a { color: var(--ivory); }
.site-header.scrolled .brand,
.site-header.scrolled .nav a { color: var(--ink); }

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--ivory);
  transition: color 0.3s ease;
}
.brand-jp {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.15em;
  font-weight: 500;
}
.brand-en {
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.35em;
  margin-top: 2px;
  opacity: 0.7;
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--ivory);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.nav a:hover { opacity: 0.75; }
.nav a.nav-cta {
  border: 1px solid currentColor;
  padding: 8px 18px;
  font-family: var(--serif);
}
.nav a.nav-cta:hover {
  background: var(--ink);
  color: var(--ivory) !important;
  border-color: var(--ink);
  opacity: 1;
}
.site-header.scrolled .nav a.nav-cta:hover {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--ivory) !important;
}

.menu-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.menu-toggle span {
  width: 22px; height: 1px; background: var(--ivory);
  transition: all 0.3s ease;
}
.site-header.scrolled .menu-toggle span { background: var(--ink); }

/* ============================================
   1. HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink);
}
.hero-img {
  position: absolute;
  inset: 0;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.78);
}
.hero-text {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--ivory);
  padding: 0 var(--pad);
}
.hero-text .eyebrow {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.5em;
  margin-bottom: 28px;
  opacity: 0.85;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 84px);
  line-height: 1.4;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
  text-shadow: 0 1px 30px rgba(0,0,0,0.3);
}
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(15px, 1.8vw, 19px);
  letter-spacing: 0.25em;
  opacity: 0.92;
}
.scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 60px;
  background: rgba(250, 247, 242, 0.4);
  overflow: hidden;
}
.scroll-hint span {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: var(--ivory);
  animation: scrollHint 2.4s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ============================================
   SECTION SPACING
   ============================================ */
section {
  padding: clamp(80px, 12vw, 160px) 0;
}
.empathy { background: var(--ivory); }

/* ============================================
   2. EMPATHY
   ============================================ */
.empathy .section-title { text-align: center; }
.empathy .lede { text-align: center; }

.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 64px;
}
.scene {
  position: relative;
}
.scene img {
  width: 100%;
  height: clamp(280px, 38vw, 460px);
  object-fit: cover;
  filter: saturate(0.92);
}
.scene figcaption {
  padding: 28px 4px 0;
}
.scene-label {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--bordeaux);
  margin-bottom: 12px;
}
.scene figcaption p:last-child {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2;
}

/* ============================================
   3. SOLUTION
   ============================================ */
.solution {
  background: var(--ivory-deep);
}
.solution-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.solution-img img {
  width: 100%;
  height: auto;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.25);
}

/* ============================================
   4. PRODUCT
   ============================================ */
.product { background: var(--paper); }
.product .section-title { margin-bottom: 64px; }

.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.product-img {
  position: relative;
}
.product-img img {
  width: 100%;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.25);
}
.product-detail .lede { margin-bottom: 36px; }

.spec {
  border-top: 1px solid var(--line);
  margin-bottom: 36px;
}
.spec > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.spec dt {
  font-family: var(--serif);
  color: var(--muted);
  letter-spacing: 0.15em;
}
.spec dd { color: var(--ink-soft); line-height: 1.7; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: var(--ivory);
  flex-wrap: wrap;
}
.price-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}
.price-value {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.tax {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-left: 4px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--bordeaux);
  color: var(--ivory);
  border-color: var(--bordeaux);
}
.btn-primary:hover {
  background: var(--bordeaux-deep);
  border-color: var(--bordeaux-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(92, 46, 46, 0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--ivory);
}
.btn-large {
  width: 100%;
  padding: 18px 32px;
  font-size: 15px;
}

/* ============================================
   5. REASONS
   ============================================ */
.reasons { background: var(--ivory); }
.reasons .section-title { margin-bottom: 72px; }

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
}
.reason-card {
  background: var(--paper);
  padding: 0 0 36px;
}
.reason-img {
  height: 240px;
  overflow: hidden;
  margin-bottom: 28px;
}
.reason-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.reason-card:hover .reason-img img { transform: scale(1.04); }

.reason-no {
  font-family: var(--en);
  font-size: 28px;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding: 0 32px;
  margin-bottom: 14px;
}
.reason-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  padding: 0 32px;
  margin-bottom: 16px;
}
.reason-card p {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 0 32px;
  line-height: 2;
}

/* ============================================
   6. CRAFT
   ============================================ */
.craft {
  background: var(--ivory-deep);
}
.craft-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.craft-img img {
  width: 100%;
  height: clamp(360px, 50vw, 540px);
  object-fit: cover;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.25);
}

.closeup-grid {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.closeup img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.closeup figcaption {
  font-family: var(--serif);
  font-size: 13px;
  text-align: center;
  margin-top: 16px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  line-height: 1.7;
}

/* ============================================
   7. SCENES
   ============================================ */
.scenes { background: var(--paper); }
.scenes .section-title { margin-bottom: 72px; }

.scene-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.scene-card {
  position: relative;
  overflow: hidden;
}
.scene-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.scene-card:hover img { transform: scale(1.04); }
.scene-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.18em;
  margin: 24px 0 12px;
  color: var(--bordeaux);
}
.scene-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2;
}

/* ============================================
   8. CLOSING / ORDER
   ============================================ */
.closing {
  background: var(--ivory);
}
.closing .section-title { margin-bottom: 32px; }
.closing > .container { margin-bottom: 80px; }

.order-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 80px);
  background: var(--paper);
  padding: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: 980px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.15);
}
.order-img img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.order-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.12em;
  line-height: 1.7;
  margin-bottom: 20px;
}
.order-name span {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.15em;
}
.order-spec {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.order-spec li {
  font-size: 11px;
  letter-spacing: 0.15em;
  border: 1px solid var(--line);
  padding: 6px 14px;
  color: var(--ink-soft);
  font-family: var(--serif);
}

.order-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s ease;
}
.opt:hover { border-color: var(--gold); }
.opt input { accent-color: var(--bordeaux); margin-right: 4px; }
.opt input:checked ~ .opt-name {
  color: var(--bordeaux);
}
.opt:has(input:checked) { border-color: var(--bordeaux); background: var(--ivory); }
.opt-name {
  font-family: var(--serif);
  flex: 1;
  font-size: 15px;
  letter-spacing: 0.1em;
}
.opt-price {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
  letter-spacing: 0.1em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .brand-jp {
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--ivory);
}
.footer-brand .brand-en {
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 24px;
}
.footer-tag {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: rgba(250, 247, 242, 0.7);
}
.footer-col h4 {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  color: var(--gold);
  font-weight: 500;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 13px;
  color: rgba(250, 247, 242, 0.75);
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--ivory); }

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(250, 247, 242, 0.5);
}
.copyright { font-family: var(--en); letter-spacing: 0.2em; }

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.modal.show {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: var(--paper);
  padding: clamp(40px, 5vw, 56px) clamp(28px, 4vw, 48px);
  max-width: 440px;
  width: calc(100% - 32px);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.4);
}
.modal.show .modal-card { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 24px;
  color: var(--muted);
  line-height: 1;
  padding: 8px;
}
.modal-close:hover { color: var(--ink); }
.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--bordeaux);
  margin-bottom: 24px;
}
.modal-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.modal-text {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.modal-item {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--ivory);
  padding: 8px 18px;
  margin-bottom: 28px;
}
.modal-item:empty { display: none; }

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 880px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }

  .scene-grid,
  .solution-inner,
  .product-inner,
  .craft-inner,
  .order-card {
    grid-template-columns: 1fr;
  }
  .reason-grid,
  .scene-cards { grid-template-columns: 1fr; }
  .closeup-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 16px; }

  .hero { min-height: 560px; }
  .hero-title { letter-spacing: 0.08em; }

  .price-row { flex-direction: column; align-items: stretch; }
  .price-row .btn { width: 100%; }

  .order-img img { max-width: 200px; }
}

@media (max-width: 480px) {
  .closeup-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
