/*
Theme Name: Enne Cafe
Theme URI: https://enne-cafe.com
Author: Enne Cafe
Description: CAFE & BAR ENNE オリジナルテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: enne-cafe
*/

/* ===== Variables ===== */
:root {
  --black:      #1e1e2a;
  --white:      #ffffff;
  --bg:         #faf9f7;
  --accent:     #c4a97d;
  --text:       #3a3a3a;
  --text-light: #999;
  --border:     #e8e3dc;
  --section-pad: 100px;
  --container:  1100px;
  --hh:         80px;
  --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --font-en: 'Cormorant Garamond', 'Georgia', serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ja);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn-outline {
  display: inline-block;
  padding: 13px 44px;
  border: 1px solid var(--black);
  color: var(--black);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ===== Opening ===== */
.opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease;
}
.opening-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.opening-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.opening-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0;
  transform: scale(0.85);
  animation: op-logo 1s cubic-bezier(0.4,0,0.2,1) 0.3s forwards;
}

.opening-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: op-text 0.9s ease 1.1s forwards;
}

.opening-name {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.55em;
  color: var(--white);
}

.opening-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  animation: op-line 0.8s ease 1.4s both;
  transform: scaleX(0);
}

.opening-tagline {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  color: rgba(255,255,255,0.5);
}

@keyframes op-logo {
  to { opacity: 1; transform: scale(1); }
}
@keyframes op-text {
  to { opacity: 1; }
}
@keyframes op-line {
  to { transform: scaleX(1); }
}

body.opening-active { overflow: hidden; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--hh);
  background: rgba(249,241,232,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s;
}
.logo-link:hover { opacity: 0.75; }

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-img--white { filter: invert(1); }

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-en);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--black);
}
.logo-name--white { color: var(--white); }
.logo-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-light);
}

/* Navigation */
.main-nav .nav-menu { display: flex; gap: 36px; align-items: center; }
.main-nav .nav-menu a {
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--black);
  position: relative;
  padding-bottom: 2px;
}
.main-nav .nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.main-nav .nav-menu a:hover::after { width: 100%; }

/* Header Tel */
.header-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--black);
  white-space: nowrap;
  transition: color 0.2s;
  line-height: 1.3;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 6px;
}
.header-tel:hover { color: var(--accent); }
.header-tel-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-light);
  font-family: var(--font-ja);
}
.header-tel svg { flex-shrink: 0; }
.header-tel:hover .header-tel-label { color: var(--accent); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== Slider ===== */
.slider-section {
  margin-top: var(--hh);
  position: relative;
  overflow: hidden;
  background: #111;
  height: 80vh;
  min-height: 400px;
  max-height: 800px;
}
.slider { width: 100%; height: 100%; position: relative; }
.slider-track { width: 100%; height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.slide.active { opacity: 1; }
.slide-img { width: 100%; height: 100%; object-fit: cover; }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.15) 80%, rgba(249,241,232,0.85) 93%, #f9f1e8 100%);
}

.slide-caption { display: none; }

.slider-btn { display: none; }

.slider-dots { display: none; }

/* ===== Section Commons ===== */
.section { padding: var(--section-pad) 0; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-en-title {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 16px;
}
.section-divider {
  display: block;
  width: 36px; height: 1px;
  background: var(--accent);
  margin: 0 auto 14px;
}
.section-ja-title {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.25em;
}

.section-more { text-align: center; margin-top: 54px; }
.no-items { text-align: center; color: var(--text-light); padding: 48px; }

/* ===== Concept ===== */
.concept-section { background: #f9f1e8; }

.section-en-title {
  background: linear-gradient(
    90deg,
    var(--black) 20%,
    #c4a97d 40%,
    #f0dfc0 50%,
    #c4a97d 60%,
    var(--black) 80%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: concept-shimmer 8s ease-in-out infinite;
}

@keyframes concept-shimmer {
  0%   { background-position: 100% center; }
  50%  { background-position: -100% center; }
  100% { background-position: 100% center; }
}

.concept-body {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 2.2;
}

/* ===== Menu ===== */
.menu-section { background: var(--bg); }

.menu-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.filter-btn {
  padding: 9px 26px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.menu-grid--archive {
  grid-template-columns: repeat(4, 1fr);
}

.menu-card {
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}
.menu-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.menu-card-image { aspect-ratio: 1/1; overflow: hidden; }
.menu-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.menu-card:hover .menu-card-image img { transform: scale(1.05); }

.menu-card-noimage {
  background: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.noimage-text { color: var(--text-light); font-size: 0.72rem; letter-spacing: 0.1em; }

.menu-card-body { padding: 12px 14px 16px; }

.menu-card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 7px; }
.menu-tag {
  font-size: 0.63rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 1px 8px;
  letter-spacing: 0.06em;
}

.menu-card-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 7px;
  line-height: 1.4;
}
.menu-card-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 10px;
}
.menu-card-price {
  font-family: var(--font-en);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--black);
}

.archive-back { text-align: center; margin-top: 60px; }

/* ===== Marquee ===== */
.marquee-section {
  background: var(--black);
  padding: 18px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.75);
  padding: 0 2em;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== News ===== */
.news-section { background: var(--white); }

.news-list { max-width: 720px; margin: 0 auto; }
.news-item { border-bottom: 1px solid var(--border); }
.news-item:first-child { border-top: 1px solid var(--border); }

.news-link {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 22px 0;
  transition: padding-left 0.25s var(--ease), color 0.2s;
}
.news-link:hover { padding-left: 10px; }
.news-date {
  font-family: var(--font-en);
  font-size: 0.88rem;
  color: var(--text-light);
  white-space: nowrap;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.news-title { font-size: 0.92rem; color: var(--text); }

/* ===== Info ===== */
.info-section { background: var(--bg); }

.info-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.info-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.info-row:first-child { border-top: 1px solid var(--border); }
.info-label { font-size: 0.72rem; color: var(--text-light); letter-spacing: 0.15em; padding-top: 3px; }
.info-value { font-size: 0.91rem; color: var(--text); line-height: 1.75; }
.info-value a:hover { color: var(--accent); }

.info-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.info-map-placeholder {
  background: #f0ede8;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 32px;
  color: var(--text-light);
  font-size: 0.82rem;
  line-height: 2;
}
.info-map-placeholder strong { color: var(--text); display: block; margin-bottom: 12px; }
.info-map-placeholder code { background: rgba(0,0,0,0.06); padding: 1px 6px; font-size: 0.78rem; }

/* ===== Instagram ===== */
.instagram-section { background: var(--bg); }

.instagram-feed { width: 100%; }

.instagram-placeholder {
  background: var(--white);
  border: 1px dashed var(--border);
  padding: 48px 32px;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}
.instagram-placeholder-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-light);
}
.instagram-placeholder-inner svg { color: var(--text-light); }
.instagram-placeholder-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.05em;
}
.instagram-placeholder-steps {
  list-style: decimal;
  padding-left: 1.4em;
  font-size: 0.82rem;
  line-height: 2;
  color: var(--text-light);
}
.instagram-placeholder-steps strong { color: var(--text); }
.instagram-placeholder-steps code {
  background: rgba(0,0,0,0.05);
  padding: 1px 6px;
  font-size: 0.78rem;
  border-radius: 2px;
}

/* ===== Footer ===== */
.site-footer { background: var(--black); }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-nav ul {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-sns { display: flex; gap: 16px; }
.sns-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  transition: color 0.2s;
}
.sns-link:hover { color: var(--white); }

.footer-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-tel:hover { color: var(--white); }
.footer-tel-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-ja);
}
.footer-tel:hover .footer-tel-label { color: rgba(255,255,255,0.8); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
  margin-top: 8px;
}

/* ===== Single / Archive / Page ===== */
.page-wrap { padding-top: calc(var(--hh) + 60px); padding-bottom: 100px; }

.archive-hero {
  padding: calc(var(--hh) + 50px) 0 50px;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.archive-hero-title {
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--black);
  margin-bottom: 8px;
}
.archive-hero-sub { font-size: 0.75rem; color: var(--text-light); letter-spacing: 0.25em; }

.archive-list { padding: 60px 0 100px; }
.archive-news-list { max-width: 720px; margin: 0 auto; }

.news-single { max-width: 760px; margin: 0 auto; }
.news-single-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.news-single-date {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
}
.news-single-title {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 500;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.news-single-content { font-size: 0.93rem; line-height: 2.1; color: var(--text); }
.news-single-content p { margin-bottom: 1.4em; }
.news-single-back {
  margin-top: 50px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.wp-post-navigation { margin-top: 50px; text-align: center; }
.wp-post-navigation .nav-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.wp-post-navigation a { font-size: 0.82rem; color: var(--text-light); border: 1px solid var(--border); padding: 8px 20px; transition: all 0.2s; }
.wp-post-navigation a:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* Generic Page */
.entry-content { font-size: 0.93rem; line-height: 2.1; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content h2 { font-size: 1.3rem; color: var(--black); margin: 2em 0 0.8em; }
.entry-content h3 { font-size: 1.1rem; color: var(--black); margin: 1.6em 0 0.7em; }
.entry-content img { margin: 1.5em 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  :root { --section-pad: 72px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .menu-grid--archive { grid-template-columns: repeat(3, 1fr); }
  .info-inner { grid-template-columns: 1fr; gap: 40px; }
  .concept-inner.has-image { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .concept-image img { height: 300px; }
}

@media (max-width: 640px) {
  :root { --section-pad: 60px; --hh: 68px; }

  .hamburger { display: flex; }
  .header-tel { display: none; }

  .main-nav {
    position: fixed;
    top: var(--hh); left: 0; right: 0;
    background: rgba(249,241,232,0.98);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .main-nav.open { max-height: 400px; }
  .main-nav .nav-menu { flex-direction: column; gap: 0; }
  .main-nav .nav-menu li a {
    display: block;
    padding: 16px 24px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
  }
  .main-nav .nav-menu a::after { display: none; }

  .slider-section { height: 40vh; min-height: 220px; }

  .menu-grid,
  .menu-grid--archive { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .news-link { flex-direction: column; gap: 4px; }

  .logo-en { width: 40px; height: 40px; font-size: 1rem; }
  .logo-name { font-size: 1.15rem; }

  .footer-nav ul { gap: 16px; }
}
