/* ===========================
   CAVASABA 2026 - スタイルシート
   =========================== */

/* リセット・ベース */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brown:     #6b4c35;
  --brown-light: #8c6b4f;
  --beige:     #f5efe6;
  --beige-dark: #e8ddd0;
  --cream:     #fdf9f4;
  --text:      #3a2e26;
  --text-light: #7a6a5a;
  --white:     #ffffff;
  --accent:    #c4915a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.8;
}

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

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

/* コンテナ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   ヘッダー
   =========================== */
.site-header {
  background: var(--brown);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.85rem;
  opacity: 0.9;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ===========================
   ヒーロー
   =========================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #4a3226; /* 画像読み込み前のフォールバック */
}

/* 背景写真レイヤー */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.05); /* 視差効果用に少し大きく */
  transition: transform 0.1s ease-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 25, 10, 0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 48px 24px;
}

.hero-year {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  opacity: 0.25;
  line-height: 1;
  letter-spacing: 0.1em;
  margin-bottom: -16px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-top: 8px;
  opacity: 0.9;
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 36px 0 16px;
}

.date-box {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(4px);
}

.date-month {
  font-size: 0.85rem;
  opacity: 0.85;
}

.date-day {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

.date-dow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  opacity: 0.85;
  margin-top: 2px;
}

.date-sep {
  font-size: 2rem;
  opacity: 0.5;
}

.hero-time {
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.hero-rain {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.75;
  letter-spacing: 0.15em;
}

/* ===========================
   セクション共通
   =========================== */
.section {
  padding: 72px 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--brown);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title-small {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 16px;
}

/* ===========================
   イベントについて
   =========================== */
.about {
  background: var(--cream);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text);
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(107,76,53,0.15);
}

.about-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.feature-item {
  background: var(--beige);
  border-radius: 12px;
  padding: 24px 12px;
  text-align: center;
  border: 1px solid var(--beige-dark);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--brown-light);
  font-weight: 500;
}

/* ===========================
   フォトギャラリー
   =========================== */
.gallery-section {
  background: var(--brown);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item--tall {
  grid-row: 1 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  min-height: 220px;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(40,25,10,0.75));
  color: var(--white);
  font-size: 0.8rem;
  padding: 24px 16px 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* ===========================
   開催概要テーブル
   =========================== */
.info-section {
  background: var(--beige);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(107,76,53,0.08);
}

.info-table th,
.info-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--beige-dark);
}

.info-table th {
  background: var(--brown);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  width: 30%;
  white-space: nowrap;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* ===========================
   アクセス
   =========================== */
.access-section {
  background: var(--cream);
}

.access-venue {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 32px;
}

.access-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.access-item {
  background: var(--beige);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--beige-dark);
}

.access-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.access-item strong {
  display: block;
  color: var(--brown);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.access-item div {
  font-size: 0.9rem;
  line-height: 1.6;
}

.access-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(107,76,53,0.12);
}

/* ===========================
   出店者
   =========================== */
.vendors-section {
  background: var(--beige);
}

.vendors-coming {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  padding: 40px;
  background: var(--white);
  border-radius: 12px;
  border: 2px dashed var(--beige-dark);
}

.coming-box {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border-radius: 16px;
  border: 2px dashed var(--beige-dark);
}

.coming-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.coming-box p {
  color: var(--text-light);
  margin-bottom: 8px;
}

.coming-note {
  font-size: 0.85rem;
}

.coming-note a {
  color: var(--brown);
  text-decoration: underline;
}

/* 出店者カードグリッド（出店者追加時に使用） */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.vendor-card {
  background: var(--white);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--beige-dark);
}

.vendor-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brown);
}

.vendor-category {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===========================
   中止の場合
   =========================== */
.cancel-section {
  background: var(--cream);
  padding: 48px 0;
}

.cancel-section .container {
  background: #fdf3e7;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
}

.cancel-section p,
.cancel-section li {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}

.cancel-section ul {
  margin: 12px 0 12px 20px;
}

.cancel-section li {
  margin-bottom: 6px;
}

.cancel-note {
  color: var(--text-light) !important;
  margin-top: 8px;
}

/* ===========================
   SNS
   =========================== */
.sns-section {
  background: var(--brown);
  color: var(--white);
  text-align: center;
}

.sns-section .section-title {
  color: var(--white);
}

.sns-section .section-title::after {
  background: var(--white);
  opacity: 0.4;
}

.sns-section p {
  margin-bottom: 24px;
  opacity: 0.85;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--brown);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.05em;
}

.instagram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ===========================
   フッター
   =========================== */
.site-footer {
  background: #2e1f14;
  color: var(--white);
  text-align: center;
  padding: 40px 24px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.footer-sub {
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 0.15em;
  margin: 4px 0 16px;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.4;
}

/* ===========================
   レスポンシブ（スマートフォン）
   =========================== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item--tall {
    grid-row: auto;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .access-items {
    grid-template-columns: 1fr;
  }

  .info-table th {
    width: auto;
  }

  .info-table th,
  .info-table td {
    display: block;
    padding: 10px 16px;
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .info-table tr {
    display: block;
    border-bottom: 1px solid var(--beige-dark);
    padding: 8px 0;
  }

  .info-table tr:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-date {
    gap: 8px;
  }

  .date-day {
    font-size: 2.2rem;
  }
}
