@charset "utf-8";

/*====================================================================================================
  CONTENT
====================================================================================================*/
.main_wrap {
  width: 100%;
  position: relative;
  z-index: 1; /* CONTACT(緑背景)より上 */
  border-bottom-left-radius: var(--frame-size);
  border-bottom-right-radius: var(--frame-size);
  background-color: var(--color-base);
  overflow: hidden;
}
.wide {
  width: calc(100vw - (var(--frame-size) * 2));
  margin-inline: calc(50% - (50vw - var(--frame-size)));
}
.ext {
  font-size: clamp(1.25rem, 1.064rem + 0.76vw, 1.875rem); /* 20px:390px,30px:1700px */
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.76666;
}
.come {
  font-size: clamp(1rem, 0.926rem + 0.31vw, 1.25rem);  /* 16px:390px,20px:1700px */
}

/* 座布団文字 */
.hilight_w {
  background-color: var(--color-base);
  padding: 0.4em 0.8em;
  margin-inline: 0.3em;
  border-radius: 9999px;
}
.hilight_g {
  width: fit-content;
  background-color: var(--color-primary);
  padding: 0.5em 0.8em;
  margin-inline: 0.3em;
  border-radius: 9999px;
  color: var(--color-base);
  text-align: center;
  font-size: clamp(1rem, 0.926rem + 0.31vw, 1.25rem); /* 16px:390px,20px:1700px */
}

/* テキスト一部色変更用 */
.orange {
  color: var(--color-accent);
}

/*====================================================================================================
  TOPPAGE
====================================================================================================*/
#toppage #header .sub_logo {
  display: none;
}

/*---------------------------------------------------------------------------
  MAINIMG
---------------------------------------------------------------------------*/
#toppage .mainimg {
  position: relative;
  width: 100%;
  z-index: 1;
  display: flow-root;
}
#toppage .catch_group {
  margin-top: clamp(20px, calc(7.63vw - 9.77px), 120px); /* 1700px:120px,390px:20px */
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-inline: auto;
}
#toppage .catch {
  margin-bottom: clamp(3.438rem, 2.228rem + 4.96vw, 7.5rem); /* ? */
  font-weight: 800;
}
#toppage .catch_txt {
  font-size: 1.25rem;
  line-height: 2;
  color: var(--color-font);
}
#toppage .catch h2 {
  font-size: clamp(3.438rem, 2.228rem + 4.96vw, 7.5rem); /*55px:390px,120px:1700px */
  line-height: 1.05;
  font-weight: 800;
  color: var(--color-primary);
}
#toppage .catch .h2_icon {
  height: 0.9em;
  width: auto;
  margin-bottom: 0;
  margin-left: 0.03em
}
#toppage .catch_img img {
  width: 638px;
  max-width: 96%;
  aspect-ratio: 638/ 427;
  height: auto;
}

@media screen and (max-width: 1340px) {
  #toppage .catch {
    margin-bottom: 0;
  }
  #toppage .catch_group {
    margin-top: 1rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  #toppage .catch {
    text-align: center;
  }
  #toppage .catch_img img {
    margin-left: 1rem;
  }
}

@media screen and (max-width: 780px) {
  #toppage .catch_txt {
    margin-bottom: 25px;
    line-height: 1.5;
  }
}

/*---------------------------------------------------------------------------
  MAIN_CONTENT
---------------------------------------------------------------------------*/
#toppage .main_content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
#toppage h3 {
  font-size: clamp(1.875rem, 1.503rem + 1.53vw, 3.125rem); /* 30px:390px,50px:1700px */
  font-weight: 800;
  line-height: 1.48;
  color: var(--color-primary);
}

/*---------------------------------------------------------------------------
  INTRO
---------------------------------------------------------------------------*/
#toppage .intro {
  position: relative;
  margin-top: -100px;
  padding-top: 2rem;
  background-image: url('../../image/intro-bg.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  z-index: 0;
}
#toppage .intro_inner {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
}
#toppage .intro_inner .intro_msg {
  width: 100%;
  max-width: 1380px;
  margin-inline: auto;
  margin-bottom: 220px
}
#toppage .intro_inner .ext {
  color: var(--color-font);
  margin-bottom: 0.5em;
}
#toppage .intro_inner .come {
  font-size: clamp(0.875rem, 0.763rem + 0.46vw, 1.25rem); /* 14px:390px,20px:1700px */
}
#toppage .intro_inner .ext.msg2 {
  text-align: center;
  margin-bottom: 2rem;
}
#toppage ul.category_list {
  width: fit-content;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2rem;
  margin: 0 auto 1rem;
}
#toppage ul.category_list li {
  position: relative;
  width: 100%;
  background: var(--color-primary);
  border-radius: 20px;
  font-weight: 800;
  font-size: clamp(1.875rem, 1.503rem + 1.53vw, 3.125rem); /*30px:390px,50px:1700px */
  line-height: 1.48;
  color: var(--color-base);
  padding: 4px 0 4px 16px;
  display: inline-flex;
  align-items: center;
}
#toppage ul.category_list li span {
  margin-right: 120px;
}
ul.category_list li .category_icon {
  position: absolute;
  right: 10px;
  bottom: 8px;
  height: 110%;
  width: auto;
}
#toppage .intro_inner h3 {
  text-align: center;
}
#toppage .intro_inner h3 span {
  font-size: clamp(2.813rem, 2.347rem + 1.91vw, 4.375rem); /*45px:390px,70px:1700px */
}
#toppage .worries {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}
#toppage ul.worries_list {
  width: 100%;
  padding: 2rem;
  background-color: var(--color-base);
  border: 2px solid var(--color-primary);
  border-radius: 20px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  row-gap: 1.375rem;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}
#toppage ul.worries_list li {
  position: relative;
  padding-left: 1.2em;
  align-self: self-start;
  line-height: 1.6;
  font-size: clamp(1rem, 0.926rem + 0.31vw, 1.25rem); /*16px:390px,20px:1700px */
  /* 16px以下でジャギーが出るため強制 */
  transform: rotate(0.04deg);
}
#toppage ul.worries_list li::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0.4em;
  width: 15px;
  height: 15px;
  background-color: var(--color-primary);
  border-radius: 50%;
}


@media screen and (max-width: 1340px) {
#toppage .intro_inner .intro_msg {
  text-align: center;
  margin-top: 3rem;
}
}

@media screen and (max-width: 1280px) {
  #toppage .worries {
    width: 96%;
    margin-inline: auto;
  }
  #toppage ul.worries_list {
    gap: 1rem;
  }
  #toppage .intro {
    margin-top: -90px;
    background-position: top left;
    background-size: cover;
  }
}


@media screen and (max-width: 1000px) {
  #toppage .intro_inner .intro_msg {
    margin-bottom: 30px
  }
  #toppage ul.category_list {
    grid-template-columns: repeat(2, 1fr);
    margin-inline: auto;
    gap: 1.375rem;
  }
  #toppage ul.category_list li {
    border-radius: 10px;
  }
  #toppage ul.category_list li span {
    margin-right: 80px;
  }
}

@media screen and (max-width: 700px) {
  #toppage ul.worries_list {
    padding: 1rem;
    grid-auto-flow: row;
  }
}

@media screen and (max-width: 393px) {
  #toppage .intro {
    margin-top: -60px;
    padding-inline: 2%;
  }
#toppage ul.worries_list {
  margin-bottom: 1.5rem;
  }
  
}



/*---------------------------------------------------------------------------
  SERVICE
---------------------------------------------------------------------------*/
#toppage .service_msg {
  width: fit-content;
  margin-inline: auto;
}
#toppage .service_msg h3:has(span.marker) {
  position: relative;
  display: inline-block;
  font-size: clamp(1.25rem, 0.692rem + 2.29vw, 3.125rem); /* 20px:390px,50px:1700px */
  text-align: center;
  margin-bottom: 8rem;
  padding-inline: clamp(120px, 28vw, 360px);
}
#toppage .service_msg h3 span.marker {
  color: var(--color-primary);
  background: linear-gradient(transparent 50%, #FFF492 50%);
}
#toppage .service_group {
  position: relative;
  width: 100%;
  padding-top: 8rem;
  margin-inline: auto;
  background-image: url('../../image/service-bg.png');
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
}
#toppage .service_group::before {
  position: absolute;
  content: "";
  bottom: 100%; 
  transform: translateY(10%); /* 食い込み調整 */
  left: auto;
  right: calc(50% + 370px); /* 370px=1700pxのときのh3横幅の半分 */
  width: clamp(133px, calc(14.66vw + 75.8px), 325px); 
  aspect-ratio: 325 / 412;
  background-image: url('../../image/marker-deco-left.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  pointer-events: none;
}
#toppage .service_group::after {
  position: absolute;
  content: "";
  bottom: 100%; 
  transform: translateY(10%); /* 食い込み調整 */ 
  left: calc(50% + 370px); /* 370px=1700pxのときのh3横幅の半分 */
  right: auto;
  width: clamp(140px, calc(15.34vw + 80.2px), 341px);
  aspect-ratio: 341 / 394;
  background-image: url('../../image/marker-deco-right.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  pointer-events: none;
}
#toppage .service_group .ext {
  text-align: center;
  font-size: clamp(1.875rem, 1.689rem + 0.76vw, 2.5rem); /* 30px:390px,40px:1700px */
  line-height: 2;
  margin-bottom: 2rem;
}
#toppage .service_inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}
#toppage .service_inner .come_c {
  text-align: center;
  font-size: clamp(0.875rem, 0.763rem + 0.46vw, 1.25rem); /* 14px:390px,20px:1700px */
  line-height: 2.8;
  margin-bottom: 6rem;
}
#toppage .service_inner h3 .ext {
  color: var(--color-font);
  font-size: clamp(1rem, 0.833rem + 0.69vw, 1.563rem); /* 14px:390px,20px:1700px */
}
#toppage .come:has(.hilight_g) {
  text-align: center;
  line-height: 3;
  margin-bottom: 80px;
}
#toppage .support_box {
  position: relative;
  padding: 50px 5% 78px;
  background-color: var(--color-base);
  border-radius: 50px;
}
#toppage .support_box h3 {
  color: var(--color-accent);
}
#toppage .support_box::before {
  position: absolute;
  content: "";
  right: 60px;
  margin-top: -100px;
  width: clamp(223px, calc(20.08vw + 144.7px), 486px);  /* 223px:390px,486px:1700px */
  aspect-ratio: 486 / 287;
  background-image: url('../../image/support-deco1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
}
#toppage .support_card_group {
  margin-top: 28px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
#toppage .support_card {
  width: 100%;
  max-width: 320px;
  justify-self: center;
}
#toppage .support_card_img {
  width: 100%;
  padding: 10px 25px;
  background-color: var(--color-yellow);
  border-radius: 20px;
  margin-bottom: 20px;
  justify-self: center;
}
#toppage .support_card_img img {
  width: 100%;
  height: auto;
}
#toppage .support_card h4 {
  text-align: center;
  line-height: 1;
  font-size: clamp(1.375rem, 1.319rem + 0.23vw, 1.563rem); /*22px:390px,25px:1700px */
  margin-bottom: 20px;
}
#toppage .support_company {
  width: fit-content;
  padding: 2px 10px;
  margin-inline: auto;
  background-color: var(--color-yellow);
  border-radius: 5px;
  margin-bottom: 14px;
}
#toppage .support_card .come {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.857;
  margin-bottom: 28px;
}
#toppage .support_btn,
#toppage .support_btn a {
  width: 100%;
  max-width: 320px;
  display: block;
  padding-block: 3px;
  background-color: var(--color-primary);
  border-radius: 9999px;
  text-align: center;
  color: var(--color-base);
  font-size: 1.125rem;
  justify-self: center;
}
#toppage .support_msg {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  margin-top: 2rem;
}
#toppage .support_msg .ext {
  width: fit-content;
  position: relative;
  background-color: var(--color-base);
  padding: 40px 80px;
  border-radius: 9999px;
  font-size: clamp(1.563rem, 1.469rem + 0.38vw, 1.875rem); /*25px:390px,30px:1700px */
}
#toppage .support_msg .ext span {
  display: block;
  font-size: clamp(1.125rem, 0.995rem + 0.53vw, 1.563rem); /*18px:390px,25px:1700px */
  margin-top: 15px;
  color: var(--color-font);
  font-weight: 500;
}
#toppage .support_msg .ext::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  /* 三角形 */
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 30px solid var(--color-base);
}
#toppage .support_msg img {
  width: 268px;
  height: auto;
  aspect-ratio: 268 / 262;
}

@media screen and (max-width: 1360px) {
  #toppage .service_group::before {
    right: calc(47% + 370px);
  }
  #toppage .service_group::after {
    left: calc(47% + 370px);
  }
  #toppage .service_group {
    background-image: none;
    padding-top: 14rem;
  }
  #toppage .service_msg h3:has(span.marker) {
    padding-inline: 0;
    margin-bottom: clamp(6rem, 12vw, 9rem);
  }
  #toppage .service_group::before {
    right: 50%;
    left: auto;
    margin-right: 10px;
    bottom: 100%;
    transform: translateY(60%);
  }
  #toppage .service_group::after {
    left: 50%;
    right: auto;
    margin-left: 10px;
    bottom: 100%;
    transform: translateY(60%);
  }
}

@media screen and (max-width: 1024px) {
  /* 白枠内を Flexbox 化して要素の順番を制御 */
  #toppage .support_box {
    display: flex;
    padding: 2rem 5% 78px;
    flex-direction: column;
    align-items: center;
  }
  #toppage .support_box h3 {
    order: 1;
    text-align: center;
  }
  #toppage .support_box .come {
    order: 2;
    text-align: center;
  }
  /* イラスト（::before）の位置を解除して h3・.come の下に配置 */
  #toppage .support_box::before {
    position: static;
    order: 3;
    width: clamp(258px, 220px + 9.78vw, 320px);/* 390pxで258px、1024pxで320px */
    margin-block: 10px 30px;
    transform: none;
  }
  #toppage .support_card_group {
    order: 4;
    width: 100%;
    margin-top: 0;
  }
  #toppage .support_msg .ext::after {
    display: none;
  }
  #toppage .support_msg .ext {
    padding: 0;
  }
  #toppage .come:has(.hilight_g) {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 1200px) {
  #toppage .support_card_group {
    gap: 24px;
  }
}

@media screen and (max-width: 1050px) {
  #toppage .support_card_group {
    grid-template-columns: 1fr;
  }
  #toppage .support_card_group {
    gap: 36px;
  }
  #toppage .support_btn,
  #toppage .support_btn a {
    padding-block: 2px;
  }
}

@media screen and (max-width: 880px) {
  #toppage .support_msg {
    flex-direction: column;
    gap: 0;
  }
  #toppage .support_msg img {
    width: 187px;
  }
}

@media screen and (max-width: 780px) {
  #toppage .service_group .hilight_w {
    display: inline-block;
    padding: 0;
    margin-inline: 0;
    margin-block: 1rem;
  }
}

@media screen and (max-width: 540px) {
  #toppage .support_card {
  max-width: 290px;
  }
  #toppage .support_card_img {
    margin-bottom: 16px;
  }
    #toppage .support_card h4 {
    margin-bottom: 8px;
  }
  #toppage .support_company {
    font-size: 13px;
    margin-bottom: 8px;
  }
  #toppage .support_box .come {
    font-size: 16px;
    line-height: 1.6875;
    margin-bottom: 8px;
  }
  #toppage .service_group {
    padding-top: 7rem;
  }
  #toppage .service_group .ext {
    line-height: 1.5;
  }
  #toppage .come:has(.hilight_g) {
    padding-inline: 1rem;
    line-height: 1.75;
    font-size: 16px;
  }
  #toppage .come .hilight_g {
    display: inline-block;
    width: 100%;
    line-height: 1.5;
    margin-inline: auto;
    margin-bottom: 1rem;
  }
}


/*---------------------------------------------------------------------------
  GUIDE
---------------------------------------------------------------------------*/
#toppage .guide_wrap {
  position: relative;
  width: 100%;
  margin-top: 115px;
  margin-bottom: 0;
  padding-bottom: 300px;
  text-align: center;
}

#toppage .guide_wrap h3 {
  margin-bottom: 3.375rem;
}
#toppage .guide_wrap .come {
  font-size: clamp(1rem, 0.926rem + 0.31vw, 1.25rem); /*16px:390px,20px:1700px */
  line-height: 2.15;
  margin-bottom: 0.5em;
}
#toppage .guide_wrap .hilight_g {
  padding: 0.5em 1.5em;
  margin-inline: auto;
  margin-bottom: 4.0625rem;
  font-weight: 500;
}

@media screen and (max-width: 1024px) {
  #toppage .guide_wrap {
    margin-top: 40px;
    padding-bottom: 220px;
  }
}

@media screen and (max-width: 780px) {
  #toppage .guide_wrap {
    padding-bottom: 120px;
  }
  #toppage .guide_wrap h3 {
  margin-bottom: 1.5rem;
  }
#toppage .guide_wrap .hilight_g {
  width: 96%;
  padding-block: 1em;
  margin-bottom: 1.5rem;
  }

}

/*---------------------------------------------------------------------------
  CONTACT
---------------------------------------------------------------------------*/
#toppage .contact_wrap {
  position: relative;
  background-color: var(--color-primary);
  margin-top: calc(var(--frame-size) * -1); /* 角丸の裏側へ引き上げ */
  padding-top: calc(100px + var(--frame-size)); /* 引き上げた分上の余白を補正 */
}

#toppage .contact_img {
  position: absolute;
  bottom: calc(100% - 86px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(276px, 40vw, 502px);
  text-align: center;
  line-height: 0;
  z-index: 5; /* ★ イラストをmain_wrapより上 ★ */
}

#toppage .contact_img img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

#toppage .contact_msg {
  font-size: clamp(1.875rem, 1.41rem + 1.91vw, 3.438rem);
  font-weight: 700;
  line-height: 1.54545;
  color: #FFFB00;
  text-align: center;
  margin-bottom: 3.375rem;
}
#toppage .contact_wrap .ext {
  color: var(--color-base);
  text-align: center;
}

@media screen and (max-width: 1200px) {
  #toppage .contact_wrap {
    margin-top: calc(var(--frame-size) * -1);
  }
}

@media screen and (max-width: 780px) {
  #toppage .contact_wrap {
    margin-top: calc(var(--frame-size) * -1);
  }
  #toppage .contact_msg {
    margin-bottom: 2rem;
  }
  #toppage .contact_img {
    left: 52%;
  }
}

/*---------------------------------------------------------------------------
  CONTACT BANNER
---------------------------------------------------------------------------*/
/* FV用の目印枠（高さのみ確保） */
#toppage .fv_target {
  width: 100%;
  height: 0;
  margin: 0;
}

/* フッター着地用の目印枠 */
#toppage .banner_target {
  position: relative;
  width: 100%;
  margin-top: 0.8rem;
  min-height: 120px;
}

/* ① 初期状態：.fv_target の位置（--banner-fv-top）にピッタリ絶対配置 */
#toppage .sticky_banner {
  position: absolute;
  top: var(--banner-fv-top, 550px);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 1136px);
  z-index: 99999;
  opacity: 1;
  visibility: visible;
}

/* ② スクロール時：画面下に固定追従 */
#toppage .sticky_banner.is-fixed {
  position: fixed;
  top: auto;
  bottom: calc(var(--frame-size) - 8px); /* 緑枠のすぐ上、8px外枠へ食い込み */
  left: 50%;
  transform: translateX(-50%);
  z-index: 99995;
}

/* ③ フッター到達時：.banner_target の位置（--banner-stop-top）に着地 */
#toppage .sticky_banner.is-stopped {
  position: absolute;
  top: var(--banner-stop-top, auto);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

/* --- 内包パーツ --- */
#toppage .sticky_banner_box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2.5vw, 2.5rem);
  background-color: #F26038;
  padding: 1.25em 3.5%;
  border-radius: 15px;
  box-sizing: border-box;
}

#toppage .sticky_banner_sub {
  display: flex;
  align-items: center;
  color: var(--color-base);
  font-size: clamp(0.9rem, 1.3vw + 0.5rem, 1.75rem);
  font-weight: 800;
  white-space: nowrap;
  margin: 0;
}

#toppage .sticky_banner_sub .mail_icon {
  width: clamp(16px, 2.2vw, 32px);
  height: auto;
  margin-right: 0.4em;
}

#toppage .sticky_banner_main {
  display: inline-block;
  background-color: var(--color-base);
  color: #F26038;
  font-size: clamp(0.95rem, 1.5vw + 0.6rem, 2.125rem);
  font-weight: 800;
  padding: 0.6em 4.5%;
  border-radius: 12px;
  box-shadow: 
    -2px -2px 5px 0 #F26038,
    2px 2px 5px 0 rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

#toppage .sticky_banner_main:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

@media screen and (max-width: 540px) {
  #toppage .banner_target { 
    margin-top: 20px;
    min-height: 90px;
  }

  #toppage .sticky_banner,
  #toppage .sticky_banner.is-fixed {
    width: min(92%, 301px);
  }
  
  #toppage .sticky_banner.is-stopped {
    width: min(100%, 301px);
  }

  #toppage .sticky_banner_box {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
  }

  #toppage .sticky_banner_sub {
    font-size: 15px;
  }

  #toppage .sticky_banner_sub .mail_icon {
    width: 15px;
    height: 12px;
    margin-right: 0.3em;
  }

  #toppage .sticky_banner_main {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    font-size: 16px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
  }
}

/*====================================================================================================
  SUBPAGE
====================================================================================================*/
#subpage {
  font-size: 1.25rem;
}

/*---------------------------------------------------------------------------
  MAINIMG
---------------------------------------------------------------------------*/
#subpage .mainimg {
  text-align: center;
  padding-block: 60px 30px;
}
#subpage .mainimg h2 {
  font-size: clamp(1.875rem, 1.503rem + 1.53vw, 3.125rem); /* 30px:390px,50px:1700px */
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
#subpage .mainimg p {
  font-size: 1rem;
}

@media screen and (max-width: 780px) {
#subpage .mainimg h2 {
  line-height: 1.3;
}
#subpage .mainimg {
  padding-block: 24px 30px;
  padding-inline: 3%;
  }
#subpage .mainimg p {
  font-size: 14px;
  text-align: left;
}
}

/*---------------------------------------------------------------------------
  MAIN_CONTENT
---------------------------------------------------------------------------*/
#subpage .main_content {
  width: 100%;
  background-image: url('../../image/table-bg.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  padding-block: 60px 120px;
}
#subpage .table_wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 43px 5% 84px;
  border-radius: 50px;
  background-color: #fff;
}
#subpage #formWrap {
  padding: 43px 4.7% 84px;
}

@media screen and (max-width: 1280px) {
  #subpage .main_content {
    padding-inline: 4%;
  }
}

@media screen and (max-width: 768px) {
  #subpage .main_content {
    padding-block: 40px;
  }
  #subpage .table_wrap {
    border-radius: 25px;
    padding: 24px 6% 32px;
  }
  #subpage #formWrap {
    padding: 0;
  }
}

/* ---------------------------------------------------------------------------
  CONTACT_INTRO
--------------------------------------------------------------------------- */
#subpage .contact_intro {
  width: 100%;
  margin-inline: auto;
  padding: 30px 40px 37px;
  border-radius: 20px;
  border: 2px solid var(--color-primary);
  text-align: center;
  margin-bottom: 50px;
}
#subpage .intro_txt {
  color: var(--color-font);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
#subpage .intro_sub_txt {
  color: var(--color-font);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
#subpage .partner_box:not(h4) {
  font-size: 16px;
}
#subpage .partner_box a {
  color: var(--color-base);
}

@media screen and (max-width: 768px) {
  #subpage .contact_intro {
    padding: 6%;
    border-radius: 10px;
    margin-bottom: 22px;
  }
  #subpage .intro_txt {
    font-size: 16px;
    text-align: left;
  }
  #subpage .partner_box h4 {
    font-size: 18px;
  }
  #subpage .partner_box:not(h4) {
    font-size: 14px;
  }
}

/* ---------------------------------------------------------------------------
  PARTNER_BOX_WRAP
--------------------------------------------------------------------------- */
#subpage .partner_box_wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 1.5rem;
}
#subpage .partner_box {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-base);
  border-radius: 10px;
  padding: 20px 15px;
  font-size: 1.125rem;
  line-height: 1.6;
}
.partner_box h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-align: center;
}

@media screen and (max-width: 1250px) {
  #subpage .partner_box_wrap {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #subpage .partner_box {
    max-width: 560px;
    margin-inline: auto;
  }
  #subpage .intro_sub_txt {
    font-size: 16px;
  }
}

/* ---------------------------------------------------------------------------
  FORM
--------------------------------------------------------------------------- */
/* FORM_GUIDE_TEXT */
#subpage .form_guide_text {
  text-align: center;
  margin-bottom: 40px;
}
#subpage .form_guide_text p {
  margin-bottom: 0.5em;
}
#subpage .badge_required {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-base);
  font-size: 18px;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.3;
  margin-left: 5px;
  vertical-align: middle;
}
#subpage .btn_orange {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-base);
  font-weight: 800;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  box-shadow: none;
}
#subpage .btn_orange:hover {
  opacity: 0.85;
}
#subpage .btn_intro {
  padding: 12px 40px;
  border-radius: 9999px;
}

/* FORMTABLE */
#subpage table.formTable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}
#subpage table.formTable tr {
  border-bottom: 1px dotted #9b9b9b;
}
#subpage table.formTable th {
  width: 28%;
  text-align: left;
  padding: 25px 10px;
  color: var(--color-font);
  vertical-align: top;
  font-weight: 500;
}
#subpage table.formTable td {
  width: 72%;
  padding: 20px 10px;
  vertical-align: middle;
  font-weight: 400;
}

/* 入力フィールド */
#subpage .input_text {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 20px;
  color: var(--color-font);
  background-color: var(--color-base);
  box-sizing: border-box;
}
#subpage .input_text:focus,
#subpage .input_textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(77, 166, 53, 0.15);
}
#subpage .input_note {
  color: #666;
  margin-top: 6px;
  font-size: 15px;
}
#subpage .input_textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  margin-top: 15px;
}

/* ラジオ・チェック レイアウト */
#subpage .form_flex_radio {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
#subpage .form_flex_radio label,
#subpage .form_grid_checkbox label,
#subpage .privacy_check_wrap label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 400;
}
#subpage .form_flex_radio input,
#subpage .form_grid_checkbox input,
#subpage .privacy_check_wrap input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}
#subpage .form_grid_checkbox {
  display: grid;
  grid-auto-flow: row;
  gap: 12px;
}
#subpage .form_submit_area h4 {
  font-weight: 800;
  color: var(--color-font);
  margin-bottom: 15px;
}
#subpage .privacy_check_wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 35px;
}
#subpage .privacy_link {
  color: #007BFF;
  font-weight: 400;
  text-decoration: underline;
}
#subpage .btn_submit {
  font-size: 20px;
  padding: 30px 80px;
  border-radius: 9999px;
  width: min(100%, 320px);
}
#subpage .btn_wrap {
  text-align: center;
}
#subpage .submit_note {
  font-size: clamp(0.875rem, 0.763rem + 0.46vw, 1.25rem); /* 14px:390px,20px:1700px */
  font-weight: 400;
  color: #555;
  margin-top: 25px;
  text-align: center;
}


@media screen and (max-width: 768px) {
  #subpage table.formTable th,
  #subpage table.formTable td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
  #subpage table.formTable th {
    padding-bottom: 0;
    padding-top: 8px;
    font-size: 16px;
  }
  #subpage table.formTable td {
    padding-top: 10px;
    padding-bottom: 20px;
  }
  #subpage .form_grid_checkbox {
    grid-template-columns: 1fr;
  }
  #subpage .privacy_check_wrap {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }
  #subpage .btn_submit {
    font-size: 18px;
    padding: 24px 32px;
  }
  #subpage .form_guide_text {
    font-size: 16px;
    text-align: left;
  }
  
  #subpage .form_flex_radio {
    font-size: 15px;
    gap: 8px 30px;
  }
  #subpage .input_text {
    font-size: 15px;
  }
  #subpage .badge_required {
    font-size: 14px;
  }
  #subpage .form_flex_radio label,
  #subpage .form_grid_checkbox label,
  #subpage .privacy_check_wrap label {
    font-size: 15px;
  }
  #subpage .form_submit_area h4 {
    font-size: 15px;
    margin-bottom: 0;
  }
  #subpage table.formTable {
    margin-bottom: 8px;
  }
  #subpage .privacy_check_wrap {
    align-items: flex-start;
  }
  #subpage .privacy_link {
    font-size: 15px;
  }
  #subpage .submit_note {
    margin-top: 16px;
  }
  #subpage .btn_intro {
    font-size: 14px;
    padding: 10px 20px;
    width: 100%;
    border-radius: 25px;
  }
}

/*====================================================================================================
  PRIVACY MODAL
====================================================================================================*/
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
}
.modal_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}
.modal_content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-base, #fff);
  width: min(90%, 720px);
  max-height: 85vh;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal_close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  color: #999;
  line-height: 1;
  transition: color 0.2s;
  z-index: 10;
}
.modal_close:hover {
  color: var(--color-primary, #4DA635);
}
.modal_inner {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 15px;
  box-sizing: border-box;
}

.modal_inner h3 {
  text-align: center;
  color: var(--color-primary, #4DA635);
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary, #4DA635);
}
.privacy_body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-font, #363636);
  word-break: break-word;
}
.privacy_body section {
  margin-top: 20px;
  margin-bottom: 20px;
}
.privacy_body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary, #4DA635);
  margin-bottom: 8px;
}
.privacy_body p {
  margin-bottom: 12px;
  text-align: justify;
}
.privacy_body ul {
  margin-bottom: 12px;
  padding-left: 1.5rem;
}
.privacy_body li {
  list-style-type: disc;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.address_box {
  margin-top: 12px;
  padding: 16px;
  background-color: #f7f9f6;
  border: 1px solid #e0e8dd;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.7;
}
.address_box strong {
  font-size: 1rem;
  color: var(--color-primary, #4DA635);
  display: block;
  margin-bottom: 4px;
}
.modal_bottom_close {
  margin-top: 20px;
  background: var(--color-primary, #4DA635);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 9999px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.modal_bottom_close:hover {
  opacity: 0.88;
}
body.noscroll {
  overflow: hidden !important;
}

@media screen and (max-width: 540px) {
  .modal_content {
    padding: 24px 12px 16px;
  }
  .modal_inner {
    padding: 5px 10px;
  }
}

/*====================================================================================================
  THANKS PAGE
====================================================================================================*/
.thanks_inner {
  text-align: center;
  padding: 10px 0;
}
.thanks_inner .thanks_msg {
  font-size: clamp(1.063rem, 0.958rem + 0.43vw, 1.25rem); /* 17px〜20px */
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-font);
  margin-bottom: 35px;
}
.thanks_notice {
  display: block;
  max-width: 680px;
  margin-inline: auto;
  text-align: left;
  background-color: #f7f9f6;
  border: 1px solid #e0e8dd;
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 45px;
  box-sizing: border-box;
}
.thanks_notice p {
  font-size: 0.938rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
}
.contact_info_box {
  display: block;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  text-align: left;
  border: 2px solid var(--color-primary);
  padding: 30px 35px;
  border-radius: 20px;
  margin-bottom: 50px;
  box-sizing: border-box;
}
.contact_info_box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-align: center;
}
.contact_info_box .company_name {
  font-size: 1.125rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-font);
}
.contact_list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  padding: 0;
}
.contact_list li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-font);
}
.contact_list li strong {
  font-size: 1.05rem;
  color: var(--color-primary);
}
.contact_info_box .note {
  font-size: 0.875rem;
  color: #666;
  border-top: 1px dotted #ccc;
  padding-top: 15px;
  margin-top: 10px;
  line-height: 1.6;
}
.thanks_btn_wrap {
  text-align: center;
  margin-top: 10px;
}
@media screen and (max-width: 768px) {
  .thanks_inner .thanks_msg {
    text-align: left;
  }
  .thanks_notice {
    padding: 16px;
    margin-bottom: 30px;
  }
  .contact_info_box {
    padding: 24px 18px;
    margin-bottom: 35px;
  }
}

