/* ============================================================
   THE SEED — style.css
   Base styles, CSS variables, reset, layout foundations
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS VARIABLES
   ------------------------------------------------------------ */
:root {
  /* Brand Colors */
  --color-navy:        #1a3557;
  --color-navy-dark:   #0d1f35;
  --color-navy-light:  #24497a;
  --color-white:       #ffffff;
  --color-light-gray:  #f5f7fa;
  --color-gray:        #e8ecf0;
  --color-text:        #2d3748;
  --color-text-light:  #718096;
  --color-accent:      #4a9f6e;   /* leaf green — growth accent */

  /* Typography */
  --font-en: 'Inter', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.7;

  /* Spacing */
  --section-padding-y:  96px;
  --container-max:      1160px;
  --container-pad:      24px;

  /* Transitions */
  --transition-base:    0.3s ease;
  --transition-slow:    0.6s ease;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(26, 53, 87, 0.08);
  --shadow-md:  0 8px 32px rgba(26, 53, 87, 0.12);
  --shadow-lg:  0 16px 64px rgba(26, 53, 87, 0.16);

  /* Border radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
}

/* ------------------------------------------------------------
   2. CSS RESET
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ja), var(--font-en), sans-serif;
  font-weight: 400;
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------------------------------------------
   3. LAYOUT UTILITIES
   ------------------------------------------------------------ */
.section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-padding-y) 0;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

/* Section label (EN small caps above heading) */
.section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* Section headings */
.section-title {
  font-family: var(--font-ja), var(--font-en), sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   4. HEADER / NAV
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background-color: transparent;
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  background-color: var(--color-navy-dark);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px var(--container-pad);
}

/* Logo */
.nav-logo {
  font-family: var(--font-en);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.nav-logo__d {
  position: relative;
  display: inline-block;
  color: var(--color-accent);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-cta {
  background-color: var(--color-accent);
  color: var(--color-white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base) !important;
}

.nav-cta:hover {
  background-color: #3a8a5e !important;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ------------------------------------------------------------
   5. HERO SECTION
   ------------------------------------------------------------ */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0d1f35 0%, #1a3557 55%, #0d2a20 100%);
  padding-top: 80px; /* offset for fixed header */
  position: relative;
  overflow: hidden;
}

/* Subtle background radial glow */
.section--hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse at center, rgba(74, 159, 110, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

/* Hero Logo */
.hero-logo {
  opacity: 0;
  transform: scale(0.85) translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-logo.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hero-logo__svg {
  width: min(420px, 85vw);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 4px 24px rgba(74, 159, 110, 0.25));
}

/* Logo leaf animation */
.logo-leaf {
  transform-origin: 378px 28px;
  animation: leafSway 4s ease-in-out infinite;
}

@keyframes leafSway {
  0%, 100% { transform: rotate(0deg); }
  30%       { transform: rotate(3deg); }
  70%       { transform: rotate(-2deg); }
}

/* Hero Tagline */
.hero-tagline {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
  font-family: var(--font-ja), sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.625rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.hero-tagline.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.hero-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  font-family: var(--font-ja), var(--font-en), sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
}

.btn--primary:hover {
  background-color: #3a8a5e;
  border-color: #3a8a5e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 159, 110, 0.35);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* CTA section specific buttons */
.btn--white {
  background-color: var(--color-white);
  color: var(--color-navy);
  border: 2px solid var(--color-white);
}

.btn--white:hover {
  background-color: var(--color-light-gray);
  border-color: var(--color-light-gray);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--ghost-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--ghost-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Video button */
.btn--video {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(74, 159, 110, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--video:hover {
  background-color: rgba(74, 159, 110, 0.12);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 31, 53, 0.92);
  cursor: pointer;
}

.video-modal__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  background-color: #0d1f35;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  height: 40px;
  width: auto;
  padding: 0 10px 0 14px;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: background-color var(--transition-base);
}

.video-modal__close:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

.video-modal__close-label {
  font-family: var(--font-en);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-white);
  line-height: 1;
  white-space: nowrap;
}

.video-modal__iframe-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.video-modal__iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Cover overlay to hide Google Drive external-link icon (top-right) */
.video-modal__gdrive-cover {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 48px;
  z-index: 3;
  background: linear-gradient(135deg, rgba(13, 31, 53, 0.0) 0%, #0d1f35 60%);
  pointer-events: auto;
  cursor: pointer;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-en);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: scrollFadeIn 1s ease 2.8s forwards;
}

.scroll-indicator__arrow {
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollFadeIn {
  to { opacity: 1; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ============================================================
   SEED ANIMATION OVERLAY
   ============================================================ */
.seed-animation {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0d1f35;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.seed-animation.is-done {
  opacity: 0;
  pointer-events: none;
}

.seed-animation.is-hidden {
  display: none;
}

.seed-svg {
  width: 160px;
  height: auto;
  overflow: visible;
}

/* Phase 1: Seed appears */
.seed {
  opacity: 0;
  animation: seedAppear 0.5s ease 0.2s forwards;
}

@keyframes seedAppear {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* Phase 2: Stem grows (stroke-dasharray trick) */
.stem {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: stemGrow 0.8s ease 0.8s forwards;
}

@keyframes stemGrow {
  to { stroke-dashoffset: 0; }
}

/* Phase 3: Leaves open */
.leaf--left {
  animation: leafOpen 0.45s ease 1.5s forwards;
  transform-origin: 100px 195px;
}

.leaf--right {
  animation: leafOpen 0.45s ease 1.65s forwards;
  transform-origin: 100px 195px;
}

.leaf--upper-left {
  animation: leafOpen 0.45s ease 1.8s forwards;
  transform-origin: 100px 175px;
}

.leaf--upper-right {
  animation: leafOpen 0.45s ease 1.95s forwards;
  transform-origin: 100px 175px;
}

@keyframes leafOpen {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}

/* Soil line pulse */
.soil-line {
  animation: soilFade 0.4s ease 0.1s both;
}

@keyframes soilFade {
  from { opacity: 0; }
  to   { opacity: 0.5; }
}

/* ------------------------------------------------------------
   6. ABOUT SECTION
   ------------------------------------------------------------ */
.section--about {
  background-color: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray);
  background-color: var(--color-white);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-card__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.about-card__title {
  font-family: var(--font-ja), sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.about-card__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ------------------------------------------------------------
   8. HOW IT WORKS SECTION
   ------------------------------------------------------------ */
.section--how-it-works {
  background-color: var(--color-white);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step__number {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(74, 159, 110, 0.15);
  line-height: 1;
  margin-bottom: 16px;
  position: relative;
}

.step__number::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

.step__connector {
  position: absolute;
  top: 24px;
  right: -1px;
  width: 50%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(74, 159, 110, 0.3));
  pointer-events: none;
}

.step:first-child .step__connector {
  right: auto;
  left: 50%;
  background: linear-gradient(to right, rgba(74, 159, 110, 0.3), rgba(74, 159, 110, 0.3));
}

.step__connector--last {
  display: none;
}

.step__content {
  padding-top: 8px;
}

.step__title {
  font-family: var(--font-ja), sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.step__text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ------------------------------------------------------------
   9. CTA SECTION
   ------------------------------------------------------------ */
.section--cta {
  background: linear-gradient(140deg, #0d1f35 0%, #1a3557 50%, #0d2a20 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section--cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(74, 159, 110, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-label {
  color: rgba(74, 159, 110, 0.9);
}

.cta-title {
  font-family: var(--font-ja), var(--font-en), sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 20px;
}

.cta-lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   10. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--color-navy-dark);
  padding: 0;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.footer-tagline {
  font-family: var(--font-ja), sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-nav__list a {
  font-family: var(--font-en);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-base);
}

.footer-nav__list a:hover {
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social__link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: background-color var(--transition-base), color var(--transition-base);
}

.footer-social__link:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ------------------------------------------------------------
   11. SCROLL ANIMATIONS
   ------------------------------------------------------------ */
.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   12. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------ */

/* ---- Tablet: 768px ---- */
@media (max-width: 768px) {
  :root {
    --section-padding-y: 64px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background-color: var(--color-navy-dark);
    z-index: 800;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.125rem;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 910;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section__header {
    margin-bottom: 40px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-card {
    padding: 28px 20px;
  }

  /* Steps */
  .steps-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step__connector {
    display: none;
  }

  /* CTA */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding: 40px 0 32px;
  }

  .footer-nav__list {
    justify-content: center;
  }

  /* Video modal responsive */
  .video-modal {
    padding: 12px;
  }

  .video-modal__container {
    border-radius: var(--radius-md);
  }

  /* Hero responsive — tablet / mobile */
  .hero-content {
    gap: 24px;
    padding: 0 16px;
  }

  .hero-logo__svg {
    width: min(340px, 88vw);
  }

  .hero-cta {
    gap: 12px;
  }

  .btn {
    padding: 13px 28px;
    font-size: 0.9rem;
  }

  .scroll-indicator {
    bottom: 24px;
  }

  .seed-svg {
    width: 120px;
  }
}

/* ---- Small mobile: 375px ---- */
@media (max-width: 400px) {
  .hero-logo__svg {
    width: 88vw;
  }

  .btn--primary,
  .btn--ghost {
    width: 100%;
    max-width: 260px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .about-card {
    padding: 24px 16px;
  }
}

/* ---- Desktop: 1200px ---- */
@media (min-width: 1200px) {
  :root {
    --section-padding-y: 120px;
  }

  .nav-container {
    padding: 24px var(--container-pad);
  }

  .about-grid {
    gap: 40px;
  }
}

/* ============================================================
   SLIDE MODAL (詳しく見る — Googleスライド)
   task1330
============================================================ */
.slide-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.slide-modal[hidden] {
  display: none;
}

.slide-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 31, 53, 0.92);
  cursor: pointer;
}

.slide-modal__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  background-color: #0d1f35;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.slide-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: background-color var(--transition-base);
}

.slide-modal__close:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

/* スライドコンテンツ領域のアスペクト比 (1100:620 ≈ 56.36%)
   Google Slides ツールバー（上部 ~40px・下部 ~40px）をクリップするため
   iframeを上方向にずらし（top: -40px）高さを拡張して overflow:hidden でカット */
.slide-modal__iframe-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.36%;
  overflow: hidden;
}

.slide-modal__iframe-wrap iframe {
  position: absolute;
  /* 上部ツールバー分（約40px）を負のオフセットで見切れさせる */
  top: -40px;
  left: 0;
  width: 100%;
  /* 上部（40px）＋下部（40px）ツールバー分を追加して両端を overflow:hidden でカット */
  height: calc(100% + 80px);
  border: none;
  display: block;
}

/* Google Slides ツールバー・リンクへのクリックを防止するオーバーレイ */
.slide-modal__iframe-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none; /* スライド操作は通す — 遷移リンクはiframe内なので干渉しない */
}

/* レスポンシブ: タブレット以下 */
@media (max-width: 768px) {
  .slide-modal {
    padding: 12px;
  }

  .slide-modal__container {
    border-radius: var(--radius-md);
  }
}
