/* eSIM GATE お問い合わせ / サンクス / プライバシーポリシー */

body.is-subpage {
  background: #f7f7f7;
}

body.is-subpage .header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

body.is-subpage .header__inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 12px 40px;
}

body.is-subpage .footer {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  margin-top: auto;
}

/* ---------- 共通サブページ ---------- */
.subpage {
  padding: 48px 20px 72px;
}

.subpage__inner {
  max-width: 720px;
  margin: 0 auto;
}

.subpage__ttl {
  /* Typekitは後読みのため、太字指定だと一瞬フォントが切り替わって見える。
     LPのセクション見出しと同様、最初から使える Noto Sans JP の太字に統一する */
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.06em;
  text-align: center;
  color: #222;
  margin: 0 0 12px;
}

/* サンクス／プライバシー：タイトル下の余白を、上（.subpage の padding-top）と同じにする */
.is-thanks .subpage__ttl,
.is-privacy .subpage__ttl {
  margin-bottom: 48px;
}

.subpage__lead {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 32px;
}

.subpage__panel {
  background: #fff;
  padding: 40px 36px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(38, 63, 168, 0.08);
}

.subpage__back {
  margin-top: 32px;
  text-align: center;
}

.subpage__back a,
.contact-form__submit,
.thanks__btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 240px;
  height: 52px;
  padding: 0 48px 0 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(#244eff 0%, #122780 100%);
  box-shadow: 5px 5px 21px rgba(38, 63, 168, 0.35);
  font-family: "a-otf-ud-shin-go-pr6n", "Noto Sans JP", sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.subpage__back a::after,
.contact-form__submit::after,
.thanks__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url("../img/ico_arrow-right.svg") no-repeat center center;
  background-size: contain;
}

/* ---------- フォーム ---------- */
.contact-alert {
  background: #fff5f5;
  border: 1px solid #f0b4b4;
  color: #b42318;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
}

.contact-alert ul {
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
}

.contact-form__row {
  margin-bottom: 20px;
}

.contact-form__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.contact-form__required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #244eff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.contact-form__optional {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #b5b5b5;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 12px 14px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  color: #222;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: #244eff;
  box-shadow: 0 0 0 3px rgba(36, 78, 255, 0.15);
}

.contact-form__input.is-error,
.contact-form__textarea.is-error {
  border-color: #d92d20;
}

.contact-form__textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}

.contact-form__hint {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

.contact-form__error {
  display: block;
  margin-top: 6px;
  color: #b42318;
  font-size: 12px;
}

.contact-form__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 28px;
  font-size: 14px;
  line-height: 1.6;
}

.contact-form__agree input {
  margin-top: 4px;
  flex-shrink: 0;
}

.contact-form__agree a {
  color: #244eff;
  text-decoration: underline;
}

.contact-form__actions {
  text-align: center;
}

/* honeypot: 人間には見せない */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- サンクス ---------- */
.thanks__text {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  text-align: left;
  margin: 0 0 8px;
}

.thanks__text + .thanks__text {
  margin-top: 16px;
}

.thanks__actions {
  margin-top: 36px;
  text-align: center;
}

/* ---------- プライバシー ---------- */
.privacy-body {
  font-size: 14px;
  line-height: 1.9;
  color: #333;
}

.privacy-body > p {
  margin: 0 0 24px;
}

.privacy-body h2 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e5e5;
}

.privacy-body ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.privacy-body li {
  margin: 6px 0;
}

/* 第3条など：(1)(2)(3) 形式＋ぶら下げインデント */
.privacy-body ol.privacy-list-paren {
  list-style: none;
  padding-left: 0;
  counter-reset: privacy-paren;
}

.privacy-body ol.privacy-list-paren > li {
  position: relative;
  padding-left: 2.2em;
  margin: 8px 0;
}

.privacy-body ol.privacy-list-paren > li::before {
  counter-increment: privacy-paren;
  content: "(" counter(privacy-paren) ")";
  position: absolute;
  left: 0;
  width: 2em;
}

/* 第4条の後半：(6) から続行 */
.privacy-body ol.privacy-list-paren--from-6 {
  counter-reset: privacy-paren 5;
}

.privacy-body ol.privacy-list-paren ul {
  list-style: disc;
  margin: 8px 0 0;
  padding-left: 1.4em;
}

.privacy-body ol.privacy-list-paren ul li {
  position: static;
  padding-left: 0;
  margin: 4px 0;
}

.privacy-body ol.privacy-list-paren ul li::before {
  content: none;
}

.privacy-body .privacy-contact {
  background: #f7f7f7;
  padding: 16px 18px;
  margin-top: 12px;
  border-radius: 12px;
}

.privacy-contact__list {
  margin: 0;
}

.privacy-contact__row {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 8px 16px;
  align-items: start;
  margin: 0;
}

.privacy-contact__row + .privacy-contact__row {
  margin-top: 10px;
}

.privacy-contact__row dt {
  margin: 0;
  font-weight: 700;
  color: #222;
}

.privacy-contact__row dd {
  margin: 0;
  color: #333;
  word-break: break-word;
}

.privacy-contact__row dd a {
  color: #244eff;
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  body.is-subpage .header__inner {
    min-height: 56px;
    padding: 10px 20px;
  }

  .subpage {
    padding: 32px 16px 56px;
  }

  .subpage__ttl {
    font-size: 22px;
  }

  .is-thanks .subpage__ttl,
  .is-privacy .subpage__ttl {
    margin-bottom: 32px;
  }

  .subpage__panel {
    padding: 28px 18px;
  }

  .privacy-contact__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .privacy-contact__row + .privacy-contact__row {
    margin-top: 14px;
  }

  .subpage__back a,
  .contact-form__submit,
  .thanks__btn {
    min-width: 220px;
    height: 48px;
    font-size: 15px;
  }
}
