/* ============================================
   CAFE HIYORI — 制作サンプル (AIA Web Studio)
   ============================================ */

:root {
  --ink: #3a322a;
  --ink-soft: #6f655a;
  --cream: #f6f1e7;
  --cream-deep: #ece3d3;
  --accent: #9c6b3f;
  --line: #ddd2bf;
  --serif-jp: "Noto Serif JP", serif;
  --serif-en: "Cormorant Garamond", serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--serif-jp);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Demo bar ---------- */
.demo-bar {
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.demo-bar a { text-decoration: underline; opacity: 0.85; }
.demo-bar a:hover { opacity: 1; }

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif-en);
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--cream);
  border: 1px solid rgba(246, 241, 231, 0.7);
  padding: 14px 44px;
  border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover { background: var(--cream); color: var(--ink); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: rgba(246, 241, 231, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header__inner {
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  font-family: var(--serif-en);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.header__logo span {
  font-family: var(--serif-jp);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-left: 8px;
}
.header__nav { display: flex; gap: 30px; font-size: 14px; letter-spacing: 0.08em; }
.header__nav a { position: relative; padding: 4px 0; }
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.header__nav a:hover::after { width: 100%; }
.header__burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream);
  padding: 40px 24px;
  background:
    linear-gradient(rgba(40, 32, 24, 0.42), rgba(40, 32, 24, 0.58)),
    url("img/hero.jpg") center / cover no-repeat,
    #4a3722;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; max-width: 640px; }
.hero__sub {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.hero__lead { font-size: 15px; letter-spacing: 0.04em; margin-bottom: 40px; opacity: 0.95; }
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--cream);
  z-index: 1;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px; height: 40px;
  margin: 10px auto 0;
  background: linear-gradient(var(--cream), transparent);
}

/* ---------- Sections ---------- */
.section { padding: 110px 28px; }
.section__inner { max-width: 1080px; margin: 0 auto; }
.label {
  font-family: var(--serif-en);
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 16px;
}
.label--center, .section__title--center { text-align: center; }
.section__title {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}
.section__title--center { margin-bottom: 48px; }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__img {
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(58, 50, 42, 0.18);
}
.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about__body p { color: var(--ink-soft); margin-bottom: 18px; }
.about__sign {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  margin-top: 26px;
}

/* ---------- Menu ---------- */
.menu { background: var(--cream-deep); }
.menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.menu__col h3 {
  font-family: var(--serif-en);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
}
.menu__col li {
  display: flex;
  align-items: baseline;
  font-size: 15px;
  margin-bottom: 14px;
}
.menu__col .dots {
  flex: 1;
  margin: 0 8px;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}
.menu__col .price { color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.menu__note { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 44px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.gallery__item { aspect-ratio: 1; overflow: hidden; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery__item:hover img { transform: scale(1.06); }

/* ---------- Info ---------- */
.info { background: var(--cream); }
.info__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.info dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.info dt { color: var(--accent); letter-spacing: 0.08em; }
.info dd { color: var(--ink-soft); }
.info__sns { display: flex; gap: 24px; margin-top: 28px; }
.info__sns a {
  font-family: var(--serif-en);
  font-size: 15px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.info__map {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(156,107,63,0.08) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(156,107,63,0.08) 38px 40px),
    var(--cream-deep);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.info__map-pin {
  font-family: var(--serif-en);
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 22px;
  background: var(--cream);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 56px 24px;
}
.footer__logo {
  font-family: var(--serif-en);
  font-size: 22px;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.footer__logo span { font-family: var(--serif-jp); font-size: 12px; letter-spacing: 0.2em; color: #cba573; margin-left: 8px; }
.footer__copy { font-size: 12px; opacity: 0.6; letter-spacing: 0.04em; }
.footer__credit { font-size: 11px; opacity: 0.4; letter-spacing: 0.04em; margin-top: 8px; }

/* ---------- Animation ---------- */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about__inner, .info__inner { grid-template-columns: 1fr; gap: 40px; }
  .menu__grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .section { padding: 80px 22px; }
  .header__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: none; cursor: pointer; z-index: 60;
  }
  .header__burger span { width: 22px; height: 1.5px; background: var(--ink); margin: 0 auto; transition: transform 0.25s ease, opacity 0.25s ease; }
  .header__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .header__burger.is-open span:nth-child(2) { opacity: 0; }
  .header__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 6px 0 18px;
    transform: translateY(-10px);
    opacity: 0; visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .header__nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .header__nav a { padding: 13px 28px; }
}
