/* ============================================================
   BagelShop polepole — 2026 renewal
   写真が主役のミニマルデザイン。白 × 黒、明朝体。
   フルスクリーンのスライドショーと静かなフェードで魅せる。
   ============================================================ */

:root {
  /* パン屋の色 : クリーム × 焦げ茶 × キャラメル */
  --white: #faf5eb;
  --paper: #fffdf8;
  --ink: #3b2d1f;
  --gray: #8d7c66;
  --line: #e5d9c6;
  --dark: #2a2118;
  --caramel: #a9713d;
  --crust: #8a5f36;

  --font-jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "Oswald", sans-serif;
  --font-head: "Anton", sans-serif;
  --font-script: "Caveat", cursive;

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-jp);
  background: var(--white);
  color: var(--ink);
  line-height: 2.1;
  letter-spacing: 0.05em;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: min(1080px, 90%);
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, 88%);
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

.pc-only {
  display: none;
}

/* スクリーンリーダー・検索エンジン向けの非表示テキスト */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .pc-only {
    display: inline;
  }
}

/* ============================================================
   Loader
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--white);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-text {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--ink);
  animation: soft-blink 2s ease-in-out infinite;
}

@keyframes soft-blink {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  color: #fff;
  background: transparent;
  transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(250, 245, 235, 0.95);
  box-shadow: 0 1px 0 rgba(90, 65, 35, 0.12);
}

.nav {
  width: min(1240px, 94%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 0.56rem;
  letter-spacing: 0.42em;
  opacity: 0.85;
}

.brand-script {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a:not(.nav-insta) {
  position: relative;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 0;
}

.nav-links a:not(.nav-insta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.nav-links a:not(.nav-insta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-insta {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transition: opacity 0.3s ease;
}

.nav-insta svg {
  width: 19px;
  height: 19px;
}

.nav-insta:hover {
  opacity: 0.6;
}

/* hamburger */
.menu-toggle {
  position: relative;
  z-index: 210;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 48px;
  height: 48px;
  padding: 12px;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), background 0.3s ease;
}

/* メニュー展開中はヘッダーをオーバーレイより手前に出し、
   ハンバーガー(×に変形)を閉じるボタンとして見せる */
body.menu-open .site-header {
  z-index: 300;
  background: transparent;
  box-shadow: none;
  color: #fff;
}

body.menu-open .menu-toggle span {
  background: #fff;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* mobile menu : full screen overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: rgba(15, 15, 15, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-menu.open a:nth-child(2) {
  transition-delay: 0.18s;
}
.mobile-menu.open a:nth-child(3) {
  transition-delay: 0.26s;
}
.mobile-menu.open a:nth-child(4) {
  transition-delay: 0.34s;
}
.mobile-menu.open a:nth-child(5) {
  transition-delay: 0.42s;
}

/* ============================================================
   Hero — フルスクリーンのスライドショー
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ゆっくり寄っていくケンバーンズ */
.hero-slide.is-active img {
  animation: kenburns 9s ease-out forwards;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(45, 30, 15, 0.4),
    rgba(45, 30, 15, 0.16) 40%,
    rgba(45, 30, 15, 0.35)
  );
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 6%;
}

.hero-script {
  display: block;
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  display: block;
  margin-top: 18px;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero-place {
  margin-top: 26px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  opacity: 0.85;
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  z-index: 4;
}

.scroll-hint i {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  position: relative;
}

.scroll-hint i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scroll-drip 2.4s ease-in-out infinite;
}

@keyframes scroll-drip {
  0% {
    transform: translateY(-100%);
  }
  55%,
  100% {
    transform: translateY(100%);
  }
}

/* ============================================================
   Sections 共通
   ============================================================ */
.section {
  padding: 110px 0;
}

/* 見出し : 太い英字 + 小さな日本語 */
.sec-head {
  text-align: center;
  margin-bottom: 20px;
}

.h-en {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.h-jp {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--caramel);
}

.sec-lead {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 60px;
}

/* ============================================================
   Concept
   ============================================================ */
.concept {
  text-align: center;
}

.concept-script {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.3;
}

.concept-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  margin-top: 10px;
  margin-bottom: 48px;
}

.rule {
  border: none;
  border-top: 1px solid var(--crust);
  margin: 0 0 44px;
}

.concept-body p {
  font-size: clamp(0.88rem, 1.7vw, 0.98rem);
  margin-bottom: 26px;
}

.concept-features {
  letter-spacing: 0.2em;
  margin-top: 38px;
}

.concept-features {
  color: var(--crust);
}

.concept-features i {
  font-style: normal;
  color: var(--caramel);
  padding: 0 6px;
}

.concept-body .rule:last-child {
  margin: 44px 0 0;
}

.concept-photo {
  margin-top: 64px;
}

.concept-photo img {
  width: min(640px, 100%);
  margin-inline: auto;
}

/* ============================================================
   Photo bands — 全幅の写真
   ============================================================ */
/*
 * 「窓から固定背景が覗く」パララックス。
 * background-attachment: fixed は iOS 非対応のため、
 * clip-path で固定配置の背景を切り抜く方式(全デバイス対応)。
 */
.photo-band {
  position: relative;
  height: clamp(300px, 55vh, 560px);
  clip-path: inset(0);
}

.photo-band::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.band-1::before {
  background-image: url("images/band-1.jpg");
}

.band-2::before {
  background-image: url("images/band-2.jpg");
}

/* ============================================================
   Menu
   ============================================================ */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px 36px;
}

@media (min-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.menu-card {
  display: flex;
  flex-direction: column;
}

.menu-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0e6d4;
}

.menu-card-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease), opacity 0.5s ease;
}

.menu-card:hover .menu-card-img > img {
  transform: scale(1.05);
}

.badge-limited {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  background: var(--caramel);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 6px 14px;
}

.menu-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 22px;
  text-align: center;
}

.menu-card-body h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.menu-card-body p {
  font-size: 0.8rem;
  line-height: 2;
  color: var(--gray);
  margin-bottom: 16px;
  text-align: left;
}

.menu-price {
  margin-top: auto;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--crust);
}

.menu-price span {
  font-family: var(--font-jp);
  font-size: 0.7rem;
  color: var(--gray);
}

/* image slider */
.image-slider {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.slider-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.menu-card:hover .slider-image {
  transform: scale(1.05);
}

.slider-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 6;
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* ============================================================
   Calendar — 営業日は Instagram ストーリーズで案内
   ============================================================ */
.insta-cta {
  text-align: center;
}

.btn-insta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 44px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  transition: background 0.4s ease, color 0.4s ease, transform 0.5s var(--ease);
}

.btn-insta svg {
  width: 20px;
  height: 20px;
}

.btn-insta:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

.insta-note {
  margin-top: 18px;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--gray);
}

/* ============================================================
   Access
   ============================================================ */
.access-photo {
  margin: 44px auto 56px;
  text-align: center;
}

.access-photo img {
  width: min(640px, 100%);
  margin-inline: auto;
}

.access-photo figcaption {
  margin-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gray);
}

.access-info {
  max-width: 560px;
  margin: 0 auto 56px;
}

.access-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: baseline;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.access-row:first-child {
  border-top: 1px solid var(--line);
}

.access-label {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--caramel);
}

.access-row p {
  font-size: 0.9rem;
}

.access-row small {
  font-size: 0.75rem;
  color: var(--gray);
}

.access-row small a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.access-row small a:hover {
  color: var(--caramel);
}

.access-map {
  max-width: 880px;
  margin-inline: auto;
}

.access-map iframe {
  display: block;
  width: 100%;
  filter: grayscale(0.2) saturate(0.85);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--dark);
  color: #e2d5c2;
  text-align: center;
  padding: 80px 6% 36px;
}

.footer-script {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 2.6rem;
  color: #fff;
  line-height: 1.2;
}

.footer-copy {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  line-height: 2.2;
  opacity: 0.75;
}

.footer-insta {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 26px;
  border: 1px solid rgba(226, 213, 194, 0.4);
  border-radius: 50%;
  color: #f5ede0;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.footer-insta svg {
  width: 19px;
  height: 19px;
}

.footer-insta:hover {
  background: rgba(226, 213, 194, 0.12);
  border-color: rgba(226, 213, 194, 0.7);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-top: 36px;
}

.footer-nav a {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-copyright {
  margin-top: 48px;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  opacity: 0.55;
}

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease),
    visibility 0.4s ease, background 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--crust);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   Motion — スクロールでふわっと現れる
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease var(--d, 0s),
    transform 1.2s var(--ease) var(--d, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.rise {
  opacity: 0;
  animation: rise-up 1.4s var(--ease) var(--d, 0s) forwards;
}

@keyframes rise-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .rise {
    opacity: 1;
    transform: none;
  }
}
