@charset "UTF-8";

/* ============================================
   美膳 - style.css
   モバイルファースト（基準: iPhone SE 375px）
   ============================================ */

:root {
  /* 配色：漆黒の高級感 → 灯りのある温かいダークブラウンへ（親しみ寄り） */
  --color-bg: #1c160f;
  --color-bg-soft: #271e16;
  --color-text: #ece6da;
  --color-muted: #b8ac98;
  --color-gold: #d9ad61;
  --color-gold-soft: rgba(217, 173, 97, 0.38);
  --color-enji: #b24049;
  /* やわらかい角と温かい影（カードの鋭さを緩める） */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.45);
  --font-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-brand: "Yuji Mai", serif;
  --header-height: 116px;
}

/* ---------- リセット・ベース ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.06em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* キーボード操作時のみフォーカスを明示（マウス時は出さない）
   outline は消さず、ブランドに合う金のリングに差し替え */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* スマホのみ改行表示 */
.br-sp {
  /* スマホではデフォルト表示 */
  display: inline;
}

/* PC（768px以上）では非表示 */
@media (min-width: 768px) {
  .br-sp {
    display: none;
  }
}

/* ═══════════════════════════════════════════ */

/* PCのみ改行表示 */
.br-pc {
  /* スマホではデフォルト非表示 */
  display: none;
}

/* PC（768px以上）では表示 */
@media (min-width: 768px) {
  .br-pc {
    display: inline;
  }
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: var(--header-height);
  /* ロゴが上で見切れないよう常に上 20px の余白を確保 */
  padding: 20px 16px 0;
  background: linear-gradient(rgba(23, 18, 13, 0.72), transparent);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
}

/* ロゴ・ハンバーガー・展開ナビは操作できるよう復帰（帯は透過なので中身だけ浮く） */
.site-logo,
.nav-toggle,
.global-nav {
  pointer-events: auto;
}

/* backdrop-filter を使うと固定配置の全画面ナビが
   ヘッダー内に閉じ込められるため、半透明背景のみにする */
.site-header.scrolled {
  /* 高さのある黒帯を避け、上だけ濃く下へ透過させる。
     店名とハンバーガーだけが浮いて見えるグラデーション */
  background: linear-gradient(
    rgba(23, 18, 13, 0.96),
    rgba(23, 18, 13, 0.6) 45%,
    transparent
  );
  box-shadow: none;
}

.site-logo {
  margin: 0;
}

/* 看板のような縦書きロゴ（サブ＝細字／メイン＝筆文字） */
.site-logo a {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.site-logo-sub {
  writing-mode: vertical-rl;
  white-space: nowrap;
  /* メイン（縦書き2文字）とほぼ同じ高さに収まるよう小さめに */
  font-size: clamp(0.58rem, 1.5vw, 0.9rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.85;
}

.site-logo-main {
  writing-mode: vertical-rl;
  font-family: var(--font-brand);
  font-size: clamp(2.6rem, 7vw, 4rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--color-gold);
  padding-left: 9px;
  border-left: 1px solid var(--color-gold-soft);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* ハンバーガーボタン（モバイル） */

.nav-toggle {
  position: relative;
  z-index: 110;
  align-self: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 24px;
  height: 1px;
  background: var(--color-gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle-bar {
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-toggle-bar::before {
  transform: translate(-50%, -8px);
}

.nav-toggle-bar::after {
  transform: translate(-50%, 8px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translate(-50%, 0) rotate(-45deg);
}

/* グローバルナビ（モバイル: 全画面オーバーレイ） */

.global-nav {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: grid;
  place-items: center;
  background: rgba(14, 12, 10, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.global-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.global-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.global-nav a {
  display: block;
  padding: 10px 24px;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: color 0.3s;
}

.global-nav a:hover {
  color: var(--color-gold);
}

/* ---------- ヒーロー ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("img/背景.jpg");
  background-size: cover;
  /* スマホ（縦長画面）は左寄りに切り取り、左側のつきだしを主役に。
     中央だとビールジョッキだけが拡大表示され料理が見切れるため */
  background-position: 22% center;
  animation: heroZoom 14s ease-out forwards;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(14, 12, 10, 0.55),
    rgba(14, 12, 10, 0.45) 60%,
    var(--color-bg)
  );
}

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

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  /* 上は固定ヘッダー、下はScrollインジケーターを避ける */
  padding: calc(var(--header-height) + 8px) 24px 84px;
}

.hero-copy {
  margin: 0;
  writing-mode: vertical-rl;
  /* 横幅だけでなく画面の高さにも連動させ、
     低い画面でも縦書きが見切れないようにする */
  font-size: clamp(1.05rem, min(5vw, 4vh), 2.2rem);
  font-size: clamp(1.05rem, min(5vw, 4svh), 2.2rem);
  font-weight: 500;
  line-height: 2.1;
  letter-spacing: 0.22em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: heroFade 1.6s ease 0.4s forwards;
}

/* 縦書きでは block 流が右→左なので、行は自然に右から並ぶ */
.hero-copy-line {
  display: block;
}

.hero-copy-line:last-child {
  margin-top: 1.8em;
}

.hero-place {
  margin: 0;
  padding: 6px 18px;
  border-top: 1px solid var(--color-gold-soft);
  border-bottom: 1px solid var(--color-gold-soft);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  opacity: 0;
  animation: heroFade 1.6s ease 1.2s forwards;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--color-muted);
  padding-bottom: 44px;
}

.hero-scroll::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 36px;
  background: var(--color-gold);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- セクション共通 ---------- */

.section {
  padding: 72px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 36px;
  text-align: center;
}

.section-label {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 16px auto 0;
  border-radius: 2px;
  /* 金→臙脂（和の赤）のグラデで温かみ・親しみのアクセント */
  background: linear-gradient(90deg, var(--color-gold), var(--color-enji));
}

/* ---------- コンセプト ---------- */

.concept-grid {
  display: grid;
  gap: 32px;
}

.concept-photo {
  position: relative;
}

/* 写真が明るすぎるため黒いシャドウを重ねて落ち着かせる */
.concept-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius);
  pointer-events: none;
}

.concept-photo img {
  display: block;
  width: 100%;
  /* 高さを約半分（3:2）にしつつ、看板が見切れないよう +20px */
  height: calc((100vw - 40px) * 2 / 3 + 20px);
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.concept-catch {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  line-height: 1.9;
  color: var(--color-gold);
  margin: 0 0 20px;
}

.concept-text p:not(.concept-catch) {
  margin: 0 0 1.2em;
  color: var(--color-muted);
}

/* ---------- お品書き ---------- */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.menu-item figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.menu-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.menu-item figure:hover img {
  transform: scale(1.06);
}

.menu-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-align: center;
  color: #fff;
}

.menu-note {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: 0.78rem;
  color: var(--color-muted);
  text-align: center;
}

/* ---------- お酒 ---------- */

.drink {
  position: relative;
  max-width: none;
  background-color: var(--color-bg-soft);
  /* スマホ：左半分は単色、右半分にお酒.jpg。
     画像は右寄せ＋画像内でもボトルが右端にくるよう位置調整。
     手前のグラデーションで左側を単色に溶かす */
  background-image:
    linear-gradient(to right,
      var(--color-bg-soft) 0%,
      var(--color-bg-soft) 50%,
      rgba(22, 19, 16, 0.55) 68%,
      transparent 88%),
    url("img/お酒.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, 18% center;
  background-size: 100% 100%, auto 150%;
  border-top: 1px solid var(--color-gold-soft);
  border-bottom: 1px solid var(--color-gold-soft);
  text-align: left;
}

/* 文字が読めるよう暗いシャドウ（オーバーレイ）を重ねる */
.drink::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 10, 0.35);
  pointer-events: none;
}

.drink > * {
  position: relative;
  z-index: 1;
}

.drink-text {
  /* スマホでは左側（単色域）にテキストを寄せる */
  max-width: 320px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.drink-catch {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  line-height: 1.9;
  color: var(--color-gold);
  margin: 0 0 20px;
}

.drink-text p:not(.drink-catch) {
  margin: 0 0 1.2em;
  color: #d8d0c4;
}

/* ---------- 店内 ---------- */

.space-lead {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--color-muted);
}

.space-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.space-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- 店舗情報・アクセス ---------- */

.access-grid {
  display: grid;
  gap: 36px;
}

.shop-info {
  margin: 0;
}

.shop-info-row {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(232, 226, 216, 0.12);
}

.shop-info-row:first-child {
  border-top: 1px solid rgba(232, 226, 216, 0.12);
}

.shop-info dt {
  color: var(--color-gold);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.shop-info dd {
  margin: 0;
  font-size: 0.9rem;
}

.shop-info dd a {
  text-decoration: none;
  border-bottom: 1px solid var(--color-gold-soft);
}

.map-container {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2);
}

/* ---------- Instagram ---------- */

.instagram-lead {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--color-muted);
}

.instagram-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.instagram-feed a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.instagram-feed img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s;
}

.instagram-feed a:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}

.instagram-follow {
  margin-top: 28px;
  text-align: center;
}

.instagram-follow a {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.instagram-follow a:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

/* ---------- お問い合わせ ---------- */

.contact {
  position: relative;
  max-width: none;
  text-align: center;
  background-image: url("img/background.png");
  background-size: cover;
  background-position: center;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 10, 0.85);
}

.contact > * {
  position: relative;
}

.contact-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  /* スマホでは横余白が狭いほどアイコン同士を近づける */
  gap: clamp(20px, 9vw, 48px);
  margin: 28px 0 18px;
}

/* 電話・メールはアイコンボタンに統一（番号/アドレスは表に出さない） */
.icon-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-gold);
  text-decoration: none;
}

.icon-btn svg {
  width: 30px;
  height: 30px;
  padding: 16px;
  box-sizing: content-box;
  border: 1px solid var(--color-gold-soft);
  border-radius: 50%;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.icon-btn:hover svg,
.icon-btn:focus-visible svg {
  background: var(--color-gold);
  color: var(--color-bg);
  transform: translateY(-3px);
}

.icon-btn-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

/* 店舗情報の電話行：小さめのインラインアイコン */
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gold);
  text-decoration: none;
}

.icon-link svg {
  width: 18px;
  height: 18px;
}

.icon-link span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--color-gold-soft);
}

.contact-note {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ---------- フッター ---------- */

.site-footer {
  padding: 56px 20px 32px;
  text-align: center;
  border-top: 1px solid var(--color-gold-soft);
}

.footer-logo {
  margin: 0 0 16px;
  font-family: var(--font-brand);
  font-size: 1.8rem;
  letter-spacing: 0.3em;
  color: var(--color-gold);
}

.site-footer address {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.9;
}

.footer-sns {
  margin: 18px 0;
}

.footer-sns a {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  text-decoration: none;
  border-bottom: 1px solid var(--color-gold-soft);
}

.copyright {
  margin: 24px 0 0;
  font-size: 0.7rem;
  color: var(--color-muted);
}

/* ---------- スクロールアニメーション ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in,
  .hero-copy,
  .hero-place {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .hero-bg {
    animation: none;
  }
}

/* ============================================
   タブレット・PC（768px〜）
   ============================================ */

@media (min-width: 768px) {
  :root {
    --header-height: 160px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    padding: 20px 36px 0;
  }

  /* PCもスマホと同じハンバーガーメニュー（全画面オーバーレイ）。
     base のスタイルをそのまま使うため、ここでは上書きしない */

  /* PCは横幅が広く全体が見えるので中央に戻す */
  .hero-bg {
    background-position: center;
  }

  .hero-copy {
    line-height: 2.3;
  }

  .section {
    padding: 110px 32px;
  }

  .section-head {
    margin-bottom: 56px;
  }

  .section-head h2 {
    font-size: 1.8rem;
  }

  .concept-grid {
    grid-template-columns: 5fr 6fr;
    gap: 56px;
    align-items: center;
  }

  /* PCは列幅基準なので縦横比で高さを決める。
     看板下端まで入るよう 4:3（やや縦長）にする */
  .concept-photo img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .concept-catch,
  .drink-catch {
    font-size: 1.5rem;
  }

  /* PCもスマホと同じ「左に余白＋右にボトル」のレイアウト。
     120%ズームのまま画像を右へずらしてボトルを右寄りに。
     縦位置はラベル「花の香」が全部見えるよう調整 */
  .drink {
    background-size: 100% 100%, 120% auto;
    background-position: center, 110px 72%;
  }

  .drink::before {
    background: rgba(14, 12, 10, 0.3);
  }

  .drink-text {
    max-width: 600px;
    margin: 0;
  }

  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .menu-item figcaption {
    font-size: 0.88rem;
  }

  .space-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .access-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .map-container {
    aspect-ratio: auto;
    height: 100%;
    min-height: 420px;
  }

  .instagram-feed {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .contact-links {
    flex-direction: row;
    justify-content: center;
    gap: 48px;
  }

  .instagram-follow a {
    padding: 14px 36px;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
  }
}

/* 大画面でもフォントサイズは clamp（高さ連動）に任せる */
