/* ==========================================================================
   須坂えびす講 (須坂西宮神社) — Custom Stylesheet
   ========================================================================== */

:root {
  /* Colors */
  --primary-red: #c82b2b;
  --dark-red: #9e1c1c;
  --light-red: #fff0f0;
  --accent-gold: #d4af37;
  --gold-gradient: linear-gradient(135deg, #e5c158, #b88e17);
  --bg-cream: #faf7f2;
  --card-bg: #ffffff;
  --text-primary: #2c2c2c;
  --text-muted: #666666;
  --border-light: #ece4d8;

  /* Fonts */
  --font-serif: 'Shippori Mincho', 'Noto Serif JP', serif;
  --font-gothic: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;

  /* Dimensions & Spacing */
  --max-content-width: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-gothic);
  color: var(--text-primary);
  background-color: var(--bg-cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* Common Container (Max Width 1200px) */
.content-container {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition-normal);
}

.header-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
}

.logo-icon img {
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-size: 0.85rem;
  color: var(--primary-red);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-normal);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-red);
}

.nav-menu .btn-overview {
  background-color: var(--primary-red);
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(200, 43, 43, 0.3);
  transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.nav-menu .btn-overview:hover {
  background-color: var(--dark-red);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* ==========================================================================
   Main Hero Section (100% Full Width — Exact match to input_file_0.png)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 680px;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 20px 80px;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* Soft light gradient so background photo is vibrant while text is ultra crisp */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.35) 45%,
      rgba(255, 255, 255, 0.6) 80%,
      rgba(250, 247, 242, 1) 100%);
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
}

.hero-inner-content {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: center;
  width: 100%;
  border: none !important;
  position: relative;
}

.hero-subtitle-top {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.95), 0 0 12px rgba(255, 255, 255, 0.95);
}

.hero-subtitle-top .sub-line {
  display: block;
  line-height: 1.6;
}

.hero-title-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 4px;
}

.stamp-badge {
  background-color: var(--primary-red);
  color: #ffffff;
  font-family: var(--font-serif);
  writing-mode: vertical-rl;
  padding: 10px 8px;
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: 4px;
  letter-spacing: 0.25em;
  box-shadow: 0 4px 10px rgba(200, 43, 43, 0.35);
  line-height: 1;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4.8rem;
  font-weight: 900;
  color: #111111;
  letter-spacing: 0.15em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.95), 0 0 24px rgba(255, 255, 255, 0.95);
}

.hero-shrine-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #2b2b2b;
  letter-spacing: 0.25em;
  margin-bottom: 28px;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.95);
}

.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.date-badge-design {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-serif);
}

.date-badge-design .year {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111111;
}

.date-badge-design .date-day {
  font-size: 4.2rem;
  font-weight: 900;
  color: #111111;
  line-height: 1;
  margin: 0 2px;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9);
}

.date-badge-design .day-tag {
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  font-family: var(--font-gothic);
  vertical-align: middle;
  box-shadow: 0 3px 8px rgba(200, 43, 43, 0.3);
}

.free-stamp {
  width: 82px;
  height: 82px;
  border: 2px solid var(--primary-red);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.15;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  outline: 2px solid #ffffff;
  outline-offset: -5px;
}

.hero-time {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2b2b2b;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.95);
}

.hero-desc-box {
  border-top: none;
  padding-top: 0;
  font-size: 1.12rem;
  color: #222222;
  line-height: 1.9;
  font-family: var(--font-serif);
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.95), 0 0 12px rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   Section 1: 楽しみがいっぱい！ (Feature Cards)
   ========================================================================== */
.features-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--primary-red);
  margin-bottom: 48px;
  letter-spacing: 0.1em;
}

.section-title .slash {
  color: var(--accent-gold);
  margin: 0 8px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.card-img-box {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .card-img-box img {
  transform: scale(1.08);
}

.card-icon-badge {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background-color: var(--primary-red);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(200, 43, 43, 0.4);
  border: 2px solid #ffffff;
  z-index: 2;
}

.card-body {
  position: relative;
  z-index: 2;
  padding: 32px 20px 24px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary-red);
  margin-bottom: 12px;
  font-weight: 700;
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Section 2: Information Blocks (開催概要 / アクセス / 地図) — 縦並び 100%幅
   ========================================================================== */
.info-section {
  padding: 40px 0 80px;
}

.info-stacked-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.info-block {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
}

.info-block:hover {
  box-shadow: var(--shadow-md);
}

.info-block-title {
  background-color: #f6f1e9;
  border-bottom: 2px solid var(--primary-red);
  padding: 20px 32px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-title-icon {
  font-size: 1.3rem;
}

.info-card-content {
  padding: 32px;
}

.overview-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.overview-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-light);
}

.overview-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.overview-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.overview-label .icon-wrap {
  width: 32px;
  height: 32px;
  background-color: var(--light-red);
  color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.overview-val {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.overview-val.highlight {
  font-weight: 700;
  color: var(--primary-red);
  font-size: 1.15rem;
}

.overview-val.highlight-free {
  display: inline-block;
  background-color: var(--primary-red);
  color: #ffffff;
  font-weight: 700;
  padding: 2px 14px;
  border-radius: 20px;
  font-size: 0.95rem;
}

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

.access-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.access-item {
  background: var(--bg-cream);
  padding: 24px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-red);
}

.access-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--primary-red);
}

.access-header i {
  font-size: 1.4rem;
}

.access-header h3 {
  font-size: 1.15rem;
  font-family: var(--font-serif);
  color: var(--text-primary);
}

.access-desc {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.access-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.map-card-content {
  padding: 0;
}

.map-wrapper-fullwidth {
  position: relative;
  width: 100%;
  height: 480px;
}

.map-wrapper-fullwidth iframe {
  width: 100%;
  height: 100%;
}

.map-badge-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.map-pin-info {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 320px;
}

.map-pin-info strong {
  font-family: var(--font-serif);
  color: var(--primary-red);
  font-size: 1.1rem;
}

.map-pin-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.map-external-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--primary-red);
  font-weight: 700;
}

.map-external-link:hover {
  text-decoration: underline;
}


/* ==========================================================================
   Section 3: 協賛企業
   ========================================================================== */
#sponsor {
  /* 金色の光沢を表現するグラデーション */
  background: linear-gradient(135deg,
      #e6c875 0%,
      #ffd700 25%,
      #fff5be 50%,
      #d4af37 75%,
      #b8860b 100%);
  padding: 30px;
  text-align: center;
  min-height: 200px;
}

#sponsor h2 {
  color: var(--primary-red);
  font-family: var(--font-serif);
}

/* ==========================================================================
   Section 3: Photo Gallery Strip
   ========================================================================== */
.gallery-section {
  width: 100%;
  overflow: hidden;
  background-color: #1a1a1a;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
}

.gallery-item {
  height: 180px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.9);
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* ==========================================================================
   Section 4: Footer CTA Bar
   ========================================================================== */
.site-footer {
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 40px 0 20px;
  position: relative;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 0);
  background-size: 16px 16px;
}

.footer-cta-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 24px 30px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  gap: 24px;
}

.insta-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.insta-icon {
  font-size: 2.8rem;
  color: #ffffff;
}

.insta-subtitle {
  font-size: 0.92rem;
  opacity: 0.9;
}

.insta-handle {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.btn-cta-follow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color var(--transition-normal), color var(--transition-normal), transform var(--transition-normal);
}

.btn-cta-follow:hover {
  background-color: #ffffff;
  color: var(--primary-red);
  transform: translateY(-2px);
}

.qr-box {
  width: 64px;
  height: 64px;
  background: #ffffff;
  padding: 4px;
  border-radius: 8px;
}

.qr-svg {
  width: 100%;
  height: 100%;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ==========================================================================
   Responsive Design (@media max-width: 768px - Mobile Breakpoint)
   ========================================================================== */
@media (max-width: 768px) {

  .site-header {
    height: 64px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    text-align: center;
  }

  .nav-menu .btn-overview {
    display: block;
    margin-top: 8px;
  }

  /* Hero Mobile */
  .hero-section {
    min-height: auto;
    padding: 40px 16px 60px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-shrine-name {
    font-size: 1.1rem;
  }

  .hero-badge-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .date-badge-design .date-day {
    font-size: 2.8rem;
  }

  .free-stamp {
    width: 68px;
    height: 68px;
    font-size: 0.9rem;
  }

  /* Cards Grid Mobile */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Information Stacked Layout Mobile */
  .overview-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .access-methods {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-card-content {
    padding: 20px 16px;
  }

  .info-block-title {
    padding: 16px 20px;
    font-size: 1.2rem;
  }

  /* Gallery Mobile */
  .gallery-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    display: none;
  }

  /* Footer CTA Mobile */
  .footer-cta-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .insta-info {
    flex-direction: column;
    gap: 8px;
  }

  .btn-cta-follow {
    width: 100%;
    justify-content: center;
  }

  /* Map Mobile */
  .map-wrapper-fullwidth {
    height: 400px;
  }

  .map-badge-overlay {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .map-pin-info {
    max-width: none;
    padding: 12px 16px;
  }
}