/* ========================================
   ナガフリ 共通スタイル — Redesign 2026
   Concept: 長崎の海 × ランタンゴールド × 温かみ
   ======================================== */

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

:root {
  /* Navy-based palette */
  --teal:        #1b3e67;
  --teal-dark:   #0d2138;
  --teal-mid:    #2d567f;
  --teal-light:  #4a78aa;

  /* Warm accent */
  --gold:        #b8862e;
  --gold-light:  #d6a24e;
  --gold-pale:   #f5ebd8;

  /* Soft neutrals */
  --cream:       #f6f3ee;
  --cream-dark:  #ebe4d8;
  --warm-white:  #fffdfa;
  --white:       #ffffff;

  /* テキスト */
  --text:        #1f2b3a;
  --text-light:  #5b6472;
  --gray:        #8b93a1;
  --gray-light:  #dde3ea;

  --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --font-en: 'Montserrat', 'Arial', sans-serif;

  --section-pad: 96px 24px;
  --radius:      12px;
  --radius-lg:   24px;
  --shadow:      0 10px 30px rgba(13, 33, 56, 0.08);
  --shadow-hover:0 18px 48px rgba(13, 33, 56, 0.14);
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--teal);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 56px;
  line-height: 1.85;
}
.section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  background: rgba(184, 134, 46, 0.1);
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
  border: 1px solid rgba(184, 134, 46, 0.22);
}
.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  letter-spacing: 0.04em;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(184, 134, 46, 0.22);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(184, 134, 46, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.65);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline-teal:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}
/* 旧クラス名との互換性 */
.btn-outline-navy {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline-navy:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 18px 48px;
  font-size: 1.05rem;
}

/* ========================================
   HEADER / NAV
   ======================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 33, 56, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
  border: 2px solid rgba(255,255,255,0.15);
}
.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.header-logo-text .en {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.header-logo-text .ja {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  font-weight: 500;
  transition: color var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--white); }
.header-nav a.active { color: var(--white); }
.header-nav .btn {
  padding: 9px 18px;
  font-size: 0.78rem;
  white-space: nowrap;
}
/* お問い合わせ nav item */
.nav-contact,
.nav-members {
  position: relative;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: var(--transition);
}
.menu-toggle:hover {
  background: rgba(255,255,255,0.1);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav {
  display: none;
}

/* ========================================
   CONCEPTS (3カラム)
   ======================================== */
.concepts {
  padding: var(--section-pad);
  background: var(--cream);
  position: relative;
}
.concepts-grid {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.concept-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.concept-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--teal);
}
.concept-card:nth-child(2)::before { background: var(--gold); }
.concept-card:nth-child(3)::before { background: var(--teal-mid); }
.concept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.concept-num {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.concept-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.concept-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========================================
   MEMBER TYPES（参加者の属性）
   ======================================== */
.member-types {
  padding: var(--section-pad);
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}
.member-types-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.member-type-card {
  background: white;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(26,61,61,0.08);
  box-shadow: 0 4px 20px rgba(26,61,61,0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.member-type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26,61,61,0.13);
}
.member-type-card-header {
  padding: 28px 24px 22px;
  position: relative;
  overflow: hidden;
}
.member-type-card:nth-child(1) .member-type-card-header { background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 100%); }
.member-type-card:nth-child(2) .member-type-card-header { background: linear-gradient(135deg, #7a5420 0%, var(--gold) 100%); }
.member-type-card:nth-child(3) .member-type-card-header { background: linear-gradient(135deg, #17304e 0%, #325d8e 100%); }
.member-type-card:nth-child(4) .member-type-card-header { background: linear-gradient(135deg, #202f50 0%, #445f92 100%); }
.member-type-card-header::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  pointer-events: none;
}
.member-type-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.member-type-label {
  font-size: 0.94rem;
  font-weight: 900;
  color: white;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.member-type-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.member-type-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.8;
  flex: 1;
}
.member-type-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.member-type-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--cream-dark);
  color: var(--teal);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.member-type-card:nth-child(2) .member-type-tag { color: var(--gold); background: rgba(192,122,16,0.08); }
.member-type-card:nth-child(3) .member-type-tag { color: #325d8e; background: rgba(50,93,142,0.08); }
.member-type-card:nth-child(4) .member-type-tag { color: #445f92; background: rgba(68,95,146,0.08); }
@media (max-width: 768px) {
  .member-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   STATS（数字で見るナガフリ）
   ======================================== */
.stats {
  padding: var(--section-pad);
  background: var(--teal);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(58, 122, 114, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(192, 122, 16, 0.14) 0%, transparent 50%);
  pointer-events: none;
}
/* 下部の波形 */
.stats::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 64px;
  background: var(--cream-dark);
  clip-path: ellipse(56% 100% at 50% 100%);
}
.stats .text-center {
  position: relative; z-index: 1;
  margin-bottom: 48px;
}
.stats .section-label {
  background: rgba(192,122,16,0.2);
  border-color: rgba(192,122,16,0.25);
}
.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  position: relative; z-index: 1;
}
.stat-item {
  text-align: center;
  padding: 44px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 4px 24px rgba(192,122,16,0.3);
}
.stat-num sup { font-size: 0.5em; }
.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-sub {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

/* ========================================
   EVENT BANNER（次回交流会）
   ======================================== */
.event-banner {
  padding: 80px 24px;
  background: var(--cream-dark);
}
.event-banner-inner {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: 0 16px 56px rgba(10, 30, 30, 0.25);
  position: relative;
  overflow: hidden;
}
.event-banner-inner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(192,122,16,0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.event-banner-inner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.event-banner-body { position: relative; z-index: 1; }
.event-banner-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 99px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.event-banner-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.event-banner-date {
  color: rgba(255,255,255,0.75);
  font-size: 0.93rem;
  line-height: 1.75;
}
.event-banner-date strong { color: var(--gold-light); }
.event-banner-cta { position: relative; z-index: 1; flex-shrink: 0; }

/* ========================================
   TARGET AUDIENCE（こんな人に来てほしい）
   ======================================== */
.target {
  padding: var(--section-pad);
  background: var(--white);
}
.target-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.target-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: var(--transition);
  border: 1px solid transparent;
}
.target-item:hover {
  background: var(--white);
  border-color: var(--gray-light);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.target-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.target-text {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.65;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.65);
  padding: 60px 28px 36px;
}
.footer-inner { max-width: 1020px; margin: 0 auto; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo img {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
}
.footer-logo-text .ja { font-size: 1rem; font-weight: 700; color: var(--white); }
.footer-logo-text .en {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--gold-light);
}
.footer-sns { display: flex; gap: 14px; }
.footer-sns a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.footer-sns a img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}
.footer-sns a.line-link {
  width: 48px;
  height: 48px;
  background: transparent;
  color: var(--white);
  border-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
  font-size: 0;
}
.footer-sns a.line-link svg {
  display: none;
}
.footer-sns a.line-link img {
  display: none;
}
.footer-sns a.line-link::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 48%;
  width: 22px;
  height: 22px;
  background: url('./assets/LINE.png') center / contain no-repeat;
  transform: translate(-50%, -50%);
}
.footer-sns a.line-link::before {
  width: 38px;
  height: 38px;
}
.footer-sns a.line-link::after {
  content: none;
}
.footer-sns a.line-link:hover {
  background: transparent;
  border-color: transparent;
  transform: translateY(-1px);
}
.footer-sns a:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  text-align: center;
}
.footer-copy { font-size: 0.76rem; }
.footer-nav,
.footer-links {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.footer-nav a:not([href="/privacy-policy/"]) {
  display: none !important;
}
.footer-nav a[href="/privacy-policy/"] {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.62);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

/* ========================================
   EVENT PAGE — Hero
   ======================================== */
.event-hero {
  min-height: 72vh;
  background:
    radial-gradient(circle at 18% 24%, rgba(184,134,46,0.14) 0%, transparent 30%),
    linear-gradient(145deg, var(--teal-dark) 0%, var(--teal) 58%, var(--teal-mid) 100%);
  display: flex;
  align-items: center;
  padding: 130px 24px 100px;
  position: relative;
  overflow: hidden;
}
.event-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 70px;
  background: var(--cream);
  clip-path: ellipse(56% 100% at 50% 100%);
}
.event-hero-inner {
  max-width: 840px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.event-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 99px;
  margin-bottom: 22px;
  letter-spacing: 0.04em;
}
.event-hero-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.event-hero-title span { color: var(--gold-light); }
.event-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.event-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
.event-meta-icon { font-size: 1rem; }
.event-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ========================================
   EVENT — Parts Overview
   ======================================== */
.event-overview {
  padding: var(--section-pad);
  background: var(--cream);
}
.parts-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.part-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.part-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.part-header {
  background: var(--teal);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.part-header.orange { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }
.part-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--white);
  flex-shrink: 0;
}
.part-header-text .label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.1em;
  font-family: var(--font-en);
}
.part-header-text .name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}
.part-body { padding: 26px 28px; }
.part-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.88rem;
}
.part-info-row:last-child { border-bottom: none; }
.part-info-label {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--teal);
  min-width: 60px;
}
.part-info-value { color: var(--text); line-height: 1.7; }
.part-free-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  margin-left: 8px;
}
.part-price-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ========================================
   EVENT — Gallery（過去の様子）
   ======================================== */
.event-gallery {
  padding: var(--section-pad);
  background: var(--teal-dark);
  position: relative;
  overflow: hidden;
}
/* 上部の波形 */
.event-gallery::before {
  content: '';
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 70px;
  background: var(--cream-dark);
  clip-path: ellipse(56% 100% at 50% 0%);
}
.event-gallery .section-title { color: var(--white); }
.event-gallery .section-subtitle { color: rgba(255,255,255,0.5); }
.gallery-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.05);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ========================================
   EVENT — Access（会場）
   ======================================== */
.event-access {
  padding: var(--section-pad);
  background: var(--white);
}
.access-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.access-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--gray-light);
}
.access-part-tag {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.access-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 10px;
}
.access-card p, .access-card address {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
  font-style: normal;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 18px;
}
.map-embed iframe {
  width: 100%;
  height: 200px;
  border: none;
  display: block;
}

/* ========================================
   EVENT — CTA Bottom
   ======================================== */
.event-cta-bottom {
  padding: 96px 24px;
  background: linear-gradient(160deg, var(--teal-dark) 0%, var(--teal) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.event-cta-bottom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(192,122,16,0.15), transparent 60%);
  pointer-events: none;
}
.event-cta-bottom .section-title { color: var(--white); position: relative; z-index: 1; }
.event-cta-bottom .section-subtitle { color: rgba(255,255,255,0.55); position: relative; z-index: 1; }
.event-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  :root { --section-pad: 64px 20px; }

  .site-header {
    background: rgba(13, 33, 56, 0.98);
  }
  .header-inner {
    height: 62px;
    padding: 0 16px;
    gap: 12px;
  }
  .header-nav { display: none; }
  .header-logo {
    gap: 10px;
    min-width: 0;
    flex: 1;
  }
  .header-logo img {
    width: 38px;
    height: 38px;
  }
  .header-logo-text {
    min-width: 0;
  }
  .header-logo-text .en {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }
  .header-logo-text .ja {
    font-size: 0.78rem;
    line-height: 1.28;
  }
  .menu-toggle { display: inline-flex; }
  .menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    gap: 4px;
    flex-shrink: 0;
  }
  .menu-toggle span {
    width: 18px;
  }
  .mobile-nav {
    position: fixed;
    inset: 62px 12px auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(13, 33, 56, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 18px 40px rgba(13, 33, 56, 0.24);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: var(--transition);
  }
  .mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mobile-nav a {
    color: rgba(255,255,255,0.88);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    line-height: 1.5;
  }
  .mobile-nav a.btn {
    justify-content: center;
    margin-top: 4px;
  }
  .mobile-nav .nav-contact,
  .mobile-nav .nav-members {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  body.menu-open {
    overflow: hidden;
  }

  /* モバイルでは parallax 無効化 */
  .event-hero { background-attachment: scroll; }

  /* ヒーロー: 1カラムに変更 */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 32px;
  }
  .concepts-grid,
  .stats-grid { grid-template-columns: 1fr; }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .stat-item:last-child { border-bottom: none; }

  .event-banner-inner {
    flex-direction: column;
    padding: 36px 28px;
    text-align: center;
  }

  .target-list { grid-template-columns: 1fr; }

  .parts-grid,
  .access-grid,
  .gallery-grid { grid-template-columns: 1fr; }

  .event-hero {
    min-height: auto;
    padding: 102px 20px 82px;
  }
  .event-hero-badge {
    font-size: 0.72rem;
    padding: 7px 16px;
    margin-bottom: 18px;
  }
  .event-hero-title {
    font-size: clamp(1.9rem, 8.8vw, 2.7rem);
    margin-bottom: 18px;
  }
  .event-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .event-meta-item {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.86rem;
    padding: 10px 14px;
  }
  .event-hero-cta {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .event-hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    padding: 40px 20px 28px;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding-bottom: 28px;
  }
  .footer-logo {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-logo img {
    width: 54px;
    height: 54px;
  }
  .footer-logo-text .ja {
    font-size: 0.92rem;
    line-height: 1.45;
  }
  .footer-logo-text .en {
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    margin-top: 2px;
  }
  .footer-sns {
    justify-content: center;
    gap: 16px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 22px;
  }
  .footer-copy {
    font-size: 0.84rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.72);
    max-width: 28ch;
    margin: 0 auto;
  }
  .footer-nav a[href="/privacy-policy/"] {
    font-size: 0.84rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 36px 16px 24px;
  }
  .footer-top {
    gap: 18px;
  }
  .footer-logo-text .ja {
    font-size: 0.88rem;
  }
  .footer-logo-text .en {
    font-size: 0.6rem;
  }
  .footer-sns a {
    width: 40px;
    height: 40px;
  }
  .footer-sns a.line-link {
    width: 46px;
    height: 46px;
  }
  .footer-copy {
    font-size: 0.8rem;
  }
  .footer-nav a[href="/privacy-policy/"] {
    font-size: 0.8rem;
  }
}

/* ========================================
   N-FREE CITY GRID Brand Refresh
   全ページをトップページの新ブランドトーンへ寄せる共通上書き
   ======================================== */

:root {
  --nf-ink: #0E1420;
  --nf-teal: #00B8C6;
  --nf-lime: #C7F000;
  --nf-silver: #D5D9DF;
  --nf-paper: #F7F8FA;
  --nf-white: #FFFFFF;
  --nf-muted: #5D6675;
  --nf-line: rgba(14, 20, 32, 0.12);
  --nf-soft-line: rgba(14, 20, 32, 0.08);
  --nf-max: 1180px;

  --teal: var(--nf-ink);
  --teal-dark: var(--nf-ink);
  --teal-mid: #1F2A3A;
  --teal-light: var(--nf-teal);
  --gold: var(--nf-teal);
  --gold-light: var(--nf-teal);
  --gold-pale: rgba(0, 184, 198, 0.08);
  --cream: var(--nf-paper);
  --cream-dark: #EEF1F4;
  --warm-white: var(--nf-white);
  --text: var(--nf-ink);
  --text-light: var(--nf-muted);
  --gray: #7C8491;
  --gray-light: var(--nf-silver);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 0 rgba(14, 20, 32, 0.06);
  --shadow-hover: 0 16px 40px rgba(14, 20, 32, 0.10);
}

body {
  background: var(--nf-paper);
  color: var(--nf-ink);
  font-family: 'Noto Sans JP', 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 20, 32, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(14, 20, 32, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 72%);
}

.section-label,
.report-hero-eyebrow,
.feature-kicker,
.partner-hero-card-label,
.article-hero .label,
.article-kicker,
.event-hero-badge {
  font-family: var(--font-en);
  letter-spacing: 0.22em;
  color: var(--nf-teal) !important;
  background: rgba(0, 184, 198, 0.08) !important;
  border: 1px solid rgba(0, 184, 198, 0.22) !important;
  border-radius: 999px !important;
  text-transform: uppercase;
}

.section-label,
.report-hero-eyebrow,
.feature-kicker,
.partner-hero-card-label,
.article-hero .label,
.article-kicker,
.event-hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: max-content !important;
  max-width: 100% !important;
  padding: 6px 14px !important;
}

.report-hero-eyebrow {
  margin: 0 auto 16px !important;
}

.section-title,
.feature-title,
.report-hero h1,
.article-hero h1,
.article-title,
.event-hero-title,
.partner-hero-copy .section-title {
  color: var(--nf-ink) !important;
  letter-spacing: -0.035em;
}

.section-subtitle,
.report-hero p,
.article-hero .subtitle,
.article-subtitle,
.article-meta,
.article-meta span,
.guide-hero-lead,
.event-hero-lead,
.event-hero-note,
.partner-hero-copy .section-subtitle {
  color: var(--nf-muted) !important;
}

.event-hero-kicker {
  color: var(--nf-teal) !important;
  font-family: var(--font-en);
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em !important;
  margin: 0 0 10px !important;
}

.event-hero-lead {
  max-width: 640px;
  margin: 12px auto 24px !important;
  font-size: 0.95rem !important;
  line-height: 1.9 !important;
}

.event-hero-note {
  margin-top: 18px !important;
  font-size: 0.82rem !important;
}

.site-header:not(.home-header-light) {
  position: fixed !important;
  top: 14px !important;
  left: 50% !important;
  right: auto !important;
  width: min(var(--nf-max), calc(100% - 32px)) !important;
  transform: translateX(-50%) !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid var(--nf-soft-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 50px rgba(14, 20, 32, 0.08) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.site-header:not(.home-header-light) .header-inner {
  max-width: none !important;
  height: 68px !important;
  padding: 0 18px 0 22px !important;
}

.header-logo.city-brand,
.site-header:not(.home-header-light) .header-logo {
  gap: 0 !important;
  min-width: 0;
}

.header-logo.city-brand img,
.site-header:not(.home-header-light) .header-logo img.city-brand-logo,
.site-header:not(.home-header-light) .header-logo img {
  width: 190px !important;
  height: auto !important;
  max-height: 44px !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
}

.site-header:not(.home-header-light) .header-logo-text {
  display: none !important;
}

.site-header:not(.home-header-light) .header-nav {
  gap: 22px !important;
}

.site-header:not(.home-header-light) .header-nav a:not(.btn) {
  color: rgba(14, 20, 32, 0.72) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
}

.site-header:not(.home-header-light) .header-nav a:hover,
.site-header:not(.home-header-light) .header-nav a.active {
  color: var(--nf-ink) !important;
}

.btn,
button,
.filter-btn,
.tag-filter {
  min-height: 44px;
}

.btn-primary,
.btn-header,
.site-header:not(.home-header-light) .header-nav .btn-primary {
  background: var(--nf-ink) !important;
  color: var(--nf-white) !important;
  border: 1px solid var(--nf-ink) !important;
  box-shadow: none !important;
}

.btn-primary:hover,
.btn-header:hover {
  background: var(--nf-teal) !important;
  border-color: var(--nf-teal) !important;
  transform: translateY(-1px);
}

.btn-outline,
.btn-outline-teal,
.btn-outline-navy {
  color: var(--nf-ink) !important;
  border: 1px solid var(--nf-line) !important;
  background: var(--nf-white) !important;
  box-shadow: none !important;
}

.btn-outline:hover,
.btn-outline-teal:hover,
.btn-outline-navy:hover {
  color: var(--nf-white) !important;
  background: var(--nf-ink) !important;
  border-color: var(--nf-ink) !important;
}

.about-hero,
.events-hero,
.content-hero,
.report-hero,
.contact-hero,
.privacy-hero,
.guide-hero,
.article-hero,
.partner-hero,
.event-hero {
  padding-top: 142px !important;
  background:
    radial-gradient(circle at 88% 24%, rgba(0, 184, 198, 0.14), transparent 30%),
    radial-gradient(circle at 12% 22%, rgba(199, 240, 0, 0.12), transparent 24%),
    linear-gradient(135deg, var(--nf-white) 0%, var(--nf-paper) 100%) !important;
  color: var(--nf-ink) !important;
  border-bottom: 1px solid var(--nf-line);
  overflow: hidden;
}

.about-hero::before,
.events-hero::before,
.content-hero::before,
.report-hero::before,
.contact-hero::before,
.privacy-hero::before,
.guide-hero::before,
.article-hero::before,
.partner-hero::before,
.event-hero::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: url('/assets/city-grid-pattern.svg') right 20% top 42% / min(640px, 64vw) auto no-repeat !important;
  opacity: 0.12 !important;
  pointer-events: none !important;
}

.about-hero::after,
.events-hero::after,
.content-hero::after,
.report-hero::after,
.contact-hero::after,
.privacy-hero::after,
.guide-hero::after,
.partner-hero::after {
  display: none !important;
}

.event-hero-meta,
.guide-hero-points {
  color: var(--nf-ink) !important;
}

.event-meta-item,
.guide-hero-points span,
.first-timer-entry-points span,
.tag-row span,
.filter-btn,
.tag-filter {
  background: var(--nf-white) !important;
  color: var(--nf-ink) !important;
  border: 1px solid var(--nf-line) !important;
  box-shadow: none !important;
}

.filter-btn.active,
.tag-filter.active,
.about-tab.active {
  background: var(--nf-ink) !important;
  color: var(--nf-white) !important;
  border-color: var(--nf-ink) !important;
}

.about-tabs-wrap,
.filters-panel,
.first-timer-entry-card,
.partner-hero-card,
.event-list-card,
.report-card,
.content-card,
.article-card,
.guide-card,
.contact-card,
.partner-card,
.support-card,
.member-card,
.feature-panel,
.feature-stats,
.process-panel,
.voices-panel,
.join-panel,
.concept-card-about,
.activity-card-about,
.faq-item,
.info-card,
.access-card,
.entry-card,
.event-card,
.activity-card,
.target-card {
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid var(--nf-line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.event-list-card:hover,
.report-card:hover,
.content-card:hover,
.article-card:hover,
.guide-card:hover,
.contact-card:hover,
.partner-card:hover,
.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(14, 20, 32, 0.08) !important;
}

.site-footer {
  background: var(--nf-white) !important;
  color: var(--nf-ink) !important;
  border-top: 1px solid var(--nf-line) !important;
}

.site-footer .footer-inner {
  max-width: var(--nf-max) !important;
}

.site-footer .footer-logo {
  gap: 0 !important;
}

.site-footer .footer-logo img,
.site-footer .footer-logo img.footer-nfree-logo {
  width: 190px !important;
  height: auto !important;
  max-height: 48px !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
}

.site-footer .footer-logo-text {
  display: none !important;
}

.site-footer .footer-sns {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.site-footer .footer-sns a {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  border: 1px solid var(--nf-line) !important;
  background: var(--nf-white) !important;
  color: var(--nf-ink) !important;
  overflow: hidden !important;
}

.site-footer .footer-sns a img {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-footer .footer-sns a[aria-label="Threads"] img {
  filter: invert(1);
}

.site-footer .footer-sns a.line-link {
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  overflow: visible !important;
}

.site-footer .footer-sns a.line-link::before,
.site-footer .footer-sns a.line-link::after {
  display: none !important;
  content: none !important;
}

.site-footer .footer-sns a.line-link img {
  display: block !important;
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
}

.site-footer .footer-copy,
.site-footer .footer-nav a {
  color: rgba(14, 20, 32, 0.72) !important;
}

.site-footer .footer-nav a:hover {
  color: var(--nf-teal) !important;
}

/* Members page: old coming-soon screen tone alignment */
.members-main {
  min-height: 76vh !important;
  padding: 148px 24px 88px !important;
  background:
    radial-gradient(circle at 84% 22%, rgba(0, 184, 198, 0.14), transparent 30%),
    radial-gradient(circle at 14% 22%, rgba(199, 240, 0, 0.12), transparent 24%),
    linear-gradient(135deg, var(--nf-white) 0%, var(--nf-paper) 100%) !important;
  color: var(--nf-ink) !important;
}

.members-main::before {
  background: url('/assets/city-grid-pattern.svg') right 14% center / min(620px, 60vw) auto no-repeat !important;
  opacity: 0.10 !important;
}

.members-box {
  max-width: 760px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid var(--nf-line) !important;
  border-radius: 18px !important;
  padding: 42px !important;
}

.coming-badge {
  color: var(--nf-teal) !important;
  background: rgba(0, 184, 198, 0.08) !important;
  border-color: rgba(0, 184, 198, 0.22) !important;
}

.coming-badge::before {
  background: var(--nf-lime) !important;
}

.members-title,
.members-title span,
.members-feature-title {
  color: var(--nf-ink) !important;
}

.members-desc,
.members-feature-desc,
.members-cta-note {
  color: var(--nf-muted) !important;
}

.members-feature {
  background: var(--nf-white) !important;
  border: 1px solid var(--nf-line) !important;
  box-shadow: none !important;
}

.members-feature-icon {
  color: var(--nf-teal) !important;
}

/* Partner page: text that remained white after pale hero conversion */
.partner-badge,
.partner-mini-k,
.partner-mini-v,
.partner-hero-card h2,
.partner-hero-card p {
  color: var(--nf-ink) !important;
}

.partner-badge {
  background: var(--nf-white) !important;
  border-color: var(--nf-line) !important;
}

.partner-mini-k {
  color: var(--nf-teal) !important;
}

.partner-mini-item {
  border-top-color: var(--nf-line) !important;
}

@media (max-width: 1080px) {
  .site-header:not(.home-header-light) .header-nav {
    display: none !important;
  }

  .site-header:not(.home-header-light) .menu-toggle {
    display: inline-flex !important;
    border-color: var(--nf-line) !important;
    background: var(--nf-white) !important;
  }

  .site-header:not(.home-header-light) .menu-toggle span {
    background: var(--nf-ink) !important;
  }

  .mobile-nav {
    top: 92px !important;
    left: 16px !important;
    right: 16px !important;
    background: rgba(255,255,255,0.96) !important;
    border: 1px solid var(--nf-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 22px 54px rgba(14, 20, 32, 0.12) !important;
  }

  .mobile-nav a {
    color: var(--nf-ink) !important;
  }
}

@media (max-width: 640px) {
  .site-header:not(.home-header-light) {
    top: 10px !important;
    width: calc(100% - 20px) !important;
    border-radius: 16px !important;
  }

  .site-header:not(.home-header-light) .header-inner {
    height: 58px !important;
    padding: 0 10px 0 14px !important;
  }

  .site-header:not(.home-header-light) .header-logo img.city-brand-logo,
  .site-header:not(.home-header-light) .header-logo img {
    width: 160px !important;
    max-height: 38px !important;
  }

  .about-hero,
  .events-hero,
  .content-hero,
  .report-hero,
  .contact-hero,
  .privacy-hero,
  .guide-hero,
  .article-hero,
  .partner-hero,
  .event-hero {
    padding: 116px 20px 58px !important;
  }

  .about-hero::before,
  .events-hero::before,
  .content-hero::before,
  .report-hero::before,
  .contact-hero::before,
  .privacy-hero::before,
  .guide-hero::before,
  .article-hero::before,
  .partner-hero::before,
  .event-hero::before {
    background-size: 520px auto !important;
    background-position: right -210px top 42% !important;
    opacity: 0.08 !important;
  }

  .site-footer .footer-top,
  .site-footer .footer-bottom {
    align-items: center !important;
    text-align: center !important;
  }

  .site-footer .footer-logo img,
  .site-footer .footer-logo img.footer-nfree-logo {
    width: 170px !important;
  }
}
