/* LP form pages — header / footer shell (glp- prefix, isolated from main site) */

.glp-form-page {
  --glp-color-white: #ffffff;
  --glp-color-text: #353332;
  --glp-color-blue: #2d60bf;
  --glp-color-muted: #64748b;
  --glp-color-footer: #676767;
  --glp-color-lang-bg: #f1f5f9;
  --glp-color-lang-border: #e2e8f0;
  --glp-font-sans: "Noto Sans JP", sans-serif;
  --glp-max-inner: 1280px;
  --glp-header-offset: 96px;
  margin: 0;
  color: var(--glp-color-text);
  font-family: var(--glp-font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: #fafafa;
}

.glp-form-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.glp-form-page a:not(.glp-btn) {
  color: inherit;
  text-decoration: none;
}

.glp-form-page a.glp-btn {
  text-decoration: none;
}

.glp-shell {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.glp-wrap {
  width: 100%;
  max-width: var(--glp-max-inner);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Header */
.glp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px;
  background: var(--glp-color-white);
  transition: box-shadow 0.35s ease;
}

.glp-header.is-scrolled {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.glp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.glp-header__logo {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.glp-header__logo a {
  display: block;
  transition: opacity 0.2s;
}

.glp-header__logo a:hover {
  opacity: 0.6;
}

.glp-header__logo img {
  width: 280px;
  height: auto;
}

.glp-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.glp-lang {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  background: var(--glp-color-lang-bg);
  border: 1px solid var(--glp-color-lang-border);
  border-radius: 9999px;
}

.glp-lang__btn {
  border: 0;
  padding: 6px 14px;
  border-radius: 9999px;
  background: transparent;
  color: var(--glp-color-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6286;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.glp-lang__btn:not(.is-active):hover,
.glp-lang__btn:not(.is-active):focus-visible {
  background: rgba(247, 141, 35, 0.2);
}

.glp-lang__btn.is-active {
  background: linear-gradient(153deg, #f78d23 0%, #e87a0f 100%);
  color: var(--glp-color-white);
}

.glp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  padding: 16px 32px;
  font-family: var(--glp-font-sans);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}

.glp-btn:hover {
  opacity: 0.88;
}

.glp-btn--blue,
.glp-form-page a.glp-btn--blue,
.glp-form-page a.glp-btn--blue:visited {
  background: var(--glp-color-blue);
  color: var(--glp-color-white);
  border: 2px solid var(--glp-color-blue);
  border-radius: 9999px;
  padding: 14px 28px;
  font-size: 19px;
}

.glp-btn--blue:hover,
.glp-form-page a.glp-btn--blue:hover {
  opacity: 1;
  background: var(--glp-color-white);
  color: var(--glp-color-blue);
}

.glp-header__cta {
  white-space: nowrap;
}

/* Main */
.glp-main {
  flex: 1;
  padding: 28px 0 48px;
}

.glp-main__inner {
  padding-top: 0;
  padding-bottom: 0;
}

/* Footer */
.glp-footer {
  padding: 40px 0;
  background: var(--glp-color-white);
  border-top: 1px solid #eee;
  margin-top: auto;
}

.glp-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  text-align: center;
}

.glp-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.glp-footer__nav a {
  color: var(--glp-color-footer);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.35s ease;
}

.glp-footer__nav a:hover {
  text-decoration-color: currentColor;
}

.glp-footer__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--glp-color-footer);
  font-size: 14px;
}

.glp-footer__info p {
  margin: 0;
}

.glp-footer__info p:first-child {
  font-size: 16px;
  font-weight: 500;
}

.glp-footer__info a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.35s ease;
}

.glp-footer__info a:hover {
  text-decoration-color: currentColor;
}

.glp-footer__copy {
  margin: 0;
  color: var(--glp-color-footer);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.072em;
}

@media screen and (max-width: 798px) {
  .glp-form-page {
    --glp-header-offset: 64px;
  }

  .glp-header {
    padding: 10px 20px;
  }

  .glp-header__logo img {
    width: clamp(140px, 34vw, 280px);
  }

  .glp-header__cta {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 101;
    width: 100%;
    border-radius: 0;
    padding: 18px 20px max(18px, env(safe-area-inset-bottom));
    font-size: 16px;
    box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.08);
  }

  .glp-form-page--has-cta {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

@media screen and (max-width: 480px) {
  .glp-lang {
    gap: 6px;
    padding: 3px;
    flex-shrink: 0;
  }

  .glp-lang__btn {
    padding: 4px 9px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
  }
}
