body{
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:"wdth" 100;
  color: #333;
}

.sp_only{
    display: none;
}

.pc_only{
    display: block;
}

@media screen and (max-width: 768px) {
.sp_only{
display: block;
}

.pc_only{
    display: none;
}
}

/* header */

header{
    background-color: #EB7171;
    padding: 24px 48px;
    position: relative;
    z-index: 100;
}

header .pc_nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

header .pc_nav ul{
    display: flex;
    justify-content: flex-end;
    gap: 40px;
}

header .pc_nav ul li a{
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    font-size: 1.125rem;
    text-shadow: 1px 1px 0 #33333325;
}

header nav ul li a:hover{
    border-bottom: 2px dashed #fff;
}

/* --- ハンバーガー --- */
.hamburger {
  position: absolute;
  top: 35%;
  right: 16px;
  width: 48px;
  height: 24px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

/* 開いたときだけ固定 */
.hamburger.fixed {
  position: fixed;
  top: 24px;
  right: 16px;
  z-index: 1000;
}

/* スクロール禁止用 */
body.no_scroll {
  overflow: hidden;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* ×に変化 */
.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background-color: #333;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: #333;
}

/* --- スマホ用メニュー --- */
.sp_nav {
  position: fixed;
  top: -100%;
  left: 0; 
  width: 100%;
  height: 80vh; 
  background-color: #FFF2F2;
  transition: top 0.4s ease; 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 150;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.sp_nav ul {
  list-style: none;
  text-align: center;
}

.sp_nav li {
  margin-bottom: 48px;
}

.sp_nav a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  font-weight: bold;
}

/* 開いた状態 */
.sp_nav.active {
  top: 0;
}

/* --- ヘッダーレスポンシブ --- */
@media screen and (max-width: 930px) {
    header{
    padding: 16px 16px;
}
header .pc_nav ul {
    display: none;
}
.hamburger {
    display: flex;
  }
}

/* fv */
.fv{
    position: relative;
}

.fv picture img{
    width: 100%;
}


/* cv_btn */
.cv_btn{
    max-width: 347px;
    margin: 0 auto;
}

.cv_btn .fl_txt{
    text-align: center;
    font-size: 1.125rem;
    color: #E64D4D;
    font-weight: bold;
    padding-bottom: 8px;
}

.cv_btn .fl_txt span{
    font-size: 0.875rem;
}

.cv_btn .btn{
    display: inline-block;
    width: 100%;
    background-color: #FF7C36;
    box-shadow: 3px 3px 0 #F2EC50;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    text-align: center;
    border-radius: 50px;
    font-size: 1.5rem;
    padding: 12px 0;
}

.cv_btn .btn .high_num{
    font-size: 3.5rem;
}

.cv_btn .btn .high_txt{
    font-size: 2rem;
}

@media screen and (max-width: 768px) {
    .cv_btn{
        max-width: 300px;
        padding: 16px 0;
    }

    .fv_btn{
        padding-top: 32px;
    }
    .cv_btn .btn{
        font-size: 1.25rem; 
    }

    .cv_btn .btn .high_num{
        font-size: 2.875rem;
    }

    .cv_btn .btn .high_txt{
        font-size:1.625rem;
    }
}

/* fv_btn pcだけ浮かせる */
@media screen and (min-width: 769px) {
.fv_btn{
    position: absolute;
    bottom: 3%;
    right: 0;
    left: 0;
    margin: 0 auto;
}
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .fv_btn{
    bottom: -72px;
}
}

/* 共通タイトル */
.title{
    font-weight: bold;
    padding: 47px 0;
    text-align: center;
    font-size: clamp(1.5rem, 1.148rem + 1.5vw, 2.5rem);
    /* max-1440px min-375px 40px-24px*/
    background-image: url(../img/title_line.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-bottom: 88px;
}

/* about */
.bg_color{
    background: linear-gradient(to bottom, #fff 0%, #FFF0F0 100%);
}

.sec_about{
    padding: 97px 0px;
    max-width: 1000px;
    margin: 0 auto;
}

.sec_about .title_under{
    text-align: center;
    font-weight: bold;
    font-size: clamp(1.125rem, 0.993rem + 0.56vw, 1.5rem);
    /* max-1440px min-375px 24px-18px*/
}

h1{
    text-align: center;
    padding: 24px 0;
    font-size: 1rem;
}

.sec_about .service_box{
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 5px;
    padding: 56px 0 8px;
}

.sec_about .service_box h2{
    font-size: clamp(1.125rem, 0.993rem + 0.56vw, 1.5rem);
    /* max-1440px min-375px 24px-18px*/
    font-weight: bold;
    color: #E64D4D;
    text-align: center;
    padding-bottom: 48px;
}

.sec_about .service_box ul{
  display: grid;
  gap: 32px; /* 各コンテンツの間隔 */
  grid-template-columns: repeat(4, 1fr); /* PCでは4列 */
  justify-items: center;
  align-items: start;
  max-width: 704px;
  margin: 0 auto;
}

.sec_about .service_box ul li{
    max-width: 152px;
}

.sec_about .service_box ul h3{
    text-align: center;
    padding: 16px 0 8px;
    font-size: 1rem;
    font-weight: bold;
}

.sec_about .service_box ul p{
   color: #E64D4D;
   font-weight: bold;
   font-size: 0.875rem;
   text-align: center;
}

.sec_about .service_box ul p span{
    background: linear-gradient(transparent 50%, #FFDEDE 50%);
}

.sec_about .service_under{
    text-align: center;
    font-size: 1rem;
    padding: 24px 0 32px;
}

.sec_about .small{
    text-align: right;
    padding-right: 16px;
}

.sec_about .small small{
    font-size: 0.625rem;
}


@media screen and (max-width: 768px) {
    .bg_color{
        padding: 0 16px;
    }

    .sec_about{
        padding: 72px 0;
    }

    .title{
        margin-bottom: 40px;
        padding: 32px 0;
    }

    h1{
        padding: 8px 0;
    }

    .sec_about .service_box{
        padding: 0 11px;
    }

  .sec_about .service_box ul {
    grid-template-columns: repeat(2, 1fr); /* 2列に変更 */
    gap: 16px;
  }

  .sec_about .service_box h2{
    padding-top: 32px;
    padding-bottom: 16px;
  }

  .sec_about .service_box ul p{
    padding-bottom: 24px;
  }

  .sec_about .service_under{
    padding: 8px 0 24px;
  }

  .sec_about .small{
    text-align: center;
    padding-right: 0;
    padding-bottom: 40px;
    line-height: 1;
}
}

/* service */
.sec_service{
    background-color: #FFF0F0;
    padding: 64px 16px 72px;
}

.service_table {
  max-width: 796px;
  margin: 0 auto 64px;
  width: 100%;
  border-collapse: collapse; /* 枠線をまとめる */
  border: 2px solid #484E55; /* テーブル外枠 */
  font-size: 1rem;
}

.service_table td {
  padding: 8px;
  border-bottom: 1px solid #484E55; /* 行区切り線 */
}

.service_table td span{
    font-size: 0.875rem;
}

/* 最後の行の下線を消す */
.service_table tr:last-child td {
  border-bottom: none;
}

/* 1列目のデザイン */
.service_table td:first-child {
  background-color: #F5F3F3;
  font-weight: bold;
  width: 40%; 
}

/* 2列目 */
.service_table td:last-child {
  background-color: #fff;
}

@media screen and (max-width:768px){
    .sec_service{
        padding: 64px 16px;
    }
}

/* flow */
.sec_flow{
    padding: 97px 16px 124px;
}

.sec_flow .flow_box ol{
    position: relative;
    max-width: 1120px;
    margin: 148px auto 32px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.sec_flow .flow_box ol::before,
.sec_flow .flow_box ol::after{
    display: block;
    position: absolute;
    content: "";
    background-image: url(../images/bg‗dot.svg);
    background-repeat: no-repeat;
    width: 138px;
    height: 131px;
    z-index: -1;
}

.sec_flow .flow_box ol::before{
    right: -0px;
    top: -64px;
}


.sec_flow .flow_box ol::after{
    left: 0px;
    bottom: -64px;
}

.sec_flow .flow_box ol li{
    position: relative;
    background-color: #FFF2F2;
    box-shadow: 3px 3px 6px #F0B0B0;
    padding: 61px 20px 61px;
    max-width: 312px;
    border-radius: 13px;
}

.sec_flow .flow_box ol li::before{
    content: "";
    position: absolute;
    background-image: url(../img/flow_step1icon.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 120px;
    height: 120px;
    top: -60px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.sec_flow .flow_box ol li:nth-child(2):before{
    background-image: url(../img/flow_step2icon.svg);
}

.sec_flow .flow_box ol li:nth-child(3)::before{
    background-image: url(../img/flow_step3icon.svg);
}

.sec_flow .flow_box ol li .flow_img{
    max-width: 272px;
    margin: 0 auto;
    padding-bottom: 30px;
}

@media screen and (max-width:768px){
    .sec_flow{
        padding: 97px 16px 72px; 
    }
    .sec_flow .flow_box ol{
    gap: 88px;
    margin: 108px auto 32px;
}
.sec_flow .flow_box ol::before,
.sec_flow .flow_box ol::after{
    display: none;
}
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
.sec_flow .flow_box ol{
    gap:88px 24px;
}
}

/* faq */

.sec_faq{
    background-color: #F8F6F5;
    padding: 80px 16px 72px;
}

.sec_faq .faq_box{
    max-width: 1000px;
    margin: 0 auto 80px;
}

.sec_faq .faq_box ul li{
    max-width: 835px;
    margin: 0 auto 24px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 6px #00000016;
    padding: 24px;
}

.sec_faq .faq_box ul li .faq_flex{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.sec_faq .faq_box ul li .faq_flex .faq_icon{
    min-width: 32px;
}

.sec_faq .faq_box ul li .faq_q{
    padding-bottom: 16px;
    font-weight: bold;
}

/* footer */
footer{
    background-color: #FF8585;
}

footer .footer_img{
    max-width: 173px;
    margin: 0 auto;
    padding: 40px 0 48px;
}

footer ul{
    display: flex;
    flex-wrap: wrap;
    gap: 56px; /* 各コンテンツの間隔 */
    justify-items: center;
    max-width: 736px;
    margin: 0 auto !important;
    padding-bottom: 48px !important;
}

footer ul li a{
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

footer ul li{
    text-align: center;
}

footer ul li a:hover{
    border-bottom: 2px dashed #fff;
}


footer .copy{
    text-align: center;
    color: #fff;
    padding-bottom: 8px;
}

@media screen and (max-width:768px){
    footer ul{
        max-width: 192px;  
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* topに戻るボタン */
.page_top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
}

.page_top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page_top img {
  width: 85px;
  height: 85px;
  cursor: pointer;
}

/* スマホ時：少し小さめに */
@media screen and (max-width: 768px) {
  .page_top {
    bottom: 24px;
    right: 24px;
  }
  .page_top img {
    width: 64px;
    height: 64px;
  }
}

/* マイページボタン追加 */
header nav ul li .mypage_btn{
    background-color: #fff;
    color: #FF4E7B;
    text-shadow: none;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 5px 5px 0 #8c272759;
}

header nav ul li .mypage_btn:hover{
    border-bottom: none;
}

header nav.sp_nav ul li .mypage_btn{
   padding: 16px 48px; 
}

header nav.sp_nav ul li:nth-child(1),
header nav.sp_nav ul li:nth-child(5){
    margin-top: 56px;
}

/* 特定商取引法に基づく表示 */
.legal section h1{
  font-size: clamp(1.125rem, 1.034rem + 0.39vw, 1.5rem);
  /* max-w1920px min-w375px 24px-18px */
  background-color: #EB7171;
  color: #fff;
  text-align: center;
  padding: 48px 0;
  font-weight: bold;
}

.legal .contents{
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 44px;
}

.legal .contents dl {
  display: flex;
  flex-wrap: wrap;
  font-size: 16px;
  line-height: 1.7;
  color: #484E55;
}

.legal .contents dt,
.legal .contents dd {
  padding: 20px 16px;
  border-bottom: 1px solid #CC9797;
}

.legal .contents dt {
  width: 35%;
  font-weight: bold;
}

.legal .contents dd {
  width: 65%;
}

.legal .contents a[href^="mailto:"] {
  color: #EB7171;
  text-decoration: underline;
  word-break: break-word;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {

  .legal .contents{
    width: 100%;
    padding: 40px 16px;
  }
  .legal .contents dl {
    display: block;
  }

  .legal .contents dt,
  .legal .contents dd {
    width: 100%;
    padding: 16px 12px;
    line-height: 1.8;
  }

  .legal .contents dt{
    border-bottom: none;
    padding: 16px 12px 0;
  }
}

/* --- 固定ヘッダー分のアンカーずれ補正 --- */
[id]::before {
  content: "";
  display: block;
  height: 88.75px; /* PCヘッダーの高さに合わせる */
  margin-top: -88.75px;
}

@media screen and (max-width: 768px) {
  [id]::before {
    height: 72.75px;  /* スマホヘッダー高さ */
    margin-top: -72.75px;
  }
}