/* ============================
   志応援プロジェクト - スタイルシート
   ============================ */

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

:root {
  --color-bg: #fefaf6;
  --color-bg-white: #ffffff;
  --color-bg-warm: #fcefd6;
  --color-bg-cream: #fdf5eb;
  --color-text: #2e2a2b;
  --color-text-light: #4e5152;
  --color-accent: #bb8a3c;
  --color-accent-orange: #ff9b32;
  --color-accent-warm: #ffe7c2;
  --color-accent-red: #ff5757;
  --color-border: #d4c5a9;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --max-width: 1100px;
  --transition: 0.3s ease;
  --radius-card: 12px;
  --radius-sm:    6px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.05);
  --max-w: 1100px;
}

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

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

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 10px;
}

/* ============================
   汎用クラス
   ============================ */
.is-archived {
  display: none !important;
}

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

.br-sp {
  display: none;
}

@media (max-width: 768px) {
  .br-pc {
    display: none;
  }

  .br-sp {
    display: block;
  }
}

/* --- プレースホルダー --- */
.placeholder-box {
  background: linear-gradient(135deg, #e8ddd0 0%, #d4c5a9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8b7d6b;
  font-size: 0.875rem;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  gap: 4px;
}

.placeholder-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px dashed #c4b598;
  border-radius: 12px;
  pointer-events: none;
}

.placeholder-box--tall {
  aspect-ratio: 3/4;
}

.placeholder-box--medium {
  aspect-ratio: 4/3;
}

.placeholder-box--wide {
  aspect-ratio: 16/9;
}

.placeholder-box--video {
  aspect-ratio: 16/9;
}

.placeholder-box--card {
  aspect-ratio: 4/3;
}

.placeholder-box--gallery {
  aspect-ratio: 3/2;
}

.placeholder-box--warm {
  background: linear-gradient(135deg, #f5deb3 0%, #daa520 50%, #cd853f 100%);
  color: #fff;
}

.placeholder-label {
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.placeholder-sub {
  font-size: 0.75rem;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

/* ============================
   ナビゲーション
   ============================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.nav-logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.nav-logo-circle--small {
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
}

.nav-logo-text {
  color: var(--color-text);
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition);
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-donate-btn {
  background: var(--color-text) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-donate-btn:hover {
  background: var(--color-accent) !important;
  transform: translateY(-1px);
}

.nav-donate-btn::after {
  display: none !important;
}

.nav-kokorozashi-btn {
  background: #c0392b !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-kokorozashi-btn:hover {
  background: #a93226 !important;
  transform: translateY(-1px);
}

.nav-kokorozashi-btn::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================
   ヒーローセクション
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #e8ddd0 0%, #d4c5a9 40%, #c8b896 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8b7d6b;
  font-size: 1.25rem;
  gap: 8px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.25) 40%,
      rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  animation: fadeUp 1s ease-out;
}

.hero-pre {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  color: #fffff0;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: #fffff0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: #fffff0;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 40px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fffff0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 32px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ============================
   セクション共通
   ============================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-text);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 80px auto;
}

/* ============================
   第３回志プレゼンテーション大会セクション
   ============================ */
.presentation {
  padding: 100px 0;
  background: var(--color-bg);
}

.presentation-header {
  text-align: center;
  margin-bottom: 56px;
}

.presentation-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 20px;
}

.presentation-divider {
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto;
}

.presentation-announce {
  text-align: center;
  margin-bottom: 64px;
  padding: 48px 32px;
  background: var(--color-bg-white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid #ebe3d6;
}

.presentation-detail {
  max-width: 760px;
  margin: 0 auto 32px;
}

.presentation-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.presentation-lead {
  margin: 20px auto 0;
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text);
  max-width: 720px;
}
.presentation-date-large {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 4px;
}

.presentation-date-day {
  font-size: 1.1rem;
  color: var(--color-text-light);
}

.presentation-announce-text {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-light);
}

.presentation-btn-wrap {
  text-align: center;
  margin-bottom: 40px;
}
.presentation-free-note {
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
}
.presentation-btn {
  display: inline-block;
  background: var(--color-accent-orange);
  color: #fff;
  padding: 12px 36px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.presentation-btn:hover {
  opacity: 0.7;
}

.presentation-schedule {
  margin: 0 auto 40px;
  overflow-x: auto;
}

.presentation-schedule__table {
  width: 100%;
  border-collapse: collapse;
  background: #fffdf9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.presentation-schedule__th,
.presentation-schedule__td {
  padding: 14px 16px;
  border: 1px solid #ebe3d6;
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
  line-height: 1.7;
}

.presentation-schedule__th {
  background: var(--color-bg-warm);
  font-weight: 700;
  color: var(--color-text);
}

.presentation-schedule__time {
  white-space: nowrap;
  width: 140px;
  font-weight: 600;
}

.presentation-schedule__event {
  font-weight: 600;
}

.presentation-schedule__note {
  color: var(--color-text-light);
}

.presentation-project {
  text-align: center;
  padding: 48px 32px;
  background: var(--color-bg-white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid #ebe3d6;
}

.presentation-project-title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: 32px;
  line-height: 1.5;
}

.presentation-project-body {
  max-width: 600px;
  margin: 0 auto;
}

.presentation-project-body p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 24px;
  text-align: center;
}

.presentation-project-body p:last-child {
  margin-bottom: 0;
}

.presentation-venue-photo {
  margin-top: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.venue-photo-img {
  width: 100%;
  height: auto;
  display: block;
}

.kokorozashi-cta {
  text-align: center;
  margin-top: 28px;
}

.kokorozashi-badge {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  padding: 14px 40px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.3);
}

.kokorozashi-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(192, 57, 43, 0.45);
  opacity: 0.9;
}

 /* ══════════════════════════════════
       SECTION WRAPPER
    ══════════════════════════════════ */
    .speakers-section {
      padding: 100px 0 120px;
      background: var(--color-bg);
    }

    .container {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 0 10px;
    }

    /* ══════════════════════════════════
       SECTION HEADER
    ══════════════════════════════════ */
    .section-header {
      text-align: center;
      margin-bottom: 64px;
    }

    .section-en {
      display: block;
      font-family: var(--font-serif);
      font-size: 2.5rem;
      font-weight: 400;
      letter-spacing: 0.12em;
      color: var(--color-accent);
      line-height: 1;
      margin-bottom: 10px;
    }

    .section-title {
      font-family: var(--font-serif);
      font-size: 1.5rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      color: var(--color-text);
      margin-bottom: 20px;
    }

    .section-divider {
      width: 48px;
      height: 2px;
      background: var(--color-accent);
      margin: 0 auto;
    }

    /* ══════════════════════════════════
       KEYNOTE
    ══════════════════════════════════ */
    .keynote-wrap {
      margin-bottom: 80px;
    }

    .keynote-label {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: var(--font-sans);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.15em;
      color: var(--color-accent);
      text-transform: uppercase;
      margin-bottom: 16px;
    }

    .keynote-label::before,
    .keynote-label::after {
      content: '';
      display: block;
      width: 32px;
      height: 1px;
      background: var(--color-accent);
    }

    .keynote-card {
      background: var(--color-bg-white);
      border: 1px solid var(--color-border-soft);
      border-radius: var(--radius-card);
      overflow: hidden;
      box-shadow: var(--shadow-card);
      display: grid;
      grid-template-columns: 260px 1fr;
    }

    .keynote-photo {
      aspect-ratio: 3/4;
      overflow: hidden;
      background: var(--color-bg-warm);
    }

    .keynote-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
    }

    .keynote-body {
      padding: 40px 44px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .keynote-tag {
      display: inline-block;
      background: var(--color-bg-warm);
      color: var(--color-accent);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      padding: 4px 12px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--color-border);
      margin-bottom: 16px;
      width: fit-content;
    }

    .keynote-name {
      font-family: var(--font-serif);
      font-size: 2rem;
      font-weight: 700;
      color: var(--color-text);
      line-height: 1.2;
      margin-bottom: 4px;
    }

    .keynote-name-suffix {
      font-size: 1rem;
      font-weight: 400;
      color: var(--color-text-light);
      margin-left: 4px;
    }

    .keynote-roles {
      font-size: 0.8rem;
      color: var(--color-text-light);
      line-height: 1.7;
      margin-bottom: 16px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--color-border-soft);
    }

    .keynote-bio {
      font-size: 0.9rem;
      color: var(--color-text-light);
      line-height: 1.9;
      margin-bottom: 24px;
    }

    .theme-block {
      background: var(--color-bg-cream);
      border-left: 3px solid var(--color-accent);
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      padding: 16px 20px;
    }

    .theme-block-label {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      color: var(--color-accent);
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .theme-block-title {
      font-family: var(--font-serif);
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--color-text);
      line-height: 1.6;
      margin-bottom: 6px;
    }

    .theme-block-desc {
      font-size: 0.8rem;
      color: var(--color-text-light);
      line-height: 1.8;
    }

    /* ══════════════════════════════════
       MC
    ══════════════════════════════════ */
    .mc-wrap {
      margin-bottom: 64px;
    }

    .mc-card {
      background: var(--color-bg-white);
      border: 1px solid var(--color-border-soft);
      border-radius: var(--radius-card);
      overflow: hidden;
      box-shadow: var(--shadow-card);
      display: grid;
      grid-template-columns: 130px 1fr;
      max-width: 480px;
    }

    .mc-photo {
      aspect-ratio: 3/4;
      overflow: hidden;
      background: linear-gradient(135deg, #e8ddd0 0%, #d4c5a9 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      color: #8b7d6b;
    }

    .mc-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
    }

    .mc-body {
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    /* ══════════════════════════════════
       SPEAKER GRID
    ══════════════════════════════════ */
    .grid-header {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-bottom: 32px;
    }

    .grid-header-line {
      flex: 1;
      height: 1px;
      background: var(--color-border-soft);
    }

    .grid-header-text {
      font-family: var(--font-serif);
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      color: var(--color-text-light);
      white-space: nowrap;
    }

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

    .speaker-card {
      background: var(--color-bg-white);
      border: 1px solid var(--color-border-soft);
      border-radius: var(--radius-card);
      overflow: hidden;
      box-shadow: var(--shadow-card);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .speaker-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.09);
    }

    .speaker-photo {
      aspect-ratio: 4/5;
      overflow: hidden;
      background: linear-gradient(135deg, #f5e6cc 0%, #e8d5b0 100%);
    }

    .speaker-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      transition: transform 0.4s ease;
    }

    .speaker-card:hover .speaker-photo img {
      transform: scale(1.03);
    }

    .speaker-info {
      padding: 20px;
    }

    .speaker-name {
      font-family: var(--font-serif);
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--color-text);
      margin-bottom: 4px;
      line-height: 1.4;
    }

    .speaker-name-suffix {
      font-size: 0.8rem;
      font-weight: 400;
      color: var(--color-text-light);
    }

    .speaker-role {
      font-size: 0.75rem;
      color: var(--color-text-light);
      line-height: 1.6;
      margin-bottom: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--color-border-soft);
    }

    .speaker-theme {
      font-family: var(--font-serif);
      font-size: 0.85rem;
      color: var(--color-text);
      line-height: 1.7;
    }

    /* ══════════════════════════════════
       BOTTOM INFO BAR
    ══════════════════════════════════ */
    .event-info {
      margin-top: 80px;
      background: var(--color-bg-white);
      border: 1px solid var(--color-border-soft);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-card);
      overflow: hidden;
    }

    .event-info-top {
      background: var(--color-bg-warm);
      padding: 28px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
      border-bottom: 1px solid var(--color-border);
    }

    .event-date-block { }

    .event-date-label {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.15em;
      color: var(--color-accent);
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .event-date-large {
      font-family: var(--font-serif);
      font-size: 2rem;
      font-weight: 700;
      color: var(--color-text);
      line-height: 1;
      letter-spacing: -0.01em;
    }

    .event-date-large .accent { color: var(--color-accent); }

    .event-date-sub {
      font-size: 0.9rem;
      color: var(--color-text-light);
      margin-top: 4px;
    }

    .event-venue-block { }

    .event-venue-name {
      font-family: var(--font-serif);
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--color-text);
      margin-bottom: 4px;
      line-height: 1.4;
    }

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

    .event-free-badge {
      display: inline-block;
      background: var(--color-accent-orange);
      color: #fff;
      font-size: 0.875rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      border-radius: var(--radius-sm);
      flex-shrink: 0;
    }

    .event-info-bottom {
      padding: 28px 40px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 32px;
      align-items: start;
    }

    .event-schedule {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .schedule-row {
      display: flex;
      align-items: center;
      gap: 0;
      border-bottom: 1px solid var(--color-border-soft);
    }

    .schedule-row:first-child {
      border-top: 1px solid var(--color-border-soft);
    }

    .schedule-time {
      width: 72px;
      flex-shrink: 0;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--color-accent);
      font-family: var(--font-serif);
      padding: 10px 0;
    }

    .schedule-bar {
      width: 2px;
      background: var(--color-border-soft);
      align-self: stretch;
      margin: 0 16px;
    }

    .schedule-label {
      font-size: 0.875rem;
      color: var(--color-text);
      padding: 10px 0;
    }

    .event-apply-block {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      padding-top: 4px;
    }

    .apply-title {
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      color: var(--color-text-light);
      text-transform: uppercase;
    }

    .apply-qr {
      width: 100px;
      height: 100px;
      border: 1px solid var(--color-border-soft);
      border-radius: var(--radius-sm);
      padding: 6px;
      background: #fff;
    }

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

    .apply-link {
      font-size: 0.75rem;
      color: var(--color-accent);
      text-decoration: none;
      font-weight: 500;
    }

    .apply-link:hover { text-decoration: underline; }

/* ============================
   Storyセクション
   ============================ */
.story {
  padding: 100px 0;
  background: var(--color-bg-white);
}

.story-intro {
  text-align: center;
  margin-bottom: 60px;
}

.story-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 28px;
  line-height: 1.5;
}

.story-text {
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.story-text--accent {
  font-weight: 500;
  color: var(--color-accent);
  font-size: 1.05rem;
}

.story-hero-photo {
  position: relative;
  margin-bottom: 60px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.story-hero-img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 480px;
  object-fit: cover;
}

.story-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.55) 50%,
      rgba(0, 0, 0, 0.7) 100%);
  z-index: 6;
  border-radius: inherit;
  pointer-events: none;
}

.story-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 7;
  padding: 40px 48px;
  color: #fffff0;
  transform: translateY(2px);
}

.story-hero-content p {
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: 10px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.story-hero-content p:last-child {
  margin-bottom: 0;
}

.story-narrative {
  max-width: 680px;
  margin: 0 auto 48px;
  padding: 40px;
  background: var(--color-bg);
  border-radius: 16px;
}

.story-narrative p {
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: 16px;
  color: var(--color-text);
}

.story-narrative p:last-child {
  margin-bottom: 0;
}

.story-narrative--light {
  background: var(--color-bg-white);
  border: 1px solid #ebe3d6;
}

.story-photo-side {
  max-width: 500px;
  margin: 0 auto;
}

/* ============================
   動画セクション
   ============================ */
.video-section {
  padding: 80px 0;
  background: var(--color-bg);
}

.video-wrapper {
  max-width: 860px;
  margin: 0 auto 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.video-caption {
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* ============================
   プロジェクトセクション
   ============================ */
.project {
  padding: 100px 0;
  background: var(--color-bg-white);
}

.project-block {
  text-align: center;
}

.project-hero-image {
  position: relative;
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

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

.project-hero-image--fes {
  position: relative;
}

.fes-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 300px;
}

.fes-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 40px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fes-badge {
  display: inline-block;
  background: var(--color-accent-orange);
  color: #fff;
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: none;
}

.fes-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.fes-sub {
  font-size: 1.125rem;
  line-height: 1.6;
}

.project-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 20px;
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.85);
  display: inline-block;
  border-radius: 8px;
}

.project-desc {
  font-size: 1rem;
  line-height: 2;
  max-width: 680px;
  margin: 0 auto 40px;
  color: var(--color-text);
}

.project-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.project-detail-card {
  border-radius: 12px;
  overflow: hidden;
}

.detail-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-detail-card--wide {
  grid-column: 1 / -1;
}

.project-info-text {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: left;
}

.project-info-text h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 16px;
  text-align: center;
}

.project-info-text p {
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: 12px;
}

.project-results {
  margin-bottom: 48px;
}

.project-results h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  background: var(--color-bg);
  border-radius: 12px;
  transition: transform var(--transition);
}

.result-item:hover {
  transform: translateY(-4px);
}

.result-item--highlight {
  background: var(--color-bg-warm);
  border: 2px solid var(--color-accent-orange);
}

.result-label {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-accent);
}

.result-date {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.result-number {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

/* --- 志フェス セクション --- */
.fes-intro {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.fes-intro-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 24px;
  line-height: 1.5;
}

.fes-intro-text {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text);
}

.fes-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.fes-feature-card {
  text-align: center;
}

.fes-feature-card .placeholder-box {
  margin-bottom: 12px;
  border-radius: 16px;
}

.fes-feature-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  margin-bottom: 12px;
}

.fes-feature-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.fes-info {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.fes-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.fes-info p {
  font-size: 0.95rem;
  line-height: 2;
}

.fes-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 600px;
  margin: 0 auto 60px;
}

.fes-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 16px;
  background: var(--color-bg-cream);
  border-radius: 16px;
}

.fes-stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-orange);
}

.fes-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.fes-basic-info {
  max-width: 500px;
  margin: 0 auto 60px;
  background: var(--color-bg-white);
  border: 1px solid #ebe3d6;
  border-radius: 16px;
  padding: 32px;
}

.fes-basic-info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 20px;
  text-align: center;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item dt {
  flex-shrink: 0;
  width: 100px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-accent);
}

.info-item dd {
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-item dd small {
  color: var(--color-text-light);
  font-size: 0.8rem;
}

.fes-gallery {
  margin-bottom: 40px;
  text-align: center;
}

.fes-gallery-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 24px;
}

.fes-gallery-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.fes-gallery-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- ボタン --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.04em;
  text-align: center;
}

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

.btn--outline:hover {
  background: var(--color-text);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn--primary {
  background: var(--color-accent-orange);
  color: #fff;
  border: 2px solid var(--color-accent-orange);
}

.btn--primary:hover {
  background: #e88a28;
  border-color: #e88a28;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 155, 50, 0.35);
}

.btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.btn--large {
  padding: 18px 48px;
  font-size: 1.125rem;
}

/* ============================
   寄付・協賛セクション
   ============================ */
.donate {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

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

.donate-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.donate-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.donate-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}

.donate-pre {
  font-size: 1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.donate-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.text-accent {
  color: var(--color-accent-red);
}

.donate-subtitle {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 48px;
  opacity: 0.95;
}

.donate-message {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
  text-align: center;
}

.donate-block {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.donate-block h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.donate-cta-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent-orange);
}

.donate-block--sub p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.donate-block--sub p:last-child {
  margin-bottom: 0;
}

.donate-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ============================
   フッター
   ============================ */
.footer {
  padding: 48px 0;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ============================
   スクロールアニメーション
   ============================ */
.fade-in-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

    @media (max-width: 900px) {
      .keynote-card {
        grid-template-columns: 200px 1fr;
      }
      .keynote-body { padding: 28px 28px; }
      .speakers-grid { grid-template-columns: repeat(2, 1fr); }
      .event-info-top { padding: 10px; }
      .event-info-bottom { padding: 10px; }
    }

   
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(254, 250, 246, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .section-tag {
    font-size: 2rem;
  }

  .story-narrative {
    padding: 28px 20px;
  }

  .story-hero-overlay {
    background: rgba(0, 0, 0, 0.45);
  }

  .story-hero-content {
    padding: 28px 24px;
    top: 0;
  }

  .story-hero-img {
    min-height: 550px;
  }

  .project-details {
    grid-template-columns: 1fr;
  }

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

  .fes-features {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .fes-stats {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .fes-gallery {
    grid-template-columns: 1fr;
  }

  .donate-message {
    grid-template-columns: 1fr;
  }

  .fes-overlay {
    padding: 20px;
  }

  .fes-title {
    font-size: 1.75rem;
  }

  .info-item {
    flex-direction: column;
    gap: 4px;
  }

  .info-item dt {
    width: auto;
  }
   .presentation-announce {
    padding: 32px 20px;
  }

  .presentation-detail {
    margin-bottom: 24px;
  }

  .presentation-date-large {
    font-size: 1.8rem;
  }

  .presentation-btn {
    width: 100%;
    max-width: 320px;
    font-size: 1rem;
    padding: 12px 24px;
  }

  .presentation-schedule {
    margin-bottom: 32px;
  }

  .presentation-schedule__th,
  .presentation-schedule__td {
    font-size: 0.875rem;
    padding: 12px;
  }

  .presentation-project {
    padding: 32px 20px;
  }
}
@media (max-width: 640px) {
  .speakers-section { padding: 60px 0 80px; }
  .keynote-card { grid-template-columns: 1fr; }
  .keynote-photo { aspect-ratio: 4/3; }
  .keynote-body { padding: 24px; }
  .keynote-name { font-size: 1.1rem; }
  .speakers-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .event-info-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .event-info-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .event-apply-block { flex-direction: row; align-items: center; flex-wrap: wrap; }
}   

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .nav-inner {
    height: 56px;
  }

  .hero {
    min-height: 90vh;
  }

  .story,
  .project {
    padding: 60px 0;
  }

  .donate {
    padding: 80px 0;
  }

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

  .btn--large {
    padding: 14px 32px;
    font-size: 1rem;
  }
   .presentation {
    padding: 60px 0;
  }

  .presentation-title {
    font-size: 1.4rem;
  }

  .presentation-date {
    font-size: 1rem;
  }

  .presentation-date-large {
    font-size: 1.5rem;
  }

  .presentation-announce-text {
    font-size: 0.95rem;
  }
}
@media (max-width: 400px) {
  .speakers-grid { grid-template-columns: 1fr; }
}

/* ============================
   写真編集機能
   ============================ */

/* --- 編集コントロールコンテナ --- */
.edit-controls {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#editToggle,
#textEditToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--color-text);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all var(--transition);
}

#editToggle:hover,
#textEditToggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
}

#editToggle.active,
#textEditToggle.active {
  background: var(--color-accent-orange);
}

#editToggle svg,
#textEditToggle svg {
  flex-shrink: 0;
}

/* --- テキスト編集モード中のスタイル --- */
.text-edit-mode [contenteditable="true"] {
  outline: 2px dashed var(--color-accent-orange);
  outline-offset: 4px;
  cursor: text;
  transition: all 0.2s;
  border-radius: 4px;
}

.text-edit-mode [contenteditable="true"]:hover {
  background-color: rgba(255, 155, 50, 0.05);
}

.text-edit-mode [contenteditable="true"]:focus {
  outline: 3px solid var(--color-accent-orange);
  background-color: rgba(255, 155, 50, 0.1);
}

/* --- ドラッグハンドル --- */
.drag-handle {
  display: none;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: grab;
  user-select: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.15s ease;
  white-space: nowrap;
}

.drag-handle:hover {
  background: rgba(255, 155, 50, 0.9);
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.drag-handle span {
  pointer-events: none;
}

.text-edit-mode .drag-handle {
  display: flex;
}

.drag-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.15s;
}

.drag-reset-btn:hover {
  background: rgba(255, 80, 80, 0.8);
}

/* ドラッグ中 */
.dragging {
  opacity: 0.9;
  z-index: 100 !important;
}

.dragging .drag-handle {
  background: var(--color-accent-orange);
  cursor: grabbing;
}

/* --- フローティングテキストツールバー --- */
#textToolbar {
  position: absolute;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--color-text);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#textToolbar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ツールバー矢印（下向き） */
#textToolbar::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--color-text);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.15s ease;
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.toolbar-btn.active {
  background: var(--color-accent-orange);
  color: #fff;
}

/* カラーピッカーラベル */
.toolbar-color-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}

.toolbar-color-label:hover {
  background: rgba(255, 255, 255, 0.15);
}

.toolbar-color-icon {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  border-bottom: 3px solid #2e2a2b;
  line-height: 1;
  padding-bottom: 1px;
}

.toolbar-color-label input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
}

/* フォントサイズコントロール */
.toolbar-fontsize-group {
  gap: 0 !important;
}

.toolbar-fontsize-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 4px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  user-select: none;
}

/* --- 編集モード中のプレースホルダー --- */
.edit-mode .placeholder-box,
.edit-mode .hero-placeholder,
.edit-mode .donate-bg-placeholder {
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.edit-mode .placeholder-box:hover,
.edit-mode .hero-placeholder:hover,
.edit-mode .donate-bg-placeholder:hover {
  outline: 3px solid var(--color-accent-orange);
  outline-offset: -3px;
}

/* 編集モード - カメラアイコンオーバーレイ */
.edit-mode .placeholder-box::after,
.edit-mode .hero-placeholder::after,
.edit-mode .donate-bg-placeholder::after {
  content: '📷 クリックまたはドロップで写真を追加';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 10;
}

.edit-mode .placeholder-box:hover::after,
.edit-mode .hero-placeholder:hover::after,
.edit-mode .donate-bg-placeholder:hover::after {
  opacity: 1;
}

/* アップロード画像を持つプレースホルダー - 編集モード時 */
.edit-mode .has-image::after {
  content: '📷 クリックで写真を変更';
}

/* --- ドラッグオーバー --- */
.drag-over {
  outline: 3px dashed var(--color-accent-orange) !important;
  outline-offset: -3px;
  background-color: rgba(255, 155, 50, 0.08) !important;
}

/* --- アップロードされた画像 --- */
.uploaded-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 5;
}

.has-image .placeholder-label,
.has-image .placeholder-sub {
  opacity: 0;
}

.has-image::before {
  opacity: 0;
}

/* ヒーロー & 寄付背景の画像 */
.hero-placeholder .uploaded-image,
.donate-bg-placeholder .uploaded-image {
  border-radius: 0;
}

.hero-placeholder.has-image,
.donate-bg-placeholder.has-image {
  background: none !important;
}

/* --- 画像削除ボタン --- */
.img-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(220, 50, 50, 0.85);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  line-height: 1;
}

.img-remove-btn:hover {
  background: rgba(200, 30, 30, 1);
  transform: scale(1.1);
}

.edit-mode .img-remove-btn {
  display: flex;
}

/* --- トースト通知 --- */
.edit-toast {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: 10000;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  max-width: 360px;
}

.edit-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.edit-toast--info {
  background: rgba(46, 42, 43, 0.9);
}

.edit-toast--success {
  background: rgba(50, 140, 80, 0.9);
}

.edit-toast--error {
  background: rgba(200, 50, 50, 0.9);
}

/* --- レスポンシブ --- */
@media (max-width: 480px) {
  .edit-controls {
    bottom: 16px;
    right: 16px;
  }

  #editToggle,
  #textEditToggle {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  #editToggle span,
  #textEditToggle span {
    display: none;
  }

  .edit-toast {
    bottom: 72px;
    right: 16px;
    left: 16px;
    max-width: none;
    text-align: center;
  }

  .edit-mode .placeholder-box::after,
  .edit-mode .hero-placeholder::after,
  .edit-mode .donate-bg-placeholder::after {
    font-size: 0.65rem;
    padding: 4px 10px;
  }

  .drag-handle span {
    display: none;
  }

  .drag-handle {
    padding: 6px 8px;
  }
}