@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

html {
  background: #fff;
}

body {
  width: 100%;
  min-width: 320px;
  background: #fff;
  margin: 0;
}
body form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
}
body main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
}

.header-line,
header,
#header,
#site-header,
.site-header,
#global-header,
.global-header {
  display: none !important;
}

section#title-block {
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
}
form section#title-block {
  -webkit-align-items: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}
section#title-block > h1 {
  display: none !important;
}
section#title-block > div:last-child {
  width: 100%;
  max-width: 688px;
  margin: 0 auto;
  padding-bottom: 60px;
  box-sizing: border-box;
}

#step {
  width: 100%;
  height: 100px;
  background: url('//public-d0.potaufeu.asahi.com/daily/common/img/logo.svg') no-repeat transparent;
  background-position: center 21px;
  background-size: 340px auto;
  box-sizing: border-box;
  margin: 0 0 94px;
  text-align: center;
  position: relative;
  order: -1;
  /* CMSベース由来の下線(border-bottom:1px #ccc)を除去（お名前上の謎ボーダー対策） */
  border-bottom: none !important;
}
#step > * {
  display: none !important;
}
#step::after {
  content: '';
  width: 100vw;
  height: 34px;
  background-color: #99d2f0;
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
}

@media screen and (max-width: 767px) {
  #step {
    height: 111px;
    background-size: 300px auto;
    background-position: center 20px;
    margin: 0;
  }
  #step::after {
    height: 5px;
    bottom: 25px;
  }
  section#title-block > div:last-child {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
  /* Chrome: intro が section#title-block > div:last-child の中に入り、その div の padding-bottom(60px)が
     .ds-contact-desc の下余白と二重になる。下余白は .ds-contact-desc に集約するためこちらは 0 にする
     （Firefox は intro が title-block 外に出るため一致せず #step 等に無影響）。 */
  section#title-block > div:last-child:has(.ds-contact-desc) {
    padding-bottom: 0;
  }
  /* 見出し・紹介文の左右余白と下側の余白はクラスへ直接付与する。
     Firefox では本文が section#title-block の外に出る DOM 構造になり、
     構造セレクタ（> div:last-child）では一致せず余白が付かないため。 */
  .ds-contact-desc {
    padding-left: 15px;
    padding-right: 15px;
    /* Figma SP: 紹介文末→お名前(Q1) = 62px。最後の箇条書きの margin-bottom 16px と合算されるため 46px。 */
    padding-bottom: 46px;
    box-sizing: border-box;
  }
}

.cd-multi-steps {
  display: none;
}

.ds-contact-desc {
  font-size: 16px;
  color: #222;
  line-height: 1.8;
  letter-spacing: 0.16px;
  word-break: break-word;
  font-feature-settings: 'halt' 1;
}

/* SP では本文が section#title-block の外に出る DOM 構造になり #title-block 起点では一致しないため、
   親クラス .ds-contact-desc も受け口にする（:is の詳細度は #title-block と同じで PC の効き方は不変）。
   一致しないと CMS 側の 'PT Serif', Georgia, serif が残り、SP だけ書体が変わる。 */
form :is(#title-block, .ds-contact-desc) .ds-contact-desc__heading {
  font-family: 'PT Serif', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif !important;
  font-weight: bold !important;
  font-size: 22px !important;
  color: #99d2f0 !important;
  line-height: 1.8 !important;
  margin: 0 0 16px !important;
}
form #title-block .ds-contact-desc__intro {
  font-weight: bold !important;
  font-size: 16px !important;
  color: #222 !important;
  line-height: 1.8 !important;
  margin-bottom: 16px !important;
}
form #title-block .ds-contact-desc__item {
  font-size: 16px !important;
  color: #222 !important;
  line-height: 1.8 !important;
  margin-bottom: 16px !important;
}
form #title-block .ds-contact-desc__bullet {
  font-weight: 900 !important;
  color: #99d2f0 !important;
}

form .enquete {
  width: 688px;
  background: #f7f5f3;
  border-radius: 10px 10px 0 0;
  margin: 0 auto;
  padding: 17px;
  box-sizing: border-box;
}
/* 確認ページ: .center-button がない場合は角丸なし */
form:has(:is(.button-2set, .button-set)) .enquete {
  border-radius: 0;
}
.enquete dl {
  margin-bottom: 8px;
}
.enquete dl:last-child {
  margin-bottom: 0;
}
.enquete dd {
  font-size: 15px;
  color: #999;
  letter-spacing: 0.15px;
  font-feature-settings: 'halt' 1;
  padding: 8px 5px 16px;
  margin: 0;
}

@media screen and (max-width: 767px) {
  form .enquete {
    width: 100%;
    background: none;
    margin: 0;
    padding: 0 15px 80px;
    border-radius: 0;
  }
  /* フォーム同士（入力欄→次の設問）の間隔。Figma SP: 入力欄下端→次の設問ラベル = 32px。ラベル↔入力の詰めは維持する。 */
  form .enquete input[type='text'],
  form .enquete input[type='email'],
  form .enquete input[type='tel'] {
    margin-bottom: 32px;
  }
  /* textarea(Q3=最後の設問)は CMS 既定の下マージン(約35px)を打ち消す。下余白は .enquete padding-bottom(80px≒Figma 79px)が担う。 */
  form .enquete textarea {
    margin-bottom: 0 !important;
  }
}

.privacy {
  width: 688px;
  background: #f7f5f3;
  border: none;
  font-size: 0;
  margin: 0 auto;
  padding: 18px 35px;
  position: relative;
  box-sizing: border-box;
}
.privacy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 17px;
  right: 17px;
  bottom: 0;
  border: 2px solid #ccc;
  pointer-events: none;
  box-sizing: border-box;
}
.privacy a {
  color: #99d2f0;
  text-decoration: underline;
}
.privacy-checkbox {
  font-size: 16px;
  font-weight: bold;
  color: #222;
}
.ds-contact-terms {
  font-size: 14px;
  color: #999;
  line-height: 1.8;
  letter-spacing: 0.14px;
  word-break: break-word;
  font-feature-settings: 'halt' 1;
  margin-bottom: 16px;
}
.ds-contact-terms a {
  font-weight: 500;
}
.ds-br-sp {
  display: none;
}
@media screen and (max-width: 767px) {
  .ds-br-sp {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  .privacy {
    width: calc(100% - 30px);
    background: none;
    /* 下余白は「同意ボックス→確認ボタン」間の間隔（構造頼みの .center-button padding-top の代替） */
    margin: 0 15px 60px;
    padding: 18px;
    border: 2px solid #ccc;
  }
  .privacy::before {
    display: none;
  }
}

form .enquete fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  color: #222;
  font-family: 'PT Serif', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  font-weight: bold;
  font-size: 20px;
}
.question-block label {
  color: #231815;
}
.question {
  color: #99d2f0;
  font-family: 'PT Serif', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  font-weight: bold;
  font-size: 20px;
}

/* 入力欄（Figma再現: 白背景・3px #ccc枠・角丸6px） */
form .enquete input[type='text'],
form .enquete input[type='email'],
form .enquete input[type='tel'],
form .enquete textarea {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  background: #fff !important;
  border: 3px solid #ccc !important;
  border-radius: 6px !important;
  color: #222;
  font-size: 16px;
  font-feature-settings: 'halt' 1;
  box-sizing: border-box !important;
}
form .enquete input[type='text'],
form .enquete input[type='email'],
form .enquete input[type='tel'] {
  height: 42px;
  padding: 0 12px;
}
form .enquete textarea {
  height: 126px;
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}

.Comment {
  margin: 1rem 0 0;
}
.Comment p {
  color: #231815;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  padding: 0;
}

@media screen and (max-width: 767px) {
  .Comment {
    margin: 0;
  }
  .Comment p {
    font-size: 0.9rem;
    margin: 0 0 5px;
  }
}

.check-box label {
  color: #222;
  font-weight: 700;
}
/* 「上記について同意します」の必須ラベルを同意文テキストと縦中央で揃える
   （既定は checkbox 併設のインライン揃いで必須が約5px下にズレるため補正） */
.check-box .required {
  position: relative;
  top: -5px;
}
input[type='checkbox']:checked + label::after {
  border-left: 4px solid #99d2f0;
  border-bottom: 4px solid #99d2f0;
}

.error-text {
  background: transparent;
  color: #d72f12;
  font-weight: 700;
  margin-bottom: 5px;
  padding: 0;
}

.center-button {
  width: 688px;
  background: #f7f5f3;
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
  padding: 38px 0 22px;
  text-align: center;
  box-sizing: border-box;
}
.center-button .btn,
button.btn.Submit,
#submit_button {
  -webkit-appearance: none !important;
  appearance: none !important;
  background-color: #99d2f0 !important;
  border: 1px solid #222;
  box-shadow: 2px 2px 0 #222;
  border-radius: 3px;
  color: #222;
  /* 「確認画面へ」は会員登録ボタンと同じ Noto Sans JP に合わせる */
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  font-weight: bold;
  font-style: normal;
  font-size: 20px;
  text-align: center;
  text-decoration: none;
  padding: 15px 40px;
  min-width: 330px;
  margin: 0 auto;
  box-sizing: border-box;
  cursor: pointer !important;
}

@media screen and (max-width: 767px) {
  .center-button {
    width: 100%;
    background: none;
    border-radius: 0;
    /* 上余白は .privacy の margin-bottom へ移設（Firefox ではボタンが .center-button 外に出る DOM になり
       構造頼みの padding-top が効かないため）。ここは左右・下のみ。 */
    padding: 0 20px 30px;
  }
  .center-button .btn,
  button.btn.Submit,
  #submit_button {
    width: 330px !important;
    min-width: 0;
    padding: 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-align: center !important;
    font-weight: bold !important;
  }
}

/* 確認ページのブラウザ戻るボタン警告テキストを非表示 */
section#title-block > p,
.confirm-attention,
.caution-back,
.back-caution {
  display: none !important;
}

/* 確認ページ ボタンエリア */
div:is(.button-2set, .button-set) {
  width: 420px !important;
  margin: 60px auto 80px !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  gap: 20px !important;
  float: none !important;
  overflow: visible !important;
}

/* .cfix クリアフィックスの ::before/::after が flex 子として入り、gap の分だけ 2 ボタンが中央に載らず片寄るため無効化（flex 内では clearfix 不要）。 */
div:is(.button-2set, .button-set)::before,
div:is(.button-2set, .button-set)::after {
  display: none !important;
}

/* 確認ページ 両ボタン共通 */
div:is(.button-2set, .button-set) button.btn:not(.Submit) {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  display: block !important;
  float: none !important;
  margin: 0 !important;
  width: 200px !important;
  min-width: 0 !important;
  max-width: 200px !important;
  font-family: 'PT Serif', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif !important;
  font-size: 20px !important;
  font-weight: bold !important;
  padding: 10px 15px !important;
  border-radius: 3px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  cursor: pointer !important;
  line-height: normal !important;
  flex-shrink: 0 !important;
  -webkit-flex-shrink: 0 !important;
}

/* 送信するボタン（水色） */
div:is(.button-2set, .button-set) button[type="submit"] {
  background: #99d2f0 !important;
  background-color: #99d2f0 !important;
  color: #222 !important;
  border: 1px solid #222 !important;
  box-shadow: 2px 2px 0 #222 !important;
  order: 2 !important; /* DOM順に依存せず送信を右へ（Firefoxは逆順） */
}

/* 修正するボタン（白） */
div:is(.button-2set, .button-set) button.boader-button,
button#back_button {
  background: #fff !important;
  background-color: #fff !important;
  color: #222 !important;
  border: 1px solid #222 !important;
  box-shadow: 2px 2px 0 #222 !important;
  order: 1 !important; /* DOM順に依存せず修正を左へ（Firefoxは逆順） */
}

@media screen and (max-width: 767px) {
  div:is(.button-2set, .button-set) {
    width: auto !important;
    -ms-flex-direction: row !important;
    -webkit-box-direction: normal !important;
    -webkit-box-orient: horizontal !important;
    flex-direction: row !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    padding: 0 !important;
    gap: 15px !important;
    margin: 30px auto 60px !important;
  }
  /* Firefox: 「確認画面へ」(.Submit)は単独ボタンだが .button-set に入るため、
     確認ページ用の2ボタン flex レイアウトを打ち消し、.center-button 相当の中央寄せブロックへ戻す */
  div:is(.button-2set, .button-set):has(button.Submit) {
    display: block !important;
    width: auto !important;
    padding: 0 20px 30px !important;
    margin: 0 !important;
    text-align: center !important;
  }
  div:is(.button-2set, .button-set) button.btn:not(.Submit) {
    width: 140px !important;
    min-width: 0 !important;
    max-width: 140px !important;
    padding: 10px 15px !important;
    font-size: 18px !important;
  }
}

.module-thanks {
  width: 100%;
  max-width: 688px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  color: #222;
  font-size: 16px;
  letter-spacing: 0.16px;
  word-break: break-word;
  font-feature-settings: 'halt' 1;
}
.module-thanks__figure {
  display: none !important;
}
.module-thanks p {
  display: block !important;
  font-size: 16px !important;
  color: #222 !important;
  line-height: 1 !important;
  margin: 0 0 16px !important;
}
.module-thanks p:last-child {
  margin-bottom: 0 !important;
}
.module-thanks p.module-thanks__title {
  font-weight: bold !important;
}
.module-thanks p.module-thanks__spacer {
  line-height: 1.8 !important;
}
/* 本文の折返し行間を確保（PCは既定 line-height:1 で密着するため。SPは元々1.8） */
.module-thanks p.module-thanks__body {
  line-height: 1.8 !important;
}

.module-button {
  width: 100%;
  /* Figma再現: 本文→ボタン、ボタン→フッター(デイリーロゴ)の余白を確保（密着対策） */
  margin: 100px auto 140px;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
}
.module-button a {
  display: inline-flex;
  width: 330px;
  min-height: 58px;
  padding: 15px;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  border: 1px solid #222;
  border-radius: 3px;
  background: #99d2f0;
  box-shadow: 2px 2px 0 #222;
  color: #222 !important;
  font-family: 'PT Serif', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 20px;
  font-weight: bold;
  font-style: normal;
  line-height: normal;
  text-align: center;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}
.module-button a:hover {
  opacity: 0.8;
}
.module-button a span {
  display: inline-block;
  padding: 0;
  position: static;
}
.module-button a::after {
  display: none !important;
}
.module-button a span::before {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .module-thanks {
    /* SPは全幅のため左右に余白を付与（本文が左端に密着する対策） */
    padding: 44px 15px 0;
  }
  .module-thanks p.module-thanks__spacer {
    display: none !important;
  }
  .module-thanks p.module-thanks__body {
    line-height: 1.8 !important;
  }
  .module-button {
    margin: 40px auto 70px;
  }
  .module-button a {
    width: 330px;
    max-width: calc(100% - 30px);
    min-width: 0;
    padding: 15px;
    font-size: 20px;
  }
}

footer {
  display: none !important;
}

.layout-footer {
  background: #fff;
  text-align: center;
  padding: 0 0 30px;
}
/* PC: デイリーロゴとグレー背景(フォーム)が詰まる対策。両者の間に余白を確保（Figma再現・SPは対象外） */
@media screen and (min-width: 768px) {
  .layout-footer {
    padding-top: 52px;
  }
}
.layout-footer::before {
  content: '';
  display: block;
  width: 100px;
  height: 24px;
  background: url('//public-d0.potaufeu.asahi.com/daily/common/img/daily-logo.png') no-repeat center;
  background-size: 100px auto;
  margin: 0 auto 20px;
}
.module-footer-copyright {
  display: block !important;
  font-size: 12px;
  color: #222;
  line-height: 23.8px;
  text-align: center;
}
