/* =========================================================
   セキセイインコカフェ そらいろ — stylesheet
   レトロ喫茶テーマ
   ========================================================= */

:root {
  --brown-deep: #3b2416;
  --brown: #6b3f24;
  --brown-soft: #8a6444;
  --terracotta: #c1622d;
  --terracotta-dark: #a34e21;
  --mustard: #d9a441;
  --mustard-dark: #b9842a;
  --olive: #5c6b47;
  --olive-dark: #47532f;
  --red-retro: #9c3b2c;
  --cream: #f4e9d4;
  --cream-2: #ecdcb9;
  --paper: #fbf3e3;
  --ink: #3a2b1c;
  --white: #fffdf8;
  --radius-lg: 10px;
  --radius-md: 6px;
  --radius-sm: 4px;
  --shadow: 0 10px 26px rgba(59, 36, 22, 0.22);
  --shadow-sm: 4px 4px 0 rgba(59, 36, 22, 0.14);
  --font-heading: "Shippori Mincho", serif;
  --font-accent: "Special Elite", monospace;
  --font-body: "Zen Kaku Gothic New", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(rgba(59,36,22,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
  color: var(--brown-deep);
}

/* retro photo color-grading applied to every real photograph */
.retro-photo {
  filter: sepia(0.22) saturate(1.15) contrast(1.05) brightness(1.02);
}

/* ---------------------------------------------------------
   Header / Nav
--------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 3px double var(--brown);
  box-shadow: 0 2px 10px rgba(59, 36, 22, 0.12);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { font-size: 1.9rem; line-height: 1; filter: sepia(0.3); }

.logo-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--brown-deep);
  line-height: 1.3;
}

.logo-sub {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  letter-spacing: 0.05em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brown);
  position: relative;
  padding: 4px 2px;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--terracotta-dark); }

.btn-nav {
  background: var(--terracotta);
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--brown-deep);
}

.btn-nav:hover { background: var(--terracotta-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-deep);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 70px;
  background: var(--brown-deep);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: sepia(0.35) saturate(1.1) contrast(1.05) brightness(0.6);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(59,30,14,0.55) 0%, rgba(59,30,14,0.35) 45%, rgba(30,18,10,0.75) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 2px solid var(--mustard);
  outline: 1px solid var(--mustard);
  outline-offset: 4px;
  color: var(--mustard);
  margin-bottom: 22px;
  font-family: var(--font-accent);
  letter-spacing: 0.05em;
  transform: rotate(-8deg);
}
.hero-badge .badge-top { font-size: 0.6rem; }
.hero-badge .badge-mid { font-size: 1.5rem; margin: 2px 0; }
.hero-badge .badge-bottom { font-size: 0.55rem; }

.hero-eyebrow {
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-accent);
  color: var(--mustard);
  margin: 0 0 14px;
}

.hero-title {
  font-size: clamp(1.5rem, 6.2vw, 3.5rem);
  color: var(--paper);
  margin-bottom: 20px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.35);
  white-space: nowrap;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--cream-2);
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid var(--brown-deep);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(59,36,22,0.14); }

.btn-outline {
  background: var(--paper);
  color: var(--brown-deep);
  border: 2px solid var(--mustard-dark);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: var(--mustard); color: var(--brown-deep); transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(59,36,22,0.14); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--cream-2);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cream-2);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* ---------------------------------------------------------
   Wave divider (scalloped retro edge between hero & content)
--------------------------------------------------------- */
.wave-divider {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 46px;
  margin-top: -46px;
  background-color: var(--cream);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 Q 10 0 20 20 Q 30 0 40 20 Q 50 0 60 20 Q 70 0 80 20 Q 90 0 100 20 Q 110 0 120 20 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 Q 10 0 20 20 Q 30 0 40 20 Q 50 0 60 20 Q 70 0 80 20 Q 90 0 100 20 Q 110 0 120 20 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* ---------------------------------------------------------
   Sections (generic)
--------------------------------------------------------- */
.section { padding: 90px 0 60px; scroll-margin-top: 70px; position: relative; }

.section-eyebrow {
  text-align: center;
  letter-spacing: 0.25em;
  color: var(--terracotta-dark);
  font-weight: 700;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  margin: 0 0 10px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 18px;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--mustard-dark) 0 6px, transparent 6px 10px);
}

.section-lead {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px;
  color: var(--brown);
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------
   About
--------------------------------------------------------- */
.about { background: var(--cream); }

.about-flex {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 56px;
}

.about-photo-wrap { display: flex; justify-content: center; }

.polaroid {
  background: var(--white);
  padding: 14px 14px 46px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(59,36,22,0.15);
  transform: rotate(-3deg);
  max-width: 340px;
  position: relative;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.polaroid-caption {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--brown);
  font-size: 0.95rem;
}
.polaroid-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 90px;
  height: 28px;
  background: rgba(217, 164, 65, 0.55);
  border: 1px solid rgba(184, 130, 30, 0.4);
}

.about-text p {
  margin: 0 0 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 20px;
}

.feature-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--brown-soft);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(59,36,22,0.14); }

.feature-icon {
  font-size: 2.1rem;
  margin-bottom: 14px;
  filter: sepia(0.4);
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--brown);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------------------------------------------------------
   Birds
--------------------------------------------------------- */
.birds { background: var(--cream-2); }

.bird-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 30px;
}

.bird-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: visible;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--brown-soft);
  padding-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bird-card:nth-child(odd) { transform: rotate(-1deg); }
.bird-card:nth-child(even) { transform: rotate(1deg); }
.bird-card:hover { transform: translate(-2px, -2px) rotate(0deg); box-shadow: 7px 7px 0 rgba(59,36,22,0.16); }

.bird-photo {
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 3px double var(--brown-soft);
}
.bird-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bird-name {
  text-align: center;
  font-size: 1.2rem;
  margin: 18px 0 2px;
}
.bird-name span { font-size: 0.85rem; color: var(--brown); font-family: var(--font-body); }

.bird-type {
  text-align: center;
  font-size: 0.76rem;
  color: var(--olive-dark);
  font-weight: 700;
  font-family: var(--font-accent);
  margin: 0 0 10px;
  letter-spacing: 0.04em;
}

.bird-desc {
  text-align: center;
  font-size: 0.87rem;
  color: var(--brown);
  padding: 0 20px;
  margin: 0;
}

/* ---------------------------------------------------------
   Menu — chalkboard style
--------------------------------------------------------- */
.menu {
  background: var(--brown-deep);
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 4px 4px;
}
.menu .section-eyebrow { color: var(--mustard); }
.menu .section-title { color: var(--paper); }
.menu .section-title::after { background: repeating-linear-gradient(90deg, var(--mustard) 0 6px, transparent 6px 10px); }
.menu .section-lead { color: var(--cream-2); }

.menu-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.menu-col-title {
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  color: var(--paper);
  border-bottom: 2px solid var(--mustard);
}

.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--cream-2);
}
.menu-list li .item-name { white-space: nowrap; }
.menu-list li .leader {
  flex: 1;
  border-bottom: 2px dotted rgba(244,233,212,0.35);
  height: 0.8em;
}

.price {
  font-weight: 700;
  color: var(--mustard);
  font-family: var(--font-accent);
  white-space: nowrap;
}

.menu-note {
  text-align: center;
  color: var(--cream-2);
  opacity: 0.75;
  font-size: 0.8rem;
  margin-top: 34px;
}

/* ---------------------------------------------------------
   Guide
--------------------------------------------------------- */
.guide { background: var(--cream); }

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.guide-block {
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--brown-soft);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}

.guide-block h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.step-list li, .rule-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--ink);
}

.step-list { counter-reset: step; }
.step-list li { counter-increment: step; }
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rule-list li::before {
  content: "🐦";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 0.85rem;
  filter: sepia(0.4);
}

/* ---------------------------------------------------------
   Access
--------------------------------------------------------- */
.access { background: var(--cream-2); }

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.access-info dl {
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--brown-soft);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  display: grid;
  grid-template-columns: 90px 1fr;
  row-gap: 16px;
  column-gap: 12px;
  height: 100%;
}

.access-info dt {
  font-weight: 700;
  color: var(--olive-dark);
  font-family: var(--font-accent);
  font-size: 0.8rem;
}

.access-info dd {
  margin: 0;
  font-size: 0.92rem;
}

.access-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--brown-soft);
  box-shadow: var(--shadow-sm);
  min-height: 280px;
  filter: sepia(0.3) contrast(1.05);
}

.access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* ---------------------------------------------------------
   Reserve form
--------------------------------------------------------- */
.reserve { background: var(--cream); }

.reserve-form {
  max-width: 620px;
  margin: 0 auto;
  background: var(--paper);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--brown-soft);
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 20px; }

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.reserve-form label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--brown-deep);
}

.req {
  display: inline-block;
  background: var(--red-retro);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
  font-weight: 700;
  vertical-align: middle;
}

.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--brown-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s;
}

.reserve-form input:focus,
.reserve-form select:focus,
.reserve-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}

.btn-submit {
  width: 100%;
  cursor: pointer;
  margin-top: 6px;
  font-family: var(--font-body);
}

.form-note {
  text-align: center;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--olive-dark);
  font-weight: 700;
  min-height: 1.2em;
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer {
  background: var(--brown-deep);
  color: var(--cream-2);
  padding: 50px 0 26px;
  border-top: 3px double var(--mustard);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo .logo-text { color: var(--cream-2); }

.footer-sns {
  display: flex;
  gap: 18px;
}
.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--mustard);
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s;
}
.footer-sns a:hover { background: rgba(217,164,65,0.18); transform: translateY(-3px); }

.footer-copy { font-size: 0.78rem; opacity: 0.75; margin: 0; }

.footer-credits {
  font-size: 0.7rem;
  opacity: 0.55;
  max-width: 640px;
  line-height: 1.7;
}
.footer-credits a { text-decoration: underline; }

/* ---------------------------------------------------------
   To top button
--------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  border: 2px solid var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--terracotta-dark); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .about-flex { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .bird-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-tabs { grid-template-columns: 1fr; gap: 30px; }
  .guide-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--paper);
    box-shadow: -8px 0 24px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    padding: 100px 30px 30px;
  }
  .site-nav.open { right: 0; }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .btn-nav { width: 100%; text-align: center; }

  .bird-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .access-info dl { grid-template-columns: 80px 1fr; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 0.7rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; text-align: center; }
}
