/* ==========================================================
   猫兎戯画雑貨展 - 共通スタイル
   色や余白を変えたいときはこのファイルの上部（:root の中）を
   書き換えるだけで、サイト全体の見た目が変わります。
   ========================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f6f3ec;
  --color-accent: #c9503a;
  --color-accent-dark: #a63f2c;
  --color-indigo: #2c4a5e;
  --color-text: #3a332c;
  --color-text-soft: #6b6055;
  --color-border: #ddd0b3;
  --color-paper: #fbf8f0;
  --radius: 6px;
  --max-width: 960px;
  --font-base: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --font-heading: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--color-accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1, h2, h3,
.site-title,
.year-card {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ヘッダー ---------- */

.site-header {
  background: var(--color-bg-soft);
  border-bottom: 2px solid var(--color-indigo);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-indigo);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-title:hover {
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-text);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  white-space: nowrap;
}

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

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

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 10px 0 18px;
  }
}

/* ---------- ヒーロー ---------- */

.hero {
  text-align: center;
  padding: 60px 20px 50px;
  background: linear-gradient(180deg, var(--color-bg-soft), var(--color-bg));
}

.hero-image {
  max-width: 320px;
  width: 100%;
  margin: 0 auto 24px;
  border-radius: var(--radius);
}

.hero h1 {
  font-size: 2rem;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.hero p.lead {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- セクション共通 ---------- */

section {
  padding: 50px 0;
}

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

h2.section-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 34px;
  position: relative;
}

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

/* ---------- 開催概要カード ---------- */

.info-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 34px;
  max-width: 640px;
  margin: 0 auto;
}

.info-card dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.info-card dt {
  color: var(--color-accent-dark);
  font-weight: bold;
}

.info-card dd {
  margin: 0;
}

/* ---------- 出展者グリッド ---------- */

.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
}

.creator-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.creator-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.creator-card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--color-accent);
}

.creator-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-card .body {
  padding: 16px;
}

.creator-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.creator-card .genre {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin: 0 0 8px;
}

.creator-card .sns a {
  font-size: 0.85rem;
}

/* ---------- 過去の展示会 一覧 ---------- */

.years-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.year-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--color-text);
}

.year-card:hover {
  text-decoration: none;
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

/* ---------- ページ共通見出し（下層ページ用） ---------- */

.page-header {
  text-align: center;
  padding: 46px 20px 10px;
}

.page-header h1 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--color-text-soft);
}

.page-header .year-jump {
  margin-top: 16px;
  font-size: 0.95rem;
}

section[id] {
  scroll-margin-top: 90px;
}

/* ---------- ギャラリー（過去展示会ページ用） ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-grid .thumb {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.8rem;
  border: 1px solid var(--color-border);
}

/* ---------- フォーム ---------- */

form.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form.contact-form label {
  font-size: 0.9rem;
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-paper);
}

form.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

form.contact-form button {
  align-self: center;
  padding: 12px 40px;
  border: none;
  border-radius: var(--radius);
  background: var(--color-accent-dark);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

form.contact-form button:hover {
  background: var(--color-accent);
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  text-align: center;
  margin-top: 6px;
}

/* ---------- フッター ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 30px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.site-footer a {
  color: var(--color-text-soft);
}

/* ---------- 汎用 ---------- */

.center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: var(--radius);
  background: var(--color-accent-dark);
  color: #fff;
}

.btn:hover {
  background: var(--color-accent);
  text-decoration: none;
}
