*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-deep: #3a5c30;
  --green: #5c8c4c;
  --green-light: #a0b870;
  --green-pale: #d8e8c8;
  --brown: #5c3d1e;
  --brown-mid: #8b6240;
  --brown-light: #c49a6c;
  --cream: #fdf9f4;
  --cream2: #f5ede0;
  --cream3: #ece0cc;
  --sky: #ddeeff;
  --text: #2e2418;
  --text-mid: #6b5040;
  --text-light: #9a8468;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.9;
  overflow-x: hidden;
}

/* ========== ヘッダー ========== */
header {
  background: rgba(253,249,244,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(92,61,30,0.08);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Lora", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 0.2em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  font-family: "Noto Serif JP", serif;
}

nav a:hover { color: var(--brown); }

/* ========== ヒーロー ========== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 64px;
  display: flex;
  flex-direction: column;
}

/* 空 */
.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #c8e8f8 0%,
    #ddeeff 30%,
    #eef6f0 60%,
    #f5ede0 80%,
    var(--cream) 100%
  );
  transition: background 2s ease;
  z-index: 0;
}

/* 雲 */
.cloud {
  position: absolute;
  background: white;
  border-radius: 50px;
  opacity: 0.75;
  z-index: 1;
}

.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: white;
  border-radius: 50%;
}

.cloud1 {
  width: 200px; height: 40px;
  top: 15%; left: 10%;
  animation: drift 28s linear infinite;
}
.cloud1::before { width: 80px; height: 70px; top: -40px; left: 25px; }
.cloud1::after  { width: 60px; height: 55px; top: -30px; left: 90px; }

.cloud2 {
  width: 140px; height: 30px;
  top: 22%; left: 55%;
  animation: drift 38s linear infinite 6s;
}
.cloud2::before { width: 60px; height: 55px; top: -32px; left: 18px; }
.cloud2::after  { width: 50px; height: 44px; top: -24px; left: 64px; }

.cloud3 {
  width: 110px; height: 25px;
  top: 10%; left: 72%;
  animation: drift 32s linear infinite 14s;
}
.cloud3::before { width: 50px; height: 44px; top: -26px; left: 14px; }
.cloud3::after  { width: 40px; height: 36px; top: -20px; left: 52px; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(120vw); }
}

/* 鳥 */
.bird-wrap {
  position: absolute;
  top: 18%;
  left: -80px;
  z-index: 2;
  display: flex;
  gap: 14px;
  animation: birdFly 22s ease-in-out infinite 3s;
}

.bird { width: 40px; }
.bird-small { width: 28px; margin-top: 8px; }

@keyframes birdFly {
  0%   { left: -80px; top: 18%; }
  40%  { top: 13%; }
  70%  { top: 16%; }
  100% { left: 110vw; top: 14%; }
}

/* 町並み */
.townscape {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.town-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ヒーローコンテンツ */
.hero-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  padding: 3rem 2rem 180px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-panda { flex: 0 0 220px; }

.panda-svg {
  width: 220px;
  filter: drop-shadow(0 8px 24px rgba(92,61,30,0.12));
  animation: float 4.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  45%       { transform: translateY(-16px) rotate(1deg); }
}

.hero-text { max-width: 420px; }

.hero-label {
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.2em;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--brown);
  margin-bottom: 1.2rem;
}

.hero-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 2rem;
}

/* ボタン */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--cream);
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  font-size: 0.85rem;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.12em;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(92,140,76,0.25);
}

.btn:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92,140,76,0.3);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--brown);
  color: var(--brown);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--brown);
  color: var(--cream);
  box-shadow: 0 4px 16px rgba(92,61,30,0.2);
}

/* ========== 区切り帯 ========== */
.season-bar {
  background: var(--green);
  color: var(--cream);
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-family: "Noto Serif JP", serif;
}

.season-bar .sep {
  opacity: 0.35;
  font-size: 0.7rem;
}

/* ========== セクション共通 ========== */
.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 7rem 2rem;
}

.section-eyebrow {
  font-family: "Lora", serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--green);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 3.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--cream3);
}

/* ========== お店について ========== */
.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  font-size: 0.93rem;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
  line-height: 2.1;
}

.sign {
  font-style: italic;
  color: var(--brown-mid) !important;
  margin-top: 1rem !important;
}

.window-svg {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(92,61,30,0.12);
  filter: drop-shadow(0 4px 12px rgba(92,61,30,0.1));
}

/* ========== 商品 ========== */
.products {
  background: var(--cream2);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.product-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--cream3);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(92,61,30,0.1);
}

.product-illust {
  font-size: 2.2rem;
}

.product-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--green);
  background: var(--green-pale);
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.product-body h3 {
  font-family: "Lora", serif;
  font-size: 1.1rem;
  color: var(--brown);
  letter-spacing: 0.1em;
  margin-bottom: 0.7rem;
}

.product-body p {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.95;
}

.products-note {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
  line-height: 2;
}

/* ========== 淹れ方 ========== */
.howto {
  background: var(--green-pale);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.step-num {
  font-family: "Lora", serif;
  font-size: 1.8rem;
  color: var(--green);
  opacity: 0.4;
  margin-bottom: 0.6rem;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.step h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.step p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.9;
}

.step-line {
  width: 1px;
  height: 120px;
  background: var(--green-light);
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: 2.5rem;
}

/* ========== お問い合わせ ========== */
.contact {
  background: var(--cream);
}

.contact-inner {
  text-align: center;
}

.contact-inner p {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
  line-height: 2.1;
}

/* ========== フッター ========== */
footer {
  background: var(--brown);
  color: var(--cream);
  text-align: center;
  padding: 0 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.footer-scene {
  margin-bottom: -4px;
  opacity: 0.2;
}

.footer-logo {
  font-family: "Lora", serif;
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
  color: var(--cream);
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(253,249,244,0.6);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(253,249,244,0.35);
  letter-spacing: 0.1em;
}

/* ========== 飛行機 ========== */
.plane-wrap {
  position: absolute;
  top: 28%;
  left: -120px;
  z-index: 2;
  display: flex;
  align-items: center;
  animation: planeFly 35s linear infinite 8s;
}

.plane-svg {
  width: 64px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

.contrail {
  width: 0;
  height: 2px;
  background: linear-gradient(to left, rgba(255,255,255,0.8), rgba(255,255,255,0));
  border-radius: 2px;
  animation: contrailGrow 35s linear infinite 8s;
}

@keyframes planeFly {
  0%   { left: -120px; top: 28%; }
  30%  { top: 24%; }
  60%  { top: 26%; }
  100% { left: 110vw; top: 23%; }
}

@keyframes contrailGrow {
  0%   { width: 0; opacity: 0.8; }
  10%  { width: 80px; }
  80%  { width: 160px; opacity: 0.6; }
  100% { width: 200px; opacity: 0; }
}

/* ========== 落ち葉パーティクル ========== */
.leaf {
  position: fixed;
  pointer-events: none;
  z-index: 9;
  font-size: 1.1rem;
  user-select: none;
}

/* ========== フェードイン ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 湯気アニメーション ========== */
.steam {
  animation: steam 2.5s ease-in-out infinite;
}

.steam1 { animation-delay: 0s; }
.steam2 { animation-delay: 0.4s; }
.steam3 { animation-delay: 0.8s; }

@keyframes steam {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50%       { opacity: 0.6; transform: translateY(-4px); }
}

/* ========== スクロール空色変化 ========== */
.sky-dawn   { background: linear-gradient(180deg,#f4d0a0 0%,#f8e0c0 30%,#f5ede0 80%,var(--cream) 100%); }
.sky-noon   { background: linear-gradient(180deg,#c8e8f8 0%,#ddeeff 30%,#eef6f0 60%,#f5ede0 80%,var(--cream) 100%); }
.sky-sunset { background: linear-gradient(180deg,#f4a860 0%,#f8c888 25%,#f8e0c0 50%,#f5ede0 80%,var(--cream) 100%); }

/* ========== レスポンシブ ========== */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    padding-bottom: 220px;
    gap: 2rem;
    text-align: center;
  }

  .hero-panda { flex: none; }
  .panda-svg { width: 160px; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .window-svg { max-width: 260px; margin: 0 auto; display: block; }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .step-line { width: 40px; height: 1px; margin: 0 auto; }

  nav ul { display: none; }
}
