/* ============================================================
   マルSABA — style.css
   Cloudflare Pages静的サイト用スタイルシート
   ============================================================ */

/* ---------- カスタムプロパティ ---------- */
:root {
  --color-bg: #F0FAF8;
  --color-surface: #FFFFFF;
  --color-text: #2C2A28;
  --color-text-sub: #5A6B68;
  --color-border: #C8ECEA;

  /* アクセントグラデーション */
  --grad-main: linear-gradient(135deg, #FF8FAA 0%, #FFA372 50%, #3EC4A5 100%);
  --grad-light: linear-gradient(135deg, #D5F5EE 0%, #FFE8F0 100%);
  --grad-hero: linear-gradient(145deg, #90DFD0 0%, #5CCAB5 40%, #3EB5A0 80%, #2A9E8C 100%);

  --color-accent: #3EC4A5;
  --color-accent-dark: #2DA08A;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-accent: 0 8px 32px rgba(62, 196, 165, 0.30);

  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Poppins', sans-serif;

  --header-h: 68px;
  --container-max: 1080px;
  --section-gap: 96px;
}

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

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

body {
  font-family: var(--font-jp);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ---------- ユーティリティ ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
}

.section-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-jp);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--grad-main);
  border-radius: 2px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 107, 138, 0.40);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--grad-light);
  transform: translateY(-2px);
}

.btn--map {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  font-size: 13px;
  padding: 10px 20px;
  box-shadow: var(--shadow-sm);
  margin-top: 12px;
}

.btn--map:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---------- アイコン ---------- */
.icon-ig {
  width: 20px;
  height: 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ */
.header__logo {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-maru {
  font-family: var(--font-jp);
  font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 20px;
}

.logo-saba {
  font-family: var(--font-en);
  font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
  letter-spacing: 0.04em;
}

/* ナビ */
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  border-radius: var(--radius-xl);
  color: var(--color-text-sub);
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link:hover {
  color: var(--color-text);
  background: var(--color-border);
}

.nav__link--ig {
  background: var(--grad-main);
  color: #fff;
  margin-left: 8px;
}

.nav__link--ig:hover {
  opacity: 0.9;
  background: var(--grad-main);
  color: #fff;
  transform: translateY(-1px);
}

.nav__link--ig .icon-ig {
  width: 15px;
  height: 15px;
}

.nav__link--active {
  color: var(--color-text);
  background: var(--color-border);
}

/* ハンバーガー（初期非表示） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  position: relative;
  z-index: 110;
}

.hamburger:hover {
  background: var(--color-border);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* オーバーレイ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg,
    rgba(62, 196, 165, 0.55) 0%,
    rgba(44, 176, 148, 0.50) 40%,
    rgba(255, 163, 114, 0.35) 80%,
    rgba(255, 143, 170, 0.30) 100%
  );
}

/* 装飾的な形 */
.hero__bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero__eyebrow {
  font-family: var(--font-en);
  font-size: clamp(11px, 1.5vw, 14px);
  font-weight: 600;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-jp);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero__sub {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  font-weight: 500;
}

/* スクロールインジケーター */
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { top: 6px; opacity: 1; }
  80% { top: 20px; opacity: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--color-bg);
}

.about__text {
  max-width: 680px;
  margin-bottom: 56px;
}

.about__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about__photo-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-md);
}

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

.about__photo-item:hover img {
  transform: scale(1.03);
}

.about__lead {
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--color-text);
}

.about__text p {
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 1.9;
  margin-bottom: 28px;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about__tags li {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  background: var(--grad-light);
  color: var(--color-accent-dark);
}

/* ============================================================
   EVENT
   ============================================================ */
.event {
  background: var(--color-surface);
}

.event__card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 360px 1fr;
  transition: box-shadow 0.3s ease;
}

.event__card:hover {
  box-shadow: var(--shadow-lg);
}

.event__card-image {
  position: relative;
  overflow: hidden;
}

.event__card-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.event__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.95);
  color: var(--color-accent);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.event__card-body {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.event__meta-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.event__meta-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--grad-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.event__meta-icon svg {
  width: 16px;
  height: 16px;
}

.event__meta-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-sub);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 4px;
}

.event__meta-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.event__desc p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* ============================================================
   ACCESS
   ============================================================ */
.access {
  background: var(--color-bg);
}

.access__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.access__venue h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.access__venue address {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.7;
  margin-bottom: 24px;
}

.access__detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access__detail > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: start;
}

.access__detail dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
  padding-top: 1px;
}

.access__detail dt svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.access__detail dd {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.6;
}

.access__map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.access__map-wrap iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* マッププレースホルダー */
.map-placeholder {
  width: 100%;
  background: linear-gradient(135deg, #E8E4DF 0%, #D5D0CA 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-placeholder__inner {
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-text-sub);
}

.map-placeholder__inner svg {
  width: 48px;
  height: 48px;
  color: var(--color-text-sub);
  opacity: 0.5;
  margin-bottom: 4px;
}

.map-placeholder__label {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.map-placeholder__note {
  font-size: 12px;
  color: var(--color-text-sub);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-text);
  color: #fff;
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo .logo-maru,
.footer__logo .logo-saba {
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background: var(--grad-main);
  -webkit-background-clip: text;
}

.footer__tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav a {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__ig-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  white-space: nowrap;
}

.footer__ig-btn svg {
  width: 20px;
  height: 20px;
}

.footer__ig-btn:hover {
  color: #fff;
}

.footer__org {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer__copy {
  background: rgba(0,0,0,0.2);
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット */
@media (max-width: 900px) {
  :root {
    --section-gap: 72px;
  }

  .about__photos {
    gap: 16px;
  }

  .event__card {
    grid-template-columns: 280px 1fr;
  }

  .event__card-body {
    padding: 32px;
  }

  .access__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__org {
    grid-column: 1 / -1;
  }
}

/* スマートフォン */
@media (max-width: 640px) {
  :root {
    --header-h: 60px;
    --section-gap: 56px;
  }

  /* ハンバーガーメニュー表示 */
  .hamburger {
    display: flex;
  }

  /* ナビ：ドロワー形式 */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100svh;
    width: 280px;
    background: var(--color-surface);
    z-index: 99;
    padding: calc(var(--header-h) + 24px) 24px 32px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0,0,0,0.12);
    overflow-y: auto;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  .nav-overlay.active {
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav__link {
    font-size: 15px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: var(--color-text);
    justify-content: flex-start;
  }

  .nav__link--ig {
    margin-left: 0;
    margin-top: 12px;
    justify-content: center;
  }

  /* ヒーロー */
  .hero__title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero__content {
    padding-bottom: 100px;
  }

  /* ABOUTフォト */
  .about__photos {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about__photo-item {
    aspect-ratio: 4/3;
  }

  /* イベントカード */
  .event__card {
    grid-template-columns: 1fr;
  }

  .event__card-img {
    min-height: 220px;
  }

  .event__card-body {
    padding: 28px 24px;
  }

  /* フッター */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__org {
    grid-column: auto;
  }

  .footer__nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* 改行制御 */
  .br-pc {
    display: none;
  }
}

/* ============================================================
   チラシモーダル
   ============================================================ */
.flyer-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.flyer-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flyer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 50, 45, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: backdropIn 0.25s ease;
}

@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.flyer-modal__inner {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 1100px;
  max-height: 90svh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.flyer-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.flyer-modal__close:hover {
  background: rgba(255,255,255,0.3);
}

.flyer-modal__close svg {
  width: 18px;
  height: 18px;
}

.flyer-modal__pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  overflow-y: auto;
}

.flyer-modal__page {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flyer-modal__label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  text-align: center;
  text-transform: uppercase;
}

.flyer-modal__page img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
  display: block;
}

@media (max-width: 640px) {
  .flyer-modal__pages {
    grid-template-columns: 1fr;
  }

  .flyer-modal__close {
    top: -44px;
  }
}

/* ============================================================
   アニメーション
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
