/* ==========================================================================
   珈琲 燈火 (Tomoshibi) - Showa Retro Japanese Cafe Style
   Theme: Warm, Authentic, Slow Life, Timeless, Elegant
   WordPress固定ページテンプレート「reirou-special」専用スタイル
   ========================================================================== */

:root {
  /* Warm Color Palette */
  --bg-cream: #fbf9f4;
  --bg-paper: #f6f3e9;
  --text-main: #362214;       /* Deep Coffee Brown */
  --text-muted: #6b5344;
  --accent-green: #1c352d;    /* Deep Dark Green */
  --accent-copper: #b87333;   /* Copper / Brass */
  --accent-gold: #c5a059;

  --border-light: rgba(184, 115, 51, 0.15);
  --border-dark: rgba(78, 54, 41, 0.3);

  /* Fonts */
  --font-serif: 'Zen Old Mincho', 'Noto Serif JP', serif;
  --font-display: 'Cormorant Garamond', 'Playfair Display', serif;
}

/* Base Setup（LPページ内のみに影響するようscoped。ただしクラス単体の詳細度に揃え、
   後続の個別コンポーネント指定（.section の margin:auto 等）を殺さないようにする） */
.reirou-special-page,
.reirou-special-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.reirou-special-page {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 30%, #fbf9f4 0%, #f2eedc 100%);
  background-color: var(--bg-cream);
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: 0.15em;
  overflow-x: hidden;
  /* 日本語の不自然な位置での改行（文字の途中・助詞の直前などでの折り返し）を防止 */
  overflow-wrap: break-word;
}

/* Cocoon本体側の見出し・段落デフォルトスタイル（text-align/float/width等）に
   配置を上書きされないための防御的リセット。text-alignは親要素の指定を
   そのまま継承させ、Cocoon側の個別指定を無効化する。 */
.reirou-special-page h1,
.reirou-special-page h2,
.reirou-special-page h3,
.reirou-special-page h4,
.reirou-special-page h5,
.reirou-special-page h6,
.reirou-special-page p,
.reirou-special-page ul,
.reirou-special-page li,
.reirou-special-page a,
.reirou-special-page div {
  text-align: inherit !important;
  float: none !important;
}

html.reirou-special-html {
  scroll-behavior: smooth;
  background-color: var(--bg-cream);
  overflow-x: hidden;
}

/* Subtle paper texture overlay */
body.reirou-special-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 30px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 249, 244, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 20px 80px;
  box-shadow: 0 4px 30px rgba(54, 34, 20, 0.04);
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text-main);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
}

.nav-menu a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.2em;
}

.nav-menu a:hover {
  color: var(--accent-copper);
}

/* Antique Buttons */
.btn-cafe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--bg-cream);
  background-color: var(--text-main);
  border: 1px solid var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s ease;
}

.btn-cafe:hover {
  background-color: transparent;
  color: var(--text-main);
}

.btn-cafe-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--text-main);
  background-color: transparent;
  border: 1px solid var(--border-dark);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s ease;
}

.btn-cafe-outline:hover {
  background-color: var(--text-main);
  color: var(--bg-cream);
  border-color: var(--text-main);
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) sepia(0.15) contrast(0.95);
  transform: scale(1.03);
  transition: transform 15s ease-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(54, 34, 20, 0.15) 0%, rgba(54, 34, 20, 0.6) 80%);
}

/* Steam Canvas Overlay for Hero Coffee Cup */
#steam-canvas {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 350px;
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  padding: 0 24px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(54, 34, 20, 0.4);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.25em;
  margin-bottom: 24px;
  /* 意図した位置（<br>タグの箇所）以外での折り返しを防止 */
  white-space: nowrap;
}

/* 「少しだけ」の印象的な下線演出 */
.hero-highlight {
  position: relative;
  display: inline-block;
  padding: 0 0.05em;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.12em;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 12%, var(--accent-gold) 88%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  animation: heroUnderlineDraw 1.1s cubic-bezier(0.65, 0, 0.35, 1) 1.1s forwards;
}

@keyframes heroUnderlineDraw {
  to { transform: scaleX(1); }
}

.hero-desc {
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  color: #f6f3e9;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Section Common Layout */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 80px !important;
  max-width: 1300px !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: left;
}

.section-header {
  text-align: center !important;
  margin-bottom: 80px !important;
  width: 100% !important;
}

.section-subtitle-small {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--accent-copper);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

/* 1. Story Section */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.story-image-box {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(54, 34, 20, 0.05);
  border: 1px solid var(--border-light);
}

.story-image-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: contrast(0.95) sepia(0.08);
  transition: transform 1.2s ease;
}

.story-image-box:hover img {
  transform: scale(1.03);
}

.story-text {
  padding-right: 20px;
  min-width: 0;
}

.story-lead {
  font-size: 1.5rem;
  line-height: 1.8;
  margin-bottom: 28px;
  letter-spacing: 0.18em;
}

.story-p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 2.2;
}

/* 2. Coffee Craft Section */
.coffee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.coffee-card {
  padding: 40px 30px;
  text-align: center;
  border-right: 1px solid var(--border-light);
  min-width: 0;
}

.coffee-card:last-child {
  border-right: none;
}

.coffee-icon {
  font-size: 2rem;
  color: var(--accent-copper);
  margin-bottom: 24px;
}

.coffee-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.coffee-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 2;
}

/* 3. Menu Section */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.menu-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(54, 34, 20, 0.03);
  transition: all 0.4s ease;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(54, 34, 20, 0.07);
}

.menu-img-container {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.menu-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.menu-info {
  padding: 24px;
  min-width: 0;
}

.menu-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.menu-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
}

.menu-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-copper);
}

.menu-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* 4. Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  height: 300px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* 5. Customer Voice */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.voice-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-light);
  padding: 40px;
  border-radius: 2px;
  position: relative;
}

.voice-stars {
  color: var(--accent-gold);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.voice-text {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text-main);
  margin-bottom: 20px;
}

.voice-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

/* 6. Access & Information */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-item {
  display: flex;
  gap: 16px;
}

.info-icon {
  font-size: 1.2rem;
  color: var(--accent-copper);
  margin-top: 6px;
}

.info-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.info-value {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.map-embed {
  width: 100%;
  height: 380px;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  background-color: #eee9dd;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Footer Section（背景に湯気が立ちのぼるcanvas演出） */
.reirou-footer {
  position: relative;
  overflow: hidden;
  background-color: #2a1b10;
  color: #e5ded0;
  padding: 80px 80px 40px;
  text-align: center;
  border-top: 2px solid var(--accent-copper);
}

.footer-steam-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
}

.footer-address {
  font-size: 0.9rem;
  line-height: 2;
  color: #b0a092;
  letter-spacing: 0.15em;
}

.footer-copy {
  color: #9c8a7b;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-top: 40px;
}

/* WordPress管理バー表示時のズレ対策 */
body.reirou-special-page.admin-bar .navbar {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.reirou-special-page.admin-bar .navbar {
    top: 46px;
  }
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.1rem; white-space: normal; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .coffee-grid { grid-template-columns: 1fr; gap: 30px; }
  .coffee-card { border-right: none; border-bottom: 1px solid var(--border-light); }
  .coffee-card:last-child { border-bottom: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .voice-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .navbar { padding: 20px 30px; }
  .section { padding: 80px 24px; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 1.6rem; line-height: 2; white-space: normal; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .nav-menu { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
}
