/* enemis.com の見た目。色は天空都市エデンの絵に合わせる（象牙色・苔の緑・真鍮の金） */
:root {
  --ink: #1f2a1e;
  --ink-2: #5a6353;
  --ivory: #f5f0e3;
  --surface: #fbf8ef;
  --moss: #33643f;
  --moss-deep: #1f3a27;
  --brass: #a8843c;
  --brass-line: rgba(168, 132, 60, .45);
  --plate: rgba(251, 248, 239, .9);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
  --width: min(1200px, 100% - 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0;
  background: var(--ivory); color: var(--ink); font-family: var(--sans); line-height: 1.7;
}
/* 背景の絵。background-attachment: fixed はスマホで効かないので、固定の層にする */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--place, none) center / cover no-repeat;
}
main { flex: 1; }
a { color: var(--moss); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ヘッダとフッタ */
site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  min-height: 92px; padding: 6px max(16px, (100% - 1200px) / 2);
  background: var(--surface); border-bottom: 1px solid var(--brass-line);
}
.site-logo img { width: 82px; height: 80px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-family: var(--serif); font-size: 16px; letter-spacing: .03em; }
.site-nav a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--moss); border-bottom-color: var(--brass); }

site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  min-height: 56px; padding: 12px max(16px, (100% - 1200px) / 2);
  background: var(--moss-deep); color: #e9e2d0; font-size: 13px;
}
site-footer small { font-size: inherit; }
site-footer a { color: inherit; }
.site-account { display: flex; gap: 16px; }
.site-logout { padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; background: none; border: none; }

/* トップ */
.home-eden {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(320px, 62vh, 680px); padding: 32px max(24px, (100% - 1200px) / 2);
  background: url(/assets/city/01-panorama.webp) center 38% / cover no-repeat;
  color: #fff; text-decoration: none;
}
.home-eden::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 38, 27, .62), rgba(20, 38, 27, 0) 46%);
  transition: opacity .25s;
}
.home-eden:hover::before { opacity: .7; }
.home-eden-name, .home-eden-note { position: relative; text-shadow: 0 1px 14px rgba(10, 24, 16, .55); }
.home-eden-name { font-family: var(--serif); font-size: clamp(56px, 10vw, 104px); line-height: 1.1; letter-spacing: .06em; }
.home-eden-note { font-family: var(--serif); font-size: clamp(15px, 2vw, 18px); letter-spacing: .12em; }

.home-brands {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  width: var(--width); margin: 28px auto 40px;
}
.home-brands a {
  display: block; overflow: hidden; border: 1px solid var(--brass-line); border-radius: 6px;
  box-shadow: 0 10px 24px -18px rgba(31, 42, 30, .6); transition: transform .2s, box-shadow .2s;
}
.home-brands a:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(31, 42, 30, .7); }
.home-brands img { width: 100%; }

/* 街の中のページ */
.place { width: var(--width); margin: 0 auto; padding: clamp(28px, 12vh, 120px) 0 48px; }
.place-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap;
  margin-bottom: 20px; padding: 16px 24px 18px;
  background: var(--plate); border: 1px solid var(--brass-line); border-radius: 8px;
}
.place-title { min-width: 0; }
.crumbs { font-size: 13px; color: var(--ink-2); }
.crumbs a { color: var(--moss); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 .4em; }
.place h1 { margin: 2px 0 0; font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); font-weight: 600; line-height: 1.3; letter-spacing: .08em; }
.place-lead { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; overflow: hidden; color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--brass-line); border-radius: 8px;
  box-shadow: 0 10px 24px -18px rgba(31, 42, 30, .6); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(31, 42, 30, .7); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-name { padding: 10px 16px 0; font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .08em; }
.card-note { padding: 0 16px 12px; min-height: 1.7em; color: var(--ink-2); font-size: 13.5px; }
.card-note::before { content: ""; display: block; height: 4px; }

/* 検索の窓。映画館のほかは今は見た目だけ */
.search { display: flex; flex-wrap: wrap; gap: 6px 8px; width: min(380px, 100%); }
.search input {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid #c9bfa5; border-radius: 4px;
}
.search button {
  height: 40px; padding: 0 18px; font: inherit; font-size: 15px; color: #f8f4e8; cursor: pointer;
  background: var(--moss); border: none; border-radius: 4px;
}
.search button:hover { background: var(--moss-deep); }
.search-note { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--ink-2); }

/* 貼り付けた Eden。eden-app より外へ filter や transform を掛けない（プレイヤーの固定表示が崩れる） */
eden-app {
  --eden-bg: rgba(251, 248, 239, .94);
  --eden-card-radius: 6px;
  min-height: 42vh; padding: 14px 0 12px;
  border: 1px solid var(--brass-line); border-radius: 8px;
}

/* 映画館だけ暗い。ヘッダとフッタは他のページと同じ */
.is-dark main { --plate: rgba(16, 22, 15, .86); --ink: #ece5d3; --ink-2: #a5a892; --moss: #c9a75c; color: var(--ink); }
.is-dark .search input { background: #10160f; border-color: #3a4436; }
.is-dark .search button { color: #171b12; }
.is-dark .search button:hover { background: #dcbc76; }
.is-dark eden-app { --eden-bg: rgba(16, 22, 15, .9); --eden-card-min: 240px; --eden-card-aspect: 16 / 9; }

@media (max-width: 720px) {
  site-header { min-height: 72px; }
  .site-logo img { width: 62px; height: 60px; }
  .site-nav { gap: 2px 14px; font-size: 14px; }
  .home-brands { grid-template-columns: 1fr; gap: 14px; }
  .place-head { padding: 12px 16px 14px; }
}
