/* 旨焼肉 一 ichi｜FV（ファーストビュー）
   写真と言葉が、自動で切り替わる（スクロールとは無関係。FVは1画面で完結する）。
   既存の .hero-* とは別の名前（.fv-*）で作ってあるので、既存CSSと干渉しない。
   色・書体は既存の変数（--serif / --sans）を使う。 */

.fv {
  --fv-cream: #f4f0e8;
  --fv-orange: #f2905a; /* 暗い写真の上で読める橙（文字用） */
  --fv-cta: #b8531f; /* 白文字が読める橙（ボタン用） */
  --fv-cta-hover: #9f4519;
  --fv-deep: #1a1310;
  --fv-glass: rgba(20, 14, 10, 0.52);
  --fv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fv-mobile-bar: calc(62px + env(safe-area-inset-bottom)); /* 既存のスマホ下部バーの高さ */
  --fv-kicker-top: clamp(92px, 14svh, 130px); /* キャプションの位置（高さの低い画面では上に寄せる） */
  position: relative;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  color: var(--fv-cream);
  background: var(--fv-deep);
  font-family: var(--sans, "Noto Sans JP", sans-serif);
}

/* ---------- 背景の写真 ---------- */
.fv-bgs {
  position: absolute;
  inset: 0;
}
.fv-bg {
  position: absolute;
  inset: -3%;
  will-change: transform, opacity;
}
.fv-bg + .fv-bg {
  visibility: hidden;
}
.fv-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 暗くするのはグラデーションではなく、写真ごとの一定の明るさ（文字を読ませるため） */
  filter: brightness(var(--dim, 0.5));
}

/* ---------- 文字 ---------- */
.fv-kicker {
  position: absolute;
  z-index: 3;
  top: var(--fv-kicker-top);
  left: 6vw;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}
.fv-kicker span {
  margin-left: 1.2em;
  padding-left: 1.2em;
  border-left: 1px solid rgba(244, 240, 232, 0.5);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.fv-scenes {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.fv-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 上はキャプションの下から。下は切り替えバーと帯の上まで（ここに収まるように文字を作る） */
  padding: calc(var(--fv-kicker-top) + 48px) 6vw calc(var(--fv-mobile-bar) + 150px);
  pointer-events: none;
}
.fv-scene + .fv-scene {
  visibility: hidden;
}
.fv-copy {
  max-width: 100%; /* スマホは幅いっぱい（文字が途中で折り返されないように） */
  margin-block: auto; /* 余りがあるときだけ縦中央。足りないときは上から詰める（ヘッダーの裏に潜らない） */
  text-shadow: 0 2px 24px rgba(15, 9, 6, 0.55);
  pointer-events: auto;
}
.fv-h {
  margin: 0;
  font-family: var(--serif, "Shippori Mincho", serif);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 3.6rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
}
.fv-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  padding-block: 0.08em;
}
.fv-line.is-em {
  color: var(--fv-orange);
}
.fv-c {
  display: inline-block;
  will-change: transform;
}
.fv-sub {
  margin: 1.4rem 0 0;
  max-width: 28em;
  font-size: clamp(0.86rem, 3.6vw, 1.05rem);
  line-height: 1.9;
  letter-spacing: 0.06em;
}

/* 場面ごとのボタン（電話予約 ＋ この場面に合うページ） */
.fv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.6rem;
}
.fv-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--fv-cream);
  border-radius: 999px;
  color: var(--fv-cream);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-shadow: none;
  transition: background-color 0.3s var(--fv-ease), transform 0.3s var(--fv-ease);
}
.fv-actions a:hover {
  transform: translateY(-2px);
  background: rgba(244, 240, 232, 0.16);
}
.fv-actions a.is-main {
  border-color: var(--fv-cta);
  background: var(--fv-cta);
  color: #fff;
}
.fv-actions a.is-main:hover {
  border-color: var(--fv-cta-hover);
  background: var(--fv-cta-hover);
}
.fv svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* スマホは下部バーに電話があるので、場面ごとのボタンだけにする */
.fv-actions a.is-main {
  display: none;
}

/* ---------- キャラクター（場面ごとに1体だけ） ---------- */
.fv-mascot {
  position: absolute;
  right: 3vw;
  bottom: calc(var(--fv-mobile-bar) + 62px);
  width: clamp(110px, 30vw, 150px);
  transform-origin: 50% 100%;
  pointer-events: none;
}
.fv-mascot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 切り替えバー・止めるボタン ---------- */
.fv-controls {
  position: absolute;
  z-index: 4;
  left: 6vw;
  bottom: calc(var(--fv-mobile-bar) + 66px);
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(52vw, 260px);
}
.fv-bars {
  display: flex;
  flex: 1;
  gap: 6px;
}
.fv-bar {
  position: relative;
  flex: 1;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.fv-bar::before,
.fv-bar i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 3px;
  border-radius: 2px;
}
.fv-bar::before {
  background: rgba(244, 240, 232, 0.32);
}
.fv-bar i {
  background: var(--fv-orange);
  transform: scaleX(0);
  transform-origin: left;
}
.fv-pause {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(244, 240, 232, 0.5);
  border-radius: 50%;
  background: var(--fv-glass);
  color: var(--fv-cream);
  cursor: pointer;
}
.fv-pause svg {
  width: 14px;
  height: 14px;
}
.fv-pause .i-play,
.fv-pause[aria-pressed="true"] .i-pause {
  display: none;
}
.fv-pause[aria-pressed="true"] .i-play {
  display: block;
}
.fv-bar:focus-visible,
.fv-pause:focus-visible,
.fv-quick a:focus-visible,
.fv-actions a:focus-visible {
  outline: 2px solid var(--fv-orange);
  outline-offset: 3px;
}

/* ---------- 下の帯：営業情報と、似たページへのリンク ---------- */
.fv-bottom {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: var(--fv-mobile-bar);
  padding: 0 6vw 12px;
}
.fv-info {
  display: none;
}
.fv-quick {
  display: flex;
  gap: 8px;
}
.fv-quick a {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(244, 240, 232, 0.45);
  border-radius: 999px;
  background: var(--fv-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--fv-cream);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.3s var(--fv-ease);
}
.fv-quick a:hover {
  background: rgba(244, 240, 232, 0.2);
}
.fv-quick svg,
.fv-quick small {
  display: none;
}

/* ---------- PC ---------- */
@media (min-width: 800px) {
  .fv {
    --fv-mobile-bar: 0px;
  }
  .fv-kicker {
    left: 8vw;
  }
  .fv-scene {
    padding: calc(var(--fv-kicker-top) + 48px) 8vw 190px;
  }
  .fv-copy {
    max-width: min(72vw, 1040px); /* 見出し9文字が最大の文字サイズ（96px）でも1行に入る幅 */
  }
  .fv-h {
    font-size: clamp(2.4rem, min(6.4vw, 10svh), 6rem);
  }
  .fv-sub {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
  }
  .fv-actions a {
    min-height: 48px;
    padding: 0 24px;
    font-size: 0.9rem;
  }
  .fv-actions a.is-main {
    display: inline-flex;
  }
  .fv-mascot {
    right: 4vw;
    bottom: 100px;
    width: clamp(160px, min(26vw, 40svh), 400px);
  }
  .fv-controls {
    left: 8vw;
    bottom: 104px;
    width: 300px;
  }

  /* 下の帯（半透明の平らな面） */
  .fv-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 0 8vw;
    height: 76px;
    background: var(--fv-glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .fv-info {
    display: block;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.8;
    letter-spacing: 0.06em;
  }
  .fv-info b {
    margin-right: 1em;
    font-weight: 700;
  }
  .fv-info span + span::before {
    content: "／";
    margin: 0 0.4em;
  }
  .fv-quick {
    gap: 10px;
  }
  .fv-quick a {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 20px 0 16px;
    border-radius: 12px;
    border-color: transparent;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    text-align: left;
  }
  .fv-quick a:hover {
    background: rgba(244, 240, 232, 0.14);
  }
  .fv-quick svg {
    display: block;
    width: 20px;
    height: 20px;
    color: var(--fv-orange);
  }
  .fv-quick small {
    display: block;
    margin-top: 2px;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.8;
  }
  .fv-quick strong {
    display: block;
    font-size: 0.85rem;
    line-height: 1.3;
  }
}

/* ---------- PC で幅が狭い画面：帯のリンクの補足を省いて、4つが幅に収まるようにする ---------- */
@media (min-width: 800px) and (max-width: 999px) {
  .fv-info {
    display: none; /* 営業時間は下のセクションにある。ここではリンクを優先 */
  }
  .fv-quick {
    width: 100%;
  }
  .fv-quick a {
    flex: 1;
    justify-content: center;
  }
}
@media (min-width: 800px) and (max-width: 1199px) {
  .fv-quick {
    gap: 4px;
  }
  .fv-quick a {
    padding: 0 12px 0 10px;
    gap: 8px;
  }
  .fv-quick small {
    display: none;
  }
  .fv-info {
    font-size: 0.72rem;
  }
}

/* ---------- PC で高さが低い画面：余白と部品を詰めて、すべて画面に収める ---------- */
@media (min-width: 800px) and (max-height: 720px) {
  .fv-scene {
    padding-bottom: 140px;
  }
  .fv-sub {
    margin-top: 0.8rem;
    font-size: 0.92rem;
    line-height: 1.7;
  }
  .fv-actions {
    margin-top: 1rem;
  }
  .fv-actions a {
    min-height: 42px;
  }
  .fv-controls {
    bottom: 76px;
  }
  .fv-bottom {
    height: 60px;
  }
  .fv-quick a {
    min-height: 44px;
  }
  .fv-mascot {
    bottom: 68px;
  }
}

/* ---------- PC で高さがとても低い画面（560px 以下） ---------- */
@media (min-width: 800px) and (max-height: 560px) {
  .fv {
    --fv-kicker-top: 84px;
  }
  .fv-scene {
    padding-top: calc(var(--fv-kicker-top) + 36px);
  }
  .fv-h {
    font-size: clamp(2.2rem, min(6.4vw, 9svh), 6rem);
  }
  .fv-sub {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
  }
  .fv-actions {
    margin-top: 0.7rem;
  }
  .fv-actions a {
    min-height: 38px;
    font-size: 0.82rem;
  }
}

/* ---------- 読み上げ用の全文（画面には出さない） ---------- */
.fv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
