
.pp-main {
  position: relative;
}
.pp-section {
  padding: 80px 0;
  scroll-margin-top: 72px;
  @media (max-width: 768px) {
    padding: 40px 0;
  }
}
.pp-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  @media (max-width: 768px) {
    gap: 32px;
  }
}


/* ===== Shared hero copy & CTA ===== */
.pp-hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--fs-sm), 0.5vw + 12px, var(--fs-md));
  width: 100%;
  @media (max-width: 960px) {
    width: fit-content;
    margin-inline: auto;
  }
}
.pp-hero-copy__title {
  font-weight: var(--weight-extra-bold);
  font-size: clamp(var(--fs-2xl), 2.5vw + 22px, var(--fs-6xl));
  line-height: 1.3;
  position: relative;
  @media (max-width: 960px) {
    margin-inline: auto;
  }
  svg {
    position: absolute;
    top: -14px;
    left: -28px;
    @media (max-width: 768px) {
      scale: 0.5;
    }
  }
  .pp-hero-copy__accent {
    display: inline;
  }
  .pp-hero-copy__accent--teal {
    color: #2ebcb3;
  }
  .pp-hero-copy__accent--blue {
    color: #3999fb;
  }
  .pp-hero-copy__accent--sun {
    color: #feca58;
  }
}
.pp-hero-copy__line {
  width: min(461px, 100%);
  height: 5px;
  background: url(../img/bg/bg-line.svg) repeat-x center center;
}
.pp-hero-copy__sub {
  font-size: clamp(var(--fs-md), 0.5vw + 14px, var(--fs-lg));
  font-weight: var(--weight-bold);
  line-height: 1.8;
  max-width: none;
  @media (max-width: 960px) {
    margin-inline: auto;
    text-align: center;
  }
}
.pp-hero-copy--center {
  align-items: center;
  text-align: center;
  .pp-hero-copy__line {
    margin-inline: auto;
  }
}

.pp-hero,
.pp-download {
  .pp-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    @media (max-width: 960px) {
      width: 100%;
      justify-content: center;
      gap: 4px;
    }
  }
  .pp-features--center {
    justify-content: center;
    width: 100%;
  }
  .pp-features__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    box-shadow: var(--shadow-soft);
    background: var(--bg-base);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    white-space: nowrap;
    @media (max-width: 768px) {
      padding: 8px 10px;
      font-size: var(--fs-xs);
      gap: 4px;
      img {
        scale: 0.8;
      }
    }
    img {
      flex-shrink: 0;
    }
  }
}


/* ===== ヒーロー ===== */
.pp-hero {
  position: relative;
  padding: 24px 0 40px 0;
  overflow: hidden;
  @media (max-width: 768px) {
    padding: 8px 0 32px 0;
  }
  .pp-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    align-items: center;
    @media (max-width: 960px) {
      display: flex;
      flex-direction: column-reverse;
    }
  }
  .pp-hero__media {
    width: 100%;
    img {
      width: 120%;
      max-width: none;
      margin-right: -4%;
      @media (max-width: 960px) {
        max-width: 110%;
        margin-left: -4%;
      }
    }
  }
  .pp-hero__content {
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: fit-content;
    margin-inline: auto;
    @media (max-width: 960px) {
      width: 100%;
      max-width: 480px;
      padding-bottom: 8px;
      gap: 16px;
    }
  }
}


/* ===== コンセプト（3ステップ） ===== */
.pp-concept {
  position: relative;
  .pp-concept__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    @media (max-width: 960px) {
      gap: 24px;
    }
    @media (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: 24px;
    }
  }
  .pp-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-base);
    border-radius: 40px;
    padding: 32px 24px 48px;
    box-shadow: var(--shadow-soft);
    isolation: isolate;
    @media (max-width: 768px) {
      border-radius: 16px;
      padding: 16px 16px 24px 16px;
    }
  }
  .pp-step__badge {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: -20px;
    font-weight: var(--weight-extra-bold);
    font-size: 28px;
    line-height: 1;
    color: var(--bg-base);
    @media (max-width: 768px) {
      scale: 0.7;
      margin-bottom: -32px;
    }
    .pp-step__num {
      position: relative;
      bottom: 2px;
    }
  }
  .pp-step__badge--mint { background: var(--c-mint); }
  .pp-step__badge--sun { background: var(--c-sun); }
  .pp-step__badge--marine { background: var(--c-marine); }
  .pp-step__sparkle {
    position: absolute;
    top: -16px;
    left: 48px;
    width: 40px;
    height: 32px;
    pointer-events: none;
    transform: rotate(-80deg) scaleY(-1);
    svg {
      display: block;
      width: 100%;
      height: 100%;
    }
  }
  .pp-step__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(var(--fs-sm), 0.5vw + 12px, var(--fs-md));
    width: 100%;
  }
  .pp-step__image-wrap {
    width: 100%;
    aspect-ratio: 308 / 210;
    border-radius: var(--r-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pp-step__image-wrap--mint-soft { background: var(--c-mint-soft); }
  .pp-step__image-wrap--sun { background: var(--c-sun-soft); }
  .pp-step__image-wrap--blue { background: var(--c-sky-soft); }
  .pp-step__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .pp-step__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    color: var(--text-primary);
  }
  .pp-step__title {
    font-size: var(--fs-xl);
    font-weight: var(--weight-extra-bold);
    line-height: 1.5;
  }
  .pp-step__desc {
    font-size: clamp(var(--fs-sm), 0.5vw + 12px, var(--fs-md));
    font-weight: var(--weight-medium);
    line-height: clamp(1.5, 0.5vw + 1.2, 1.8);
  }
}


/* ===== セキュリティ ===== */
.pp-security {
  .pp-security-panel {
    position: relative;
    width: 100%;
    border: 8px solid var(--bg-base);
    color: var(--text-primary);
    border-radius: 64px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
    padding: 40px 24px;
    background: url(../img/index/security/bg-security.webp) center / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    @media (max-width: 768px) {
      border-width: 4px;
      border-radius: 32px;
      padding: 32px 16px;
      gap: 24px;
      margin-top: 40px;
    }
  }
  .pp-security-panel__hero {
    display: flex;
    align-items: center;
    justify-content: center;
    @media (max-width: 768px) {
      margin-top: -80px;
    }
    img {
      width: min(479px, 100%);
      height: auto;
      aspect-ratio: 958 / 400;
      object-fit: contain;
    }
  }
  .pp-security-panel__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    padding-inline: 16px;
    @media (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: 8px;
      padding-inline: 0;
    }
  }
  .pp-security-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
    background: var(--bg-base);
    border-radius: var(--r-xl);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.12);
    text-align: center;
    @media (max-width: 768px) {
      padding: 24px 16px;
      gap: 16px;
      border-radius: 16px;
      flex-direction: row;
      text-align: start;
    }
  }
  .pp-security-card__icon {
    flex-shrink: 0;
    width: clamp(48px, 2vw + 16px, 72px);
    height: clamp(48px, 2vw + 16px, 72px);
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }
  .pp-security-card__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    @media (max-width: 768px) {
      align-items: flex-start;
      gap: 4px;
    }
  }
  .pp-security-card__title {
    font-size: var(--fs-md);
    font-weight: var(--weight-bold);
    line-height: 1.6;
  }
  .pp-security-card__title--mint { color: var(--c-mint); }
  .pp-security-card__title--coral { color: var(--c-coral); }
  .pp-security-card__title--purple { color: var(--c-purple); }
  .pp-security-card__title--blue { color: #1d83fa; }
  .pp-security-card__desc {
    font-size: var(--fs-sm);
    font-weight: var(--weight-medium);
    line-height: 1.6;
    margin: 0;
  }
}


/* ===== アプリ画面 ===== */
.pp-screens {
  position: relative;
  .pp-screens__showcase {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    @media (max-width: 768px) {
      gap: 8px;
    }
  }
  .pp-screens__main {
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #fef7ea;
    @media (max-width: 768px) {
      border-radius: 16px;
    }
    img {
      display: block;
      width: 100%;
      height: auto;
    }
  }
  .pp-screens__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    @media (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: 8px;
    }
  }
  .pp-screens__gallery-item {
    margin: 0;
    border-radius: 32px;
    overflow: hidden;
    background: #fef7ea;
    @media (max-width: 768px) {
      border-radius: 16px;
    }
    img {
      display: block;
      width: 100%;
      height: auto;
    }
  }
}


/* ===== FAQ ===== */
.pp-faq {
  position: relative;
  .pp-faq__list {
    display: flex;
    flex-direction: column;
    gap: clamp(var(--fs-sm), 0.5vw + 12px, var(--fs-md));
    width: 100%;
  }
  .pp-faq-item {
    --faq-indent: 72px;
    padding: 24px 32px;
    background: var(--bg-base);
    color: var(--text-primary);
    border: 4px solid transparent;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    @media (max-width: 768px) {
      padding: 16px 12px;
      border-radius: 16px;
      border-width: 2px;
    }
    &:hover {
      box-shadow: 0 0 24px rgb(52 67 65/15%);
      transform: translateY(2px);
    }
    &[open] {
      border-color: var(--c-mint);
    }
  }
  .pp-faq-item__summary {
    display: flex;
    align-items: center;
    gap: 32px;
    cursor: pointer;
    list-style: none;
    &::-webkit-details-marker {
      display: none;
    }
    @media (max-width: 768px) {
      gap: 16px;
    }
  }
  .pp-faq-item__badge {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-mint);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-weight: var(--weight-extra-bold);
    font-size: var(--fs-md);
    line-height: 1.6;
    color: var(--bg-base);
    @media (max-width: 768px) {
      scale: 0.8;
    }
  }
  .pp-faq-item__sparkle {
    position: absolute;
    top: -10px;
    left: 35px;
    width: 22px;
    height: 20px;
    pointer-events: none;
    transform: rotate(-80deg) scaleY(-1);
    svg {
      display: block;
      width: 100%;
      height: 100%;
    }
  }
  .pp-faq-item__question {
    flex: 1;
    min-width: 0;
    font-size: clamp(var(--fs-md), 0.5vw + 12px, var(--fs-xl));
    font-weight: var(--weight-bold);
    line-height: 1.3;
  }
  .pp-faq-item__toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d4f0ec;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    pointer-events: none;
    @media (max-width: 768px) {
      scale: 0.8;
    }
  }
  .pp-faq-item__icon {
    position: relative;
    width: 16px;
    height: 16px;
    &::before,
    &::after {
      content: "";
      position: absolute;
      background: var(--c-mint);
      border-radius: 1px;
    }
    &::before {
      width: 16px;
      height: 2px;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
    }
    &::after {
      width: 2px;
      height: 16px;
      left: 50%;
      top: 0;
      transform: translateX(-50%);
      transition: opacity 0.2s ease;
    }
  }
  .pp-faq-item[open] .pp-faq-item__icon::after {
    opacity: 0;
  }
  .pp-faq-item__body {
    margin: 8px 0 0;
    padding-left: var(--faq-indent);
    padding-right: var(--faq-indent);
    font-size: var(--fs-md);
    font-weight: var(--weight-medium);
    line-height: 1.8;
    @media (max-width: 768px) {
      font-size: var(--fs-sm);
      padding: 0;
      line-height: 1.6;
    }
  }
}


/* ===== Download CTA ===== */
.pp-download {
  position: relative;
  .pp-container {
    display: flex;
    justify-content: center;
  }
  .pp-download__card {
    width: 100%;
    max-width: 1024px;
    background: var(--bg-base);
    border-radius: 32px;
    padding: 80px 160px;
    box-shadow: var(--shadow-soft);
    @media (max-width: 960px) {
      padding: 40px 16px;
      border-radius: 0;
      width: auto;
      margin: 0 -16px;
    }
  }
  .pp-download__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .pp-download__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    .pp-hero-copy__title {
      @media (max-width: 960px) {
        svg {
          left: -10px;
        }
      }
    }
  }
  .pp-download__title-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
  }
  .pp-download__actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
}
