/* ガガマル食堂 サンプル 案A「三幕」 2026-10-03 */

:root{
  --gm-deep:#1C3F6E;
  --gm-mid:#33578C;
  --gm-pale:#C9D6E8;
  --gm-pale2:#EEF2F8;
  --gm-ink:#111;
  --gm-line:rgba(0,0,0,.14);
  --gm-head-h:56px;
  --gm-band-h:136px;
  --gm-dock-h:80px;
  --gm-scene-h: calc(100svh - (var(--gm-head-h) + var(--gm-band-h) + 40px));
  --gm-font-head:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;
  --gm-font-label:"Barlow Condensed","Hiragino Sans",sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0}
body{
  background:#fff;
  color:var(--gm-ink);
  font-family:var(--gm-font-head);
  font-weight:400;
  font-size:16px;
  line-height:1.9;
  -webkit-text-size-adjust:100%;
}
img{max-width:100%;display:block}
a{color:inherit}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

.gm-nb{display:inline-block}

/* ラベル（英字小見出し） */
.gm-label{
  font-family:var(--gm-font-label);
  font-weight:600;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin:0 0 6px;
  color:#fff;
}
.gm-label-dark{color:var(--gm-deep)}

/* ヘッダー */
.gm-head{
  position:relative;
  height:var(--gm-head-h);
  background:#fff;
  border-bottom:1px solid var(--gm-line);
}
.gm-head-inner{
  height:100%;
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.gm-logo{
  font-weight:800;
  font-size:16px;
  letter-spacing:-.01em;
  text-decoration:none;
  color:var(--gm-ink);
}
.gm-menu-btn{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  min-width:44px;
  padding:0 10px;
  background:#fff;
  border:1px solid var(--gm-line);
  font-family:var(--gm-font-head);
  font-size:13px;
  color:var(--gm-ink);
  cursor:pointer;
}
.gm-menu-btn:hover{background:var(--gm-pale2)}
.gm-menu-btn:active{transform:translateY(1px)}
.gm-menu-btn:focus-visible{outline:2px solid var(--gm-deep);outline-offset:2px}
.gm-menu-icon{font-size:18px;line-height:1}

.gm-menu-panel{
  background:#fff;
  border-bottom:1px solid var(--gm-line);
}
.gm-menu-panel ul{margin:0;padding:8px 20px 14px;list-style:none;max-width:1100px;margin-left:auto;margin-right:auto}
.gm-menu-panel li{border-top:1px solid var(--gm-line)}
.gm-menu-panel li:first-child{border-top:0}
.gm-menu-panel a{
  display:block;
  padding:12px 2px;
  min-height:44px;
  font-size:15px;
  text-decoration:none;
  color:var(--gm-ink);
}
.gm-menu-panel a:hover{color:var(--gm-deep)}

html.js .gm-menu-panel{
  max-height:0;
  overflow:hidden;
  transition:max-height .25s ease;
}
html.js .gm-menu-panel.open{
  max-height:320px;
}

/* 三幕 */
.scenes{
  position:relative;
  height:calc(var(--gm-scene-h) * 3.5);
}
.scene{
  position:sticky;
  top:40px;
  height:var(--gm-scene-h);
  overflow:hidden;
  background:#000;
}
.scene-1{z-index:1}
.scene-2{z-index:2}
.scene-3{z-index:3}

.gm-scene-photo{
  position:absolute;
  inset:0;
  margin:0;
}
.gm-scene-photo picture,
.gm-scene-photo img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 40%;
}
.gm-dish-a{object-position:center 55%}

.gm-cap-band{
  position:absolute;
  left:0;
  right:0;
  bottom:calc(56px + env(safe-area-inset-bottom, 0px));
  background:var(--gm-deep);
  padding:20px;
  border-radius:0;
  opacity:1;
  transform:none;
}
html.js .gm-cap-band{
  opacity:0;
  transform:translateY(12px);
  transition:opacity .5s ease, transform .5s ease;
}
html.js .gm-cap-band.gm-in{
  opacity:1;
  transform:translateY(0);
}
.gm-cap-band .gm-label{margin-bottom:8px}
.gm-cap-band .cap{
  margin:0;
  color:#fff;
  font-weight:800;
  letter-spacing:-.01em;
  line-height:1.2;
  font-size:44px;
  word-break:keep-all;
}
.gm-cap-band-3 .cap{font-size:36px}
.gm-cap-band-3 .gm-line{display:inline-block}

@media (prefers-reduced-motion: reduce){
  html.js .gm-cap-band{
    opacity:1;
    transform:none;
    transition:none;
  }
}

/* 事実（ABOUT） */
.facts{
  background:#fff;
  padding:56px 20px;
}
.facts-h{
  margin:0 0 20px;
  font-size:32px;
  font-weight:800;
  letter-spacing:-.01em;
  line-height:1.3;
  color:var(--gm-ink);
  word-break:keep-all;
}
.facts-list{
  margin:0;
  padding:0;
  list-style:none;
  max-width:560px;
}
.facts-list li{
  padding:16px 0;
  border-bottom:1px solid var(--gm-line);
  font-size:22px;
  font-weight:700;
  letter-spacing:-.01em;
  word-break:keep-all;
}
.facts-list li:first-child{border-top:1px solid var(--gm-line)}
.facts-tbd{
  max-width:560px;
  margin:18px 0 0;
  padding:14px 16px;
  border:1px dashed var(--gm-line);
  font-size:15px;
  line-height:1.7;
  color:#555;
}

.gm-intro{
  max-width:560px;
  margin:36px 0 0;
  font-size:17px;
  line-height:1.9;
}
.gm-intro p{margin:0 0 14px}
.gm-more-link{
  display:inline-block;
  text-decoration:underline;
  font-weight:700;
  color:var(--gm-deep);
}

/* 2ページへ */
.pages{
  display:flex;
  flex-direction:column;
}
.gm-page-link{
  position:relative;
  display:block;
  height:62vw;
  text-decoration:none;
  color:#fff;
  overflow:hidden;
}
.gm-page-photo{position:absolute;inset:0;margin:0}
.gm-page-photo picture,
.gm-page-photo img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.gm-page-band{
  background:var(--gm-deep);
  padding:16px 20px;
}
.gm-page-band .gm-label{margin-bottom:4px}
.gm-page-title{
  margin:0;
  font-size:28px;
  font-weight:800;
  color:#fff;
  letter-spacing:-.01em;
  word-break:keep-all;
}

/* 場所 */
.access{
  padding:56px 20px 64px;
  border-top:1px solid var(--gm-line);
}
.access-addr{
  margin:0 0 6px;
  font-size:17px;
  font-weight:700;
}
.access-note{
  margin:0 0 20px;
  font-size:15px;
  color:#444;
}
.gm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 24px;
  background:var(--gm-deep);
  color:#fff;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
  border:2px solid var(--gm-deep);
  border-radius:0;
}
.gm-btn:hover{background:var(--gm-mid);border-color:var(--gm-mid)}
.gm-btn:active{transform:translateY(1px)}
.gm-btn:focus-visible{outline:2px solid var(--gm-deep);outline-offset:3px}
.access-tbd{
  margin:18px 0 0;
  font-size:14px;
  color:#555;
  line-height:1.7;
}

/* フッター */
.gm-footer{
  border-top:1px solid var(--gm-line);
  padding:28px 20px 20px;
}
.gm-footer-pages ul{
  margin:0 0 18px;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:4px 18px;
}
.gm-footer-pages a{
  font-size:14px;
  text-decoration:underline;
  color:var(--gm-deep);
}
.gm-footer .ft-note{
  font-size:12.5px;
  line-height:1.7;
  color:#555;
}
.gm-footer .ft-note p{margin:0 0 8px}
.gm-credit{
  margin:16px 0 0;
  font-size:12px;
  color:#888;
}

/* 1024px以上 */
@media (min-width:1024px){
  :root{
    --gm-head-h:64px;
    --gm-band-h:114px;
  }
  .gm-head-inner,
  .gm-menu-panel ul{max-width:1100px}
  .gm-cap-band{
    left:0;
    right:auto;
    max-width:720px;
    padding:36px 48px;
  }
  .gm-cap-band .cap{font-size:64px}
  .gm-cap-band-3 .cap{font-size:48px}

  .facts{
    padding:88px 40px;
    max-width:1100px;
    margin-left:auto;
    margin-right:auto;
    display:grid;
    grid-template-columns:320px 1fr;
    column-gap:60px;
    align-items:start;
  }
  .gm-intro{max-width:none}

  .pages{flex-direction:row}
  .gm-page-link{height:420px;flex:1}

  .access{
    max-width:1100px;
    margin:0 auto;
    padding:72px 40px 80px;
    display:grid;
    grid-template-columns:320px 1fr;
    column-gap:60px;
  }
}

/* 見比べ用の切り替えバー（デモだけ） */
.hk-switch{position:fixed;top:0;left:0;right:0;z-index:9600;height:40px;display:flex;align-items:center;gap:6px;padding:0 10px;background:#111;color:#fff;font:600 13px/1 "Hiragino Sans","Noto Sans JP",sans-serif;letter-spacing:0}
.hk-switch span{color:#aaa;margin-right:4px;white-space:nowrap;font-weight:400}
.hk-switch a{flex:1;text-align:center;color:#fff;text-decoration:none;padding:8px 0;border:1px solid #666}
.hk-switch a.on{background:#fff;color:#111;border-color:#fff}
body{padding-top:40px}
