/* assets/css/style.css */

/* Ensure hidden always works (fix for always-visible close button) */
[hidden]{ display:none !important; }

:root{
  --bg: #f6f6f4;
  --panel: #ffffff;
  --text: #2b2b2b;
  --muted: #6e6e6e;
  --line: #e7e7e7;

  --max: 1120px;
  --gutter: 40px;
  --section-pad: 110px;

  --fs-body: 14px;
  --lh: 1.9;

  --label-w: 220px;
  --gap: 88px;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.06);

  --header-h: 72px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans JP", sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh);
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0.02em;
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }
button{ font: inherit; color: inherit; }

.main{ min-height: 100vh; padding-top: var(--header-h); }

/* Header */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}
.header-inner{
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 120px;
}
.brand__logo{
  height: 18px;
  width: auto;
  opacity: .85;
  image-rendering: -webkit-optimize-contrast;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 22px;
  flex: 1;
}
.nav__link{
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: none;
  color: color-mix(in srgb, var(--muted) 90%, var(--text));
  padding: 8px 10px;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav__link.is-active{
  background: rgba(0,0,0,.07);
  color: var(--text);
}
.nav__cta{
  font-size: 12px;
  letter-spacing: 0.22em;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.nav__cta:hover{ transform: translateY(-1px); background: rgba(255,255,255,.7); }

.header-actions{ display:flex; align-items:center; gap: 14px; min-width: 140px; justify-content:flex-end; }

.lang{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .2em;
  color: color-mix(in srgb, var(--muted) 85%, var(--text));
}
.lang__link{ padding: 6px 8px; border-radius: 999px; }
.lang__link.is-active{ background: rgba(0,0,0,.07); color: var(--text); }
.lang__sep{ opacity: .5; }

.burger{
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  display:none;
  align-items:center;
  justify-content:center;
  gap: 4px;
  flex-direction:column;
  cursor:pointer;
}
.burger span{
  width: 18px; height: 1px; background: rgba(0,0,0,.45);
  display:block;
}
.drawer{
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 49;
}
.drawer__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter) 26px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.drawer__link{
  font-size: 12px;
  letter-spacing: 0.22em;
  padding: 10px 10px;
  border-radius: 12px;
  color: color-mix(in srgb, var(--muted) 90%, var(--text));
}
.drawer__cta{
  margin-top: 8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  font-size: 12px;
  letter-spacing: .22em;
}
.drawer__lang{ margin-top: 6px; }

/* Splash */
body.is-splash{ overflow:hidden; }
body.is-splash .site-header{ opacity:0; pointer-events:none; }

.splash{
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display:grid;
  place-items:center;
}
.splash__inner{
  text-align:center;
  padding: 40px;
  animation: splashIn .9s var(--ease) both;
}
.splash__logo{
  width: min(360px, 76vw);
  height: auto;
  margin: 0 auto 8px;
  image-rendering: -webkit-optimize-contrast;
}
@keyframes splashIn{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}
.splash__mark{
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  position: relative;
}
.splash__mark:before,
.splash__mark:after{
  content:"";
  position:absolute;
  inset: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
}
.splash__brand{
  font-family: Inter, sans-serif;
  font-size: 36px;
  letter-spacing: .42em;
  font-weight: 300;
  color: rgba(0,0,0,.28);
}
.splash__tagline{
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .42em;
  color: rgba(0,0,0,.22);
}
.splash__copy{
  margin-top: 48px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.splash__line{
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(0,0,0,.35);
}
.splash__scroll{
  margin-top: 70px;
  font-size: 10px;
  letter-spacing: .42em;
  color: rgba(0,0,0,.22);
  position: relative;
}
.splash__scroll:after{
  content:"";
  display:block;
  width: 1px;
  height: 30px;
  margin: 14px auto 0;
  background: rgba(0,0,0,.12);
  animation: scrollLine 1.2s var(--ease) infinite;
}
@keyframes scrollLine{
  0%{ transform: translateY(0); opacity:.25; }
  50%{ transform: translateY(7px); opacity:.6; }
  100%{ transform: translateY(0); opacity:.25; }
}
.splash.is-leaving{
  animation: splashOut .65s var(--ease) both;
}
@keyframes splashOut{
  to{ opacity:0; visibility:hidden; }
}

/* Sections */
.section{
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding: var(--section-pad) 0;
}
/* W/PIZZA uses generous spacing; keep default padding for all sections */
.pagehero{
  width: 100%;
  height: min(48vh, 520px);
  background: #eee;
  overflow:hidden;
}
.pagehero img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter: saturate(.85) contrast(.95);
}

.section__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display:grid;
  grid-template-columns: var(--label-w) 1fr;
  gap: var(--gap);
  align-items:start;
}
.section__label{
  font-size: 12px;
  letter-spacing: .38em;
  color: rgba(0,0,0,.28);
  padding-top: 8px;
}
.section__body{ min-width: 0; }

.lead{
  font-size: 14px;
  letter-spacing: .06em;
  color: rgba(0,0,0,.46);
  margin: 0 0 18px;
}
.note{
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(0,0,0,.34);
}
.bodytext{
  margin: 0;
  font-size: 13px;
  color: rgba(0,0,0,.42);
  letter-spacing: .06em;
}
.bodytext--muted{ color: rgba(0,0,0,.34); }

/* Buttons */
.btnrow{ display:flex; flex-wrap:wrap; gap: 12px; margin-top: 8px; }
.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  font-size: 12px;
  letter-spacing: .18em;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.95); }
.btn--ghost{ background: transparent; }
.btn__icon{ opacity: .55; }

.link{
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(0,0,0,.22);
}
.link:hover{ text-decoration-color: rgba(0,0,0,.4); }

/* Rule box (small, quiet) */
.rulebox{
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display:flex;
  align-items:baseline;
  gap: 18px;
}
.rulebox__title{
  font-size: 12px;
  letter-spacing: .38em;
  color: rgba(0,0,0,.28);
  min-width: 160px;
}
.rulebox__text{
  font-size: 13px;
  color: rgba(0,0,0,.42);
}

/* Gallery */
.gallery{
  margin-top: 34px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items:start;
}
.gcard{
  border: 0;
  padding: 0;
  background: transparent;
  cursor:pointer;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease);
}
.gcard:hover{ transform: translateY(-2px); }
.gcard img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(.95);
}
.gcard--tall{ grid-row: span 2; }

/* Stores */
.stores{
  margin-top: 34px;
  display:flex;
  flex-direction:column;
  gap: 78px;
}
.store__hero{
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.store__hero img{
  width:100%;
  height: min(46vh, 520px);
  object-fit: cover;
  filter: saturate(.85) contrast(.95);
}
.store__head{ margin-top: 18px; }
.store__title{
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: .08em;
}
.store__sub{
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .32em;
  color: rgba(0,0,0,.28);
}
.store__meta{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 18px;
  align-items:start;
}
.store__k{
  font-size: 12px;
  letter-spacing: .26em;
  color: rgba(0,0,0,.28);
}
.store__v{
  font-size: 13px;
  color: rgba(0,0,0,.42);
  letter-spacing: .06em;
}
.store__actions{ margin-top: 16px; }
.storegallery{
  margin-top: 28px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* News */
.newslist{
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.newsitem{
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items:start;
}
.newsitem__date{
  font-size: 12px;
  letter-spacing: .26em;
  color: rgba(0,0,0,.28);
}
.newsitem__title{
  font-size: 13px;
  letter-spacing: .08em;
  color: rgba(0,0,0,.46);
}
.newsitem__body{
  margin-top: 8px;
  font-size: 13px;
  color: rgba(0,0,0,.40);
  letter-spacing: .06em;
}
.newsitem__more{ margin-top: 10px; }

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(246,246,244,.92);
  backdrop-filter: blur(10px);
  display:grid;
  place-items:center;
  padding: 40px;
}
.lightbox__stage{
  width: min(1100px, 92vw);
  max-height: 82vh;
  display:grid;
  place-items:center;
}
.lightbox__img{
  max-height: 82vh;
  width: auto;
  max-width: 92vw;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lightbox__close{
  position: fixed;
  top: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  font-size: 22px;
  color: rgba(0,0,0,.55);
  cursor:pointer;
  display:grid;
  place-items:center;
}

/* Info list */
.info{
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.info__row{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items:start;
}
.info__k{
  font-size: 12px;
  letter-spacing: .26em;
  color: rgba(0,0,0,.28);
}
.info__v{
  font-size: 13px;
  color: rgba(0,0,0,.42);
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.footer-brand{
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(0,0,0,.30);
}
.footer-link{
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(0,0,0,.30);
  padding: 8px 10px;
  border-radius: 999px;
}
.footer-link:hover{ background: rgba(0,0,0,.06); }

/* Responsive */
@media (max-width: 980px){
  :root{
    --gutter: 22px;
    --section-pad: 86px;
    --label-w: 160px;
    --gap: 42px;
  }
  .nav{ gap: 14px; }
}
@media (max-width: 820px){
  .nav{ display:none; }
  .burger{ display:flex; }
  .section__inner{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .section__label{ padding-top:0; }
  .gallery{ grid-template-columns: 1fr 1fr; }
  .gcard--tall{ grid-row: auto; }

  .store__meta{ grid-template-columns: 1fr; gap: 6px; }
  .storegallery{ grid-template-columns: 1fr 1fr; }
  .newsitem{ grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 480px){
  :root{ --fs-body: 13px; }
  .pagehero{ height: 42vh; }
  .gallery{ grid-template-columns: 1fr; }
  .lightbox{ padding: 18px; }
}

/* ------------------------------------------------------------
   W/PIZZA updates
------------------------------------------------------------ */

.section--top{ padding-top: 0; }
.pagehero--top{ height: min(78vh, 820px); }

.topcopy{ padding: 52px 0 0; }
.topcopy__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.topcopy__text{
  margin: 0;
  font-size: 12px;
  letter-spacing: .22em;
  line-height: 2.25;
  color: rgba(0,0,0,.46);
  text-align: center;
}

/* Centered section headings (CONCEPT / MENU / GALLERY) */
.section__inner{
  grid-template-columns: 1fr;
  gap: 28px;
  justify-items: center;
}
.section__label{
  width: 100%;
  text-align: center;
  padding-top: 0;
}
.section__body{
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

/* Concept */
.pagehero--concept{ height: min(66vh, 720px); }
.concepttext{
  margin: 0;
  font-size: 12px;
  letter-spacing: .22em;
  line-height: 2.25;
  color: rgba(0,0,0,.46);
  text-align: center;
}

.menugrid,
.gallery{
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

/* Subtle horizontal rhythm on larger screens (same size, but not "grid-flat") */
@media (min-width: 641px){
  .menugrid .mcard,
  .gallery .gcard{ width: 92%; }

  .menugrid .mcard:nth-child(1),
  .gallery .gcard:nth-child(1){ justify-self: start; }
  .menugrid .mcard:nth-child(2),
  .gallery .gcard:nth-child(2){ justify-self: center; }
  .menugrid .mcard:nth-child(3),
  .gallery .gcard:nth-child(3){ justify-self: end; }
}

/* Editorial stagger (same card size, less "ordinary" than a flat grid) */
.menugrid .mcard{ --y: 16px; }
.menugrid .mcard:nth-child(2){ --y: -16px; }
.menugrid .mcard:nth-child(3){ --y: 16px; }

.gallery .gcard{ --y: 16px; }
.gallery .gcard:nth-child(2){ --y: -16px; }
.gallery .gcard:nth-child(3){ --y: 16px; }

/*
  Gallery with ONLY 2 images
  - Make it feel intentional on desktop (no "empty third column")
  - Keep responsive behavior as-is on tablets/mobile
*/
@media (min-width: 981px){
  .gallery[data-count="2"]{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
  .gallery[data-count="2"] .gcard{ width: 100%; }
  .gallery[data-count="2"] .gcard:nth-child(1){ justify-self: start; --y: 10px; }
  .gallery[data-count="2"] .gcard:nth-child(2){ justify-self: end; --y: -10px; }
}

/* Tablet+ (override the 3-item alignment rules for the 2-image case) */
@media (min-width: 641px){
  .gallery[data-count="2"] .gcard{ width: 100%; }
  .gallery[data-count="2"] .gcard:nth-child(1){ justify-self: start; }
  .gallery[data-count="2"] .gcard:nth-child(2){ justify-self: end; }
}
.mcard{
  border: 0;
  padding: 0;
  background: transparent;
  cursor:pointer;
  display:block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 22px 60px rgba(0,0,0,.08);
  transform: translateY(var(--y, 0px));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}
.mcard:before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 42%);
  opacity: .55;
}
.mcard:hover{
  transform: translateY(calc(var(--y, 0px) - 6px));
  box-shadow: 0 28px 70px rgba(0,0,0,.10);
}
.mcard img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(.96);
  transform: scale(1.01);
  transition: transform .65s var(--ease), filter .35s var(--ease);
}
.mcard:hover img{ transform: scale(1.035); }


.gcard{
  border: 0;
  padding: 0;
  background: transparent;
  cursor:pointer;
  display:block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 22px 60px rgba(0,0,0,.08);
  transform: translateY(var(--y, 0px));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}
.gcard:before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 42%);
  opacity: .55;
}
.gcard:hover{
  transform: translateY(calc(var(--y, 0px) - 6px));
  box-shadow: 0 28px 70px rgba(0,0,0,.10);
}
.gcard img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(.96);
  transform: scale(1.01);
  transition: transform .65s var(--ease), filter .35s var(--ease);
}
.gcard:hover img{ transform: scale(1.035); }

/* Responsive: simple grid (no stagger) */
@media (max-width: 980px){
  .menugrid,
  .gallery{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  /* Disable stagger & hover lift on smaller screens (prevents overlap / keeps it "normal") */
  .mcard,
  .gcard{
    --y: 0px;
    transform: none;
  }
  .mcard:hover,
  .gcard:hover{
    transform: none;
  }
}

/* Mobile: simple single-column stack */
@media (max-width: 640px){
  .menugrid,
  .gallery{
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mcard,
  .gcard{
    width: 100%;
    aspect-ratio: 4 / 3;
    --y: 0px;
    margin: 0;
  }
}

@media (max-width: 480px){
  .pagehero--top{ height: 60vh; }
  .pagehero--concept{ height: 52vh; }
  .topcopy{ padding: 36px 0 0; }
  .topcopy__text{ font-size: 11px; line-height: 2.05; }
  .concepttext{ font-size: 11px; line-height: 2.05; }

  .menugrid,
  .gallery{ gap: 12px; margin-top: 24px; }
}
