
/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a {
  color: inherit;
  text-decoration: none;
  transition: all .3s cubic-bezier(0,1,.64,1);
}
a:hover { text-decoration: underline; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }
a {
  &:focus-visible {
    outline: 3px solid #ffc919;
    outline-offset: 3px;
  }
}
body {
  font-family: var(--font-jp);
  color: var(--text-primary);
  background: var(--bg-warm);
  font-weight: var(--weight-medium);
  line-height: 1.7;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background: url(../img/bg/bg-header.webp) no-repeat center top;
  background-size: 100% auto;
  background-attachment: scroll;
  @media (min-width: 961px) {
    background-attachment: fixed;
  }
  &:after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 600px;
    z-index: -1;
    background-size: 100% auto;
    background-attachment: scroll;
    cursor: default;
    pointer-events: none;
    @media (min-width: 961px) {
      background-attachment: fixed;
    }
  }
  &.pp-body--footer-bg:after {
    background: url(../img/bg/bg-footer.webp) no-repeat center bottom;
  }
}
html[lang="en"] {
  body {
    line-height: 1.3;
  }
  .pp-hero-copy__title {
    line-height: 1;
    margin-bottom: 16px;
  }
}


/* ===== Site Header ===== */
.pp-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.pp-header__inner {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  @media screen and (max-width: 1200px) {
    padding-inline: 16px;
  }
  @media screen and (max-width: 960px) {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
.pp-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  img {
    object-fit: contain;
    @media screen and (max-width: 768px) {
      height: 24px;
      width: auto;
    }
  }
}
.pp-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  margin-left: auto;
  @media screen and (max-width: 960px) {
    display: none;
  }
}
.pp-lang-switch {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--bg-base);
}
.pp-lang-switch__item {
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  background: var(--bg-base);
  font-size: var(--fs-xs);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  gap: 4px;
  padding: 6px 16px;
  white-space: nowrap;
  text-decoration: none !important;
  &:hover {
    color: var(--c-mint-deep);
    background: #fafafa;
  }
  &.pp-lang-switch__item--active {
    background: #f6f6f6;
  }
  img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    vertical-align: middle;
  }
  span {
    line-height: 1;
  }
  +.pp-lang-switch__item {
    border-left: 1px solid var(--bg-warm-deep);
  }
}
.pp-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  @media screen and (max-width: 1200px) {
    gap: 16px;
  }
  a {
    color: var(--text-primary);
    font-size: var(--fs-md);
    font-weight: var(--weight-bold);
    line-height: 1.55;
    text-decoration: none !important;
    position: relative;
    &::after {
      content: "";
      position: absolute;
      top: -12px;
      left: 0;
      right: 0;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      margin-inline: auto;
      background: var(--c-mint-deep);
      scale: 0;
      transition: var(--transition-base);
    }
    &:hover {
      color: var(--c-mint-deep);
      &::after {
        scale: 1.3;
      }
    }
  }
  .pp-btn--download {
    font-size: var(--fs-md);
    font-weight: var(--weight-bold);
    background: var(--c-mint);
    color: var(--text-inverse);
    box-shadow: 0 4px 0 var(--c-mint-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 24px;
    text-decoration: none;
    border-radius: 50rem;
    &:hover {
      transform: translateY(2px);
      color: var(--text-inverse);
      &:after {
        display: none;
      }
    }
    span {
      text-decoration: none !important;
    }
    svg {
      width: 16px;
      height: 16px;
    }
  }
}
.pp-hamburger {
  display: none;
  border-radius: var(--r-md);
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  @media (max-width: 960px) {
    display: inline-flex;
  }
}
.pp-lang-switch--mobile {
  align-self: flex-start;
  margin-bottom: 12px;
  border-top: 1px solid #eee;
  border-radius: 8px;
}
.pp-mobile-nav .pp-lang-switch__item {
  padding: 8px 12px;
  border-radius: 0;
  font-size: 12px;
}


/* ===== Mobile nav drawer (controlled by index.js) ===== */
.pp-mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 22, 0.55);
  backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  justify-content: flex-end;
  &.pp-mobile-nav--open {
    opacity: 1;
    pointer-events: auto;
    .pp-mobile-nav__panel {
      transform: translateX(0);
    }
  }
}
.pp-mobile-nav__panel {
  width: min(90%, 360px);
  background: var(--bg-base);
  padding: 8px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.16);
  .pp-footer__nav {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .pp-footer__nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px dashed #2ebcb3;
    text-decoration: none !important;
    color: var(--text-primary);
    &:last-child {
      border-bottom: none;
    }
    &:hover {
      color: var(--c-mint-deep);
    }
  }
  .pp-footer__nav-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: var(--weight-bold);
    line-height: 1.6;
  }
  .pp-footer__nav-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
  }
}
.pp-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  span {
    font-weight: var(--weight-bold);
    font-size: var(--fs-xs);
    color: var(--text-muted);
  }
}
.pp-mobile-nav__close {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  .pp-icon {
    width: 18px;
    height: 18px;
    fill: var(--c-mint);
  }
}



/* ===== Layout ===== */
.pp-container {
  width: 100%;
  max-width: 1180px;
  padding: 0 16px;
  margin-inline: auto;
  @media (max-width: 768px) {
    max-width: 480px;
  }
}

/* ===== Page head (contact, terms, privacy, etc.) ===== */
.pp-page-head {
  padding: 56px 0;
  text-align: center;
  @media (max-width: 768px) {
    padding: 40px 0;
  }
  .pp-page-head__inner {
    max-width: var(--container-max);
    width: 100%;
    padding-inline: 16px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .pp-page-head__title {
    font-size: var(--fs-3xl);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    @media (max-width: 960px) {
      font-size: 30px;
    }
    @media (max-width: 768px) {
      font-size: var(--fs-2xl);
    }
  }
  .pp-page-head__lead {
    max-width: 560px;
    margin-inline: auto;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.9;
  }
}


/* ===== Shared section head ===== */
.pp-section-head {
  color: var(--text-primary);
  text-align: center;
}
.pp-section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  background: var(--c-mint-soft);
  color: var(--c-mint);
  font-size: clamp(var(--fs-sm), 0.5vw + 12px, var(--fs-md));
  font-weight: var(--weight-extra-bold);
  line-height: 1.2;
  margin-bottom: 0;
  @media (max-width: 768px) {
    padding: 8px 24px;
  }
  + .pp-section-head__title {
    margin-top: clamp(var(--fs-xs), 0.5vw + 12px, var(--fs-md));
  }
}
.pp-section-head__eyebrow--download {
  background: rgba(46, 188, 179, 0.2);
  color: #2ebcb3;
}
.pp-section-head__title {
  font-size: clamp(var(--fs-2xl), 2vw + 16px, var(--fs-5xl));
  font-weight: var(--weight-extra-bold);
  line-height: 1.3;
  .pp-section-head__title-accent {
    color: var(--c-mint);
  }
  + .pp-section-head__lead {
    margin-top: clamp(var(--fs-sm), 0.5vw + 12px, var(--fs-md));
  }
}
.pp-section-head__lead {
  font-size: clamp(var(--fs-sm), 0.5vw + 12px, var(--fs-md));
  font-weight: var(--weight-medium);
  line-height: 1.8;
  margin-bottom: 0;
  @media (max-width: 768px) {
    font-size: clamp(var(--fs-xs), 0.5vw + 14px, var(--fs-sm));
    br {
      display: none;
    }
  }
}


/* ===== Shared CTA (footer / landing hero / download) ===== */
.pp-footer,
.pp-hero,
.pp-download {
  .pp-cta-group {
    display: flex;
    gap: 12px;
    align-items: center;
    a:hover {
      opacity: 0.7;
    }
    @media (max-width: 960px) {
      justify-content: center;
      gap: 8px;
      margin-inline: auto;
    }
  }
  .pp-cta-group--center {
    justify-content: center;
    width: 100%;
  }
  .pp-cta-group__store-link {
    display: block;
    flex-shrink: 0;
    line-height: 0;
    text-decoration: none !important;
    height: 50px;
    img {
      display: block;
      height: 100%;
      object-fit: contain;
    }
    &:hover {
      opacity: 0.88;
    }
  }
  .pp-cta-group__android-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 32px;
    background: var(--bg-base);
    border: 2px solid var(--text-primary);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    white-space: nowrap;
    img {
      flex-shrink: 0;
    }
  }
}


/* ===== Shared nav-list pattern (footer / contact sidebar / mobile nav) =====
 * Top-level rules so the same icon + label + dashed divider + chevron list
 * pattern can be reused outside the footer (e.g. .pp-form__side-stack).
 * Mobile nav overrides these via more-specific selectors above.
 */
.pp-footer__nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
}
.pp-footer__nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed #2ebcb3;
  text-decoration: none !important;
  color: var(--text-primary);
  &:last-child {
    border-bottom: none;
  }
  &:hover {
    color: var(--c-mint-deep);
  }
}
.pp-footer__nav-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-md);
  font-weight: var(--weight-bold);
  line-height: 1.6;
}
.pp-footer__nav-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* ===== Footer ===== */
.pp-footer {
  position: relative;
  z-index: 1;
  margin: 120px auto;
  width: 100%;
  @media (max-width: 768px) {
    margin: 64px auto;
  }
  .pp-footer__card {
    background: var(--bg-base);
    border-radius: 32px;
    padding: 64px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 56px;
    @media (max-width: 960px) {
      flex-direction: column;
      border-radius: 16px;
      padding: 48px 16px;
      gap: 32px;
      border-radius: 16px;
    }
  }
  .pp-footer__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    @media (max-width: 960px) {
      flex-direction: column;
      align-items: center;
      gap: 32px;
    }
  }
  .pp-footer__brand {
    display: flex;
    flex-direction: column;
    gap: clamp(var(--fs-sm), 0.5vw + 12px, var(--fs-md));
    max-width: 500px;
  }
  .pp-footer__logo {
    display: inline-flex;
    line-height: 0;
    text-decoration: none !important;
    img {
      height: 40px;
      object-fit: contain;
    }
  }
  .pp-footer__desc {
    font-size: clamp(var(--fs-xs), 0.5vw + 12px, var(--fs-md));
    font-weight: var(--weight-bold);
    line-height: 1.8;
    color: var(--text-primary);
  }
  .pp-footer__divider {
    border: 0;
    border-top: 1px solid var(--border-light);
    margin: 0;
  }
  .pp-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    @media (max-width: 960px) {
      flex-direction: column-reverse;
    }
  }
  .pp-footer__copy {
    font-size: var(--fs-xs);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
  }
  .pp-footer__meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    @media (max-width: 960px) {
      justify-content: center;
    }
    a {
      font-size: var(--fs-xs);
      font-weight: var(--weight-bold);
      color: var(--text-primary);
      text-decoration: none !important;
      &:hover {
        color: var(--c-mint-deep);
      }
    }
  }
}
.pp-lang-switch--footer {
  border-radius: var(--r-sm);
  .pp-lang-switch__item {
    padding: 6px 12px;
    &.pp-lang-switch__item--active {
      background: #f6f6f6;
    }
  }
}


.display-block-pc {
  display: block;
  @media (max-width: 768px) {
    display: none;
  }
}
.display-block-sp {
  display: none;
  @media (max-width: 768px) {
    display: block;
  }
}
.display-flex-pc {
  display: flex;
  @media (max-width: 768px) {
    display: none;
  }
}
.display-flex-sp {
  display: none;
  @media (max-width: 768px) {
    display: flex;
  }
}
.display-inline-flex-pc {
  display: inline-flex;
  @media (max-width: 768px) {
    display: none;
  }
}
.display-inline-flex-sp {
  display: none;
  @media (max-width: 768px) {
    display: inline-flex;
  }
}