/* 共通 */
h2,
p {
  font-weight: normal;
  line-height: 1.75;
}
span {
  color: #666;
  font-size: 13px;
}

/* 基本ブロック */
.contain {
  position: relative;
  width: 100%;
}
/* 基本ブロックインナー ワイド調整 */
.basicBlock {
  max-width: 100%;
  margin: auto;
  padding: 0 80px;
}
/* 基本フォント */
.contain p {
  font-size: 20px;
  color: #47525d;
  letter-spacing: 0em;
  line-height: 1.5;
}

/* トップワード */
.contain h2 {
  font-size: 46px;
  font-weight: bold;
  line-height: 1.45;
  margin: 90px 0 20px;
}

p.flat_btn {
  position: relative;
  display: inline-block;
  margin: 50px 0 0 0;
  font-size: 18px;
  color: #3593d1;
}
p.flat_btn::before {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-bottom: 1px solid #3593d1;
}
p.flat_btn::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-bottom: 2px solid #3593d1;
  transition: 0.2s;
}
p.flat_btn:hover::after {
  width: 100%;
}

/* サブページ */

section.sub {
  all: unset;
  display: block;
}
section.sub > * {
  max-width: unset;
}

section.sub .contain {
  padding: 40px 0 120px;
}
/* サービスページ */
section.sub .basicBlock {
  max-width: 920px;
  margin: auto;
  padding: 0;
}
.subpage h2 {
  font-size: 36px;
  margin: 40px 0 10px;
}
.subpage p {
  font-size: 14px;
  margin-bottom: 30px;
  color: #47525d;
}
.subpage span a {
  color: rgba(51, 146, 209, 1);
  text-decoration: underline;
  margin: 0 3px;
}
.subpage span a.gray {
  color: #47525d;
}

/* 問合せフォーム */
section.sub .contain.contact {
  background-color: #fafafa;
  padding-bottom: 60px;
}
.contain.contact .basicBlock {
  max-width: 600px;
  width: 100%;
  overflow: visible;
}
.formBlock {
  position: relative;
  width: 100%;
  overflow: auto;
  padding: 40px 50px 60px;
  background-color: #fff;
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1);
}
.formBlock::before {
  position: absolute;
  content: "＊必須";
  top: 25px;
  right: 50px;
  font-size: 14px;
  /* font-weight: 600; */
  color: #3593d1;
}
.formBlock .wideBlock {
  width: 100%;
  margin-bottom: 20px;
}
.formBlock p {
  position: relative;
  margin: 0 0 5px;
  font-size: 13px;
}
.formBlock p.req {
  display: inline-block;
}
.formBlock p.req::after {
  position: absolute;
  right: -20px;
  font-size: 8px;
  font-weight: 600;
  top: 0;
  content: "＊";
  color: #3593d1;
}
.formBlock p span {
  font-size: 12px;
  color: #999;
}
.formBlock input,
.formBlock textarea,
.formBlock select {
  width: 100%;
  padding: 10px;
  border: 1px solid #999;
  border-radius: 2px 2px;
  font-size: 15px;
}
/* その他入力欄 */
.formBlock input:focus,
.formBlock textarea:focus {
  border: 1px solid #3593d1;
}

.formSendBox {
  display: grid;
  justify-items: right;
  margin-top: 38px;
}
.formBlock button.link-button {
  max-width: 100%;
  font-size: 14px;
}
@media screen and (min-width: 550px) {
  .formBlock button.link-button {
    width: 180px;
  }
}
input:checked + label::before {
  border: 1px solid #3593d1;
}
input:checked + label::after {
  content: "";
  display: block;
  position: absolute;
  top: 5px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #3593d1;
}
.formBlock select {
  position: relative;
  cursor: pointer;
}
.formBlock select::before {
  position: absolute;
  content: "";
  top: 0;
  right: 10px;
  width: 10px;
  height: 10px;
  background-color: blue;
}

/* フォーム内のプライバシーポリシー表示部 */
.formBlock .wideBlock .notePrivacy a {
  color: #3593d1;
  text-decoration: underline;
  margin: 0 3px;
}
.formBlock .wideBlock .notePrivacy p {
  font-size: 12px;
}

.formBlock .privacy {
  height: 200px;
  overflow: auto;
  border: 1px solid #ddd;
  padding: 10px;
  color: #47525d;
}
.formBlock .privacy * {
  font-size: 11px;
}

.formBlock .privacy h2 {
  margin: 10px 0 0;
  line-height: 2;
  font-weight: 400;
}

.formBlock .privacy a {
  margin: 0 2px;
  font-weight: 600;
  text-decoration: underline;
  color: #3593d1;
}

.formBlock .privacy ol {
  padding-left: 21px;
}
.formBlock .privacy li {
  margin-top: 5px;
  list-style-type: decimal;
}

/* 以下レスポンシブ対応 */

@media screen and (max-width: 1024px) {
  /* 基本ブロック */
  .basicBlock {
    padding: 0 40px;
  }

  section.sub .contain {
    padding: 80px 0 130px;
  }
  section.sub .basicBlock {
    max-width: 100%;
    margin: auto;
    padding: 0 30px;
  }
}

@media screen and (max-width: 767px) {
  .contain h2 {
    margin: 40px 0 20px;
  }
  .basicBlock {
    padding: 0 30px;
  }
  .contain p {
    text-align: left;
  }

  .formBlock {
    padding: 20px 20px 50px;
  }
  .formBlock::before {
    top: 14px;
    right: 20px;
  }
}

@media screen and (max-width: 414px) {
  .contain h2 {
    font-size: 28px;
    margin: 50px 0 10px;
    padding: 0 20px;
    line-height: 1.25;
  }
  .contain p {
    line-height: 1.4;
  }
  .basicBlock {
    padding: 0 20px;
  }
  p.flat_btn {
    display: table;
    text-align: center;
    margin: 30px auto 20px;
    font-size: 20px;
  }

  section.sub .basicBlock {
    padding: 0 20px;
  }
  section.sub h2 {
    padding: 0;
  }
  section.sub .contain {
    padding: 0;
  }
}
