/*
 * Common parts: header (PC 719:587 / SP 795:2732, TOP SP 632:1456), SP menu (632:1902),
 * footer (2026-10-30: PC 1094:339 / SP 632:1727), floating reservation button (PC 719:732 / SP 632:1888).
 * Coordinates follow Figma at 1440px / 393px. Details and deviations: docs/design-common.md.
 */

/* ---------- Header ---------- */
.site-header{
  /* Space above the bar and SP bar metrics differ between the Figma pages (variants below). */
  --site-header-strip:0px;
  --site-header-strip-color:transparent;
  --site-header-sp-strip:0px;
  --site-header-sp-strip-color:transparent;
  --site-header-sp-height:101px;
  --site-header-sp-bg:#d8cdb9;
  --site-header-sp-line:1px solid var(--color-ivory);
  --site-header-sp-logo-top:53px;
  --site-header-sp-toggle-top:57px;
  --site-header-sp-shift:0px; /* Frame 173 (legal, equipment) sits at x=1: logo and icon 1px right */
  position:relative;
  z-index:1000;
  padding-top:var(--site-header-strip);
  background:var(--site-header-strip-color);
}
/* TOP: Figma puts the header at y=19 (PC, white) and y=31 (SP, #eeebe4); the client asked to drop that space (2026-10-22). */
.site-header--top{
  --site-header-sp-height:98px;
  --site-header-sp-logo-top:57px;
  --site-header-sp-toggle-top:67px;
}
/* Privacy policy 968:472 / terms 968:946: header at y=19 on the page colour; SP 968:1198 / 968:1706: 81px, no band. */
.site-header--legal{
  --site-header-strip:19px;
  --site-header-strip-color:#f6f5e8;
  --site-header-sp-height:81px;
  --site-header-sp-bg:#f6f5e8;
  --site-header-sp-line:0;
  --site-header-sp-logo-top:57px;
  --site-header-sp-toggle-top:61px;
  --site-header-sp-shift:1px;
}
/* Event SP 795:2083: the logo row is 1px lower (795:2084 y=54) and the bar has no line at its foot (bar colour to y=101). */
.site-header--event{
  --site-header-sp-line:1px solid transparent;
  --site-header-sp-logo-top:54px;
  --site-header-sp-toggle-top:58px;
}
/* Equipment SP 561:307 (Frame 173, x=1): logo y=57, icon y=61, 1px right; the bar colour continues to y=101 without a line. */
.site-header--equipment{
  --site-header-sp-line:1px solid transparent;
  --site-header-sp-logo-top:57px;
  --site-header-sp-toggle-top:61px;
  --site-header-sp-shift:1px;
}
.site-header__bar{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  height:70px;
  padding:0 40px;
  background:#d8cdb9;
  border-bottom:1px solid var(--color-white);
}
.site-header__logo{flex:none;display:block;margin-top:23px;line-height:0}
.site-header__logo-image{display:block;width:164px;height:24px}
.site-header__nav{flex:0 1 782px;margin:13px 24px 0}
.site-header__nav-list{display:flex;margin:0;padding:0;list-style:none}
.site-header__nav-item{flex:0 1 156px;box-shadow:inset -1px 0 0 var(--color-ivory)}
.site-header__nav-item--self-photo,
.site-header__nav-item--equipment{flex-basis:157px}
.site-header__nav-item--commercial{box-shadow:inset 1px 0 0 var(--color-ivory),inset -1px 0 0 var(--color-ivory)}
.site-header__nav-item--self-photo{box-shadow:inset -1px 0 0 var(--color-white)}
.site-header__nav-link{
  display:block;
  padding:10px;
  color:var(--color-brown);
  font-family:var(--font-hiragino-mincho);
  font-size:16px;
  font-weight:600;
  line-height:24px;
  letter-spacing:1.28px;
  text-indent:1.28px;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
}
.site-header__reserve{
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  width:180px;
  height:40px;
  margin-top:15px;
  background:var(--color-charcoal);
  color:var(--color-white);
  text-decoration:none;
}
.site-header__reserve-label{
  flex:none;
  width:109.64px;
  font-family:var(--font-mincho);
  font-size:12px;
  font-weight:900;
  line-height:24px;
  letter-spacing:3px;
  white-space:nowrap;
}
/* Vector 22 is 3.5×7; the exported SVG includes the round caps (0.5px). */
.site-header__reserve-arrow{display:block;flex:none;width:4.707px;height:8px;margin:0 -.707px 0 -.5px}

/* ---------- SP / tablet menu (632:1902) ---------- */
.site-menu{display:none}
.site-menu__toggle{
  position:relative;
  z-index:2;
  display:block;
  width:44px;
  height:44px;
  cursor:pointer;
  list-style:none;
}
.site-menu__toggle::-webkit-details-marker{display:none}
.site-menu__toggle::marker{content:""}
.site-menu__toggle-icon{position:absolute;left:10.5px;display:block}
/* Figma strokes the three lines on whole pixels (y=57/65/73 etc.): the line box is 0.5px higher than the row Chrome snaps the image to.
   The translate keeps that geometry (two half rows at 1x as in Figma, whole device rows at 2x); the layer avoids clipping the half rows. */
.site-menu__toggle-icon--open{top:14px;width:23px;height:17px;transform:translateY(-.5px);will-change:transform}
.site-menu__toggle-icon--close{top:14px;display:none;width:16px;height:16px}
.site-menu[open] .site-menu__toggle-icon--open{display:none}
.site-menu[open] .site-menu__toggle-icon--close{display:block}
.site-menu__panel{
  position:fixed;
  inset:0;
  z-index:1;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:var(--site-menu-top,calc(var(--site-header-strip) + 128px)) 0 48px;
  background:var(--color-charcoal);
}
/* Closed: no layout boxes at all (Chrome otherwise keeps zero-width boxes that measure outside the viewport). */
.site-menu:not([open]) .site-menu__panel{display:none}
.site-menu__list{margin:0;padding:0;list-style:none}
.site-menu__item{height:80px}
.site-menu__link{
  display:block;
  width:192px;
  height:62px;
  margin:0 auto;
  border-bottom:1px solid var(--color-white);
  color:var(--color-white);
  font-family:var(--font-hiragino-mincho);
  font-size:20px;
  font-weight:600;
  line-height:80px;
  letter-spacing:1.6px;
  text-indent:1.6px;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
}
.site-menu__reserve{
  position:relative;
  display:block;
  width:312px;
  height:50px;
  margin:45px 0 0 calc(50% - 155.5px);
  background:#fffef2;
  border:1px solid var(--color-brown);
  color:var(--color-brown);
  text-align:center;
  text-decoration:none;
}
.site-menu__reserve-label{
  display:block;
  font-family:var(--font-mincho);
  font-size:17px;
  font-weight:700;
  line-height:48px;
  letter-spacing:4.25px;
  text-indent:4.25px;
  white-space:nowrap;
}
.site-menu__reserve-arrow{position:absolute;left:280.5px;top:18.5px;display:block;width:7.207px;height:13px}
html.site-menu-open{overflow:hidden}

/* Tablet: the five PC items no longer fit beside the logo and button, so the SP menu is used. */
@media (max-width:1023px){
  .site-header__nav{display:none}
  .site-header__reserve{margin-left:auto}
  .site-menu{display:block;flex:none;margin:13px -10.5px 0 16px}
}

/* ---------- Footer ---------- */
.site-footer{position:relative;background:#303030;color:var(--color-white)}
.site-footer__inner{position:relative;width:1200px;height:401px;margin:0 auto}
.site-footer__logo{position:absolute;left:0;top:55px;display:block;line-height:0}
.site-footer__logo-image{display:block;width:436px;height:64px}
.site-footer__reserve{
  position:absolute;
  left:702px;
  top:80px;
  display:block;
  width:498px;
  height:119.83px;
  background:var(--color-charcoal);
  border:1px solid #aca392;
  color:var(--color-white);
  text-decoration:none;
}
.site-footer__reserve-label{
  position:absolute;
  left:84.59px;
  top:22.03px;
  font-family:var(--font-mincho);
  font-size:35px;
  font-weight:900;
  line-height:70px;
  letter-spacing:8.75px;
  white-space:nowrap;
}
.site-footer__reserve-arrow{position:absolute;left:416.13px;top:46.74px;display:block;width:16.143px;height:26.344px}
.site-footer__nav{position:absolute;left:18px;top:155px}
.site-footer__nav-list{display:grid;grid-template-columns:210px 207px auto;row-gap:26px;margin:0;padding:0;list-style:none}
.site-footer__nav-item{position:relative;padding-left:11px}
/* 0.5px white separators in Figma: drawn as 1px at 50% so 1x screens match the antialiased original. */
.site-footer__nav-item::before{content:"";position:absolute;left:0;top:1px;width:1px;height:26px;background:rgba(255,255,255,.5)}
.site-footer__nav-item--self-photo,
.site-footer__nav-item--event,
.site-footer__nav-item--access{padding-left:11.5px}
/* Vector 37/38 (x=349) and 39 (x=556) are centred on whole pixels: a 0.5px white line on 348.75–349.25, drawn by Figma as two 25% columns. */
.site-footer__nav-item--self-photo::before,
.site-footer__nav-item--event::before,
.site-footer__nav-item--access::before{background:var(--color-white);transform:translateX(.5px) scaleX(.5)}
.site-footer__nav-item--event{top:1px}
.site-footer__nav-link{
  display:block;
  color:var(--color-white);
  font-family:var(--font-hiragino-mincho);
  font-size:20px;
  font-weight:600;
  line-height:30px;
  letter-spacing:1.6px;
  text-decoration:none;
  white-space:nowrap;
}
.site-footer__instagram,
.site-footer__tiktok{
  position:absolute;
  left:13px;
  top:290px;
  display:flex;
  align-items:flex-start;
  gap:20px;
  color:var(--color-white);
  text-decoration:none;
}
.site-footer__tiktok{left:228px} /* Group 216 at x=348 */
.site-footer__instagram-icon,
.site-footer__tiktok-icon{display:block;width:60px;height:60px}
.site-footer__instagram-label,
.site-footer__tiktok-label{margin-top:17px;font-family:var(--font-display);font-size:20px;line-height:24px;white-space:nowrap}
/* Figma centres "TikTok" in its 54px box (x=428–482); Chrome's text is 53.45px, so it starts .25px right (measured: 60→9 diff px). */
.site-footer__tiktok-label{position:relative;left:.25px}
/* Figma spaces single letters of "TikTok" (PC: only "k" +2.08px; SP also "T" −1.62px). */
.site-footer__tiktok-k{letter-spacing:2.08px}
.site-footer__tiktok-t{letter-spacing:0}
.site-footer__legal{
  position:absolute;
  right:10.44px; /* Figma right-aligns the glyphs; the trailing 0.56px letter-spacing hangs outside. */
  top:302px;
  margin:0;
  padding:0;
  list-style:none;
  font-family:"Inter","Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",sans-serif;
  font-size:14px;
  line-height:28px;
  letter-spacing:.56px;
  text-align:right;
}
.site-footer__legal-link{color:var(--color-white);text-decoration:none}
/* Commercial PC 795:1465 is placed at x=-1: the content moves 1px left, the background stays full width (from 1202px, so the logo never leaves the screen). */
@media (min-width:1202px){
  .site-footer--commercial .site-footer__inner{left:-1px}
}

/* Between the Figma widths: same parts in a single column (Instagram and TikTok side by side) so nothing overlaps. */
@media (min-width:768px) and (max-width:1199px){
  .site-footer__inner{display:grid;grid-template-columns:auto 1fr;column-gap:30px;justify-items:start;width:auto;height:auto;padding:55px 40px 48px}
  .site-footer__logo,
  .site-footer__reserve,
  .site-footer__nav,
  .site-footer__legal{grid-column:1/-1}
  .site-footer__logo,
  .site-footer__nav,
  .site-footer__instagram,
  .site-footer__tiktok,
  .site-footer__legal{position:static}
  .site-footer__reserve{position:relative;left:auto;top:auto;max-width:100%;margin-top:32px}
  .site-footer__nav{margin-top:40px}
  .site-footer__instagram,
  .site-footer__tiktok{margin-top:40px}
  .site-footer__legal{justify-self:end;margin-top:8px}
}

/* ---------- Floating reservation button ---------- */
.floating-reserve{
  position:fixed;
  right:55px;
  bottom:52px;
  z-index:900;
  display:block;
  width:179px;
  height:179px;
  border-radius:50%;
  line-height:0;
}
.floating-reserve__image{display:block;width:179px;height:179px}
/* Shown only by common.js (from the Photo section on TOP). Without JavaScript a permanently fixed button would cover body text, and the header/menu still link to reservations. */
.floating-reserve:not(.is-visible){visibility:hidden;opacity:0;pointer-events:none}

/* ---------- Interaction (not in Figma: subtle hover feedback only) ---------- */
.site-header__nav-link,
.site-header__reserve,
.site-header__logo,
.site-menu__link,
.site-menu__reserve,
.site-footer a,
.floating-reserve{transition:opacity .2s ease,visibility .3s ease}
@media (hover:hover){
  .site-header__nav-link:hover,
  .site-header__reserve:hover,
  .site-header__logo:hover,
  .site-menu__link:hover,
  .site-menu__reserve:hover,
  .site-footer a:hover,
  .floating-reserve:hover{opacity:.75}
}
.site-footer :focus-visible,
.site-menu__panel :focus-visible,
.site-menu[open] .site-menu__toggle:focus-visible{outline-color:var(--color-white)}

/* ---------- SP (393px) ---------- */
@media (max-width:767px){
  .site-header{padding-top:var(--site-header-sp-strip);background:var(--site-header-sp-strip-color)}
  .site-header__bar{display:flow-root;height:var(--site-header-sp-height);padding:0 18px;background:var(--site-header-sp-bg);border-bottom:var(--site-header-sp-line)}
  .site-header__logo{width:164px;margin:var(--site-header-sp-logo-top) 0 0 var(--site-header-sp-shift)}
  .site-header__reserve{display:none}
  .site-menu{position:absolute;top:calc(var(--site-header-sp-toggle-top) - 14px);right:calc(7.5px - var(--site-header-sp-shift));margin:0}
  .site-menu__panel{padding-top:var(--site-menu-top,calc(var(--site-header-sp-strip) + var(--site-header-sp-toggle-top) + 101px))}

  .site-footer__inner{width:auto;max-width:393px;height:573px;margin:0 auto}
  /* Figma strokes the separator on whole pixels (632:1733 y=457, 1px, the same on every page since 2026-10-30): the translate puts the line box on 456.5–457.5 as in Figma. */
  .site-footer::before{content:"";position:absolute;left:0;right:0;top:456px;height:1px;background:var(--color-white);transform:translateY(.5px)}
  /* Equipment 1094:542 is placed at x=1: the content moves 1px right (clipped, so 393px stays without horizontal scroll). */
  .site-footer--equipment{overflow:hidden}
  .site-footer--equipment .site-footer__inner{left:1px}
  .site-footer__logo{left:calc(50% - 154.5px);top:21px}
  .site-footer__logo-image{width:310px;height:64px}
  .site-footer__reserve{left:calc(50% - 155.5px);top:112px;width:312px;height:50px;border-color:var(--color-brown)}
  .site-footer__reserve-label{left:0;right:0;top:7px;font-size:17px;font-weight:400;line-height:34px;letter-spacing:4.25px;text-indent:4.25px;text-align:center}
  .site-footer__reserve-arrow{left:280.5px;top:18.5px;width:7.207px;height:13px}
  .site-footer__nav{left:0;right:0;top:0}
  .site-footer__nav-list{display:block}
  .site-footer__nav-item{position:absolute;padding:3px 0 0 16px}
  /* Vector 35〜38・44: 0.5px white centred on x=65 / 213 (the item's left edge + 1px). */
  .site-footer__nav-item::before{top:0;background:var(--color-white);transform:translateX(.5px) scaleX(.5)}
  .site-footer__nav-item--commercial{left:calc(50% - 132.5px);top:206px}
  .site-footer__nav-item--self-photo{left:calc(50% - 132.5px);top:272px}
  .site-footer__nav-item--event{left:calc(50% - 132.5px);top:340px}
  .site-footer__nav-item--equipment{left:calc(50% + 15.5px);top:206px}
  .site-footer__nav-item--access{left:calc(50% + 15.5px);top:272px}
  .site-footer__nav-link{font-size:14px;line-height:21px;letter-spacing:1.12px}
  /* insta 1 at (65,404) with its text at x=100; TikTok Group 216 at (213,404) with its text at x=248. */
  .site-footer__instagram,
  .site-footer__tiktok{left:calc(50% - 131.5px);top:404px;gap:5px}
  .site-footer__tiktok{left:calc(50% + 16.5px)}
  .site-footer__instagram-icon,
  .site-footer__tiktok-icon{width:30px;height:30px}
  .site-footer__instagram-label,
  .site-footer__tiktok-label{margin-top:6px;font-size:18px;line-height:21px}
  /* Figma centres "Instagram　" in its 95px box; measured best at +.25px (73→2 diff px). */
  .site-footer__instagram-label{position:relative;left:.25px}
  /* Chrome drops Italiana's kerning at the span edges (i–k −0.36px, T–o −0.9px at 18px, from the font's kern table); the margins put it back as Figma draws it (66→8 diff px with the .25px shift). */
  .site-footer__tiktok-k{letter-spacing:2.34px;margin-left:-.36px}
  .site-footer__tiktok-t{letter-spacing:-1.62px;margin-right:-.9px}
  .site-footer__legal{left:0;right:0;top:487px;font-size:12px;line-height:24px;letter-spacing:.48px;text-align:center}

  .floating-reserve{right:20px;bottom:41px;width:97px;height:97px}
  .floating-reserve__image{width:97px;height:97px}
}

@media print{
  .site-menu,
  .floating-reserve{display:none}
}
