:root{
  /* Editable via Tweaks */
  --bg: #f5f0e6;        /* 生成り */
  --paper: #faf6ee;     /* 少し明るい紙色 */
  --ink: #2a2420;       /* 墨寄りのダークブラウン */
  --ink-soft: #5a4f47;
  --line: #d9cfbe;
  --accent: #334b36;    /* 深い森緑 */
  --accent-soft: #607a5f;
  --clay: #b97a5a;      /* テラコッタ */
  --clay-soft: #d9a78a;
  --cream: #ecdcc4;
  --rose: #c98a8a;
  --sky: #9bb2b5;

  --serif: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;
  --italic: "Fraunces", serif;

  --radius: 2px;
  --gutter: clamp(20px, 4vw, 56px);
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

img, svg{ display:block; max-width:100%; }

a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; cursor: pointer; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: 1280px; margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 20px;
}
.brand{
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--serif);
}
.brand .mark{
  font-size: 22px; letter-spacing: .08em; font-weight: 600;
}
.brand .en{
  font-family: var(--italic); font-style: italic;
  color: var(--ink-soft); font-size: 12px; letter-spacing: .16em;
  text-transform: lowercase;
}
.nav-links{
  display: flex; justify-content: center; gap: 4px; flex-wrap: wrap;
}
.nav-link{
  padding: 8px 14px; font-size: 13px; letter-spacing: .08em;
  color: var(--ink-soft); border-radius: 999px;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-link:hover{ color: var(--ink); background: color-mix(in oklab, var(--cream) 60%, transparent); }
.nav-link.active{ color: var(--ink); background: var(--cream); }
.nav-cta{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: 12px; letter-spacing: .14em;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  transition: transform .18s ease, background .18s, color .18s;
}
.nav-cta:hover{ transform: translateY(-1px); background: var(--accent); border-color: var(--accent); }

/* Cart icon in nav */
.cart-icon{
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink); background: transparent;
  transition: background .18s, border-color .18s, transform .18s;
}
.cart-icon:hover{ background: var(--cream); border-color: var(--ink-soft); transform: translateY(-1px); }
.cart-badge{
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--clay); color: var(--paper);
  border-radius: 999px; font-size: 10px; font-weight: 600;
  font-family: var(--sans);
}

/* Mobile nav */
.nav-toggle{ display:none; background: transparent; border:1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 12px; letter-spacing: .12em;}
.nav-drawer{ display: none; }

@media (max-width: 1100px){
  .nav-inner{ grid-template-columns: auto 1fr auto auto; }
  .nav-links{ display: none; }
  .nav-cta{ display:none; }
  .nav-toggle{ display: inline-flex; }
  .nav-drawer{
    display: none;
    flex-direction: column;
    padding: 8px var(--gutter) 16px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    gap: 0;
  }
  .nav-drawer.open{ display: flex; }
  .nav-drawer .nav-link{ display: block; font-size: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); border-radius: 0; }
}

/* ---------- Layout ---------- */
main{ min-height: 70vh; }
.container{ max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow{ max-width: 900px; }
section{ padding: clamp(48px, 8vw, 96px) 0; }

h1, h2, h3, h4{ font-family: var(--serif); font-weight: 500; letter-spacing: .02em; line-height: 1.35; margin: 0;}
h1{ font-size: clamp(34px, 5.4vw, 72px); }
h2{ font-size: clamp(26px, 3.6vw, 44px); }
h3{ font-size: clamp(18px, 2vw, 22px); }
p{ margin: 0; }
.lead{ font-size: clamp(15px, 1.4vw, 17px); color: var(--ink-soft); line-height: 1.9; }

.kicker{
  display:inline-flex; align-items: center; gap: 10px;
  font-family: var(--italic); font-style: italic;
  color: var(--accent); font-size: 14px; letter-spacing: .08em;
}
.kicker::before{
  content: ""; width: 28px; height: 1px; background: var(--accent);
}

.eyebrow{
  font-family: var(--italic); font-style: italic;
  color: var(--clay); font-size: 13px; letter-spacing: .2em;
  text-transform: lowercase;
}

/* ---------- Section header ---------- */
.section-head{
  display:grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  margin-bottom: 32px; border-bottom: 1px solid var(--line); padding-bottom: 20px;
}
.section-head .num{
  font-family: var(--italic); font-style: italic; color: var(--ink-soft);
  font-size: 13px; letter-spacing: .2em;
}
.section-head h2 .sub{
  display:block; font-family: var(--italic); font-style: italic;
  color: var(--clay); font-size: 14px; letter-spacing: .2em; margin-top:8px;
}
.section-head .more{
  font-size: 13px; letter-spacing: .14em; color: var(--ink-soft);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.section-head .more:hover{ color: var(--accent); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 13px; letter-spacing: .14em;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: transform .18s, background .18s, border-color .18s, color .18s;
}
.btn:hover{ background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn.ghost{ background: transparent; color: var(--ink); }
.btn.ghost:hover{ background: var(--ink); color: var(--paper); }
.btn.clay{ background: var(--clay); border-color: var(--clay); }
.btn.clay:hover{ background: #a36a4c; border-color: #a36a4c;}
.btn .arrow{ transition: transform .2s; }
.btn:hover .arrow{ transform: translateX(3px); }

/* ---------- Tiles ---------- */
.tile{ background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.tile-soft{ background: color-mix(in oklab, var(--paper) 86%, var(--cream)); }

/* image placeholder */
.ph{
  position:relative; overflow:hidden;
  background: var(--cream);
  color: var(--ink-soft);
  display:flex; align-items:center; justify-content:center;
}
.ph::before{
  content:""; position:absolute; inset:0;
  background-image: repeating-linear-gradient(45deg, rgba(90,79,71,0.07) 0 2px, transparent 2px 12px);
}
.ph .label{
  position: relative; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px; letter-spacing: .14em; padding: 6px 10px;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  border: 1px solid var(--line); border-radius: 2px;
  text-transform: uppercase;
}

/* ---------- Flower painter (css-only symbol) ---------- */
.flower-seal{
  width: 110px; height: 110px; position: relative; flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, var(--clay-soft) 0 14%, transparent 15%),
    radial-gradient(circle at 50% 22%, var(--clay) 0 10%, transparent 11%),
    radial-gradient(circle at 30% 40%, var(--clay) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 40%, var(--clay) 0 10%, transparent 11%),
    radial-gradient(circle at 36% 68%, var(--clay) 0 10%, transparent 11%),
    radial-gradient(circle at 64% 68%, var(--clay) 0 10%, transparent 11%),
    radial-gradient(circle at 50% 45%, var(--cream), var(--paper) 72%);
  border: 1px solid var(--line);
}

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 90%, #000 2%);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.foot-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width:780px){ .foot-grid{ grid-template-columns: 1fr 1fr; } }
.foot-grid h4{ font-family: var(--serif); font-size: 15px; margin-bottom: 12px;}
.foot-grid a{ display:block; font-size: 13px; color: var(--ink-soft); padding: 4px 0; }
.foot-grid a:hover{ color: var(--accent); }
.foot-bottom{
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; margin-top: 32px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-soft); letter-spacing: .1em;
}

/* ---------- Cards grid ---------- */
.grid{ display:grid; gap: clamp(14px, 1.6vw, 22px); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .grid-3, .grid-4, .grid-2{ grid-template-columns: 1fr; } }

/* ---------- Marquee ---------- */
.marquee{
  overflow:hidden; border-block: 1px solid var(--line);
  background: var(--paper); padding: 14px 0;
}
.marquee-track{
  display: inline-flex; white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--italic); font-style: italic; font-size: 18px;
  color: var(--ink-soft);
}
.marquee-track span{ padding: 0 24px; }
.marquee-track .dot{ color: var(--clay); }
@keyframes marquee { from{transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="number"], input[type="date"], select, textarea{
  width: 100%; padding: 12px 14px; font: inherit;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  outline: none; transition: border-color .18s, background .18s;
}
input:focus, select:focus, textarea:focus{
  border-color: var(--accent); background: #fff;
}
label.field{ display:block; font-size: 12px; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 6px; }

/* ---------- Utility ---------- */
.divider{ height:1px; background: var(--line); border: 0; margin: 48px 0; }
.muted{ color: var(--ink-soft); }
.center{ text-align:center; }
.stack-sm > * + *{ margin-top: 10px; }
.stack > * + *{ margin-top: 20px; }
.stack-lg > * + *{ margin-top: 40px; }
.row{ display:flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- Ticker / badge ---------- */
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding: 4px 10px; border-radius: 999px;
  background: color-mix(in oklab, var(--cream) 80%, transparent);
  color: var(--ink); font-size: 11px; letter-spacing: .12em;
}
.badge.green{ background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accent); }
.badge.clay{ background: color-mix(in oklab, var(--clay) 14%, transparent); color: var(--clay); }

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 300px; max-height: 80vh; overflow:auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 16px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  display:none;
  font-size: 13px;
}
.tweaks.show{ display:block; }
.tweaks h5{ margin:0 0 8px; font-family: var(--serif); font-size: 14px;}
.tweaks .row{ display:flex; justify-content: space-between; align-items:center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.tweaks .swatches{ display:flex; gap:6px; flex-wrap:wrap; }
.tweaks .sw{ width: 22px; height: 22px; border-radius: 50%; border:1px solid var(--line); cursor:pointer; }
.tweaks .sw.active{ outline: 2px solid var(--ink); outline-offset: 2px; }
.tweaks select, .tweaks input[type="range"]{ padding: 4px 8px; font-size:12px;}

/* ---------- animations ---------- */
@keyframes fadeUp { from{opacity:0; transform: translateY(10px);} to{opacity:1; transform: none;} }
.fadeup{ animation: fadeUp .5s ease both;}
.fadeup.d1{ animation-delay: .06s;}
.fadeup.d2{ animation-delay: .12s;}
.fadeup.d3{ animation-delay: .18s;}
.fadeup.d4{ animation-delay: .24s;}

/* smooth image swap */
.fade-swap{ animation: fadeUp .4s ease both; }

/* ---------- Scroll reveal ---------- */
.reveal{
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible{
  opacity: 1; transform: none;
}
.reveal-left{
  opacity: 0; transform: translateX(-32px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal-left.visible{ opacity: 1; transform: none; }
.reveal-right{
  opacity: 0; transform: translateX(32px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal-right.visible{ opacity: 1; transform: none; }
.reveal-scale{
  opacity: 0; transform: scale(.95);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-scale.visible{ opacity: 1; transform: none; }

/* stagger children */
.stagger > .reveal:nth-child(1){ transition-delay: 0s; }
.stagger > .reveal:nth-child(2){ transition-delay: .08s; }
.stagger > .reveal:nth-child(3){ transition-delay: .16s; }
.stagger > .reveal:nth-child(4){ transition-delay: .24s; }
.stagger > .reveal:nth-child(5){ transition-delay: .32s; }
.stagger > .reveal:nth-child(6){ transition-delay: .40s; }

/* ---------- Image hover zoom ---------- */
.img-zoom{
  overflow: hidden; border-radius: var(--radius);
}
.img-zoom img{
  transition: transform .5s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.img-zoom:hover img{
  transform: scale(1.06);
}

/* ---------- Page transition ---------- */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes pageOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-8px); }
}
.page-enter{ animation: pageIn .45s cubic-bezier(.22,1,.36,1) both; }
.page-exit{ animation: pageOut .2s ease both; }

/* ---------- Floating CTA ---------- */
.floating-cta{
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  opacity: 0; transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.floating-cta.show{
  opacity: 1; transform: none;
  pointer-events: auto;
}
.floating-cta a{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-size: 12px; letter-spacing: .12em; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  transition: transform .18s, box-shadow .18s;
}
.floating-cta a:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.16);
}
.floating-cta .fcta-line{
  background: #06C755; color: #fff; border: none;
}
.floating-cta .fcta-pass{
  background: var(--clay); color: var(--paper); border: none;
}

/* ---------- Progress bar ---------- */
.progress-track{
  width: 100%; height: 2px; background: var(--line); border-radius: 1px; overflow: hidden;
  margin-top: 16px;
}
.progress-bar{
  height: 100%; background: var(--clay); border-radius: 1px;
  transition: width .1s linear;
}

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20,15,10,.88);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: lbIn .3s ease both;
  cursor: zoom-out;
}
@keyframes lbIn { from{opacity:0} to{opacity:1} }
.lightbox img{
  max-width: 92vw; max-height: 88vh;
  object-fit: contain; border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: lbImgIn .35s cubic-bezier(.22,1,.36,1) both;
}
@keyframes lbImgIn { from{opacity:0; transform: scale(.92)} to{opacity:1; transform: none} }
.lightbox-caption{
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 13px; letter-spacing: .1em;
  font-family: var(--italic); font-style: italic;
  text-align: center; max-width: 600px;
}
.lightbox-close{
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 28px; cursor: pointer;
  transition: color .18s;
}
.lightbox-close:hover{ color: #fff; }
.lightbox-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none; color: rgba(255,255,255,.8);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer;
  transition: background .18s;
  backdrop-filter: blur(4px);
}
.lightbox-nav:hover{ background: rgba(255,255,255,.22); }
.lightbox-prev{ left: 16px; }
.lightbox-next{ right: 16px; }

/* ---------- Mobile responsive ---------- */
@media (max-width: 768px){
  h1{ font-size: clamp(26px, 7vw, 38px); }
  h2{ font-size: clamp(22px, 5vw, 32px); }
  h3{ font-size: clamp(16px, 4vw, 20px); }
  .lead{ font-size: 14px; }
  section{ padding: clamp(32px, 6vw, 56px) 0; }
  .section-head{ grid-template-columns: 1fr; gap: 12px; }
  .section-head .more{ justify-self: start; }
  .foot-grid{ grid-template-columns: 1fr !important; gap: 28px; }
  .foot-bottom{ flex-direction: column; gap: 8px; text-align: center; }
  .kicker{ font-size: 12px; }
  .marquee-track{ font-size: 14px; }
  .tweaks{ right: 10px; bottom: 10px; width: calc(100vw - 20px); max-width: 300px; }
  .floating-cta{ bottom: 16px; right: 16px; }
  .floating-cta a{ padding: 10px 16px; font-size: 11px; }
  .lightbox-nav{ width: 36px; height: 36px; font-size: 18px; }
}
