/* ==========================================================
   Hime Matcha · 抹茶の姫
   Washi paper, matcha green, sakura pink, a little gold.
   ========================================================== */

:root {
  --washi: #FBF6EC;
  --washi-2: #F5EDDD;
  --card: #FFFDF8;
  --line: #E6DCC6;

  --ink: #2B2A26;
  --ink-soft: #5E594E;

  --matcha-deep: #2F4A26;
  --matcha: #6E8F43;
  --matcha-soft: #DCE6C3;
  --froth: #B9D07A;

  --sakura: #F8D3D8;
  --sakura-mid: #F2A7B2;
  --sakura-deep: #C95D6E;

  --beni: #C8463D;
  --kin: #C9A04E;
  --wood: #E7CB98;

  --r-lg: 28px;
  --r: 20px;
  --pop: 4px 4px 0 var(--matcha-soft);

  --f-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --f-hand: "Klee One", "Zen Maru Gothic", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--washi);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* washi paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); color: var(--matcha-deep); line-height: 1.15; margin: 0; letter-spacing: .005em; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.hand { font-family: var(--f-hand); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--matcha-deep); color: var(--washi); padding: 10px 16px; border-radius: 12px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sakura-deep); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  --btn-shadow: #1D3117;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font: 700 16px/1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--matcha-deep);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s;
}
.btn-primary { background: var(--matcha-deep); color: var(--washi); box-shadow: 0 4px 0 var(--btn-shadow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--btn-shadow); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-shadow); }
.btn-ghost { background: var(--card); color: var(--matcha-deep); box-shadow: 0 4px 0 var(--matcha-soft); }
.btn-ghost:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--matcha-soft); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.ext { width: 13px; height: 13px; flex: none; }

/* ---------- notice ---------- */
.notice { background: var(--matcha-deep); color: var(--washi); text-align: center; font-size: 14px; }
.notice a { display: block; padding: 8px 16px; text-decoration: none; }
.notice a:hover { text-decoration: underline; text-underline-offset: 3px; }
.notice-jp { display: inline-block; font-family: var(--f-display); font-weight: 800; color: var(--matcha-deep); background: var(--sakura); border-radius: 6px; padding: 0 7px; margin-right: 8px; font-size: 13px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--washi) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 2px dashed var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mon { width: 42px; height: 42px; color: var(--kin); flex: none; }
.brand-text { display: grid; line-height: 1.05; }
.brand-jp { font-family: var(--f-display); font-weight: 800; font-size: 21px; color: var(--matcha-deep); letter-spacing: .06em; }
.brand-en { font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 999px; position: relative; }
.nav a:hover { background: var(--matcha-soft); color: var(--matcha-deep); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 84px; }
.hero::after { /* scalloped bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px;
  background: radial-gradient(circle at 18px -4px, transparent 17px, var(--washi-2) 18px) 0 0 / 36px 22px repeat-x;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; position: relative; }
.hero-copy { position: relative; padding-right: 56px; }
.kicker { color: var(--sakura-deep); font-size: 20px; margin-bottom: 10px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 74px); font-weight: 800; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--matcha); background: linear-gradient(transparent 62%, var(--sakura) 62% 92%, transparent 92%); padding: 0 .06em; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 34em; margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 30px 0 0; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.facts li { display: flex; align-items: center; gap: 7px; }
.flower { width: 18px; height: 18px; fill: var(--sakura); stroke: var(--ink); stroke-width: 1.6; flex: none; }

.tategaki {
  position: absolute; right: 0; top: 4px;
  writing-mode: vertical-rl;
  font-family: var(--f-display); font-weight: 600; font-size: 22px;
  letter-spacing: .35em; color: var(--matcha);
  border-left: 1.5px solid var(--line); padding-left: 10px;
}

.hero-art { position: relative; aspect-ratio: 1 / 1.02; max-width: 540px; justify-self: center; width: 100%; }
.sun { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--sakura); left: 13%; top: 22%; box-shadow: inset 0 0 0 14px color-mix(in srgb, var(--sakura) 60%, var(--washi)); }
.mascot { position: absolute; width: 86%; left: 8%; bottom: 0; animation: bob 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
.cloud { position: absolute; fill: var(--washi); stroke: var(--matcha); stroke-width: 2.4; }
.cloud-a { width: 34%; height: auto; aspect-ratio: 170 / 56; left: -4%; top: 44%; animation: drift 9s ease-in-out infinite; }
.cloud-b { width: 26%; height: auto; aspect-ratio: 170 / 56; right: -2%; top: 30%; animation: drift 11s ease-in-out infinite reverse; }
.note { position: absolute; left: -6%; bottom: 3%; color: var(--sakura-deep); font-size: 18px; transform: rotate(-6deg); }
.note svg { position: absolute; width: 62px; height: 44px; left: 100%; top: -28px; stroke: var(--sakura-deep); stroke-width: 2.6; transform: rotate(-40deg); }

/* noren */
.noren { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 76%; z-index: 2; }
.noren-rod { height: 11px; border-radius: 6px; background: #7A5636; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); margin: 0 -6%; }
.noren-panels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: -2px; }
.noren-panels span {
  position: relative;
  display: grid; place-items: start center;
  height: clamp(74px, 9vw, 112px);
  padding-top: clamp(10px, 1.6vw, 18px);
  background: var(--matcha-deep);
  color: var(--washi);
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(26px, 3.4vw, 42px);
  border-radius: 0 0 8px 8px;
  transform-origin: 50% 0;
  animation: sway 5.5s ease-in-out infinite;
}
.noren-panels span::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 9px; border-top: 2px dashed rgba(251,246,236,.35); }
.noren-panels span:nth-child(2) { animation-delay: -1.3s; }
.noren-panels span:nth-child(3) { animation-delay: -2.6s; }
.noren-panels span:nth-child(4) { animation-delay: -3.9s; }

/* falling petals */
.petals { position: absolute; inset: 0; pointer-events: none; }
.petal { position: absolute; top: -30px; width: 16px; height: 17px; fill: var(--sakura); stroke: var(--ink); stroke-width: 1.4; animation: fall linear infinite; opacity: .9; }
.petal:nth-child(1) { left: 6%;  animation-duration: 16s; animation-delay: -2s; }
.petal:nth-child(2) { left: 22%; animation-duration: 19s; animation-delay: -9s; width: 12px; }
.petal:nth-child(3) { left: 41%; animation-duration: 15s; animation-delay: -5s; }
.petal:nth-child(4) { left: 57%; animation-duration: 21s; animation-delay: -13s; width: 13px; }
.petal:nth-child(5) { left: 70%; animation-duration: 17s; animation-delay: -1s; }
.petal:nth-child(6) { left: 84%; animation-duration: 20s; animation-delay: -7s; width: 11px; }
.petal:nth-child(7) { left: 94%; animation-duration: 18s; animation-delay: -15s; }

@keyframes fall {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(40px, 50vh) rotate(160deg); }
  100% { transform: translate(-10px, 110vh) rotate(340deg); }
}
@keyframes sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(12px); } }

/* ---------- sections ---------- */
.section { position: relative; padding: 88px 0; overflow: hidden; overflow: clip; }
html, body { overflow-x: hidden; overflow-x: clip; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-jp { font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: .3em; color: var(--sakura-deep); margin-bottom: 6px; }
.section-head h2 { font-size: clamp(34px, 4.2vw, 50px); font-weight: 800; }
.section-sub { color: var(--ink-soft); margin-top: 10px; }

/* hanko stamp */
.hanko {
  display: inline-grid; place-items: center;
  writing-mode: vertical-rl;
  font-family: var(--f-display); font-weight: 800; font-size: 15px; line-height: 1; letter-spacing: .05em;
  color: var(--washi); background: var(--beni);
  padding: 8px 5px; border-radius: 7px;
  box-shadow: inset 0 0 0 2px var(--beni), inset 0 0 0 3.5px rgba(251,246,236,.75);
  transform: rotate(-7deg);
}
.hanko.is-kin { background: var(--kin); box-shadow: inset 0 0 0 2px var(--kin), inset 0 0 0 3.5px rgba(251,246,236,.75); }

/* ---------- seasonal ---------- */
.seasonal { background: var(--washi-2); }
.branch { position: absolute; top: 24px; right: -20px; width: min(340px, 42vw); pointer-events: none; }
.seasonal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: 26px; box-shadow: 6px 6px 0 var(--sakura-mid);
  position: relative;
}
.feature:nth-child(2) { box-shadow: 6px 6px 0 var(--froth); }
.maru { width: 170px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); box-shadow: 0 0 0 8px var(--washi-2), 0 0 0 10px var(--ink); margin: 10px; background: var(--matcha-soft); }
.maru img { width: 100%; height: 100%; object-fit: cover; }
.feature .hanko { position: absolute; top: -14px; right: 22px; font-size: 16px; }
.feature h3 { font-size: 25px; font-weight: 800; }
.feature .tag-en { font-family: var(--f-hand); color: var(--sakura-deep); font-size: 16px; margin-bottom: 4px; }
.feature p.notes { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
.feature .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.price { font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--matcha-deep); }
.price small { font-size: .7em; margin-right: 1px; }

/* ---------- menu ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.chip {
  font: 500 15px/1 var(--f-body); color: var(--ink);
  background: var(--card); border: 2px solid var(--ink); border-radius: 999px;
  padding: 10px 18px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .15s, color .15s, transform .12s;
}
.chip:hover { background: var(--matcha-soft); }
.chip.is-active { background: var(--matcha-deep); color: var(--washi); border-color: var(--matcha-deep); }
.chip .count { font-size: 12px; font-weight: 700; background: var(--washi-2); color: var(--ink-soft); border-radius: 999px; padding: 3px 7px; }
.chip.is-active .count { background: rgba(251,246,236,.18); color: var(--washi); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: 14px 14px 18px;
  box-shadow: var(--pop);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: pop-in .35s ease both;
}
.card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 6px 8px 0 var(--sakura); }
.arch { aspect-ratio: 1 / 1.05; border-radius: 999px 999px 16px 16px; overflow: hidden; border: 2px solid var(--ink); background: var(--matcha-soft); }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .arch img { transform: scale(1.04); }
.card .hanko { position: absolute; top: 10px; right: 10px; }
.card-body { padding: 16px 6px 0; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 21px; font-weight: 800; }
.card .notes { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin-top: 6px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 2px dotted var(--line); margin-inline: -2px; }
.card .notes { margin-bottom: 16px; }

@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.empty { text-align: center; max-width: 440px; margin: 8px auto 0; padding: 20px; }
.empty img { width: 200px; margin: 0 auto 10px; }
.empty h3 { font-size: 28px; font-weight: 800; }
.empty p { color: var(--ink-soft); margin: 8px 0 20px; }

/* ---------- steps ---------- */
.steps { background: var(--washi-2) url("../assets/seigaiha-light.svg") repeat; background-size: 40px 20px; }
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.step { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 32px 26px 28px; text-align: center; box-shadow: var(--pop); }
.step img { width: 112px; height: 112px; margin: 0 auto 12px; }
.step h3 { font-size: 22px; font-weight: 800; }
.step p { color: var(--ink-soft); font-size: 15.5px; margin-top: 8px; }
.step-num {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 20px;
  background: var(--sakura); border: 2px solid var(--ink); color: var(--ink);
}

/* ---------- visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.ema-wrap { position: relative; max-width: 480px; justify-self: center; width: 100%; padding-top: 34px; filter: drop-shadow(5px 6px 0 var(--matcha-soft)); }
.ema-cord { position: absolute; top: 0; left: 50%; width: 70px; height: 54px; transform: translateX(-50%); border: 3px solid var(--beni); border-bottom: 0; border-radius: 40px 40px 0 0; z-index: 1; }
.ema-cord::after { content: ""; position: absolute; left: 50%; top: -9px; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); background: var(--beni); border-radius: 3px; }
.ema {
  position: relative;
  clip-path: polygon(50% 0, 100% 17%, 100% 100%, 0 100%, 0 17%);
  background:
    repeating-linear-gradient(176deg, transparent 0 22px, rgba(122, 86, 54, .07) 22px 24px),
    var(--wood);
  padding: 88px 40px 40px;
  text-align: center;
}
.ema::before { /* hole for the cord */
  content: ""; position: absolute; top: 46px; left: 50%; width: 14px; height: 14px; transform: translateX(-50%);
  border-radius: 50%; background: #9C7447; box-shadow: inset 0 2px 0 rgba(0,0,0,.25);
}
.ema h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; }
.visit-list { margin: 22px auto 28px; display: grid; gap: 12px; max-width: 360px; text-align: left; }
.visit-list div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: baseline; padding-bottom: 10px; border-bottom: 2px dotted rgba(122, 86, 54, .3); }
.visit-list dt { font-weight: 700; color: var(--matcha-deep); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.visit-list dd { margin: 0; }
.todo { color: #8B6B45; font-style: italic; }

.visit-art { position: relative; display: grid; justify-items: center; }
.visit-art img { width: min(300px, 80%); transform: scaleX(-1); animation: bob 4.5s ease-in-out infinite; }
.visit-art .hand { color: var(--sakura-deep); font-size: 22px; transform: rotate(-4deg); margin-top: 4px; }
.cloud-c { width: 46%; aspect-ratio: 170 / 56; height: auto; position: absolute; top: -14%; left: 4%; animation: drift 10s ease-in-out infinite; }

/* ---------- footer ---------- */
.site-footer { background: var(--matcha-deep); color: var(--washi); position: relative; }
.wave { height: 56px; background: url("../assets/seigaiha-dark.svg") repeat-x; background-size: 40px 20px; border-top: 3px solid var(--kin); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; padding: 26px 0 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mon { --mon-vein: var(--matcha-deep); width: 54px; height: 54px; }
.footer-brand .brand-jp { color: var(--washi); font-size: 24px; }
.footer-brand .brand-en { color: var(--matcha-soft); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.footer-nav a { text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--sakura); text-decoration: underline; text-underline-offset: 4px; }
.footer-small { grid-column: 1 / -1; font-size: 13px; color: var(--matcha-soft); border-top: 1px solid rgba(220,230,195,.2); padding-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 440px; }
  .seasonal-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 40px; max-width: 520px; margin-inline: auto; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-art { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav { display: none; }
  .header-inner { justify-content: space-between; min-height: 64px; }
  .btn-order { padding: 10px 16px; font-size: 14px; }
  .brand-mon { width: 36px; height: 36px; }
  .brand-jp { font-size: 18px; }
  .hero { padding: 36px 0 64px; }
  .hero-copy { padding-right: 0; }
  .tategaki { display: none; }
  .lede { font-size: 16.5px; }
  .section { padding: 64px 0; }
  .feature { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 20px; }
  .feature .row { justify-content: center; }
  .maru { width: 150px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card { padding: 10px 10px 14px; border-radius: 22px; }
  .card h3 { font-size: 17px; }
  .card .notes { font-size: 13px; }
  .card .hanko { font-size: 12px; padding: 6px 4px; }
  .price { font-size: 18px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .card-foot .btn { justify-content: center; }
  .ema { padding: 80px 22px 32px; }
  .visit-list div { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .branch { width: 190px; top: 10px; right: -40px; opacity: .9; }
  .note { left: 0; bottom: -2%; }
  .note svg { display: none; }
  .filters { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .petals { display: none; }
}
