.wrap {
  counter-reset: number 0;
}

.mainvisual {
  background: url(/img/souzoku/IM_souzoku_BG.webp);
  background-size: cover;
  position: relative;
  z-index: 1;
  min-height: 500px;
}

.mainvisual > div {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 500px;
}

.mainvisual-img {
  width: 36%;
  margin-right: 10px;
  position: relative;
}

.mainvisual-img img {
  max-height: 450px;
  object-fit: contain;
  position: absolute;
  right: 0;
  bottom: 0;
}

.mainvisual-text {
  background: #c0d4f2;
  width: 60%;
  padding: 2.5em 0 2.5em 2.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mainvisual-text::after {
  content: "";
  background: #c0d4f2;
  width: 35%;
  height: 100%;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.mainvisual-text p > span {
  font-size: clamp(1.125rem, -0.3233rem + 3.0172vw, 1.5625rem);
  color: #fff;
  font-weight: bold;
  text-shadow: 2px 1px 3px rgba(0, 0, 0, 0.4);
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  display: inline-block;
  margin-right: 0.5em;
  padding: 5px;
}

.mainvisual-text h2 {
  margin-top: 10px;
}

.mainvisual-text h2 span.h2span1 {
  font-size: clamp(1.5rem, -0.7759rem + 4.7414vw, 2.1875rem);
  font-weight: bold;
}

.mainvisual-text h2 p {
  font-size: clamp(2.875rem, -0.8491rem + 7.7586vw, 4rem);
  font-weight: bold;
  line-height: 1;
  margin-bottom: 10px;
  margin-top: 10px;
  letter-spacing: -2px;
}

.mainvisual-text h2 span.h2span2 {
  font-size: min(3.8vw, 28px);
  font-weight: bold;
  display: block;
  color: #5475a7;
}
.mainvisual-isan {
  background: url(/souzoku/isan/img/IM_isan_BG.webp);
  background-size: cover;
  position: relative;
  z-index: 1;
  min-height: 500px;
}

.mainvisual-isan > div {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 500px;
}

.mainvisual-isan-img {
  width: 36%;
  margin-right: 10px;
  position: relative;
}

.mainvisual-isan-img img {
  max-height: 450px;
  object-fit: contain;
  position: absolute;
  right: 0;
  bottom: 0;
}

.mainvisual-isan-text {
  background: #c0d4f2;
  width: 60%;
  padding: 2.5em 0 2.5em 2.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mainvisual-isan-text::after {
  content: "";
  background: #c0d4f2;
  width: 35%;
  height: 100%;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.mainvisual-isan-text p > span {
  font-size: clamp(1.125rem, -0.3233rem + 3.0172vw, 1.5625rem);
  color: #fff;
  font-weight: bold;
  text-shadow: 2px 1px 3px rgba(0, 0, 0, 0.4);
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  display: inline-block;
  margin-right: 0.5em;
  padding: 5px;
}

.mainvisual-isan-text h2 {
  margin-top: 10px;
}

.mainvisual-isan-text h2 span.h2span1 {
  font-size: clamp(1.5rem, -0.7759rem + 4.7414vw, 2.1875rem);
  font-weight: bold;
}

.mainvisual-isan-text h2 p {
  font-size: clamp(2.875rem, -0.8491rem + 7.7586vw, 4rem);
  font-weight: bold;
  line-height: 1;
  margin-bottom: 10px;
  margin-top: 10px;
  letter-spacing: -2px;
}

.mainvisual-isan-text h2 span.h2span2 {
  font-size: min(3.8vw, 28px);
  font-weight: bold;
  display: block;
  color: #5475a7;
}
.mainvisual-iryubun > div {
  display: flex;
  min-height: 500px;
}

.mainvisual-iryubun-img {
  background: url(/img/souzoku/IM_souzoku_BG.webp);
  width: 60%;
  height: 500px;
  background-size: cover;
  position: relative;
}

.mainvisual-iryubun-img img {
  height: 440px;
  object-fit: contain;
  position: absolute;
  bottom: 0;
  right: 0;
}

.mainvisual-iryubun-text {
  background: #c0d4f2;
  width: 80%;
  padding: 2.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mainvisual-iryubun-text p > span {
  font-size: clamp(1.125rem, -0.3233rem + 3.0172vw, 1.5625rem);
  color: #fff;
  font-weight: bold;
  text-shadow: 2px 1px 3px rgba(0, 0, 0, 0.4);
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  display: inline-block;
  margin-right: 0.5em;
  padding: 5px;
}

.mainvisual-iryubun-text h2 {
  margin-top: 10px;
}

.mainvisual-iryubun-text h2 span.h2span1 {
  font-size: min(3.8vw, 27px);
  font-weight: bold;
}

.mainvisual-iryubun-text h2 p {
  font-size: min(5.6vw, 50px);
  font-weight: bold;
  line-height: 1;
  margin-bottom: 10px;
  margin-top: 10px;
  letter-spacing: -5px;
}

.mainvisual-iryubun-text h2 span.h2span2 {
  font-size: clamp(1.25rem, -1.3rem + 5.1724vw, 2rem);
  font-weight: bold;
  display: block;
  color: #5475a7;
}

.mainvisual-houki > div {
  display: flex;
}

.mainvisual-houki-img {
  background: url(/img/souzoku/IM_souzoku_BG.webp);
  width: 60%;
  height: 500px;
  background-size: cover;
  position: relative;
}

.mainvisual-houki-img img {
  height: 440px;
  object-fit: contain;
  position: absolute;
  bottom: 0;
  right: 0;
}

.mainvisual-houki-text {
  background: #c0d4f2;
  width: 80%;
  padding: 3em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mainvisual-houki-text p > span {
  font-size: min(2.8vw, 27px);
  color: #fff;
  font-weight: bold;
  text-shadow: 2px 1px 3px rgba(0, 0, 0, 0.4);
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  display: inline-block;
  margin-right: 0.5em;
  padding: 5px;
}

.mainvisual-houki-text h2 {
  margin-top: 10px;
}

.mainvisual-houki-text h2 span.h2span1 {
  font-size: min(3.8vw, 26px);
  font-weight: bold;
}

.mainvisual-houki-text h2 p {
  font-size: min(5.6vw, 50px);
  font-weight: bold;
  line-height: 1;
  margin-bottom: 10px;
  margin-top: 10px;
  letter-spacing: -5px;
}

.mainvisual-houki-text h2 span.h2span2 {
  font-size: min(3.8vw, 32px);
  font-weight: bold;
  display: block;
  color: #5475a7;
}

.mainvisual-houki-lead {
  margin-top: 1em;
  color: #333;
  font-weight: bold;
  line-height: 20px;
  margin-bottom: 0;
  z-index: 1;
}

.balloon2 {
  position: relative;
  display: inline-block;
  margin: 3em 0 2.5em;
  padding: 7px 10px;
  min-width: 120px;
  max-width: 100%;
  color: #555;
  background: #ed4b5e;
  box-sizing: border-box;
  border-radius: 50px;
}

.balloon2:before {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 50%;
  margin-left: -15px;
  border-top: 12px solid #ed4b5e;
  z-index: 2;
}

.balloon2:after {
  content: "";
  position: absolute;
  bottom: -28px;
  left: 50%;
  margin-left: -17px;
  border: 14px solid transparent;
  border-top: 14px solid #ed4b5e;
  z-index: 1;
}

.balloon2 p {
  margin: 0;
  padding: 0 3em;
  font-size: 24px;
  color: #fff;
  font-weight: bold;
}

.contact-box {
  background: #fff;
  position: relative;
}

.contact-box::before {
  content: "";
  position: absolute;
  height: 80px;
  width: 100%;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  background-color: #fff;
  left: 0;
  bottom: -92px;
}

.contact-box p.fs62 {
  font-size: 62px;
  font-weight: bold;
  letter-spacing: -2px;
}

.contact-box p.fs62 span {
  color: #ed4b5e;
  font-weight: bold;
}

.contact-box p.fs36 {
  font-size: 36px;
  margin-top: 1em;
}

.contact-box p.fs20 {
  font-size: 20px;
  color: #ed4b5e;
  font-weight: bold;
}

h4.heading-24 {
  position: relative;
  padding-top: 1.5em;
  font-size: 20px;
  padding-left: 2em;
  padding-bottom: 1em;
  text-shadow: 3px 2px 1px #fafafa;
}

h4.heading-24:before {
  position: absolute;
  bottom: 0;
  left: 10px;
  z-index: -1;
  color: #d9f4ff;
  font-size: 70px;
  line-height: 1;
  content: attr(data-number);
  pointer-events: none;
  font-weight: bold;
  letter-spacing: -5px;
}

.row-parent {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 48px;
}

.row-parent .row-child {
  position: relative;
  display: flex;
  flex-flow: column;
  max-width: 48%;
  flex-basis: 48%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  margin-bottom: 20px 10px;
}

.row-parent .row-child p:last-child {
  margin-bottom: 0;
}

.unit ul {
  padding-left: 1em;
}

.entry {
  overflow: hidden;
  background: #f5f3ef;
  width: 100%;
  padding: 3em 2em;
}

.pt7em {
  padding-top: 7em;
}

.wrapcontent {
  max-width: 1214px;
  margin: 0 auto;
}

.entry .wrapcontent {
  max-width: 900px;
  margin: 0 auto;
}

.entry h3 {
  width: 790px;
  max-width: 80%;
  text-align: center;
  font-family: "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro",
    游ゴシック体, "Yu Gothic", YuGothic, メイリオ, Meiryo, sans-serif;
  font-size: 2em;
  font-weight: 600;
  line-height: 1.6em;
  letter-spacing: 1px;
  color: #264575;
  margin: 0 auto 0.5em;
}

.entrybnr {
  margin: 0.5em;
  padding: 0.5em 18px 0.2em 0;
  text-align: center;
  flex: 1;
  color: #333;
}

.entrybnr p.red {
  line-height: 1.2em;
  color: #ed4b5e;
  margin-bottom: 5px;
}

.entrybnr > span {
  font-size: 60px;
  margin-bottom: 5px;
}

.entrybnr .phone-number {
  font-size: 40px;
  font-weight: bold;
  letter-spacing: -0.07em;
}

.entrybnr .time {
  margin-top: -10px;
  font-size: 14px;
  font-weight: bold;
}

.entrybnr .mailbtn a {
  color: #fff;
  background: #0500ff;
  min-width: 160px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.2);
  padding: 10px 30px;
  display: inline-block;
  min-width: 234px;
}

.entrybnr .mailbtn a div {
  display: flex;
  justify-content: end;
}

.entrybnr .mailbtn a div p.mailtext {
  line-height: 1;
  margin-bottom: 0;
  font-weight: bold;
}

.entrybnr .mailbtn a div p.mailicon {
  margin-bottom: 0;
  margin-left: 10px;
}

.entrybnr .mailbtn a div p.mailicon span {
  vertical-align: middle;
  font-size: 22px;
  font-weight: 500;
}

.entrybnr .linebtn a {
  color: #fff;
  background: #16bf16;
  min-width: 160px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.2);
  padding: 10px 30px;
  display: inline-block;
  min-width: 234px;
}

.entrybnr .linebtn a div {
  display: flex;
}

.entrybnr .linebtn a div p.linetext {
  line-height: 1;
  margin-bottom: 0;
  font-weight: bold;
}

.entrybnr .linebtn a div p.lineicon {
  margin-bottom: 0;
  margin-left: 10px;
}

.entrybnr .linebtn a div p.lineicon span {
  vertical-align: middle;
  font-size: 22px;
  font-weight: 500;
}

.entrybnr:last-child {
  padding: 0.2em 18px 0.2em 0;
}

.entry .attention {
  font-size: 16px;
  text-align: center;
}

.blue-btn {
  margin: 0.5em auto 3em;
  background: #1e3f6d;
  border-radius: 50px;
  padding: 1em;
  max-width: 400px;
  font-size: 20px;
  text-align: center;
  display: block;
  color: #fff !important;
  font-weight: bold;
}

#nayami {
  background: #a0c5c3;
  padding-bottom: 3em;
  position: relative;
}

#nayami h3.nayamih3-01 {
  font-size: 40px;
  color: #fff;
  text-align: center;
  font-weight: bold;
  letter-spacing: -1px;
  padding: 2em 1em 1em;
  line-height: 1.3;
}

#nayami .nayamiimg-01 {
  text-align: center;
  margin: 0;
}

#nayami .nayamiimg-01 img {
  width: 630px;
  height: 215px;
}

#nayami div.nayamilist {
  background: #fff;
  border-radius: 10px;
  padding: 2em 7em;
  margin-bottom: 4em;
}

#nayami div.nayamilist span {
  font-size: 34px;
  vertical-align: sub;
}

#nayami div.nayamilist p {
  font-size: 30px;
  color: #1e3f6d;
  font-weight: bold;
}

#nayami div.nayamilist p:last-child {
  margin-bottom: 0;
}

#nayami div.nayamilist hr {
  border-top: #1e3f6d 1px solid;
}

#nayami .ohayame {
  display: flex;
  -webkit-box-pack: justify;
  justify-content: center;
  flex-wrap: wrap;
}

#nayami .nayamiimg-02 img {
  width: 274px;
  height: 200px;
  object-fit: contain;
}

#nayami .nayamih3-02 p {
  font-size: 43px;
  background: #00a6b2;
  color: #fff;
  font-weight: bold;
  display: inline;
  line-height: 1.4;
}

#nayami .ohayame .ohayame-text {
  font-size: 24px;
  color: #1e3f6d;
  font-weight: bold;
  display: inline;
  line-height: 1.7;
}

#nayami::after {
  content: "";
  position: absolute;
  height: 80px;
  width: 100%;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  background-color: #a0c5c3;
  left: 0;
  bottom: -79px;
  z-index: 1;
}

#dosen {
  padding: 7em 2em 3em;
  position: relative;
}

#dosen p {
  text-align: center;
  font-size: 20px;
  line-height: 40px;
}

#dosen h3 {
  font-size: 40px;
  color: #264575;
  text-align: center;
  font-weight: bold;
  letter-spacing: -1px;
  padding: 2em 1em 1em;
  line-height: 1.3;
}

#dosen h4 {
  font-size: 25px;
  color: #264575;
  text-align: center;
  font-weight: bold;
  letter-spacing: -1px;
  padding: 2em 1em 1em;
  line-height: 1.3;
}

#dosen p > span {
  font-size: 17px;
}

#dosen .comment {
  padding: 0 2em;
}

#dosen .dosenboxs {
  margin: 2em auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  counter-reset: num;
  max-width: 1100px;
}

#dosen .dosenbox {
  background: #fff;
  border-radius: 10px;
  border: 2px solid #1e3f6d;
  padding: 2em 1em 1em;
  margin: 1em 1em;
  text-align: center;
  width: 28%;
  height: auto;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  counter-increment: mycounter;
}

#dosen .dosenbox h4 {
  padding: 0 0 10px;
  color: #1e3f6d;
  font-size: min(9vw, 33px);
  font-weight: bold;
  letter-spacing: -1px;
  margin-top: 15px;
}

#reason > div > div:nth-child(n + 4) {
  margin-top: 40px;
}

#reason > div > div > p {
  font-size: min(8.5vw, 22px);
  margin-top: 15px;
}

#dosen .dosenlink {
  margin: 15px 10px;
  width: 260px;
  height: 60px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  background-color: #79a7d9;
  color: white;
  text-decoration: none;
  font-size: 23px;
  font-weight: bold;
  padding: 8px 30px;
  border-radius: 999px;
  position: relative;
  gap: 8px;
  transition: background-color 0.3s ease;
}

#dosen .dosenlink:hover {
  background-color: #5d94cb;
  /* ホバー時に少し濃く */
}

#dosen .dosenlink span {
  color: #1e3f6d;
}
.font-small {
  font-size: 20px !important;
  font-weight: lighter !important;
}

#setsumei {
  padding: 0em 2em 3em;
  position: relative;
}

#setsumei ::after {
  content: "";
  position: absolute;
  height: 80px;
  width: 100%;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  background-color: white;
  left: 0;
  bottom: -80px;
  z-index: 1;
}

#setsumei p {
  text-align: center;
  font-size: 20px;
  line-height: 40px;
}

#setsumei h3 {
  font-size: 35px;
  color: #264575;
  text-align: center;
  font-weight: bold;
  letter-spacing: -1px;
  padding: 2em 1em 1em;
  line-height: 1.3;
}

#setsumei ul li {
  width: 100%;
  text-align: left;
  list-style-position: inside;
  margin-bottom: 0.7em;
  font-size: 1.4em;
  line-height: 1.1em;
}

#setsumei .comment {
  padding: 0;
}

#setsumei .threetypes p {
  text-align: center;
}

#setsumei .threetypes-row {
  display: flex;
  gap: 2em;
  justify-content: center;
  margin: 2em 0;
}

#setsumei .threetype-box {
  flex: 1 1 0;
  background: #f5f7fa;
  border: 2px dashed #264575;
  border-radius: 10px;
  padding: 1.5em 1em;
  text-align: center;
  min-width: 180px;
  max-width: 300px;
  box-sizing: border-box;
}

#setsumei .threetype-box strong {
  display: block;
  font-size: 1.8em;
  color: #4783dc;
  margin-bottom: 0.5em;
}

#setsumei .threetype-box p {
  font-size: 1em;
  color: #333;
  margin: 0;
}

#merit-demerit {
  padding: 5em 2em 5em;
  position: relative;
}

#merit-demerit p {
  text-align: center;
  font-size: 20px;
  line-height: 40px;
}

#merit-demerit h3 {
  font-size: 40px;
  color: #264575;
  text-align: center;
  font-weight: bold;
  letter-spacing: -1px;
  padding: 2em 1em 1em;
  line-height: 1.3;
}

#merit-demerit .unit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0%;
}

#merit-demerit .merit,
#merit-demerit .demerit {
  width: 49%;
  min-width: 280px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 2em 2em;
  color: #1e3f6d;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

#merit-demerit .merit h4,
#merit-demerit .demerit h4 {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 1em;
  text-align: center;
  letter-spacing: 0.05em;
}

#merit-demerit .merit h4 {
  color: #009688;
}

#merit-demerit .demerit h4 {
  color: #ed4b5e;
}

#merit-demerit .merit ul,
#merit-demerit .demerit ul {
  font-size: 1em;
  margin-bottom: 1em;
  list-style: none;
  padding-left: 0.5em;
  width: 100%;
}

#merit-demerit .merit ul li {
  font-size: 1.6em;
  line-height: 1.1em;
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.7em;
  color: #009688;
}

#merit-demerit .merit ul li::before {
  content: "◯";
  position: absolute;
  left: 0;
  color: #009688;
  font-size: 1.2em;
  font-weight: bold;
}

#merit-demerit .demerit ul li {
  font-size: 1.6em;
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.7em;
  color: #ed4b5e;
}

#merit-demerit .demerit ul li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #ed4b5e;
  font-size: 1.2em;
  font-weight: bold;
}

#merit-demerit .merit {
  border-right: 2px solid #264575;
}

#reason {
  padding: 4em 2em 3em;
  background: #fbefe8;
  position: relative;
}

#reason h3 {
  text-align: center;
  font-family: "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro",
    游ゴシック体, "Yu Gothic", YuGothic, メイリオ, Meiryo, sans-serif;
  font-size: 2em;
  font-weight: bold;
  line-height: 1.6em;
  color: #ed4b5e;
}

#reason > div {
  margin: 2em auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  counter-reset: num;
  max-width: 1214px;
}

#reason p {
  text-align: center;
  font-size: 20px;
  line-height: 40px;
  color: #5e0f19;
}

#reason > div > div > p {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

#reason > div > div {
  background: #fff;
  border-radius: 10px;
  border: 2px solid #ed4b5e;
  padding: 2em 1em;
  text-align: center;
  width: 28%;
  height: auto;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  counter-increment: mycounter;
  margin-right: 2em;
}

#reason > div > div::before {
  position: absolute;
  left: 10%;
  top: 0;
  content: counter(mycounter, decimal-leading-zero);
  height: 30px;
  margin-left: -16px;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  color: #fff;
  width: 50px;
  background: #ed4b5e;
  font-size: 22px;
}

#reason h4 {
  color: #ed4b5e;
  font-size: min(9vw, 33px);
  font-weight: bold;
  letter-spacing: -1px;
  margin-top: 15px;
}

#reason > div > div:nth-child(n + 4) {
  margin-top: 40px;
}

#reason > div > div > span {
  font-size: 50px;
  font-weight: bold;
}

#reason > div > div > p {
  font-size: min(8.5vw, 22px);
  margin-top: 15px;
}

#reason .reasonlink {
  margin: 15px 10px;
  width: 260px;
  height: 60px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ef6b7a;
  color: white;
  text-decoration: none;
  font-size: 23px;
  font-weight: bold;
  padding: 8px 30px;
  border-radius: 999px;
  position: relative;
  gap: 8px;
  transition: background-color 0.3s ease;
}

#reason .reasonlink:hover {
  background-color: #fcabb4;
  /* ホバー時に少し濃く */
}

#reason .reasonlink span {
  color: white;
}
#reason-isan {
  padding: 9em 2em 3em;
  background: #fbefe8;
  position: relative;
}

#reason-isan h3 {
  text-align: center;
  font-family: "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro",
    游ゴシック体, "Yu Gothic", YuGothic, メイリオ, Meiryo, sans-serif;
  font-size: 2em;
  font-weight: bold;
  line-height: 1.6em;
  color: #ed4b5e;
}

#reason-isan > div {
  margin: 2em auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  counter-reset: num;
  max-width: 1214px;
}

#reason-isan > p {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

#reason-isan > div > div {
  background: #fff;
  border-radius: 10px;
  border: 2px solid #ed4b5e;
  padding: 2em 1em;
  text-align: center;
  width: 28%;
  height: auto;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  counter-increment: mycounter;
  margin-right: 2em;
}

#reason-isan > div > div::before {
  position: absolute;
  left: 10%;
  top: 0;
  content: counter(mycounter, decimal-leading-zero);
  height: 30px;
  margin-left: -16px;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  color: #fff;
  width: 50px;
  background: #ed4b5e;
  font-size: 22px;
}

#reason-isan h4 {
  color: #ed4b5e;
  font-size: min(9vw, 33px);
  font-weight: bold;
  letter-spacing: -1px;
  margin-top: 15px;
}

#reason-isan > div > div:nth-child(n + 4) {
  margin-top: 40px;
}

#reason-isan > div > div > span {
  font-size: 50px;
  font-weight: bold;
}

#reason-isan > div > div > p {
  font-size: min(8.5vw, 22px);
  margin-top: 15px;
}

#reason-isan::after {
  content: "";
  position: absolute;
  height: 80px;
  width: 100%;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  background-color: #fbefe8;
  left: 0;
  bottom: -79px;
}

#reason-iryubun {
  padding: 10em 2em 3em;
  background: #fbefe8;
  position: relative;
}

#reason-iryubun h3 {
  text-align: center;
  font-family: "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro",
    游ゴシック体, "Yu Gothic", YuGothic, メイリオ, Meiryo, sans-serif;
  font-size: 2em;
  font-weight: bold;
  line-height: 1.6em;
  color: #ed4b5e;
}

#reason-iryubun > div {
  margin: 2em auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  counter-reset: num;
  max-width: 1214px;
}

#reason-iryubun p {
  text-align: center;
  font-size: 20px;
  line-height: 40px;
  color: #5e0f19;
}

#reason-iryubun > div > div > p {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

#reason-iryubun > div > div {
  background: #fff;
  border-radius: 10px;
  border: 2px solid #ed4b5e;
  padding: 2em 1em;
  text-align: center;
  width: 28%;
  height: auto;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  counter-increment: mycounter;
  margin-right: 2em;
}

#reason-iryubun > div > div::before {
  position: absolute;
  left: 10%;
  top: 0;
  content: counter(mycounter, decimal-leading-zero);
  height: 30px;
  margin-left: -16px;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  color: #fff;
  width: 50px;
  background: #ed4b5e;
  font-size: 22px;
}

#reason-iryubun h4 {
  color: #ed4b5e;
  font-size: min(9vw, 33px);
  font-weight: bold;
  letter-spacing: -1px;
  margin-top: 15px;
}

#reason-iryubun > div > div:nth-child(n + 4) {
  margin-top: 40px;
}

#reason-iryubun > div > div > span {
  font-size: 50px;
  font-weight: bold;
}

#reason-iryubun > div > div > p {
  font-size: min(8.5vw, 22px);
  margin-top: 15px;
}

#reason-iryubun .reasonlink {
  margin: 15px 10px;
  width: 260px;
  height: 60px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ef6b7a;
  color: white;
  text-decoration: none;
  font-size: 23px;
  font-weight: bold;
  padding: 8px 30px;
  border-radius: 999px;
  position: relative;
  gap: 8px;
  transition: background-color 0.3s ease;
}

#reason-iryubun .reasonlink:hover {
  background-color: #fcabb4;
  /* ホバー時に少し濃く */
}

#reason-iryubun .reasonlink span {
  color: white;
}

#reason-iryubun::after {
  content: "";
  position: absolute;
  height: 80px;
  width: 100%;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  background-color: #fbefe8;
  left: 0;
  bottom: -79px;
}

#reason-houki {
  padding: 5em 2em 3em;
  background: #fbefe8;
  position: relative;
}

#reason-houki h3 {
  text-align: center;
  font-family: "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro",
    游ゴシック体, "Yu Gothic", YuGothic, メイリオ, Meiryo, sans-serif;
  font-size: 2em;
  font-weight: bold;
  line-height: 1.6em;
  color: #ed4b5e;
}

#reason-houki > div {
  margin: 2em auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  counter-reset: num;
  max-width: 1214px;
}

#reason-houki p {
  text-align: center;
  font-size: 20px;
  line-height: 40px;
  color: #5e0f19;
}

#reason-houki > div > div > p {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

#reason-houki > div > div {
  background: #fff;
  border-radius: 10px;
  border: 2px solid #ed4b5e;
  padding: 2em 1em;
  text-align: center;
  width: 28%;
  height: auto;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  counter-increment: mycounter;
  margin-right: 2em;
}

#reason-houki > div > div::before {
  position: absolute;
  left: 10%;
  top: 0;
  content: counter(mycounter, decimal-leading-zero);
  height: 30px;
  margin-left: -16px;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  color: #fff;
  width: 50px;
  background: #ed4b5e;
  font-size: 22px;
}

#reason-houki h4 {
  color: #ed4b5e;
  font-size: min(9vw, 33px);
  font-weight: bold;
  letter-spacing: -1px;
  margin-top: 15px;
}

#reason-houki > div > div:nth-child(n + 4) {
  margin-top: 40px;
}

#reason-houki > div > div > span {
  font-size: 50px;
  font-weight: bold;
}

#reason-houki > div > div > p {
  font-size: min(8.5vw, 22px);
  margin-top: 15px;
}

#reason-houki .reasonlink {
  margin: 15px 10px;
  width: 260px;
  height: 60px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ef6b7a;
  color: white;
  text-decoration: none;
  font-size: 23px;
  font-weight: bold;
  padding: 8px 30px;
  border-radius: 999px;
  position: relative;
  gap: 8px;
  transition: background-color 0.3s ease;
}

#reason-houki .reasonlink:hover {
  background-color: #fcabb4;
  /* ホバー時に少し濃く */
}

#reason-houki .reason-detailbtn {
  background-color: #ef6b7a;
  margin: 2em auto 0;
  font-size: 24px;
  font-weight: bold;
  width: 100%;
  max-width: 500px;
  border-radius: 50px;
  padding: 20px 30px;
  text-align: center;
}

#reason-houki .reason-detaillink {
  color: #fff;
  text-decoration: none;
}

#reason-houki .reasonlink span {
  color: white;
}

#reason-houki::after {
  content: "";
  position: absolute;
  height: 80px;
  width: 100%;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  background-color: #fbefe8;
  left: 0;
  bottom: -79px;
}

#jirei {
  padding: 6em 2em 1em;
}

#jirei h3 {
  text-align: center;
  font-family: "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro",
    游ゴシック体, "Yu Gothic", YuGothic, メイリオ, Meiryo, sans-serif;
  font-size: 2em;
  font-weight: bold;
  line-height: 1.6em;
  color: #264575;
  margin-bottom: 1em;
}

#jirei p.case {
  background: #004490;
  color: #fff;
  font-weight: bold;
  padding: 15px 1em;
  font-size: 24px;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}

#jirei h4 {
  margin-top: 1.5em;
  font-size: 20px;
  font-weight: bold;
  color: #004490;
}

#jirei .wrap > div.unit {
  margin-left: 0;
  padding: 0 2em 2em;
  border: 1px solid #ededed;
  border-radius: 0 0 10px 10px;
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2);
}

#jirei h5 {
  font-size: 20px;
  font-weight: bold;
  color: #1e3f6d;
  margin-bottom: 0.5em;
}

#jirei h5 img {
  width: calc(100% / 3);
  height: calc(100% / 3);
}

#jirei h5.support-img {
  border-left: none;
  padding-left: 0;
  margin: 1em 0;
}

#jirei h5.support-img img {
  width: calc(100% / 3);
  height: calc(100% / 3);
}

.cardbox {
  display: flex;
  justify-content: flex-start;
  padding: 12px;
  background: #e8eaee;
  margin-bottom: 1em;
  border-radius: 15px;
  margin-top: 2.5em;
}

.cardbox > div {
  background: #fafafa;
  padding: 1em;
  border-radius: 15px;
  margin-right: 1em;
}

.cardbox .kekka {
  width: 63%;
}

.cardtitle {
  border-bottom: 1px #bcbcbc solid;
  font-weight: bold;
  color: #333;
}

.kekka .coral {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 0;
}

.subbox {
  width: 14%;
  text-align: center;
}

.subbox:last-child {
  margin-right: 0;
  width: 20%;
}

.subbox p:last-child {
  margin-bottom: 0;
}

.accordion-jirei {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.accordion-jirei label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* + とタイトルを両端配置 */
  padding: 15px 1em;
  background-color: #004490;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  font-size: 24px;
}

.accordion-jirei label::after {
  content: "+";
  font-size: 25px;
  transition: transform 0.3s ease;
}

.accordion-jirei-content {
  max-height: 30px;
  /* 一部のみ表示 */
  overflow: hidden;
  padding: 30px 15px 50px;
  transition: max-height 0.3s ease-out;
}

.accordion-jirei-content h4 {
  margin-top: -5px !important;
}

.accordion-jirei input[type="checkbox"] {
  display: none;
}

.accordion-jirei input[type="checkbox"]:checked + label::after {
  content: "−";
}

.accordion-jirei
  input[type="checkbox"]:checked
  + label
  + .accordion-jirei-content {
  max-height: 1500px;
  /* 開いた時の高さ */
}

.accordion-jirei
  input[type="checkbox"]:checked
  + label
  .accordion-jirei-content::after {
  content: "...続きを読む";
  display: block;
  color: #0078ff;
  text-align: right;
  margin-top: -25px;
  /* 下に被せる */
}

.accordion-jirei
  input[type="checkbox"]:checked
  + label
  + .accordion-jirei-content::after {
  content: "";
}

.readmore {
  margin-top: 2em;
}

#koe {
  background: #e6eff2;
  padding: 3em 0;
}

#koe h3 {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  line-height: 1.6em;
  color: #264575;
  margin-bottom: 1em;
}

#koe h4 {
  color: #ff5c00;
  text-align: center;
  font-size: 23px;
  font-weight: bold;
  margin-bottom: 1.5em;
}

#koe .wrapcontent img {
  width: calc(360px / 2);
  height: calc(200px / 2);
  display: inline-block;
}

#koe .wrapcontent > div {
  display: flex;
  justify-content: center;
}

#koe .wrapcontent > div p {
  color: #1e3f70;
  font-size: 20px;
  background-color: #e6eff2;
  background-image: linear-gradient(
      90deg,
      transparent 50%,
      transparent 10%,
      #e6eff2 0%
    ),
    linear-gradient(180deg, #1e3f70 0px, transparent 1px);
  background-size: 5px 100%, 100% 2.5em;
  line-height: 2.5em;
  padding-bottom: 1px;
  background-position: 0 0, 0 2em;
  margin: 0 3em;
}

#mikata {
  background: #a0c5c3;
  padding-bottom: 2em;
  position: relative;
}

#mikata h3.mikatah3-01 {
  font-size: min(12vw, 40px);
  color: #fff;
  text-align: center;
  font-weight: bold;
  letter-spacing: -1px;
  padding: 1em 1em 0em 1em;
  line-height: 1.3;
}

#mikata .support01 {
  padding: 10px;
  text-align: center;
}

#mikata .support01 .support01-text01 {
  margin: 20px;
  padding: 20px;
  background-color: #d0e1e0;
  box-shadow: 0px 0px 10px 10px #d0e1e0;
  font-size: min(6vw, 20px);
  color: #1e3f6d;
  font-weight: bold;
  line-height: 1.7;
  border-radius: 16px;
}

#mikata .support02 {
  text-align: center;
}

#mikata .support02 p {
  padding: 20px;
  display: inline-block;
  background-color: #fff;
  box-shadow: 0px 0px 10px 10px #fff;
  border-radius: 16px;
  margin: 2em;
  padding: 10px;
  color: #00a6b2;
  font-size: 20px;
  font-weight: bold;
}

#mikata-isan {
  background: #a0c5c3;
  padding-bottom: 2em;
  position: relative;
}

#mikata-isan h3.mikata-isan-h3-01 {
  font-size: min(12vw, 40px);
  color: #fff;
  text-align: center;
  font-weight: bold;
  letter-spacing: -1px;
  padding: 1em 1em 0em 1em;
  line-height: 1.3;
}

#mikata-isan .support01 {
  padding: 10px;
  text-align: center;
}

#mikata-isan .support01 .support01-text01 {
  font-size: min(6vw, 20px);
  color: #fff;
  font-weight: bold;
  display: inline;
  line-height: 1.7;
}

#mikata-isan .support02 {
  text-align: center;
}

#mikata-isan .support02 p {
  display: inline-block;
  background-color: #fff;
  box-shadow: 0px 0px 10px 10px #fff;
  border-radius: 16px;
  margin: 2em;
  padding: 10px;
  color: #00a6b2;
  font-size: 20px;
  font-weight: bold;
}

#flow {
  padding: 2em 0;
  background: repeating-linear-gradient(
    135deg,
    #f6f6f6,
    #f6f6f6 5px,
    #fafafa 5px,
    #fafafa 10px
  );
  text-align: center;
}

#flow h3 {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  line-height: 1.6em;
  color: #264575;
  margin-bottom: 1em;
}

.flow-balloon {
  position: relative;
  display: inline-block;
  margin: 1.5em 0;
  padding: 2em 3em;
  width: 70%;
  color: #555;
  font-size: 16px;
  background: #fff;
  border: solid 2px #84c0da;
  box-sizing: border-box;
  border-radius: 10px;
}

#main-flow .flow-balloon {
  width: 100%;
}

@media screen and (max-width: 767px) {
  .flow-balloon {
    position: relative;
    display: inline-block;
    margin: 1.5em 0;
    padding: 2em 3em;
    width: 100%;
    color: #555;
    font-size: 16px;
    background: #fff;
    border: solid 2px #84c0da;
    box-sizing: border-box;
    border-radius: 10px;
  }
}

.flow-balloon::before {
  content: "";
  position: absolute;
  bottom: -78px;
  left: 50%;
  margin-left: -50px;
  border: 50px solid transparent;
  border-top: 30px solid #fff;
  z-index: 2;
}

.flow-balloon::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: 50%;
  margin-left: -50px;
  border: 50px solid transparent;
  border-top: 30px solid #84c0da;
  z-index: 1;
}

.flow-table {
  width: 80%;
  margin: 0 auto;
}

.flow-list {
  text-align: left;
  margin-left: 30%;
}

@media screen and (max-width: 767px) {
  .flow-balloon .line {
    margin: 15px 0 !important;
  }

  .flow-balloon .flow-table {
    width: 100%;
    margin: 0 auto;
  }

  .flow-balloon .flow-list {
    text-align: left;
    margin-left: 5%;
  }

  .flow-balloon table .ttl {
    font-size: 12px;
  }

  .flow-balloon table th {
    font-size: 12px;
    min-width: 70px;
  }

  .flow-balloon table td {
    font-size: 12px;
  }

  .flow-balloon img {
    width: 60px;
    height: 50px;
    object-fit: contain;
    margin-right: 10%;
  }
}

.flex-h5 {
  display: flex;
  text-align: center;
}

.flex-box {
  display: inline-block;
  width: 40%;
  margin: 0 8%;
}

.flow-balloon p {
  /* margin-bottom: 0; 
  width: 35%; */
}

.flow-balloon img {
  width: 180px;
  height: 150px;
  object-fit: contain;
  margin-right: 10%;
}

.flow-text {
  width: 60%;
  line-height: 1.5;
  margin-top: 30px;
}

#main-flow .flow-text {
  width: 70%;
}

.flow-text2 {
  line-height: 1.5;
  margin: 3%;
}

.flow-text p {
  margin: 2%;
}

#main-flow .flow-balloon img {
  margin: 0 10% 20px;
}

#flow h4 {
  background-color: #e6eff2;
  color: #1e3f6d;
  border-radius: 10px;
  padding: 12px 1em;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  /* justify-content: left; */
  align-items: center;
}

#flow h4 span {
  color: #84c0da;
  display: inline-block;
  margin-right: 1em;
  font-weight: bold;
  font-size: 16px;
  margin-top: 3px;
}

.wrap > .flow-balloon:last-child::before,
.wrap > .flow-balloon:last-child::after {
  content: none;
}

.qa-1,
.reason-1 {
  max-width: 100%;
  margin-bottom: 7px;
  border: 1px solid #d6dde3;
  border-radius: 5px;
}

.qa-1 summary {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  padding: 1em 2em 1em 4em;
  color: #333333;
  font-weight: 600;
  cursor: pointer;
  font-size: 18px;
}

.qa-1 summary::before,
.qa-1 p::before {
  position: absolute;
  left: 1em;
  font-weight: 600;
  font-size: 1.3em;
}

.qa-1 summary::before {
  color: #75bbff;
  content: "Q";
}

.qa-1 summary::after {
  transform: translateY(-25%) rotate(45deg);
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-bottom: 3px solid #333333b3;
  border-right: 3px solid #333333b3;
  content: "";
  transition: transform 0.5s;
  right: 1em;
  position: absolute;
}

.qa-1[open] summary::after {
  transform: rotate(225deg);
}

.qa-1[open] p {
  transform: none;
  opacity: 1;
}

.qa-1 p {
  position: relative;
  transform: translateY(-10px);
  opacity: 0;
  margin: 0;
  padding: 0.3em 3em 1.5em;
  color: #333;
  transition: transform 0.5s, opacity 0.5s;
}

.qa-1 p::before {
  color: #ff8d8d;
  line-height: 1.2;
  content: "A";
}

.qa-1 summary::-webkit-details-marker {
  /* iPhone Safari の三角アイコンを無効化 */
  display: none;
}

.bluebox {
  background-color: #e6eff2;
  padding: 2em;
  text-align: center;
}

.bluebox h4 {
  color: #1e3f6d;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
}

.bluebox .fs20 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 0;
}

.dotbox {
  border: 1px dotted #333;
  padding: 1em;
}

.dotbox > p:first-child {
  width: 60%;
}

.dotbox p {
  font-size: 15px;
  margin-bottom: 0;
}

.dotbox > p:last-child {
  margin-top: 12px;
}

.dotbox p span {
  font-size: 19px;
}

.mapbtn a {
  color: #fff !important;
  padding: 1em;
  background: #729ebc;
  border-radius: 10px;
  text-align: center;
  width: 300px;
  display: inline-block;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.mapbtn a span {
  font-size: 21px;
}

/* ===== Lead: simple ===== */
.lead-simple {
  margin: 0;
}

.lead-simple .lead-box {
  color: #01234b;
  /* 既存の青トーンに準拠 */
  background: #f7fbff;
  /* 淡い青で主張弱め */
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  /* ほんのり浮かせる */
}

.lead-wrap {
  margin: auto;
  width: 980px;
}

.lead-wrap h2 {
  font-size: clamp(22px, 2.4vw + 10px, 34px);
  color: #01244b;
  font-weight: 800;
  margin-bottom: 1em;
}

.lead-wrap > p {
  text-align: center;
  font-size: 20px;
}

.lead-simple .lead-box p {
  margin: 0.6em 0;
}

/* ===== Lead Intro（派手＋シンプル） ===== */
.lead-intro {
  background: linear-gradient(180deg, #eaf4f8 0%, #ffffff 100%);
  padding: 60px 0 50px;
  text-align: center;
}

.lead-intro h2 {
  font-size: clamp(22px, 2.4vw + 10px, 34px);
  color: #01244b;
  font-weight: 800;
  margin-bottom: 1em;
}

.lead-visual img {
  width: min(560px, 90%);
  height: auto;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5em;
}

.lead-text {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 2em;
}

/* リスクボックス */
.lead-risk-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: inline-block;
  text-align: left;
  padding: 24px 15%;
  margin-bottom: 2em;
  max-width: 900px;
  width: 80%;
}

.lead-caption {
  color: #004490;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
}

.lead-risk-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lead-risk-box li {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e2edf7;
  padding: 10px 0;
  color: #01244b;
  font-size: 22px;
  line-height: 25px;
}

.lead-risk-box li:first-child {
  border-top: none;
}

.lead-risk-box .material-symbols-outlined {
  color: #ff9800;
  font-size: 22px;
  vertical-align: middle;
}

/* 下部まとめ */
.lead-summary {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  color: #01244b;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 10px;
}

.lead-summary .material-symbols-outlined {
  color: #004490;
  font-size: 28px;
  margin-top: 4px;
}

.lead-summary p {
  margin: 0;
  font-weight: 500;
  line-height: 1.8;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .lead-risk-box {
    padding: 18px;
  }

  .lead-risk-box li {
    font-size: 15px;
  }
}

/* ===== benefits (相続人調査のメリット) ===== */
#merit-demerit .benefits {
  margin-top: 0;
}

#merit-demerit .benefits .benefits-lead p {
  margin-bottom: 0;
}

/* カードグリッド */
#merit-demerit .benefit-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  #merit-demerit .benefit-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1080px) {
  #merit-demerit .benefit-grid {
    grid-template-columns: 1fr;
  }
}

/* カード本体 */
#merit-demerit .benefit-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 20px 20px 16px;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  align-items: flex-start;
}

#merit-demerit .benefit-card .line {
  margin-top: 0;
}

/* アイコン */
#merit-demerit .benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f1fb;
  /* 既存の青系トーンに寄せる */
}

#merit-demerit .benefit-icon .material-symbols-outlined {
  font-size: 28px;
  color: #004490;
  /* 既存サイトの青系キー色に準拠 */
}

/* テキスト */
#merit-demerit .benefit-body p {
  margin: 0.6em 0;
  text-align: left;
}

.note-small {
  font-size: 0.92em;
  color: #666;
  margin-top: 0.4em;
}

@media (min-width: 620px) and (max-width: 767px) {
  .mainvisual-img img {
    max-height: 380px;
  }
  .mainvisual-isan-img img {
    max-height: 380px;
  }
}

@media screen and (min-width: 740px) and (max-width: 767px) {
  .mainvisual-houki-img img {
    height: 450px !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 1098px) {
  .mainvisual-houki-text h2 p {
    font-size: min(5.6vw, 48px);
  }
}

@media screen and (max-width: 767px) {
  .mainvisual {
    height: auto;
    margin-top: 0;
    position: relative;
    min-height: auto;
  }

  .mainvisual > div {
    min-height: auto;
  }

  .mainvisual-img {
    height: auto;
    width: 60%;
    position: static;
    margin-right: 0;
  }

  .mainvisual-img img {
    height: auto;
    position: absolute;
    width: calc(100% / 2);
    bottom: 0;
    left: 0;
    right: auto;
  }

  .mainvisual-text {
    position: static;
    width: 100%;
    padding: 1em;
  }

  .mainvisual-text > p {
    text-align: center;
  }

  .mainvisual-text p > span {
    font-size: min(6vw, 27px);
    font-size: clamp(1rem, 0.4021rem + 2.551vw, 1.625rem);
    margin-bottom: 5px;
  }

  .mainvisual-text h2 {
    font-size: 4.7vw;
    z-index: 1;
    position: relative;
  }

  .mainvisual-text h2 span.h2span1,
  .mainvisual-text h2 span.h2span2 {
    font-size: min(5vw, 40px);
    text-shadow: 1px 1px 0 #c0d4f2, -1px -1px 0 #c0d4f2, -1px 1px 0 #c0d4f2,
      1px -1px 0 #c0d4f2, 0px 1px 0 #c0d4f2, 0-1px 0 #c0d4f2, -1px 0 0 #c0d4f2,
      1px 0 0 #c0d4f2;
    line-height: 1.1;
  }

  .mainvisual-text h2 p {
    font-size: min(8.5vw, 50px);
    letter-spacing: 0;
    text-shadow: 1px 1px 0 #c0d4f2, -1px -1px 0 #c0d4f2, -1px 1px 0 #c0d4f2,
      1px -1px 0 #c0d4f2, 0px 1px 0 #c0d4f2, 0-1px 0 #c0d4f2, -1px 0 0 #c0d4f2,
      1px 0 0 #c0d4f2;
  }
  .mainvisual-isan {
    height: auto;
    margin-top: 0;
    position: relative;
    min-height: auto;
  }

  .mainvisual-isan > div {
    min-height: auto;
  }

  .mainvisual-isan-img {
    height: auto;
    width: 60%;
    position: static;
    margin-right: 0;
  }

  .mainvisual-isan-img img {
    height: auto;
    position: absolute;
    width: calc(100% / 2);
    bottom: 0;
    left: 0;
    right: auto;
  }

  .mainvisual-isan-text {
    position: static;
    width: 100%;
    padding: 1em;
  }

  .mainvisual-isan-text > p {
    text-align: center;
  }

  .mainvisual-isan-text p > span {
    font-size: min(6vw, 27px);
    font-size: clamp(1rem, 0.4021rem + 2.551vw, 1.625rem);
    margin-bottom: 5px;
  }

  .mainvisual-isan-text h2 {
    font-size: 4.7vw;
    z-index: 1;
    position: relative;
  }

  .mainvisual-isan-text h2 span.h2span1,
  .mainvisual-isan-text h2 span.h2span2 {
    font-size: min(5vw, 40px);
    text-shadow: 1px 1px 0 #c0d4f2, -1px -1px 0 #c0d4f2, -1px 1px 0 #c0d4f2,
      1px -1px 0 #c0d4f2, 0px 1px 0 #c0d4f2, 0-1px 0 #c0d4f2, -1px 0 0 #c0d4f2,
      1px 0 0 #c0d4f2;
    line-height: 1.1;
  }

  .mainvisual-isan-text h2 p {
    font-size: min(8.5vw, 50px);
    letter-spacing: 0;
    text-shadow: 1px 1px 0 #c0d4f2, -1px -1px 0 #c0d4f2, -1px 1px 0 #c0d4f2,
      1px -1px 0 #c0d4f2, 0px 1px 0 #c0d4f2, 0-1px 0 #c0d4f2, -1px 0 0 #c0d4f2,
      1px 0 0 #c0d4f2;
  }
  .mainvisual-iryubun {
    height: auto;
    margin-top: 0;
    position: relative;
    min-height: auto;
  }

  .mainvisual-iryubun > div {
    min-height: auto;
  }

  .mainvisual-iryubun-img {
    height: auto;
    width: 60%;
    position: static;
    margin-right: 0;
  }

  .mainvisual-iryubun-img img {
    height: auto;
    position: absolute;
    width: calc(100% / 2);
    bottom: 0;
    left: 0;
    right: auto;
  }

  .mainvisual-iryubun-text {
    position: static;
    width: 100%;
    padding: 1em;
  }

  .mainvisual-iryubun-text > p {
    text-align: center;
  }

  .mainvisual-iryubun-text p > span {
    font-size: clamp(1rem, 0.4021rem + 2.551vw, 1.625rem);
    margin-bottom: 5px;
  }

  .mainvisual-iryubun-text h2 {
    font-size: 4.7vw;
    z-index: 1;
    position: relative;
  }

  .mainvisual-iryubun-text h2 span.h2span1,
  .mainvisual-iryubun-text h2 span.h2span2 {
    font-size: min(5vw, 40px);
    text-shadow: 1px 1px 0 #c0d4f2, -1px -1px 0 #c0d4f2, -1px 1px 0 #c0d4f2,
      1px -1px 0 #c0d4f2, 0px 1px 0 #c0d4f2, 0-1px 0 #c0d4f2, -1px 0 0 #c0d4f2,
      1px 0 0 #c0d4f2;
    line-height: 1.1;
  }

  .mainvisual-iryubun-text h2 p {
    font-size: min(8.5vw, 50px);
    letter-spacing: 0;
    text-shadow: 1px 1px 0 #c0d4f2, -1px -1px 0 #c0d4f2, -1px 1px 0 #c0d4f2,
      1px -1px 0 #c0d4f2, 0px 1px 0 #c0d4f2, 0-1px 0 #c0d4f2, -1px 0 0 #c0d4f2,
      1px 0 0 #c0d4f2;
  }
  .mainvisual-houki {
    background: none;
    height: auto;
    margin-top: 0;
    position: relative;
  }

  .mainvisual-houki-img {
    height: auto;
    width: 60%;
    position: static;
  }

  .mainvisual-houki-img img {
    height: auto;
    position: absolute;
    width: calc(100% / 2);
    bottom: 0;
    right: auto;
    left: 0;
  }

  .mainvisual-houki-text {
    height: 100%;
    position: static;
    width: 100%;
    background: #c0d4f2;
    padding: 1em;
  }

  .mainvisual-houki-text > p {
    text-align: center;
  }

  .mainvisual-houki-text p > span {
    font-size: min(6vw, 27px);
    margin-bottom: 5px;
  }

  .mainvisual-houki-text h2 {
    font-size: 4.7vw;
    z-index: 1;
    position: relative;
  }

  .mainvisual-houki-text h2 span.h2span1,
  .mainvisual-houki-text h2 span.h2span2 {
    font-size: min(6vw, 40px);
  }

  .mainvisual-houki-text h2 span.h2span2 {
    text-shadow: 1px 1px 0 #c0d4f2, -1px -1px 0 #c0d4f2, -1px 1px 0 #c0d4f2,
      1px -1px 0 #c0d4f2, 0 1px 0 #c0d4f2, 0 -1px 0 #c0d4f2, -1px 0 0 #c0d4f2,
      1px 0 0 #c0d4f2;
  }

  .mainvisual-houki-text h2 p {
    font-size: min(7.8vw, 50px);
    letter-spacing: 0;
    text-shadow: 1px 1px 0 #c0d4f2, -1px -1px 0 #c0d4f2, -1px 1px 0 #c0d4f2,
      1px -1px 0 #c0d4f2, 0px 1px 0 #c0d4f2, 0-1px 0 #c0d4f2, -1px 0 0 #c0d4f2,
      1px 0 0 #c0d4f2;
  }

  .mainvisual-houki-lead {
    text-shadow: 1px 1px 0 #c0d4f2, -1px -1px 0 #c0d4f2, -1px 1px 0 #c0d4f2,
      1px -1px 0 #c0d4f2, 0px 1px 0 #c0d4f2, 0-1px 0 #c0d4f2, -1px 0 0 #c0d4f2,
      1px 0 0 #c0d4f2;
  }

  .contact-box {
    padding: 0 1em;
  }

  .balloon2 p {
    font-size: 4.1vw;
  }

  .contact-box p.fs62 {
    font-size: 11vw;
  }

  .contact-box p.fs36 {
    font-size: 6vw;
  }

  .row-parent {
    padding: 0 5px;
    margin-bottom: 40px;
  }

  .row-parent .row-child {
    max-width: 98%;
    flex-basis: 98%;
    margin-bottom: 20px;
  }

  .entry {
    padding: 6em 1em 2em;
  }

  .entrybnr p.red {
    font-size: 6vw;
    margin-bottom: 0;
  }

  .entrybnr .phone-number {
    font-size: 11.9vw;
    white-space: nowrap;
    margin-bottom: 0;
  }

  .entry .entrybnr {
    border: none;
    padding-right: 0;
    width: 90%;
    margin: 0 auto;
  }

  .entry .entrybnr:nth-child(n + 2) {
    padding-bottom: 2em;
  }

  .entry .entrybnr > span {
    font-size: 15vw;
  }

  #nayami > div.wrap {
    margin: 0 2em;
  }

  #nayami h3.nayamih3-01 {
    font-size: 9vw;
  }

  #nayami .nayamiimg-01 {
    padding: 0 2em;
  }

  #nayami .nayamiimg-01 img {
    width: 100%;
    height: 100%;
  }

  #nayami div.nayamilist {
    padding: 2em;
  }

  #nayami div.nayamilist p {
    padding-left: 2em;
    text-indent: -0.75em;
    font-size: 5vw;
  }

  #nayami div.nayamilist span {
    font-size: 6vw;
  }

  #nayami .nayamih3-02 {
    margin-left: 0 !important;
    margin-bottom: 1em;
  }

  #nayami .nayamih3-02 p {
    font-size: min(6vw, 43px);
    line-height: 1.7;
  }

  #nayami .ohayame .ohayame-text {
    font-size: min(6vw, 24px);
    display: block;
    background: none;
    color: #fff;
  }

  #nayami::after,
  #reason::after,
  #reason-isan::after,
  #reason-iryubun::after,
  #reason-houki::after {
    visibility: visible;
  }

  #dosen .dosenboxs {
    display: block;
  }

  #dosen .dosenbox {
    width: 100%;
    margin: 0;
    margin-bottom: 2em;
  }

  #setsumei .threetypes-row {
    flex-direction: column;
    gap: 1em;
  }

  #setsumei .threetype-box {
    max-width: 100%;
  }

  #merit-demerit .unit {
    flex-direction: column;
    gap: 0;
  }

  #merit-demerit .merit,
  #merit-demerit .demerit {
    width: 100%;
    min-width: unset;
    border: none;
    padding: 2em 0.5em;
  }

  #reason > div {
    display: block;
  }

  #reason > div > div {
    width: 100%;
    margin-bottom: 2em;
  }

  #reason-isan > div {
    display: block;
  }

  #reason-isan > div > div {
    width: 100%;
    margin-bottom: 2em;
  }

  #reason-iryubun > div {
    display: block;
  }

  #reason-iryubun > div > div {
    width: 100%;
    margin-bottom: 2em;
  }

  #reason-houki > div {
    display: block;
  }

  #reason-houki > div > div {
    width: 100%;
    margin-bottom: 2em;
  }

  .cardbox {
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .kekka {
    width: 100% !important;
    text-align: center;
    margin-right: 0 !important;
    margin-bottom: 10px;
  }

  .cardbox {
    padding: 12px 12px 0;
  }

  .cardbox > div {
    width: calc(90% / 2);
    margin-bottom: 10px;
    margin-right: 0;
    padding: 0.5em;
  }

  .subbox {
    margin-right: 10px;
    padding: 10px;
  }

  .subbox:last-child {
    margin-right: 0;
  }

  .subbox p {
    font-size: 3vw;
  }

  .subbox:last-child {
    width: calc(100% / 2);
  }

  #jirei {
    padding: 6em 1em 1em;
  }

  #jirei h4 {
    font-size: min(6vw, 32px);
  }

  #jirei h5 img {
    width: 100%;
    height: 100%;
  }

  .accordion-jirei-content {
    padding: 30px 15px 87px;
  }

  .accordion-jirei
    input[type="checkbox"]:checked
    + label
    + .accordion-jirei-content {
    max-height: 200vh;
  }

  .readmore {
    position: relative;
    margin: 1em auto 2em;
    padding: 0 0 20px;
  }

  .readmore label {
    position: absolute;
    display: table;
    left: 50%;
    bottom: 0;
    margin: 0 auto;
    width: 100%;
    padding: 10px 0;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    background-color: coral;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 1;
    font-weight: bold;
  }

  .readmore label::before {
    content: "さらにつづきを読む";
  }

  .readmore input[type="checkbox"]:checked ~ label::before {
    content: "元に戻す";
  }

  .readmore input[type="checkbox"] {
    display: none;
  }

  .readmore-content {
    position: relative;
    height: 50px;
    overflow: hidden;
    margin-bottom: 1em;
  }

  .readmore input[type="checkbox"]:checked ~ .readmore-content {
    height: auto;
  }

  .readmore-content::before {
    position: absolute;
    display: block;
    content: "";
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 50%,
      #fff 100%
    );
  }

  .readmore input[type="checkbox"]:checked ~ .readmore-content::before {
    display: none;
  }

  #koe {
    padding: 3em 2em;
  }

  #koe .wrapcontent > div {
    display: block;
  }

  #koe .wrapcontent img {
    width: calc(100% / 2);
    height: calc(100% / 2);
    display: block;
    margin: 1em auto;
  }

  #koe .wrapcontent > div p {
    margin: 0;
  }

  #flow {
    padding: 2em 1em;
  }

  #flow h3 {
    margin-bottom: 0;
  }

  .flow-balloon {
    padding: 2em 1em;
  }

  .flow-text {
    width: 100%;
  }

  .flow-balloon .column-between p {
    text-align: center;
    width: 100%;
  }

  .flow-balloon .column-between p.flow-text {
    text-align: left;
    width: 100% !important;
  }

  .dotbox > p:first-child {
    width: 100%;
  }

  .mapbtn {
    text-align: center;
  }

  .qa-1 summary {
    font-size: 4.5vw;
  }
}
