@charset "utf-8";

/* =========================================================
  このページ専用 style.css
  - base.css / base_sp.css を前提に「見た目だけ」足す
  - index_dev.html のCTA版（contact-box/cta）も、提示HTMLのfooter版も両対応
========================================================= */

/* -------------------------
  基本トーン
------------------------- */
:root {
  --text-color: #1b1b1b;
  --accent: #ed4b5e;
  --blue: #0500ff;
  --green: #2e6639;
  --soft-gray: #ebebeb;
  --soft-blue: #e6eff2;
}

body {
  color: var(--text-color);
}

main {
  margin: 20px 0;
}

p {
  padding: 0.5em 0;
}

a {
  color: var(--text-color);
}

a:visited {
  color: var(--text-color);
}

main ul {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  padding-inline-start: 40px;
  unicode-bidi: isolate;
}

/* body.container 前提（提示HTML） */
.container {
  padding: 20px 10%;
}

/* テーマの .wrap 幅に載せる場合も崩れないように */
.wrap {
  max-width: 980px;
}

/* -------------------------
  パンくず
------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  list-style: none;
  padding-left: 0;
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #666;
}

.breadcrumbs li {
  margin: 0;
  font-size: inherit;
  line-height: 1.6;
}

.breadcrumbs li+li::before {
  content: ">";
  margin-right: 0.4em;
  color: #999;
}

.breadcrumbs a {
  color: #666;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* -------------------------
  メインビジュアル
------------------------- */
.mainvisual {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 2000 / 722;

  display: flex;
  justify-content: center;
  align-items: center;

  margin: 10px 0 0;
}

.mainvisual h1 {
  width: 100%;
  padding: 0.8em 0;
  max-height: 100%;
  text-align: center;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  background-color: rgba(0, 0, 0, 0.25);
}

/* -------------------------
  セクション見出し
------------------------- */
.section-title {
  position: relative;
  margin: 2rem 0 1rem;
  padding: 0.5em 0 0.5em 1.2em;
  font-size: 1.5em;
  background-color: var(--soft-gray);
  font-weight: bold;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 15%;
  display: inline-block;
  margin-left: -0.6em;
  width: 3px;
  height: 70%;
  background-color: #a6cecb;
}


/* -------------------------
  本文
------------------------- */
.faq-outlink {
  text-decoration: underline;
}

.faq-outlink:hover {
  color: #666;
}


/* -------------------------
  事例（丸数字）
------------------------- */
@counter-style circled-decimal {
  system: fixed;
  symbols: "①" "②" "③" "④" "⑤" "⑥" "⑦" "⑧" "⑨" "⑩" "⑪" "⑫" "⑬" "⑭" "⑮" "⑯" "⑰"
    "⑱" "⑲" "⑳";
}

.cases {
  list-style: none;
  padding-left: 0;
  counter-reset: cases;
}

.cases li {
  margin-bottom: 18px;
}

.cases .case-title {
  position: relative;
  color: var(--green);
  font-weight: bold;
  counter-increment: cases;
  margin: 0 0 0.5em 0;
  padding-bottom: 0.15em;
  border-bottom: 0.1em solid var(--green);
  font-size: 20px;
}

.cases .case-title::before {
  content: "事例" counter(cases, circled-decimal);
  margin-right: 1em;
}

/* -------------------------
  ボックスリンク（矢印）
------------------------- */
.boxed-link {
  --arrow-bar-width: 0.9em;
  --arrow-bar-height: 0.15em;
  --arrow-bar-angle-abs: 40deg;

  position: relative;
  display: inline-block;
  width: 100%;
  margin: 1em 0;
  padding: 0.6em 0.9em;
  padding-left: 1.5em;

  border-radius: calc(infinity * 1px);
  color: #4d4d4d !important;
  text-decoration: underline !important;
  background-color: var(--soft-blue);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.boxed-link:hover {
  filter: brightness(0.98) !important;
  color: #4d4d4d !important;
}

.boxed-link::before,
.boxed-link::after {
  position: absolute;
  display: inline-block;
  content: "";
  width: var(--arrow-bar-width);
  height: var(--arrow-bar-height);
  right: 1.2em;
  top: calc(50% - var(--arrow-bar-height) / 2);
  border-radius: calc(infinity * 1px);
  background-color: #4d4d4d;
  transform-origin: calc(100% - var(--arrow-bar-height) / 2) 50% 0;
}

.boxed-link::before {
  transform: rotate(var(--arrow-bar-angle-abs));
}

.boxed-link::after {
  transform: rotate(calc(-1 * var(--arrow-bar-angle-abs)));
}

/* -------------------------
  ポイント（見出し＋ボックス）
------------------------- */
.point-title {
  --point-font-size: 1.3rem;
  --point-image-size: 5em;
  --title-bottom: calc((var(--point-image-size) - var(--point-font-size)) / 2);
  --point-image-margin-right: 1em;
  --point-title-underline-offset: calc(var(--point-image-size) + (var(--point-image-margin-right) * 2 / 5));

  position: relative;
  font-size: var(--point-font-size);
  font-weight: bold;
  bottom: var(--title-bottom);

  border-bottom: 0.1em solid;
  border-image: linear-gradient(to right,
      transparent 0,
      transparent var(--point-title-underline-offset),
      currentColor var(--point-title-underline-offset),
      currentColor 100%);
  border-image-slice: 1;
}

.point-title::before {
  content: "";
  position: relative;
  display: inline-block;
  width: var(--point-image-size);
  height: var(--point-image-size);
  aspect-ratio: 1;
  background-image: url("/kazokushintaku/img/point.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  top: var(--title-bottom);
  margin-right: var(--point-image-margin-right);
}

.point-box {
  margin: 0.5em 0 1.5em;
  width: 100%;
  height: fit-content;
  background-color: #f9fde0;
  border: 3px solid #e1f763;
  border-radius: 10px;
  font-size: 1.1em;
  padding: 0.8em 1em;
}

.point-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.point-box li {
  font-size: 20px;
}

.point-box li:not(:last-child) {
  margin-bottom: 1em;
}

/* -------------------------
  named-box（メリット／注意点）
------------------------- */
.named-box {
  position: relative;
  margin: 36px 0;
  padding: 40px 18px 16px;
  border: 3px solid rgba(var(--box-theme-color), 1);
  border-radius: 6px;
  background: #fff;
}

/* 見出しを“帯”ではなく「左上に乗るラベル」に */
.named-box .box-merit {
  position: absolute;
  top: -14px;
  left: -3px;
  margin: 0;
  padding: 4px 14px;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.6;
  color: #111;
  background: rgba(var(--box-theme-color), 1);
  border-radius: 4px;
  border-left: none;
}

.named-box .box-attention {
  position: absolute;
  top: -14px;
  left: -3px;

  margin: 0;
  padding: 4px 14px;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.6;

  color: #fff;
  background: rgba(var(--box-theme-color), 1);
  border-radius: 4px;
  border-left: none;
}

/* リストの見た目を目標寄せ */
.named-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.named-box li {
  margin-bottom: 10px;
}

.named-box li.nomal {
  /* line-height: 1.7; */
  padding-bottom: 0;
}


.named-box p {
  font-size: 20px;
  /* position: relative; */
  line-height: 1.5;
  display: inline;
  padding: 0 0 5px;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: rgba(var(--box-theme-color), 0.5);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.named-box li.caution p {
  text-decoration-style: wavy;
  text-decoration-color: rgba(var(--box-theme-color), 1);
}

/* 
.named-box li.nomal p::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border-bottom: 2px dashed var(--box-theme-color);
  opacity: 0.5;
} 
*/

/* 
.named-box li.caution p::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;

  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='6' viewBox='0 0 40 6'><path d='M0 3 Q5 0 10 3 T20 3 T30 3 T40 3' fill='none' stroke='%23ed4b5e' stroke-width='2'/></svg>");
  background-repeat: repeat-x;
  background-size: 40px 6px;
}
*/

/* 注意点（赤）は、枠線だけ赤／中身は白（目標） */
.named-box {
  background: #fff;
}

/* =========================================================
  ▼ここからフッター（提示HTML版）
========================================================= */

.balloon2 {
  position: relative;
  display: inline-block;
  margin: 3em 0 1em;
  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: -27px;
  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;
  padding: 0;
}

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

.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;
  padding: 0;
}

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

.entrybnr .mailbtn a {
  color: #fff;
  background: #0171b7;
  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;
  font-size: 18px;
}

.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;
}

/* SP */
@media (max-width: 767px) {
  .contact-box {
    padding: 44px 0 30px;
  }

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

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

  .cta {
    padding: 70px 16px 44px;
  }

  .cta__grid {
    flex-direction: row;
    /* 目標はSPでも横並び寄り */
    gap: 26px;
    flex-wrap: wrap;
  }

  .cta-card {
    flex: 1 1 300px;
  }

  .cta-card__number {
    font-size: 10.5vw;
  }
}

/* =========================================================
  レスポンシブ（SP）
========================================================= */
@media screen and (max-width: 767px) {
  .wrap {
    padding: 10px;
  }

  .container {
    padding: 16px 5%;
  }

  .section-title {
    font-size: 20px;
  }

  .mainvisual h1 {
    font-size: 1.7rem;
  }

  .boxed-link {
    font-size: 20px;
  }

  .point-box li {
    font-size: 18px;
  }

  .cases .case-title {
    padding: 0 10px;
    font-size: 18px;
  }

  .cases .case-title::before {
    display: block;
  }

  .cases p {
    padding: 0 10px;
  }

  .named-box {
    padding-top: 26px;
  }

  .named-box .box-title {
    top: -12px;
  }

  .named-box li:first-child {
    margin-top: 15px;
  }

  .named-box p {
    font-size: 18px;
  }


  .named-box li.caution p {
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
  }

  .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;
  }
}