/* ===========================================
   カニ坂ロックフェスティバル 2026 — style.css
   Mobile-first | White × Green × Blue × Red
   =========================================== */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }

/* ── CSS VARIABLES ── */
:root {
  --white:       #ffffff;
  --bg:          #f8fbf5;
  --green:       #3a7d1e;
  --green-mid:   #5a9e32;
  --green-light: #e8f5dd;
  --green-dark:  #266010;
  --blue:        #1a5a96;
  --blue-light:  #e8f1fb;
  --river:       #a8d8ea;
  --red:         #c0392b;
  --text:        #1c2b1a;
  --text-sub:    #5a6e52;
  --border:      #d0e8bc;
  --shadow:      rgba(60,100,30,.12);
  --font-display:'Bebas Neue','Impact',sans-serif;
  --font-sans:   'Noto Sans JP',sans-serif;
  --font-serif:  'Noto Serif JP',serif;
  --radius:      20px;
  --pad:         clamp(1rem, 4vw, 2rem);
}

/* ── CONTAINER ── */
.container {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: var(--pad);
}


/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.site-header.header--hidden {
  transform: translateY(-100%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 56px;
}

/* Nav – mobile: hidden by default */
.site-nav { display: none; }
.site-nav.is-open {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.site-nav ul li a {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: .08em;
}
.site-nav ul li a:hover { color: var(--red); }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--green);
  border-radius: 2px;
  transition: .3s;
}

/* Desktop nav */
@media (min-width: 640px) {
  .site-nav {
    display: flex !important;
    position: static;
    background: none;
    backdrop-filter: none;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 2rem;
    text-align: left;
  }
  .site-nav ul li a { font-size: .95rem; }
  .nav-toggle { display: none; }
}


/* =============================================
   HERO — SLIDER
   ============================================= */
.hero__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 520px;
  overflow: hidden;
}
/* Slides container */
.hero__slides {
  position: absolute;
  inset: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero__slide--active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.06) 0%,
    rgba(0,0,0,.32) 100%
  );
  z-index: 1;
}

/* ── Logo wrap: ポヨンポヨンアニメーション ── */
.hero__logo-wrap {
  position: absolute;
  top: 36%; left: 50%;
  width: clamp(155px, 36vw, 280px);
  height: clamp(155px, 36vw, 280px);
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: logoBounce 9s linear infinite;
}

/* ── Logo img: プルプル微振動 ── */
.hero__logo {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.22));
  animation: logoTremor .25s linear infinite;
}

/* ポヨンポヨン：スクワッシュ＆ストレッチ付きバウンス */
@keyframes logoBounce {
  /* 静止 */
  0%   { transform: translate(-50%,-50%) scaleX(1.00) scaleY(1.00); }
  /* 予備動作（沈み込み） */
  6%   { transform: translate(-50%,-44%) scaleX(1.08) scaleY(0.92); }
  /* 跳び上がり */
  18%  { transform: translate(-50%,-68%) scaleX(0.93) scaleY(1.08); }
  /* 頂点（横に広がる） */
  26%  { transform: translate(-50%,-74%) scaleX(1.10) scaleY(0.91); }
  /* 落下 */
  38%  { transform: translate(-50%,-46%) scaleX(1.05) scaleY(0.95); }
  /* 着地つぶれ */
  44%  { transform: translate(-50%,-50%) scaleX(1.15) scaleY(0.86); }
  /* 小バウンス2回目 */
  52%  { transform: translate(-50%,-62%) scaleX(0.96) scaleY(1.06); }
  58%  { transform: translate(-50%,-50%) scaleX(1.07) scaleY(0.94); }
  /* 小バウンス3回目 */
  64%  { transform: translate(-50%,-54%) scaleX(0.99) scaleY(1.02); }
  70%  { transform: translate(-50%,-50%) scaleX(1.03) scaleY(0.98); }
  /* 収束・静止 */
  78%  { transform: translate(-50%,-50%) scaleX(1.00) scaleY(1.00); }
  100% { transform: translate(-50%,-50%) scaleX(1.00) scaleY(1.00); }
}

/* プルプル微振動 */
@keyframes logoTremor {
  0%   { transform: rotate(-0.6deg) translate(-0.5px, -0.2px); }
  25%  { transform: rotate( 0.6deg) translate( 0.5px,  0.2px); }
  50%  { transform: rotate(-0.4deg) translate( 0.3px, -0.1px); }
  75%  { transform: rotate( 0.4deg) translate(-0.3px,  0.1px); }
  100% { transform: rotate(-0.6deg) translate(-0.5px, -0.2px); }
}

/* Info box */
.hero__info {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 420px);
  background: rgba(255,255,255,.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 3px solid var(--red);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1rem 1.4rem 1.2rem;
  text-align: center;
  z-index: 3;
}
.hero__info-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(.9rem, 2.8vw, 1.1rem);
  line-height: 1.5;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
  margin-bottom: .7rem;
}
.hero__info-title em {
  font-style: normal;
  font-size: 1.25em;
  color: #ffe87a;
}
.hero__info-dates {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.hero__info-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .6rem;
}
.date-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .78rem;
  color: rgba(255,255,255,.88);
  letter-spacing: .06em;
  background: rgba(0,0,0,.24);
  padding: .1rem .5rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.hero__info-row--sub .date-value {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
}
.hero__info-row--main .date-value {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.45rem;
  color: #ffe87a;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
/* 曜日を小さく */
.dow {
  font-size: .72em;
  opacity: .90;
}

/* Hero bottom wave (→ river color) */
.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 4;
}
.hero__wave svg { width: 100%; height: 100%; }


/* =============================================
   RIVER SECTION（静止画）
   ============================================= */
.river-section {
  background: var(--river);
  position: relative;
  line-height: 0;
  padding-top: 1.8rem; /* BOXと川の間のスペース */
}
.river-svg {
  display: block;
  width: 100%;
  height: clamp(80px, 12vw, 120px);
}
.river-bottom-wave {
  display: block;
  width: 100%;
  height: clamp(40px, 7vw, 60px);
  margin-top: -1px;
}


/* =============================================
   SLOGAN
   ============================================= */
.slogan {
  background: var(--green-light);
  padding: 4rem 0 5rem;
  position: relative;
}
.slogan::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 70px;
  clip-path: ellipse(55% 100% at 50% 100%);
  background: var(--bg);
  pointer-events: none;
}
.slogan__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.slogan__poem {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  line-height: 1.85;
  color: var(--green);
  text-align: center;
}
.slogan__attribution {
  display: flex;
  justify-content: center;
  margin-top: .8rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-sub);
  letter-spacing: .08em;
}
.slogan__photo-wrap {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}
.slogan__photo-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px var(--shadow);
}
.slogan__body {
  font-family: var(--font-serif);
  font-size: clamp(.9rem, 2.2vw, 1rem);
  line-height: 2;
  color: var(--text);
}
@media (min-width: 640px) {
  .slogan__inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "poem  photo"
      "body  photo";
    align-items: start;
    column-gap: 3rem;
    row-gap: 1.5rem;
  }
  .slogan__poem-wrap { grid-area: poem; }
  .slogan__photo-wrap {
    grid-area: photo;
    max-width: none;
    margin-inline: 0;
  }
  .slogan__body       { grid-area: body; }
  .slogan__poem       { text-align: left; }
  .slogan__attribution { justify-content: flex-start; }
}


/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: 5rem 0 4rem;
  background: var(--bg);
}
.about__header { margin-bottom: 3rem; text-align: center; }
.about__heading-en {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  color: var(--border);
  display: block;
  line-height: 1;
  letter-spacing: .06em;
}
.about__heading {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--green);
  margin-top: -.5em;
  letter-spacing: .04em;
}
.about__lead {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(.9rem, 2.2vw, 1rem);
  line-height: 1.95;
  color: var(--text);
  max-width: 700px;
  margin-inline: auto;
}

/* Concept grid */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .concept-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.concept-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  background: var(--white);
}
.concept-item__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.concept-item__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.concept-item:hover .concept-item__img img {
  transform: scale(1.06);
}
.concept-item__body {
  padding: 1.4rem 1.4rem 1.6rem;
  text-align: center;
}
.concept-item__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto .5rem;
  color: var(--green);
}
.concept-item__icon svg { width: 100%; height: 100%; }
.concept-item__kw {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: .5rem;
}
.concept-item__text {
  font-family: var(--font-serif);
  font-size: .9rem;
  line-height: 1.85;
  color: var(--text-sub);
}


/* =============================================
   ACCESS
   ============================================= */
.access {
  padding: 5rem 0 4rem;
  background: var(--blue-light);
  position: relative;
}
.access::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 70px;
  clip-path: ellipse(55% 100% at 50% 0%);
  background: var(--bg);
  pointer-events: none;
}
/* タイトルを中央揃え */
.access__title-wrap {
  text-align: center;
  margin-bottom: 2rem;
}
.access__heading-en {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  color: rgba(26,90,150,.14);
  line-height: 1;
  letter-spacing: .06em;
}
.access__heading {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--blue);
  margin-top: -.5em;
  letter-spacing: .04em;
}
.access__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,90,150,.15);
  margin-bottom: 2.5rem;
}
.access__map iframe {
  display: block;
  width: 100%;
  height: clamp(240px, 45vw, 420px);
  border: none;
}
.access__details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .access__details { grid-template-columns: repeat(3, 1fr); }
}
.access__block h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue);
  border-left: 3px solid var(--blue);
  padding-left: .6rem;
  margin-bottom: .8rem;
  letter-spacing: .06em;
}
.access__block p,
.access__block ul li {
  font-family: var(--font-serif);
  font-size: .9rem;
  line-height: 1.9;
  color: var(--text);
}
.access__block ul li {
  padding-left: .8rem;
  position: relative;
}
.access__block ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}


/* =============================================
   FOOTER-TOP：植生＋カニ（フッターから上に飛び出す）
   ============================================= */
.footer-top {
  background: var(--green);
  position: relative;
  height: 55px;       /* 小さなベース高さ */
  overflow: visible;  /* 植生が上にはみ出す */
  z-index: 1;
}

/* アクセスセクションからフッターへの波 */
.footer-top::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 60px;
  clip-path: ellipse(55% 100% at 50% 0%);
  background: var(--blue-light);
  pointer-events: none;
  z-index: 2;
}

/* 植生 SVG（高さ200px：コンテナ55pxより145px上へはみ出す） */
.footer-plants {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 200px;
  z-index: 0;
}

/* カニ（静止・固定位置） */
.crab {
  position: absolute;
  bottom: 8px;
  z-index: 3;
}
.crab--1 { left: 10%;  width: 52px; }
.crab--2 { left: 48%;  width: 40px; }
.crab--3 { left: 76%;  width: 46px; }


/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--green);
  padding: 0.8rem 0 2rem;
  position: relative;
}
.footer-copy {
  text-align: center;
  font-family: var(--font-sans);
  font-size: .9rem;
  color: rgba(255,255,255,.92);
}


/* =============================================
   FACEBOOK FLOAT
   ============================================= */
.fb-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.8rem;
  z-index: 90;
}
.fb-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(26,90,150,.40);
  transition: transform .25s, box-shadow .25s;
}
.fb-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(26,90,150,.55);
}


/* =============================================
   DESKTOP OVERRIDES (≥ 900px)
   ============================================= */
@media (min-width: 900px) {
  /* Hero: 16:9 */
  .hero__img-wrap {
    aspect-ratio: 16/9;
    min-height: 500px;
  }

  /* Info box: 底辺・中央 */
  .hero__info {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 580px;
    border-radius: 0;
  }

  /* タイトル拡大 */
  .hero__info-title {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  }

  /* 日程は縦並びを維持 */
  .hero__info-dates {
    flex-direction: column;
  }
  .hero__info-row {
    justify-content: center;
  }

  /* 日程文字を大きく */
  .hero__info-row--sub .date-value  { font-size: 1.15rem; }
  .hero__info-row--main .date-value { font-size: 1.75rem; }
}


/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__logo-wrap,
  .hero__logo,
  .hero__slide { animation: none !important; transition: none !important; }
}
