/* =========================================
   Reset / Base
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f3f5f8;
  color: #111;
  line-height: 1.6;
}

/* =========================================
   Layout
========================================= */
.page-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow:
    0 12px 32px rgba(0,0,0,.10),
    0 4px 12px rgba(0,0,0,.05);
}

main {
  flex: 1;
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* =========================================
   Header / Footer
========================================= */
header {
  background: #000;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

header h1 {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 400;
  letter-spacing: .5px;
}

footer {
  background: #000;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: auto;
}

footer address {
  font-style: normal;
  font-size: 12px;
  margin-bottom: 15px;
}

footer a {
  color: #fff;
  font-size: 11px;
  text-decoration: none;
}

footer a:hover { opacity: .7; }

footer .white {
  color: #999;
  margin: 0 8px;
}

/* =========================================
   Section / Benefit
========================================= */
.section-title {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
}

.benefits-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-bottom: 50px;
}

.benefit-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.benefit-item:nth-child(even) {
  direction: rtl;
}
.benefit-item:nth-child(even) > * {
  direction: ltr;
}

/* Badge */
.benefit-badge {
  background: #000;
  color: #fff;
  padding: 8px 16px;
  display: inline-flex;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 3px;
}

.badge-number {
  background: #e63946;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
}

/* Text */
.benefit-subtitle {
  font-size: 18px;
  color: #e63946;
  font-weight: 600;
  margin-bottom: 12px;
}

.benefit-title {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
}

.benefit-description {
  font-size: 20px;
  color: #555;
  margin-bottom: 20px;
}

/* =========================
   Benefit Image（PC共通）
========================= */
.benefit-image {
  aspect-ratio: 1;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

.benefit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   スマホ最適化
========================= */
@media (max-width: 768px) {
  .benefit-image {
    aspect-ratio: auto;     /* 正方形解除 */
    height: auto;
  }

  .benefit-image img {
    height: auto;
    max-height: 320px;      /* ← 高さ暴走防止（重要） */
    object-fit: contain;    /* 全体を見せる */
  }
}


/* =========================================
   Video
========================================= */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 16px 40px rgba(0,0,0,.18),
    0 6px 16px rgba(0,0,0,.12);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}




/* =========================================
   Video Benefit Block
========================================= */
.benefit-video-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 60px;
}

.benefit-video-content {
  max-width: 640px;
}

.benefit-video-block .video-wrapper {
  margin-top: 0;
}

/* =========================================
   DLButton（Navy × Gold）
========================================= */
.dl-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 16px 36px;

  background: linear-gradient(135deg, #0f2a44 0%, #163b5f 100%);
  color: #ffffff;

  font-size: 18px;
  font-weight: 700;
  text-decoration: none;

  border-radius: 6px;
  border: none;

  box-shadow:
    0 8px 20px rgba(15, 42, 68, 0.35);

  transition:
    background .25s ease,
    color .25s ease,
    box-shadow .25s ease,
    transform .2s ease;
}

.dl-button:hover {
  background: linear-gradient(135deg, #FFD700 0%, #ffcf33 100%);
  color: #0f2a44;

  box-shadow:
    0 10px 26px rgba(255, 215, 0, 0.45);

  transform: translateY(-2px);
}

/* 矢印SVG */
.dl-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;

  transform: translateY(1px);
  transition: transform .2s ease;
}

.dl-button:hover .dl-arrow {
  transform: translateY(3px);
}


/* =========================================
   Overlay
========================================= */
#page-close-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  color: #fff;
  z-index: 9999;
  text-align: center;
  padding: 12vh 1rem;
}

#page-close-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 768px) {
  .page-container {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  main { padding: 40px 15px; }

  .benefit-item {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .video-wrapper {
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,.15);
  }

  .video-wrapper::before {
    top: -14px;
    font-size: 11px;
  }

  .benefit-video-block {
    gap: 24px;
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  main { padding: 30px 12px; }

  .benefit-title { font-size: 20px; }

  .dl-button {
    padding: 12px 24px;
    font-size: 13px;
  }
}
