/*
Theme Name: BARBARA COFFEE ROASTERS
Theme URI: https://barbara.brownbunny.co.jp/
Author: Brown Bunny Co., Ltd.
Author URI: https://brownbunny.co.jp/
Description: 愛知県常滑市・やきもの散歩道「白熊ビルヂング」一階に佇む珈琲店「BARBARA COFFEE ROASTERS」公式サイト用テーマ。ダーク基調 / アンティーク / ボタニカル / 博物館的世界観の一枚物 LP。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: barbara-coffee-roasters
Tags: one-page, custom-colors, custom-menu, full-width-template, threaded-comments
*/

/* =========================================================
   BARBARA COFFEE ROASTERS — style.css
   ダーク / アンティーク / ボタニカル / 博物館的世界観
   ========================================================= */

:root {
  --bg:        #0a0e12;
  --bg-2:      #14110d;
  --bg-3:      #1d1814;
  --red:       #7a1e1e;
  --gold:      #c9a16a;
  --gold-dim:  #8a6f44;
  --text:      #e8dfc8;
  --muted:     #8a7d68;
  --line:      rgba(201, 161, 106, 0.22);

  --serif-en:  "Cormorant Garamond", "Times New Roman", serif;
  --serif-jp:  "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --max:       1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; transition: color .3s ease, opacity .3s ease; }
a:hover { color: var(--gold); }
em  { font-style: italic; color: var(--gold); }

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 38px;
  transition: background .4s ease, padding .4s ease, backdrop-filter .4s ease;
}
.site-header.scrolled {
  background: rgba(10, 14, 18, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 38px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  line-height: 0;
}
.brand-illust {
  display: block;
  width: auto;
  height: 48px;
  max-height: 48px;
  transition: height .4s ease, max-height .4s ease;
}
.site-header.scrolled .brand-illust {
  height: 40px;
  max-height: 40px;
}
.nav {
  display: flex; gap: 28px;
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--muted);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0;
  animation: heroZoom 18s ease-out forwards;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10,14,18,0.15) 0%, rgba(10,14,18,0.7) 75%, rgba(10,14,18,0.95) 100%),
    linear-gradient(to bottom, rgba(10,14,18,0.45) 0%, rgba(10,14,18,0.15) 35%, rgba(10,14,18,0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 0 24px;
}
.hero-eyebrow {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin: 0 0 24px;
  opacity: 0;
  animation: fadeUp 1.2s .3s ease forwards;
}
.hero-title {
  margin: 0;
  line-height: 0;
}
.hero-logo {
  display: block;
  width: clamp(280px, 52vw, 720px);
  height: auto;
  opacity: 0;
  animation: fadeUp 1.4s .5s ease forwards;
}
.hero-jp {
  margin: 36px 0 0;
  font-size: 15px;
  letter-spacing: 0.3em;
  line-height: 2.1;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 1.4s 1.1s ease forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 38px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold);
  opacity: 0;
  animation: fadeUp 1.4s 1.4s ease forwards;
}
.hero-scroll .line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold) 0%, transparent 100%);
  animation: lineDrop 2.4s ease-in-out infinite;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineDrop {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* ========== Section base ========== */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 38px;
}
.container.narrow { max-width: 780px; }

.kicker {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin: 0 0 18px;
}
.section-title {
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0 0 56px;
  color: var(--text);
}
.section-title.en em {
  font-style: italic;
  color: var(--gold);
}

/* ========== Concept ========== */
.section-concept {
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--line);
}
.section-concept .section-title {
  text-align: center;
  margin-bottom: 64px;
}
.concept-body p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 2.3;
  letter-spacing: 0.08em;
}
.concept-body p:last-child { margin-bottom: 0; }

/* ========== The Room (gallery) ========== */
.section-room {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-2) 100%);
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.room-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bg-3);
}
.room-card.tall  { grid-column: span 3; grid-row: span 2; aspect-ratio: 3/4; }
.room-card       { grid-column: span 3; aspect-ratio: 4/3; }
.room-card.wide  { grid-column: span 6; aspect-ratio: 16/7; }
.room-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  filter: brightness(.92) saturate(1.02);
}
.room-card:hover img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1.1);
}
/* ========== Coffee ========== */
.section-coffee {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.coffee-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.coffee-text p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 2.3;
  letter-spacing: 0.08em;
}
.coffee-shop {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--gold) !important;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 32px !important;
}
.coffee-shop a:hover { color: var(--text); }

.coffee-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.coffee-images figure { margin: 0; overflow: hidden; }
.coffee-images figure:first-child {
  grid-row: span 2;
  aspect-ratio: 3/4;
}
.coffee-images figure:not(:first-child) {
  aspect-ratio: 1/1;
}
.coffee-images img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1);
  filter: brightness(.95);
}
.coffee-images figure:hover img { transform: scale(1.06); }

/* ========== Fullbleed quote ========== */
.fullbleed {
  position: relative;
  height: clamp(360px, 60vh, 620px);
  overflow: hidden;
}
.fullbleed img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.55);
}
.fullbleed-quote {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 0 24px;
  text-align: center;
}
.fullbleed-quote p {
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0;
  text-shadow: 0 4px 32px rgba(0,0,0,0.6);
}
.fullbleed-quote em {
  font-style: italic;
  color: var(--gold);
}

/* ========== Visit / Info ========== */
.section-visit {
  background: var(--bg);
}
.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.info > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.info dt {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: lowercase;
}
.info dd {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1.9;
}
.info dd .muted {
  color: var(--muted);
  font-size: 13px;
  margin-left: 4px;
}
.info dd a {
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
}

.map {
  margin-top: 64px;
  width: 100%;
  height: 460px;
  filter: grayscale(0.6) contrast(1.05) brightness(.85);
  border: 1px solid var(--line);
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 60px 38px 28px;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.footer-brand {
  text-align: center;
  line-height: 0;
}
.footer-logo {
  display: block;
  margin: 0 auto;
  width: clamp(240px, 36vw, 380px);
  height: auto;
}
.footer-tag {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin: 14px 0 0;
}
.footer-links {
  display: flex; gap: 32px;
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.copyright {
  margin: 40px 0 0;
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

/* ========== Reveal animation ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 880px) {
  .site-header { padding: 16px 20px; }
  .nav { display: none; }
  .container { padding: 0 22px; }
  .section { padding: clamp(64px, 14vw, 100px) 0; }

  .brand-illust { height: 40px; max-height: 40px; }
  .site-header.scrolled .brand-illust { height: 36px; max-height: 36px; }
  .hero-logo { width: min(78vw, 420px); }

  .hero-jp { font-size: 13px; letter-spacing: 0.24em; }

  .room-grid { grid-template-columns: 1fr; gap: 16px; }
  .room-card,
  .room-card.tall,
  .room-card.wide {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4/3;
  }
  .room-card.tall { aspect-ratio: 3/4; }

  .coffee-grid { grid-template-columns: 1fr; gap: 40px; }
  .coffee-images { gap: 12px; }

  .info { grid-template-columns: 1fr; }
  .info > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 4px;
  }
  .map { height: 360px; margin-top: 40px; }

  .footer-inner { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
