@charset "UTF-8";
@import url(https://fonts.googleapis.com/css?family=Noto+Sans+JP:500,700&display=swap&subset=japanese);

/* =============================================
 全体設定
============================================= */

html {
  background-color: #ccc
}

html * {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  max-width: 600px
}

body {
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  background-color: #FBFFEA;
  color: #2B2B2B;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  position: relative;
}

html,
body {
  min-height: 100vh;
}

.hbspt-form {
  display: none;
}

h1 {
  height: 47px;
  margin: 0;
  font-weight: normal;
}

.header_text {
  text-align: left;
  font-size: 12px;
  display: inline-block;
  vertical-align: top;
}

/* ボタンの装飾リセット */
button {
  padding: 0;
  border: none;
  outline: none;
  font: inherit;
  color: inherit;
  background: none
}

html {
  line-height: 1
}

ol,
ul {
  list-style: none
}

table {
  border-collapse: collapse;
  border-spacing: 0
}

caption,
td,
th {
  text-align: left;
  font-weight: inherit;
  vertical-align: middle
}

blockquote,
q {
  quotes: none
}

blockquote:after,
blockquote:before,
q:after,
q:before {
  content: "";
  content: none
}

a img {
  border: none
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block
}

a {
  color: inherit;
  text-decoration: inherit
}

*,
::after,
::before {
  box-sizing: border-box
}

.inputRadio {
  display: inline-block;
  position: relative
}

.inputRadio input {
  display: none
}

.inputRadio1,
.inputRadio2,
.inputRadio3,
.inputRadio4 {
  width: 100%
}

/* =============================================
 トップページ
============================================= */

#sec2,
#sec3,
#sec4,
#sec5,
#sec6,
#sec7,
#sec8 {
  display: none
}

#sec1>div>img {
  max-width: 100%;
}

#sec1>div.wrapper>h3:before {
  content: "■";
  color: #93dbc5;
}

#sec1>div.wrapper>h3 {
  text-align: center;
}

#sec1>div.wrapper>ul>li:nth-child(1)>label:before {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  content: "";
  background: url(../img/doctor.svg) center / contain no-repeat;
  background-size: contain;
  width: 80px;
  height: 86px;
  z-index: 400;
}

#sec1>div.wrapper>ul>li:nth-child(2)>label:before {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  content: "";
  background: url(../img/man.svg) center / contain no-repeat;
  background-size: contain;
  width: 80px;
  height: 86px;
  z-index: 400;
}

.inputRadio1 span {
  display: block;
  width: 100%;
  border-radius: 5px;
  position: relative;
  -webkit-transition: all .1s ease-in;
  transition: all .1s ease-in;
  background-color: #fff;
  border: 2px solid #555 !important;
}

.inputRadio1>span>span {
  border: 2px solid #555 !important;
  padding: 15px 0 105px;
  background-color: #FFF;
  border: 1px solid #EFEFEF;
  font-size: 24px;
  line-height: 1.4;
  top: -5px;
  text-align: center
}

/* 項目を選択したらへこませる */
.inputRadio1:active {
  transform: translateY(4px);
  box-shadow: none;
}

header {
  background-color: #FBFFEA;
  position: relative;
  z-index: 50
}

footer {
  margin-top: auto;
}

footer .wrapper {
  padding: 5px 0 10px;
  border-top: 1px solid #8D8D8D;
  text-align: center;
  font-size: 10px;
  line-height: 1
}

footer>.wrapper>ul {
  padding: 0;
}

main .sec>.wrapper {
  padding: 15px 15px 40px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.sec>.wrapper .formHead {
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  margin-left: 20px;
  padding: 15px 8px;
}

main .sec>.wrapper .formList {
  display: flex;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 0;
  justify-content: center;
}

.logo {
  padding: 4px;
}

.logo>img {
  width: 95px;
  padding: 5px;
}

.topDetail {
  background: #F76B1C;
  width: 95%;
  height: 50px;
  color: #fff;
  text-align: center;
  padding: 4px;
  margin-top: 8px;
  margin-left: auto;
  margin-right: auto;
}

.topAppealTxt {
  font-size: 1em;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.topAppealTxt>.icon>img {
  width: 40px;
  height: 40px;
}

/* =============================================
 1ページ目（状況確認ページ）
============================================= */

h3 {
  font-weight: normal;
}

#sec2>div.wrapper>ul>li:nth-child(7) {
  width: 92%;
}

#sec2>div.wrapper>.comment>h3 {
  width: 60%;
}

.topTextBox {
  text-align: center;
  color: #241815;
  font-weight: 700;
  letter-spacing: .01em;
  position: relative;
  transition: .4s;
}

#sec1>.wrapper {
  position: relative;
  -webkit-transition: .4s;
  transition: .4s
}

.formHead-top {
  margin-top: 0px;
}

.item-top {
  padding-right: 10px;
  width: 50%;
}

/* =============================================
 4ページ目（診療科目確認ページ）
============================================= */
h3>span {
  font-size: 18px;
  font-weight: bold;
}

#sec4>.wrapper>.comment>h3 {
  width: 60%;
}

.item {
  padding-right: 5px;
  width: 41%;
}

.item-left {
  margin-right: 5%;
  margin-bottom: 4%;
}

#sec1,
#sec2,
#sec3,
#sec4,
#sec5,
#sec6,
#sec7 {
  margin-bottom: 20px;
}

.checkbox {
  display: flex;
  position: relative;
  height: 95px;
  border: 2px solid #555;
  box-sizing: border-box;
  color: #333;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3em;
  flex-wrap: wrap;
  box-shadow: 4px 4px 0 #91B31C;
  background: #fdfcfa;
  z-index: 3;

  img {
    height: 90%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    opacity: 0.2;
  }

  p {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 100%;
    height: 3rem;
    text-align: center;
  }
}

.formList .item:first-child>label>p,
.formList .item:last-child>label>p {
  line-height: 3rem;
}

/* 項目を選択したらへこませる */
.checkbox:active {
  transform: translateY(4px);
  box-shadow: none;
}

/* 戻るボタンの設定 */
.prevBtn {
  font-size: 10px;
  color: #737373;
  margin-top: 30px;
  margin-left: 25px;
}

.dli-chevron-round-left {
  display: inline-block;
  vertical-align: middle;
  color: #737373;
  line-height: 1;
  position: relative;
  width: 1em;
  height: 1em;
  transform: translateX(25%) rotate(-135deg);
}

.dli-chevron-round-left::before,
.dli-chevron-round-left::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 0.1em;
}

.dli-chevron-round-left::before {
  top: 0;
  left: 0;
  right: 0;
  height: 0.1em;
}

.dli-chevron-round-left::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 0.1em;
}

#lp02>footer>div {
  background: black;
  color: white;
}

#sec1>div.wrapper.active>ul>li:nth-child(1)>label>span {
  display: block;
  width: 100%;
  border-radius: 5px;
  position: relative;
  -webkit-transition: all .1s ease-in;
  transition: all .1s ease-in;
  background: #fff;
}

.lightpink {
  background-color: #ff7d7d !important;
  color: #fff !important;
  transition: background-color 0.3s ease;
}

.inputRadio1.lightpink span>span {
  background-color: #ff7d7d !important;
  color: #fff !important;
  transition: background-color 0.3s ease;
}

/* =============================================
 5ページ目（大学名確認ページ）
============================================= */

#sec5>.wrapper>.comment>h3 {
  width: 60%;
}

#sec5 .univ-block {
  width: 58%;
  margin: 0 auto;
}

/* ラッパー */
.selectbox-1 .custom-select {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* sec5 内の入力欄：親(univ-block)の 100% */
#sec5 .univ-block #univ-input {
  width: 100%;
}

/* NEXT ボタンも親(univ-block)の 100% → 58% と同じ幅になる */
#sec5 .univ-block .next-btn {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.selectbox-1 {
  display: block;
  text-align: center;
}
/* ラッパー */
.selectbox-1 .custom-select {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* セレクト風の入力欄 */
#univ-input {
  margin-bottom: 20px; 
}

/* ドロップダウンの候補リスト */
.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  box-sizing: border-box;

  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;

  margin: 4px 0 0;
  padding: 0;
  list-style: none;

  display: none; /* JSで開閉 */
  text-align: left;
}

/* 各候補 */
.custom-options li {
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}

.custom-options li:hover {
  background: #f5f5f5;
}

/* 対象なしメッセージ */
.no-result {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  margin: 4px 0 0;
  padding: 8px 10px;
  box-sizing: border-box;

  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9em;
  color: #666;
  text-align: left;

  display: none; /* JSで表示切り替え */
}

#sec5 .univ-block #univ-input {
  width: 100%;
}

/* NEXT ボタンもラッパーに合わせて 100% */
#sec5 .univ-block .next-btn {
  width: 100%;
  max-width: 100%;
  margin: 0 auto; /* 念のため */
}

.next-btn {
  display: block;
  margin: 0 auto;
  max-width: 58%;
  height: 45px;
  padding: 7px 20px;
  border-radius: 50px;
  text-decoration: none;
  color: #FFF;
  font-size: 20px;
  letter-spacing: 5px;
  background-image: linear-gradient(45deg, #91B31C 0%, #639B4A 50%, #358477 100%);
  transition: .4s;
  position: relative;
  padding-left: 25px;
  text-align: center;
}

.next-btn::before {
  content: "";
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 20px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #FFF;
  border-right: 1px solid #FFF;
  transform: rotate(45deg);
}

.next-btn::after {
  content: "";
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 26px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #FFF;
  border-right: 1px solid #FFF;
  transform: rotate(45deg);
}

.next-btn:hover {
  background-image: linear-gradient(45deg, #91B31C 0%, #43722e 50%, #134e44 100%);
}

/* =============================================
 6ページ目（苗字確認ページ）
============================================= */
#sec6>div.wrapper>div.privacy>p>a {
  color: #639B4A;
}

#sec6>div.wrapper>div.privacy>p {
  margin: 25px 0;
}

#sec6>div.wrapper>div.privacy {
  font-size: 0.7rem;
}

#sec6>div.wrapper {
  position: relative;
  text-align: center;
}

#sec6>div.wrapper>.comment>h3 {
  width: 60%;
}

.input {
  width: 70%;
  height: 45px;
  border: solid 3px #358477;
  border-radius: 5px;
}

.comment {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.person {
  width: 72px;
  height: 72px;
  margin-left: 25px;
  margin-right: 20px;
  margin-top: 12px;
}

.formHead {
  position: relative;
  display: block;
  background: #ECF5CB;
  border: solid 3px #23754F;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 auto;
  margin-top: 12px;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.4;
}

.formHead::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -25px;
  border: 14px solid transparent;
  border-right: 14px solid #ECF5CB;
  z-index: 2;
}

.formHead::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -29px;
  border: 14px solid transparent;
  border-right: 14px solid #23754F;
  z-index: 1;
}

.formHead h3 {
  margin: 0;
  padding: 0;
}

#sec6>div.wrapper>button {
  position: absolute;
  left: 15px;
}

/* =============================================
 7ページ目（電話番号、メールアドレス確認ページ）
============================================= */

#sec7>div.wrapper {
  text-align: center;
  position: relative;
  padding: 15px 0 40px 0;
}

#sec7>div.wrapper>.comment-multiple {
  display: flex;
  width: 100%;
}

#sec7>div.wrapper>.comment-multiple>img {
  height: 72px;
}

#sec7>div.wrapper>.comment-multiple>div {
  margin-left: 10px;
}

#sec7>div.wrapper>.comment-multiple>div>.formHead {
  width: 60%;
  padding: 15px 3px;
  margin-bottom: 30px;
  margin-top: 16px;
}

.cta-btn {
  display: block;
  margin: 0 auto;
  max-width: 70%;
  height: 50px;
  padding: 9px 20px;
  border-radius: 50px;
  text-decoration: none;
  color: #FFF;
  font-size: 20px;
  background-image: linear-gradient(45deg, #FFC107 0%, #ff8b5f 100%);
  transition: .4s;
  margin-top: 40px;
  position: relative;
  text-align: center;
}

.cta-btn::before {
  content: "";
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 20px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #FFF;
  border-right: 1px solid #FFF;
  transform: rotate(45deg);
}

.cta-btn::after {
  content: "";
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 26px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #FFF;
  border-right: 1px solid #FFF;
  transform: rotate(45deg);
}

.cta-btn:hover {
  background-image: linear-gradient(45deg, #FFC107 0%, #f76a35 100%);
}

#sec7>div.wrapper>button {
  position: absolute;
  left: 15px;
}

#sec7>div.wrapper>.comment-multiple {
  flex-direction: column;
  position: relative;
}

.first-content {
  display: flex;
}

.first-content>img {
  height: 72px;
}

.first-content>h3 {
  width: 60%;
}

#sec7>div.wrapper>.comment-multiple>input {
  margin: 0 auto;
}

#sec7>div.wrapper>.comment-multiple>.input-first {
  margin-bottom: 120px;
}

@media (max-width: 467px) {
  #sec7>div.wrapper>.comment-multiple>.input-second {
    margin-top: 20px;
  }
}

#sec7>div.wrapper>.comment-multiple>h3 {
  width: 60%;
  max-width: 340px;
  margin-bottom: 30px;
  position: absolute;
  top: 170px;
  left: 130px;
}

@media (max-width: 370px) {
  #sec7>div.wrapper>.comment-multiple>h3 {
    margin-top: 20px;
  }
}

@media screen and (max-width: 375px) {
  #sec7 .formHeadSecond {
    margin: 0 auto 20px auto;
    text-align: center;
    word-break: break-word;
    padding: 15px 10px;
    box-sizing: border-box;
  }

  #sec7 .comment-multiple {
    flex-direction: column;
    align-items: center;
  }
}

#error-messages {
  text-align: center;
  margin: 20px auto;
}

#error-messages p {
  color: red;
  font-size: 14px;
  margin-bottom: 10px;
}

/* =============================================
 3ページ目（地域確認ページ）
============================================= */

#sec3>div.wrapper>.comment>.comment-multiple {
  width: 60%;
  margin-left: 20px;
  margin-top: 20px;
}

#sec3>.wrapper>.comment {
  align-items: flex-start;
}

.comment-multiple>h3 {
  width: 100%;
}

.comment-multiple {
  display: block;
  width: 100%;
  text-align: center;
}

.formHead-multiple {
  position: relative;
  display: inline-block;
  background: #ECF5CB;
  border: solid 3px #23754F;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  padding: 15px 8px;
  width: 60%;
  margin: 0 auto;
}

.formHead-multiple::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -25px;
  border: 14px solid transparent;
  border-right: 14px solid #ECF5CB;
  z-index: 2;
}

.formHead-multiple::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -29px;
  border: 14px solid transparent;
  border-right: 14px solid #23754F;
  z-index: 1;
}

.formHeadSecond {
  position: relative;
  display: inline-block;
  background: #ECF5CB;
  border: solid 3px #23754F;
  border-radius: 10px;
  font-size: 14px;
  padding: 15px 3px;
  text-align: center;
}

@media (min-width: 470px) {
  .formList-nine {
    width: 90%;
  }
}

.item-nine {
  width: 100px;
  margin-bottom: 15px;
  margin-left: 10px;
}

.formList>.item-nine>label>p {
  line-height: 3rem;
}

/* =============================================
 8ページ目（Thanksページ）
============================================= */

#sec8>div.wrapper>.comment-multiple {
  display: flex;
  width: 100%;
}

#sec8>div.wrapper>.comment-multiple>img {
  height: 72px;
}

#sec8>div.wrapper>.comment-multiple>div>h3 {
  margin-bottom: 10px;
  margin-top: 0;
  margin-left: 20px;
  text-align: left;
}

#sec8>div.wrapper>.comment-multiple>div>.formHead {
  max-width: 220px;
  font-weight: bold;
  font-size: 18px;
}

.inverted-triangle {
  background-color: #91B31C;
  width: 100px;
  height: 30px;
  clip-path: polygon(0 0, 100% 0%, 50% 100%);
  opacity: 40%;
  margin: 0 auto;
}

.cta-text {
  text-align: center;
  margin: 30px 0 15px 0;
  font-weight: bold;
}

.line {
  display: flex;
  justify-content: center;
  align-items: center;
}

.line>a>img {
  width: 95%;
}

.line>img {
  padding-left: 8%;
}