/* =========================================================
   炭火焙煎 灯火珈琲 - cool-cafe サンプル
   モノトーン基調のミニマルで落ち着いたデザイン
   ========================================================= */

:root {
  --ink: #1a1815;
  --ink-soft: #4a453f;
  --ink-faint: #8b8379;
  --paper: #f4f1ea;
  --paper-warm: #ece7dd;
  --line: #d8d1c4;
  --accent: #a9743f;
  --charcoal: #201d1a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, p, dl, dd, ul {
  margin: 0;
}

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

[data-text-key] {
  white-space: pre-line;
}

.eyebrow,
.logo-en,
.hero-en,
.hero-scroll,
.menu-item-en,
.news-tag,
.footer-en {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.16em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(244, 241, 234, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 6vw;
  max-width: 1240px;
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.logo-en {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.logo-jp {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
}

.logo-prefix {
  margin-right: 0.4em;
}

.global-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.global-nav a {
  position: relative;
  padding-bottom: 4px;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.3s ease;
}

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

.global-nav a:hover::after {
  width: 100%;
}

.header-store {
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  transition: background 0.3s ease, color 0.3s ease;
}

.header-store:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 24px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* トップ（未スクロール時）はヘッダーが暗い写真の上に載るので文字・線を明色に */
.site-header:not(.is-scrolled) .logo-en,
.site-header:not(.is-scrolled) .logo-jp,
.site-header:not(.is-scrolled) .global-nav a,
.site-header:not(.is-scrolled) .header-store {
  color: var(--paper);
}

.site-header:not(.is-scrolled) .logo-jp {
  color: rgba(244, 241, 234, 0.75);
}

.site-header:not(.is-scrolled) .global-nav a::after {
  background: var(--paper);
}

.site-header:not(.is-scrolled) .header-store {
  border-color: rgba(244, 241, 234, 0.7);
}

.site-header:not(.is-scrolled) .header-store:hover {
  background: var(--paper);
  color: var(--ink);
}

.site-header:not(.is-scrolled) .nav-toggle span {
  background: var(--paper);
}

/* モバイルのメニュー展開中は生成りパネルになるため文字を暗色へ戻す */
.site-header.nav-open:not(.is-scrolled) .logo-en,
.site-header.nav-open:not(.is-scrolled) .global-nav a {
  color: var(--ink);
}

.site-header.nav-open:not(.is-scrolled) .logo-jp {
  color: var(--ink-soft);
}

.site-header.nav-open:not(.is-scrolled) .nav-toggle span {
  background: var(--ink);
}

/* ---------- Top visual (hero + concept share one photo background) ---------- */
.topvisual {
  position: relative;
}

/* 詳細度を .image-frame と同等以上にして position を確実に上書きする */
.image-frame.topvisual-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.topvisual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, 0.5) 0%, rgba(20, 18, 15, 0.58) 55%, rgba(20, 18, 15, 0.72) 100%);
  z-index: 1;
}

.topvisual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 6vw 80px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  color: var(--paper);
}

.hero-en {
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.hero-lead {
  margin-top: 28px;
  font-size: 0.98rem;
  line-height: 2.1;
  opacity: 0.92;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--paper);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
  padding-bottom: 44px;
}

/* SCROLL インジケーター：下向きシェブロン矢印（ふわっと上下バウンド） */
.hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-right: 1.5px solid var(--paper);
  border-bottom: 1.5px solid var(--paper);
  animation: scrollChevron 2s ease-in-out infinite;
}

@keyframes scrollChevron {
  0%   { transform: rotate(45deg) translate(0, 0);     opacity: 0.2; }
  50%  { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
  100% { transform: rotate(45deg) translate(0, 0);     opacity: 0.2; }
}

/* ---------- Section base ---------- */
.section {
  padding: clamp(72px, 12vw, 140px) 6vw;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 48px;
}

.section-heading.center {
  text-align: center;
}

.eyebrow {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* ---------- Concept (sits over the shared photo background) ---------- */
.concept {
  position: relative;
  z-index: 2;
  color: var(--paper);
}

.concept .eyebrow {
  color: #d8a06a;
}

.concept .section-heading h2 {
  color: var(--paper);
}

.concept-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.concept-body p {
  font-size: 1.02rem;
  line-height: 2.3;
  color: rgba(244, 241, 234, 0.9);
}

.concept-signature {
  margin-top: 28px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: #d8a06a;
}

/* ---------- Charcoal ---------- */
.charcoal {
  background: var(--charcoal);
  color: var(--paper);
}

.charcoal .eyebrow {
  color: #d8a06a;
}

.charcoal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.charcoal-visual {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 2枚を同じ幅・同じ比率にそろえ、左右にずらして配置 */
.charcoal-frame {
  position: relative;
  width: 82%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.charcoal-frame-a {
  align-self: flex-start;
}

.charcoal-frame-b {
  align-self: flex-end;
}

.charcoal-frame .site-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.charcoal-body {
  margin-top: 8px;
  color: rgba(244, 241, 234, 0.82);
  line-height: 2.2;
}

.points {
  margin-top: 40px;
  border-top: 1px solid rgba(244, 241, 234, 0.18);
  padding-top: 28px;
}

.points-title {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: #d8a06a;
  margin-bottom: 20px;
}

.points ul {
  display: grid;
  gap: 22px;
}

.points li h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.points li p {
  font-size: 0.9rem;
  color: rgba(244, 241, 234, 0.72);
  line-height: 1.9;
}

/* ---------- Roaster ---------- */
/* 写真の上にテキストボックスを重ねる（オフセット）レイアウト */
.roaster-inner {
  position: relative;
}

.roaster-frame {
  width: 64%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(26, 24, 21, 0.18);
}

.roaster-frame .site-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roaster-copy {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 47%;
  padding: clamp(32px, 3.6vw, 56px);
  background: var(--charcoal);
  color: var(--paper);
  box-shadow: 0 30px 60px rgba(26, 24, 21, 0.28);
}

.roaster-copy .eyebrow {
  color: #d8a06a;
}

.roaster-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.roaster-copy p {
  color: rgba(244, 241, 234, 0.82);
  line-height: 2.2;
}

.roaster-name {
  margin-top: 24px !important;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--paper);
}

/* ---------- Menu ---------- */
.menu {
  background: var(--paper-warm);
}

.menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(40px, 6vw, 80px);
  max-width: 900px;
  margin: 0 auto;
}

.menu-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.menu-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.menu-item-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.menu-item-name h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.menu-item-en {
  font-size: 0.76rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.menu-item-price {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.2rem;
  color: var(--accent);
  white-space: nowrap;
}

.menu-item p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

.menu-note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ---------- Information ---------- */
.news-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}

.news-item time {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.news-tag {
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.news-item p {
  font-size: 0.92rem;
}

/* ---------- Access ---------- */
.access-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.access-info dl {
  display: grid;
  gap: 0;
}

.access-info dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.access-info dt {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.access-info dd {
  font-size: 0.94rem;
}

.map-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: var(--paper);
  padding: 64px 6vw 40px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.footer-en {
  font-size: 1.4rem;
  letter-spacing: 0.28em;
  font-weight: 600;
}

.footer-tagline {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: rgba(244, 241, 234, 0.6);
}

.footer-copyright {
  font-size: 0.72rem;
  line-height: 1.9;
  color: rgba(244, 241, 234, 0.55);
}

/* ---------- Image fallback ---------- */
.image-frame {
  position: relative;
  background: var(--paper-warm);
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.02) 0 12px, transparent 12px 24px),
    var(--paper-warm);
}

.charcoal-frame .image-placeholder,
.topvisual-frame .image-placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 12px, transparent 12px 24px),
    #2b2723;
  color: rgba(244, 241, 234, 0.5);
}

/* Hide fallback text once the real image loads. */
.image-frame.is-image-loaded .image-placeholder {
  display: none;
}

/* ---------- Reveal animation ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .global-nav,
  .header-store {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.is-scrolled,
  .site-header.nav-open {
    background: rgba(244, 241, 234, 0.96);
    backdrop-filter: blur(12px);
  }

  .site-header.nav-open .global-nav {
    display: flex;
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 36px 0 44px;
    margin: 0;
    background: rgba(244, 241, 234, 0.98);
    backdrop-filter: blur(12px);
    font-size: 0.9rem;
    box-shadow: 0 20px 40px rgba(26, 24, 21, 0.12);
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .concept-inner,
  .charcoal-inner,
  .access-inner {
    grid-template-columns: 1fr;
  }

  .charcoal-visual {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }

  /* 重ねレイアウトは縦積みに切り替え、テキストボックスを少し重ねる */
  .roaster-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .roaster-copy {
    position: static;
    transform: none;
    width: 90%;
    margin: -56px auto 0;
  }

  .menu-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 16px 6vw;
  }

  .hero {
    padding: 110px 6vw 90px;
  }

  .news-item {
    grid-template-columns: auto auto;
    row-gap: 8px;
  }

  .news-item p {
    grid-column: 1 / -1;
  }
}
