.breadcrumb {
  font-size: 0.85em;
  color: #555;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumb li {
  font-size: 14px;
}

.breadcrumb li + li:before {
  content: "›";
  margin: 0 0.5em;
  color: #888;
}

.mainvisual {
  background: #5475a5 url(/rikon/jirei-kaisetsu/img/IM_jireikaisetsu.webp);
  width: 100%;
  height: 200px;
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
  background-position: right;
}

.mainvisual h2 {
  color: #fff;
  font-weight: bold;
  font-size: min(3.4vw, 40px);
  position: absolute;
  top: 30%;
  padding: 0 1em;
  line-height: 1.2;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.toc-accordion {
  margin: 1.5em 0;
  padding: 1em;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95em;
}

.toc-accordion summary {
  font-weight: bold;
  cursor: pointer;
}

.toc-accordion ul {
  margin: 1em 1.3em;
  padding-left: 1.2em;
}

.toc-accordion li {
  margin-bottom: 0.4em;
}

.toc-accordion a {
  text-decoration: none;
  color: #1976d2;
}

.advice-box {
  padding: 1em 2em;
  margin: 2em 1em;
  border-radius: 10px;
  background: #f0f8ff;
}

.advice-box h3 {
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.advice-box h3 img {
  width: 60px;
  height: 60px;
}

.advice-box h3 span {
  margin-left: 1em;
  font-weight: bold;
}

.advice-box .unit {
  margin: 1em;
}

.case-quote {
  color: #555;
  margin: 1.5em 0;
  font-size: 14px;
  line-height: 1.6;
  background-color: #f9f9f9;
  padding: 1em;
}

.unit p {
  line-height: 1.8;
}

.entry {
  overflow: hidden;
  background: #f5f3ef;
  width: 100%;
  padding: 3em 2em;
}

.entry > .wrapcontent {
  max-width: 980px;
  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: #000000;
  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: min(2.5vw, 40px);
  font-weight: bold;
  letter-spacing: -0.07em;
}

.entrybnr .time {
  margin-top: -10px;
  font-size: min(2.5vw, 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;
}

.balloon2 {
  position: relative;
  display: inline-block;
  margin: 0 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;
}

.pt7em {
  padding-top: 7em;
}

#jirei_kaisetu {
  border: 3px solid #e3e3e3;
  padding: 1em;
  margin: 2em auto;
}

#jirei_kaisetu img {
  height: 150px;
}

#jirei_kaisetu .wrapcontent {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
}

#jirei_kaisetu div.text {
  padding: 0 1.5em;
  padding-top: 1.5em;
}

#jirei_kaisetu h3 {
  font-size: 1.5em;
  margin-bottom: 0;
  text-align: left;
}

#jirei_kaisetu p a {
  color: #0027ff;
  font-size: 0.9em;
}

#jirei_kaisetu p.kaisetu-link {
  margin: 1em 1em 0;
  color: #3a3a3ad1;
  border-bottom: 1px solid #e3e3e3;
}

#jirei_kaisetu p.kaisetu-link a {
  font-size: 1.1em;
  color: #00324d;
}

#jirei_kaisetu p.kaisetu-link a:hover {
  text-decoration: none;
  color: #00324d9c;
}

@media screen and (max-width: 767px) {
  .mainvisual {
    background-size: cover;
  }

  .mainvisual h2 {
    font-size: min(7vw, 30px);
    top: 20%;
  }

  .advice-box {
    padding: 1em;
  }

  .advice-box .unit {
    margin: 1em 0;
  }

  .advice-box h3 span {
    border-bottom: none;
  }

  .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;
  }

  .contact-box {
    padding: 0 1em;
  }

  .balloon2 p {
    font-size: 4.1vw;
  }

  .contact-box p.fs62 {
    font-size: 10vw;
  }

  .contact-box p.fs36 {
    font-size: 6vw;
  }

  h4.line {
    padding-left: 0;
    text-indent: 0;
  }
}
