/* ==========================================================================
   つぶてソングの集い - Modern Theme (2026 Trends)
   Bento UI / Kinetic Typography / Dopamine Colors / Micro-interactions
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --color-bg: #fdf8f5;
  --color-surface: #ffffff;
  --color-text: #2a2a2a;
  --color-text-muted: #6b6b6b;
  --color-accent: #c85a6a;
  --color-accent-2: #d4887a;
  --color-accent-3: #7eb5a6;
  --color-gradient-start: #c85a6a;
  --color-gradient-end: #d4887a;
  --color-nav-bg: linear-gradient(180deg, #d4687a 0%, #e07088 100%);
  --color-footer-bg: #c46070;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.9;
  background: var(--color-bg);
}

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

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

a:hover {
  color: var(--color-accent-2);
}

/* ---------- Container ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header - Dynamic Gradient
   ========================================================================== */
.site-header {
  background: var(--color-surface);
  padding: 1.25rem 0;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}


.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-logo img {
  height: 44px;
  width: auto;
  transition: transform var(--transition);
}

.site-logo:hover img {
  transform: scale(1.05);
}

.site-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Navigation - Glass Morphism
   ========================================================================== */
.site-nav {
  background: var(--color-nav-bg);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-nav .container {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 0;
}

.nav-menu li a {
  display: block;
  padding: 0.875rem 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  letter-spacing: 0.03em;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent-2);
  transition: all var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #fff;
  text-decoration: none;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 60%;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li a {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}

/* ==========================================================================
   Home Hero Image
   ========================================================================== */
.home-hero {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.home-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Main Content - Card-based with Fade-in
   ========================================================================== */
.site-main {
  padding: 2.5rem 0;
  min-height: 60vh;
}

/* Scroll fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Kinetic Typography - headings */
.page-content h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  position: relative;
  letter-spacing: -0.02em;
}

.page-content h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.page-content h1:hover::after {
  width: 120px;
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2.5rem 0 1rem;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 4px solid transparent;
  border-image: linear-gradient(to bottom, var(--color-accent), var(--color-accent-2)) 1;
  transition: padding-left var(--transition);
}

.page-content h2:hover {
  padding-left: 1.25rem;
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.5rem 0 0.75rem;
}

.page-content p {
  margin-bottom: 1.2rem;
  line-height: 2;
}

.page-content ul, .page-content ol {
  margin: 0 0 1.2rem 1.5rem;
}

.page-content img {
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.page-content img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   Home Layout - Bento UI Grid
   ========================================================================== */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
}

.home-main {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.home-main h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2rem 0 1rem;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 4px solid transparent;
  border-image: linear-gradient(to bottom, var(--color-accent), var(--color-accent-2)) 1;
  transition: padding-left var(--transition);
}

.home-main h2:hover {
  padding-left: 1.25rem;
}

.home-main h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.home-main p {
  margin-bottom: 1rem;
  line-height: 2;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-sidebar h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-surface);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
}

.whatsnew-list {
  list-style: none;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.whatsnew-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.85rem;
  line-height: 1.6;
  transition: transform var(--transition);
}

.whatsnew-list li:hover {
  transform: translateX(4px);
}

.whatsnew-list li:last-child {
  border-bottom: none;
}

.whatsnew-date {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Event List - Bento Cards
   ========================================================================== */
.event-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-item {
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.event-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--color-accent);
}

.event-date {
  display: inline-block;
  min-width: 6em;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.event-venue {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.event-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.event-detail {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.back-link {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: all var(--transition);
  font-weight: 500;
}

.back-link a:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ==========================================================================
   Profile - Bento Card Layout
   ========================================================================== */
.profile-section {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
}

.profile-section:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.profile-photo {
  flex-shrink: 0;
  width: 180px;
}

.profile-photo img {
  border-radius: var(--radius-sm);
}

.profile-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo {
    width: 140px;
  }
}

/* ==========================================================================
   Video Gallery - Bento Grid
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.video-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
}

.video-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.video-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-item:hover img {
  transform: scale(1.05);
}

.video-item .video-caption {
  padding: 1rem;
}

.video-item .video-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.video-item .video-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Flyer Images - Bento Cards
   ========================================================================== */
.flyer-images {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.flyer-images a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
}

.flyer-images a:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: var(--shadow-hover);
}

.flyer-images img {
  max-width: 300px;
  display: block;
  border-radius: 0;
}

@media (max-width: 600px) {
  .flyer-images {
    flex-direction: column;
  }

  .flyer-images img {
    max-width: 100%;
  }
}

/* ==========================================================================
   single page card wrapper
   ========================================================================== */
.page-content {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   Footer - Dark with gradient accent
   ========================================================================== */
.site-footer {
  background: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  position: relative;
}


/* ==========================================================================
   Utility - Loading animation for Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');
