/* 妄想喫茶 くものすみか（架空のお店） */

:root {
  --bg: #fbf8f3;
  --bg-alt: #f1ece4;
  --surface: #ffffff;
  --text: #3d3631;
  --text-sub: #7a7068;
  --accent: #b0805a;
  --accent-dark: #8c6142;
  --sky: #dcebf5;
  --line: #e4dcd1;
  --radius: 18px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

a {
  color: inherit;
}

h1, h2, h3 {
  line-height: 1.4;
  margin: 0;
}

/* 架空のお店であることのお知らせ */
.notice {
  background: var(--text);
  color: #fff;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 16px;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px 24px;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  color: var(--accent);
  font-size: 1.4rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-sub);
}

.site-nav a:hover {
  color: var(--accent-dark);
}

/* ヒーロー */
.hero {
  text-align: center;
  padding: 96px 24px 104px;
  background:
    radial-gradient(ellipse 40% 30% at 20% 30%, #fff 0%, transparent 70%),
    radial-gradient(ellipse 35% 25% at 80% 60%, #fff 0%, transparent 70%),
    linear-gradient(180deg, var(--sky) 0%, var(--bg) 100%);
}

.hero-label {
  margin: 0 0 16px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent-dark);
}

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-lead {
  max-width: 560px;
  margin: 24px auto 36px;
  color: var(--text-sub);
}

.button {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.button:hover {
  background: var(--accent-dark);
}

/* セクション共通 */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--bg-alt);
}

.section > * {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 40px;
}

.section h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: var(--accent);
}

.section-note {
  text-align: center;
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-top: -16px;
  margin-bottom: 32px;
}

/* コンセプト */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.concept-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(61, 54, 49, 0.06);
}

.concept-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sky);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.concept-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.concept-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.92rem;
}

/* メニュー */
.menu-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.menu-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.menu-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.menu-head h3 {
  font-size: 1.05rem;
}

.menu-head::after {
  content: "";
  order: 1;
  flex: 1;
  border-bottom: 2px dotted var(--line);
}

.price {
  order: 2;
  color: var(--accent-dark);
  font-weight: 700;
  white-space: nowrap;
}

.menu-item p {
  margin: 8px 0 0;
  color: var(--text-sub);
  font-size: 0.9rem;
}

/* 営業時間・地図 */
.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  text-align: left;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.hours th {
  width: 7em;
  font-weight: 500;
  color: var(--text-sub);
}

.address {
  margin: 24px 0 0;
}

.address dt {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.address dd {
  margin: 4px 0 0;
}

.map-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px),
    var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-sub);
}

.map-pin {
  font-size: 2rem;
}

.map-placeholder p {
  margin: 4px 0 0;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.map-placeholder small {
  background: var(--surface);
  padding: 2px 10px;
  border-radius: 999px;
}

/* お問い合わせ */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
}

.contact > div {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.contact dt {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.contact dd {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* フッター */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.8rem;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

/* 404 ページ */
.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 70%);
  overflow: hidden;
}

.not-found-cup {
  position: relative;
  font-size: 4.5rem;
  line-height: 1;
}

.steam {
  position: absolute;
  bottom: 100%;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-60%);
}

.steam span {
  width: 6px;
  height: 28px;
  border-radius: 6px;
  background: var(--line);
  animation: steam 2.4s ease-in-out infinite;
}

.steam span:nth-child(2) { animation-delay: 0.4s; }
.steam span:nth-child(3) { animation-delay: 0.8s; }

@keyframes steam {
  0%   { transform: translateY(8px); opacity: 0; }
  50%  { opacity: 0.9; }
  100% { transform: translateY(-16px); opacity: 0; }
}

.not-found-code {
  margin: 24px 0 8px;
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  line-height: 1;
}

.not-found h1 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.not-found p {
  max-width: 440px;
  margin: 0 auto 32px;
  color: var(--text-sub);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .steam span { animation: none; opacity: 0.6; }
}

/* スマホ */
@media (max-width: 600px) {
  .site-header {
    position: static;
    justify-content: center;
    padding: 12px 16px;
  }

  .site-nav {
    justify-content: center;
    gap: 4px 14px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 64px 16px 72px;
  }

  .section {
    padding: 56px 16px;
  }
}
