@charset "UTF-8";

/* ================================================================
   1. ベース・リセット
   ================================================================ */

body {
  background: #fff;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
  color: #333;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 100vw + calc(50% - 50vw) はスクロールバー分だけ横にはみ出し、縮小・リサイズ時に右に空白が見えることがあるため使わない */
body.kiznan-page main {
  max-width: none;
  width: 100% ;
}

/* ================================================================
   2. レイアウト
   ================================================================ */

.kiznan_top_area,
.kiznan_input_area {
  width: 840px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

/* ================================================================
   3. ページタイトル・見出し
   ================================================================ */

h1.pageTtl {
  margin: 50px 0;
  text-align: center;
}

h2 {
  margin: 40px 0 30px;
  font-weight: 600;
}

h3 {
  text-align: center;
}

p {
  font-size: 18px;
}

/* ================================================================
   4. トップページ（kiznan）
   ================================================================ */

/* MV：main を全幅にしたうえで 100% 伸縮（親 max-width に依存しない／横スクロールを避ける） */
@media screen and (min-width: 769px) {
  .mv_mv_kiznan {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .mv_mv_kiznan .mv_inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .mv_mv_kiznan .mv_title {
    margin: 0;
  }

  .mv_mv_kiznan .mv_title picture,
  .mv_mv_kiznan .mv_title img {
    display: block;
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 768px) {
  .mv_mv_kiznan .mv_title picture,
  .mv_mv_kiznan .mv_title img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.kiznan_section_ttl {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  padding: 12px 7px;
  margin: 35px 0;
  border-radius: 50px;
  background: #01aefb;
}

.kiznan_attention {
  color: #ff0000;
}

.kiznan_faq a {
  text-decoration: underline;
}

.kiznan_faq a:hover {
    text-decoration: none;
}

.kiznan_sample {
  border: solid 3px #01aefb;
  border-radius: 20px;
  padding: 50px;
  background-color: #fff;
  margin: 50px 0;
}

.kiznan_sample h3 {
	font-size: 25px;
  padding-bottom: 40px;
}

.kiznan_sample img {
  max-width: 370px;
  width: 100%;
  margin: 0 auto;
  display: block;
}

.kiznan_btn_sky {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.kiznan_btn_sky a {
  background: #01aefb;
  color: #fff;
  padding: 20px 60px 20px 30px;
  font-size: 22px;
  display: inline-block;
  border-radius: 10px;
  position: relative;
  border: 3px solid transparent;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.kiznan_btn_sky a::before {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-color: transparent transparent transparent #01aefb;
  border-style: solid;
  border-width: 5px 0 5px 6px;
  top: 50%;
  right: 28px;
  margin-top: -5px;
  z-index: 1;
  transition: border-color 0.3s ease;
}

.kiznan_btn_sky a::after {
  position: absolute;
  content: "";
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 100%;
  top: 50%;
  right: 20px;
  margin-top: -12px;
  transition: background 0.3s ease;
}

.kiznan_btn_sky a:hover {
  color: #01aefb;
  background: #fff;
  border-color: #01aefb;
}

.kiznan_btn_sky a:hover::before {
  border-left-color: #fff;
}

.kiznan_btn_sky a:hover::after {
  background: #01aefb;
}

/* ================================================================
   5. 入力ページ（input）
   ================================================================ */

.kiznan_profcard_form p {
  font-size: 18px;
  line-height: 1.8;
}

.kiznan_lead {
  margin-bottom: 100px;
  font-size: 18px;
  line-height: 1.8;
}

.input_lead {
  padding-left: 20px;
}

.input_lead li {
  list-style: disc;
}

.kiznan_form_row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.kiznan_label {
  flex: 0 0 15%;
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.8;
}

.kiznan_label:last-of-type {
  flex: 0 0 24.4%;
}

.required {
  font-size: 13px !important;
  font-weight: 600;
  margin-top: 0;
  padding: 7px 13px;
  border-radius: 5px;
  color: #fff;
  background: #ff0033;
}

.kiznan_field {
  flex: 1 1 auto;
  min-width: 0;
}

.kiznan_field input[type="text"],
.kiznan_field select {
  width: 100%;
  height: 50px;
  font-size: 1em;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.kiznan_field .kiznan_hint {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.kiznan_hint {
  font-size: 14px !important;
  color: #444;
  margin: 0 0 0 28%;
}

.kiznan_download_guide {
  text-align: left;
  padding: 40px;
  background: #e6f7ff;
  border-radius: 20px;
}

.mw_wp_form_input select {
  appearance: none;
  background: url(/wp/img/reading_notes/top/angles-down-solid.svg) right 10px center / 1em auto no-repeat, #fff;
}


@media screen and (min-width: 768px) {
  .kiznan_profcard_form .mw_wp_form_confirm .kiznan_field:has(input[name="nickname"]),
  .kiznan_profcard_form .mw_wp_form_confirm .kiznan_field:has(input[name="q1"]),
  .kiznan_profcard_form .mw_wp_form_confirm .kiznan_field:has(input[name="q2"]),
  .kiznan_profcard_form .mw_wp_form_confirm .kiznan_field:has(input[name="a1"]),
  .kiznan_profcard_form .mw_wp_form_confirm .kiznan_field:has(input[name="a2"]),
  .kiznan_profcard_form .mw_wp_form_confirm .kiznan_field:has(input[name="memo"]),
  .kiznan_profcard_form form:has(.btn_back) .kiznan_field:has(input[name="nickname"]),
  .kiznan_profcard_form form:has(.btn_back) .kiznan_field:has(input[name="q1"]),
  .kiznan_profcard_form form:has(.btn_back) .kiznan_field:has(input[name="q2"]),
  .kiznan_profcard_form form:has(.btn_back) .kiznan_field:has(input[name="a1"]),
  .kiznan_profcard_form form:has(.btn_back) .kiznan_field:has(input[name="a2"]),
  .kiznan_profcard_form form:has(.btn_back) .kiznan_field:has(input[name="memo"]) {
    font-size: 18px !important;
  }
}

/* ================================================================
   6. フォームボタン
   ================================================================ */

.kiznan_form_btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.kiznan_form_btns input[name="back"],
.kiznan_form_btns input[name="submit"] {
  display: none;
}

.mw_wp_form_confirm .kiznan_form_btns input[name="confirm"],
.mw_wp_form.mw_wp_form_confirm .kiznan_form_btns input[name="confirm"] {
  display: none;
}

.mw_wp_form_confirm .kiznan_form_btns input[name="back"],
.mw_wp_form_confirm .kiznan_form_btns input[name="submit"],
.mw_wp_form.mw_wp_form_confirm .kiznan_form_btns input[name="back"],
.mw_wp_form.mw_wp_form_confirm .kiznan_form_btns input[name="submit"] {
  display: inline-block;
}

.kiznan_form_btns input[name="mw-wp-form-confirm"],
.kiznan_form_btns input[name="mw-wp-form-submit"],
.kiznan_form_btns input[name="submitConfirm"],
.kiznan_form_btns input[name="submit"],
.kiznan_form_btns input.btn_submit,
.kiznan_form_btns input.kiznan_btn_sky {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}

.kiznan_btn_wrap {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.kiznan_btn_wrap:not(:has(input[name="back"])):not(:has(input[name="mw-wp-form-back"])):not(:has(input.btn_back)) {
  width: 430px;
  max-width: 100%;
}

.kiznan_btn_wrap:has(input[name="back"]),
.kiznan_btn_wrap:has(input[name="mw-wp-form-back"]),
.kiznan_btn_wrap:has(input.btn_back) {
  width: 280px;
  max-width: 100%;
}

.kiznan_form_btns input[name="mw-wp-form-confirm"],
.kiznan_form_btns input[name="mw-wp-form-submit"],
.kiznan_form_btns input[name="submitConfirm"],
.kiznan_form_btns input[name="submit"],
.kiznan_form_btns input.btn_submit,
.kiznan_form_btns input.kiznan_btn_sky {
  display: block;
  width: 100%;
  padding: 20px 60px 20px 30px;
  font-size: 22px;
  color: #fff;
  background: #01aefb;
  border: 3px solid transparent;
  border-radius: 10px;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.kiznan_btn_wrap::before {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-color: transparent transparent transparent #01aefb;
  border-style: solid;
  border-width: 5px 0 5px 6px;
  top: 50%;
  right: 28px;
  margin-top: -5px;
  z-index: 1;
  transition: border-color 0.3s ease;
}

.kiznan_btn_wrap::after {
  position: absolute;
  content: "";
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  right: 20px;
  margin-top: -12px;
  transition: background 0.3s ease;
}

.kiznan_btn_wrap:hover input {
  color: #01aefb;
  background-color: #fff;
  border-color: #01aefb;
}

.kiznan_btn_wrap:hover::before {
  border-left-color: #fff;
}

.kiznan_btn_wrap:hover::after {
  background: #01aefb;
}

/* 戻るボタン用ラッパー：矢印・丸を非表示、ホバー時もグレーのまま */
.kiznan_btn_wrap:has(input[name="back"])::before,
.kiznan_btn_wrap:has(input[name="mw-wp-form-back"])::before,
.kiznan_btn_wrap:has(input.btn_back)::before,
.kiznan_btn_wrap:has(input[name="back"])::after,
.kiznan_btn_wrap:has(input[name="mw-wp-form-back"])::after,
.kiznan_btn_wrap:has(input.btn_back)::after {
  display: none;
}

.kiznan_btn_wrap:has(input[name="back"]):hover input,
.kiznan_btn_wrap:has(input[name="mw-wp-form-back"]):hover input,
.kiznan_btn_wrap:has(input.btn_back):hover input {
  color: #444;
  background-color: #e5e5e5;
  border-color: transparent;
  opacity: 0.7;
}

.kiznan_form_btns input[name="mw-wp-form-back"],
.kiznan_form_btns input[name="back"],
.kiznan_form_btns input.btn_back {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: bold;
  cursor: pointer;
  max-width: 280px;
  width: 100%;
  padding: 20px 20px;
  font-size: 22px;
  color: #444;
  background: #e5e5e5;
  background-image: none;
  border: none;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

.kiznan_form_btns input[name="mw-wp-form-back"]:hover,
.kiznan_form_btns input[name="back"]:hover,
.kiznan_form_btns input.btn_back:hover {
  opacity: 0.7;
}

/* ================================================================
   7. 完了画面（complete）
   ================================================================ */

.kiznan_back {
  margin-top: 28px;
}

.kiznan_back a {
  text-decoration: none;
}

.kiznan_complete {
  text-align: center;
  padding: 40px 0;
}

.kiznan_complete .kiznan_lead {
  margin-bottom: 50px;
  text-align: left;
}

.kiznan_title {
  margin-bottom: 24px;
  font-size: 32px;
  line-height: 1.4;
}

.kiznan_download {
  margin-top: 25px;
}

.kiznan_note {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.8;
}

.kiznan_links p + p {
  margin-top: 12px;
}

.btn_sub {
  text-decoration: underline;
}

.btn_sub:hover {
  text-decoration: none;
}

/* ================================================================
   8. レスポンシブ（767px以下）
   ================================================================ */

@media screen and (max-width: 767px) {
  .kiznan_top_area,
  .kiznan_input_area {
    width: 100%;
    padding: 0 15px 60px;
  }

  h1.pageTtl {
    margin: 30px 0;
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
    text-align: center;
  }

  p {
    font-size: 16px;
  }

  .kiznan_section_ttl {
    font-size: 18px;
    padding: 10px 7px;
    margin: 24px 0;
  }

  .kiznan_sample {
    padding: 24px 15px;
    margin: 30px 0;
    border-width: 2px;
  }

  .kiznan_sample h3 {
    padding-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
  }

  .kiznan_sample img {
    max-width: 240px;
  }

  .kiznan_btn_sky a {
    padding: 20px 40px 20px 20px;
    font-size: 17px;
  }

  .kiznan_btn_sky a::before {
    right: 20px;
  }

  .kiznan_btn_sky a::after {
    width: 18px;
    height: 18px;
    right: 14px;
    margin-top: -9px;
  }

  .kiznan_profcard_form p {
    display: inline-block;
    font-size: 16px;
    line-height: 1.7;
  }

  .kiznan_title {
    font-size: 24px;
    line-height: 1.5;
  }

  .kiznan_lead {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .kiznan_note {
    font-size: 14px;
    line-height: 1.7;
  }

  .kiznan_hint {
    margin: 6px 0 0;
    font-size: 13px;
  }

  .required {
    font-size: 11px !important;
    padding: 2px 5px;
  }

  .kiznan_form_row {
    display: block;
  }

  .kiznan_label {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.7;
  }

  .kiznan_field .kiznan_hint {
    margin: 6px 0 0;
    font-size: 13px;
  }

  .kiznan_btn_wrap {
    max-width: 100%;
  }

  .kiznan_form_btns input[name="mw-wp-form-confirm"],
  .kiznan_form_btns input[name="mw-wp-form-submit"],
  .kiznan_form_btns input[name="mw-wp-form-back"],
  .kiznan_form_btns input[name="submitConfirm"],
  .kiznan_form_btns input[name="submit"],
  .kiznan_form_btns input[name="back"],
  .kiznan_form_btns input.btn_submit,
  .kiznan_form_btns input.btn_back,
  .kiznan_form_btns input.kiznan_btn_sky {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 18px;
    padding: 20px 40px 20px 20px;
  }

  .kiznan_btn_wrap::before {
    right: 20px;
  }

  .kiznan_btn_wrap::after {
    width: 18px;
    height: 18px;
    right: 14px;
    margin-top: -9px;
  }

  .kiznan_form_btns input[name="mw-wp-form-back"],
  .kiznan_form_btns input[name="back"],
  .kiznan_form_btns input.btn_back {
    padding: 16px;
    font-size: 18px;
  }

  .kiznan_download_guide {
    padding: 20px;
    border-radius: 12px;
  }

  .kiznan_complete .kiznan_lead {
    margin-bottom: 30px;
  }

}
