/*
Theme Name: &torch Bakery
Theme URI: https://andtorch-bakery.jp
Description: &torch Bakery 専用テーマ。練馬区南大泉のパン屋さん用カスタムテーマです。
Author: &torch Bakery
Version: 1.0.0
License: Private
Text Domain: andtorch
*/

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Noto+Sans+JP:wght@300;400&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Serif JP', serif;
  color: #3a2d24;
  background: #faf8f5;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ===== VARIABLES ===== */
:root {
  --dark-red: #7b1c1c;
  --brown: #3a2d24;
  --cream: #faf8f5;
  --light-cream: #f5f0e8;
  --gold: #c4a45a;
  --text-light: #7a6a5a;
  --white: #ffffff;
  --ig-gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s;
}
.site-header.scrolled {
  background: rgba(250, 248, 245, 0.97);
  box-shadow: 0 1px 12px rgba(58,45,36,0.08);
}
.site-header.page-header {
  background: rgba(250, 248, 245, 0.97);
  box-shadow: 0 1px 12px rgba(58,45,36,0.08);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo-img {
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.site-logo-img img { width: 100%; height: 100%; object-fit: cover; }
.site-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--dark-red);
  font-weight: 400;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--brown);
  font-weight: 300;
  transition: color 0.25s;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--dark-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.site-nav a:hover { color: var(--dark-red); }
.site-nav a:hover::after { transform: scaleX(1); }
.nav-reserve {
  background: var(--dark-red) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: 2px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.14em !important;
}
.nav-reserve::after { display: none !important; }
.nav-reserve:hover { background: #5c1515 !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--brown);
  transition: all 0.3s;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(250,248,245,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--brown);
  text-decoration: none;
  font-weight: 300;
}
.mobile-nav .nav-reserve {
  font-size: 0.85rem !important;
  padding: 12px 36px !important;
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,10,5,0.30) 0%,
    rgba(20,10,5,0.12) 40%,
    rgba(20,10,5,0.55) 100%
  );
}
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}
.hero-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  letter-spacing: 0.32em;
  font-weight: 300;
  font-style: italic;
  opacity: 0.88;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  margin-bottom: 28px;
}
.hero-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  letter-spacing: 0.28em;
  font-weight: 300;
  opacity: 0.85;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.78;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.75), transparent);
  animation: scrollLine 2.2s infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== INSTAGRAM SECTION ===== */
.instagram-section {
  padding: 88px 48px;
  background: var(--white);
  text-align: center;
}
.ig-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}
.ig-icon {
  width: 26px; height: 26px;
  background: var(--ig-gradient);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ig-icon svg { fill: white; width: 15px; height: 15px; }
.ig-title-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--brown);
}
.ig-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--text-light);
  margin-bottom: 32px;
  font-style: italic;
}
.ig-divider {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 0 auto 36px;
}
/* Smash Balloon feed wrapper */
.ig-feed-wrap {
  max-width: 1100px;
  margin: 0 auto 36px;
}
/* ── Smash Balloon デフォルト UI を上書き ── */
.ig-feed-wrap .sbi_follow_btn a,
.ig-feed-wrap #sbi_load .sbi_load_btn {
  background: var(--brown) !important;
  border-radius: 2px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  letter-spacing: 0.18em !important;
  font-size: 0.78rem !important;
}
.ig-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-ig-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--brown);
  color: var(--white);
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 300;
  border-radius: 2px;
  transition: background 0.3s;
}
.btn-ig-more:hover { background: #5a4030; color: var(--white); }
.btn-ig-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--ig-gradient);
  color: var(--white);
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 300;
  border-radius: 2px;
  transition: opacity 0.3s;
}
.btn-ig-follow:hover { opacity: 0.85; color: var(--white); }
.btn-ig-follow svg, .btn-ig-more svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ===== SECTIONS COMMON ===== */
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.73rem;
  letter-spacing: 0.35em;
  color: var(--dark-red);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 400;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--brown);
  margin-bottom: 18px;
}
.section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 40px;
}

/* ===== CONCEPT ===== */
#concept {
  padding: 100px 48px;
}
.concept-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.concept-image { position: relative; }
.concept-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}
.concept-image::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  right: 16px; bottom: 16px;
  border: 1px solid var(--gold);
  pointer-events: none;
  z-index: -1;
}
.concept-text { padding-right: 20px; }
.concept-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 2.3;
}
.concept-body strong { color: var(--dark-red); font-weight: 400; }

/* ===== PRODUCTS ===== */
#products {
  background: var(--light-cream);
  padding: 100px 48px;
  text-align: center;
}
#products .section-label,
#products .section-title,
#products .section-divider { margin-left: auto; margin-right: auto; }
#products .section-divider { margin: 0 auto 16px; }
.products-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 2.1;
  max-width: 520px;
  margin: 0 auto 52px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 1080px;
  margin: 0 auto 48px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: #e8ddd0;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(58,45,36,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s;
}
.gallery-item:hover .gallery-overlay { background: rgba(58,45,36,0.32); }
.gallery-name {
  font-family: 'Noto Serif JP', serif;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  font-weight: 300;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s;
}
.gallery-item:hover .gallery-name { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border: 1px solid var(--dark-red);
  color: var(--dark-red);
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 300;
  transition: all 0.3s;
  border-radius: 2px;
}
.btn:hover { background: var(--dark-red); color: var(--white); }
.btn-fill {
  background: var(--dark-red);
  color: var(--white) !important;
}
.btn-fill:hover { background: #5c1515 !important; border-color: #5c1515 !important; }

/* ===== NEWS ===== */
#news {
  padding: 100px 48px;
  background: var(--cream);
}
.news-inner { max-width: 860px; margin: 0 auto; }
.news-list { list-style: none; border-top: 1px solid #e0d8cc; }
.news-item {
  display: grid;
  grid-template-columns: 130px auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid #e0d8cc;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s;
}
.news-item:hover { opacity: 0.65; }
.news-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  padding-top: 2px;
}
.news-tag {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border: 1px solid var(--dark-red);
  color: var(--dark-red);
  white-space: nowrap;
  font-weight: 300;
  margin-top: 2px;
}
.news-title-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--brown);
}
.news-all-wrap { text-align: right; margin-top: 36px; }

/* Single Post */
.single-post-wrap {
  max-width: 800px;
  margin: 120px auto 80px;
  padding: 0 24px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.post-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
}
.post-content {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 2.2;
  color: var(--text-light);
}
.post-content h2, .post-content h3 { color: var(--brown); font-family: 'Noto Serif JP', serif; }
.post-content a { color: var(--dark-red); }
.post-back { margin-top: 48px; }

/* Archive */
.archive-wrap {
  max-width: 860px;
  margin: 120px auto 80px;
  padding: 0 24px;
}
.archive-title { margin-bottom: 48px; }

/* ===== RESERVE BANNER ===== */
.reserve-banner {
  background: var(--brown);
  color: var(--white);
  text-align: center;
  padding: 88px 48px;
}
.reserve-banner .section-label { color: var(--gold); }
.reserve-banner .section-title { color: var(--white); }
.reserve-banner .section-divider { background: var(--gold); margin: 0 auto 28px; }
.reserve-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  margin-bottom: 40px;
  line-height: 2.1;
}

/* ===== ACCESS ===== */
#access { padding: 100px 48px; }
.access-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.access-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.access-table tr { border-bottom: 1px solid #e8e0d4; }
.access-table td {
  padding: 16px 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--text-light);
  vertical-align: top;
}
.access-table td:first-child {
  width: 88px;
  color: var(--brown);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.access-table a { color: inherit; text-decoration: none; }
.parking-info { display: flex; gap: 20px; margin-top: 20px; }
.parking-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 300;
  letter-spacing: 0.1em;
}
.parking-badge svg { width: 15px; height: 15px; fill: var(--gold); flex-shrink: 0; }
.access-map-wrap {
  width: 100%;
  height: 420px;
  overflow: hidden;
}
.access-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1e120a;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 60px 48px 40px;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}
.footer-logo-img {
  width: 42px; height: 42px;
  border-radius: 50%;
  overflow: hidden;
}
.footer-logo-img img { width: 100%; height: 100%; object-fit: cover; }
.footer-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  color: var(--white);
  letter-spacing: 0.2em;
}
.footer-tagline {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  margin-bottom: 36px;
}
.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 300;
  margin-bottom: 28px;
  transition: color 0.25s;
}
.footer-ig:hover { color: var(--white); }
.footer-ig-icon {
  width: 22px; height: 22px;
  background: var(--ig-gradient);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.footer-ig-icon svg { fill: white; width: 12px; height: 12px; }
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  font-weight: 300;
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  font-family: 'Cormorant Garamond', serif;
  color: rgba(255,255,255,0.3);
}

/* ===== FADE IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .site-header { padding: 0 20px; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  #concept, #products, #news, #access, .reserve-banner { padding: 72px 24px; }
  .instagram-section { padding: 72px 24px; }
  .concept-inner { grid-template-columns: 1fr; gap: 40px; }
  .concept-image::before { display: none; }
  .concept-image img { height: 280px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .access-inner { grid-template-columns: 1fr; gap: 40px; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .ig-buttons { flex-direction: column; }
  .site-footer { padding: 40px 24px 32px; }
}
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
