body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
  color: #212121;
  background: url("/wp-content/themes/k/assets/images/common/g-bg.png");
  overflow-x: hidden; /* 背景パーツのはみ出し防止 */
  background-size: 100px auto;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
}
.section-title {
  padding-top: 0;
}
.p-large-front {
  padding-top: clamp(70px, 12.5vw, 120px) !important;
}

.m-large-front {
  margin-top: clamp(70px, 12.5vw, 120px) !important;
}
.m-mid-front {
  margin-top: clamp(40px, 6.25vw, 60px) !important;
}
/* レイアウト補助 */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
/* 上後で見直す */
.sub_ttl {
  font-size: 2.4rem;
}
#front h3 {
  font-size: 2.4rem;
  font-weight: 500;
}
.pink-btn {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.6rem;
  border-radius: 0px;
  width: 200px;
  height: 60px;
  border: 3px solid #212121;
  transition: 0.3s;
  box-shadow: 5px 5px 0px 0px rgba(236, 33, 134, 1);
  background-color: #ec2186;
}
.pink-btn a {
  color: #fff;
  text-decoration: none;
  width: 100%;
  line-height: 60px;
}
.pink-btn:hover {
  box-shadow: 0 0 #333;
  color: #212121;
  background-color: #fff;
}
.pink-btn a:hover {
  color: #212121;
}

/* MV */

.mv {
  background-image: url("/wp-content/themes/k/assets/images/front/mv-bg-touka.svg");
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat, repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  margin-top: -10rem;
  padding-top: 10rem;
}
.mv-content {
  max-width: 560px;
  height: auto;
}
.mv-cont-sp {
  display: none;
}
/* セクション背景 */
.section:nth-of-type(n + 3) {
  background-image: url("/wp-content/themes/k/assets/images/common/sec-bg-n.svg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* good_at */
#good-at {
  background-image: url("/wp-content/themes/k/assets/images/common/sec-bg-n.svg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  padding-bottom: clamp(70px, 12.5vw, 120px);
}
#good-at .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4%;
}
#good-at .grid-3 .card {
  padding: 30px 5% 40px 5%;
  background: #fff;
  border: 0.3rem solid #212121;
}
#good-at h3 {
  margin-top: 2rem;
  text-align: center;
}
#good-at p {
  margin-top: 2rem;
  padding: 0 6%;
}
/* reviews */
#reviews {
  background: url(/wp-content/themes/k/assets/images/front/reviws_bg.jpg);
  padding-bottom: clamp(70px, 12.5vw, 120px);
  color: #fff;
  background-size: 5rem 5rem;
}
.reviews_img {
  width: 90%;
  margin: 0 auto;
}
.reviews_img img {
  text-align: center;
}
#reviews p {
  text-align: center;
}
/* about */
.about_flex_box {
  background-color: #fff;
  padding: 50px 2% 60px 2%;
  border: 0.3rem solid #212121;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
}
.about_left {
  width: 47%;
}
.about_right {
  width: 47%;
  margin-top: 10px;
}
.about_img_sp {
  display: none;
}
#about .about_right h3 {
  width: 14.6rem;
  height: 4.7rem;
  text-align: center;
  vertical-align: middle;
  font-size: 1.8rem;
  background-color: #fff;
  margin-top: 20px;
  padding-top: 0.6rem;
  border: 0.3rem solid #212121;
}
#about .about_right p {
  margin-top: 20px;
}
/* service */
.service_flex_box {
  display: flex;
  justify-content: space-between;
}
.service_left {
  width: 47%;
  background-color: #fff;
  border: 0.3rem solid #212121;
  padding: 5% 5%;
  position: relative;
  margin-top: clamp(78px, 6.25vw + 38px, 98px);
}
.service_left_box {
  margin-top: 3rem;
}
#service .service_left h3 {
  width: 60%;
  background-color: #fff;
  border: 0.3rem solid #212121;
  padding: 3% 5%;
  position: absolute;
  top: -6.5%;
  right: 0;
  left: 0;
  margin: 0 auto;
  text-align: center;
  margin: 0 auto;
}
.service_left_box p {
  margin-top: 2rem;
}
.service_right {
  width: 47%;
  background-color: #fff;
  border: 0.3rem solid #212121;
  padding: 5% 5%;
  position: relative;
  margin-top: clamp(78px, 6.25vw + 38px, 98px);
}
.service_right_box {
  margin-top: 3rem;
}
#service .service_right h3 {
  width: 60%;
  background-color: #fff;
  border: 0.3rem solid #212121;
  padding: 3% 5%;
  position: absolute;
  top: -6.5%;
  right: 0;
  left: 0;
  margin: 0 auto;
  text-align: center;
  margin: 0 auto;
}
.service_right_box p {
  margin-top: 2rem;
}

#service .pink-btn {
  margin-top: 4rem;
}

/* works */
#works .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6%;
}
#works .pink-btn {
  margin-top: 12rem;
}
/* query */
#query .section-title img {
  margin: 0 auto;
}
#query .sub_ttl {
  text-align: center;
}

.query_box ul {
  border-bottom: solid 0.1em #999;
  margin-top: 4rem;
  padding-bottom: 4rem;
}
.query_box ul li {
  list-style: none;
  margin: 0 5%;
  display: flex;
  align-items: flex-start;
}
.query_box ul li:nth-of-type(1)::before {
  content: url("/wp-content/themes/k/assets/images/icon/q.png");
  display: inline-block;
  vertical-align: middle; /* テキストとの高さを合わせる */
  margin-right: 12px; /* 画像とテキストの間の余白 */
  margin-top: 3px;
}
.query_box ul li:nth-of-type(2) {
  margin-top: 3rem;
}
.query_box ul li:nth-of-type(2)::before {
  content: url("/wp-content/themes/k/assets/images/icon/a.png");
  display: inline-block;
  vertical-align: middle; /* テキストとの高さを合わせる */
  margin-right: 12px; /* 画像とテキストの間の余白 */
  margin-top: 3px;
}
/* news */
.news_box {
  background-color: #fff;
  padding: 50px 5% 60px 5%;
  border: 0.3rem solid #212121;
  border-radius: 10px;
}
.custom-news-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.custom-news-list li {
  display: flex; /* 日付とタイトルを横並びに */
  gap: 20px; /* 間隔を空ける */
  padding: 10px 0;
  border-bottom: 1px solid #eee; /* 区切り線 */
}

.news-date {
  color: #888;
  font-weight: bold;
  min-width: 100px; /* 日付の幅を固定して揃える */
}

.news-title {
  color: #333;
  text-decoration: none;
}

.news-title:hover {
  color: #ec2186; /* ホバー時に色を変える */
  text-decoration: underline;
}
/* cherish */
.cherish_flex_box {
  display: flex;
  justify-content: space-between;
}
.cherish_left {
  width: 47%;
}
.cherish_right {
  width: 47%;
}

/* 960px 以下 */
@media screen and (max-width: 960px) {
  .mv-content {
    width: 60%;
  }
  /* good_at */
  #good-at .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 5%; /* パーセントよりpxの方が管理しやすくなります */
  }

  .card_img {
    width: 100%;
    margin: 0 auto;
  }
  .card_img img {
    width: 100%;
    height: auto;
  }
  /* reviews */

  .reviews_img {
    width: 100%;
    margin: 0 auto;
  }
  /* aboutちょっと検討 */
  #works .pink-btn {
    margin-top: 8rem;
  }
}

/* --- 640px以下（スマホ：1カラム） --- */
@media (max-width: 640px) {
  .section-title img {
    width: 45%;
  }
  .sub_ttl {
    font-size: 1.8rem;
  }
  #front h3 {
    font-size: 1.8rem;
    font-weight: 500;
  }
  .mv {
    background-image: url("/wp-content/themes/k/assets/images/common/g-bg.png");
    width: 100%;
    height: auto;
    background-size: 100px 100px;
    background-position: center center;
    background-repeat: repeat;
    display: flex;
    display: block; /* flex を解除（通常のブロック要素に戻す） */
    justify-content: normal; /* center を解除 */
    align-items: normal; /* center を解除 */
    text-align: start;
    margin-top: -10rem;
    padding-top: 0;
  }
  .mv-content {
    display: none;
  }
  .mv-cont-sp {
    display: block;
    width: 100%;
    height: auto;
  }
  #good-at .grid-3 {
    grid-template-columns: 1fr; /* 1列にする */
    gap: 0;
  }

  #good-at .grid-3 .card {
    padding: 40px 5%; /* 内側の余白も少し調整 */
  }
  /* about */
  .about_flex_box {
    padding: 40px 5% 40px 5%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .about_left {
    width: 100%;
  }
  .about_img {
    display: none;
  }
  .about_img_sp {
    display: block;
  }
  .about_right {
    width: 100%;
    margin-top: 2rem;
  }
  #about .about_right h3 {
    width: 14.6rem;
    height: 4.7rem;
    text-align: center;
    vertical-align: middle;
    font-size: 1.8rem;
    background-color: #fff;
    margin-top: 20px;
    padding-top: 0.6rem;
    border: 0.3rem solid #212121;
  }

  /* service */
  .service_flex_box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .service_left {
    width: 100%;
  }
  .service_left_box {
    margin-top: 4rem;
  }
  #service .service_left h3 {
    width: 60%;
    background-color: #fff;
    border: 0.3rem solid #212121;
    padding: 3% 5%;
    position: absolute;
    top: -6.5%;
    right: 0;
    left: 0;
    margin: 0 auto;
    text-align: center;
    margin: 0 auto;
  }
  .service_left_box p {
    margin-top: 2rem;
  }
  .service_right {
    width: 100%;
  }
  .service_right_box {
    margin-top: 4rem;
  }
  #service .service_right h3 {
    width: 60%;
    background-color: #fff;
    border: 0.3rem solid #212121;
    padding: 3% 5%;
    position: absolute;
    top: -6.5%;
    right: 0;
    left: 0;
    margin: 0 auto;
    text-align: center;
    margin: 0 auto;
  }
  .service_right_box p {
    margin-top: 2rem;
  }

  #service .pink-btn {
    margin: 4rem auto;
  }

  /* works */
  #works .grid-2 {
    grid-template-columns: 1fr; /* 1列にする */
    gap: 40px;
  }
  #works .pink-btn {
    margin-top: 8rem;
  }
  /*news */
  .news_box {
    background-color: #fff;
    padding: 20px 5% 30px 5%;
    border: 0.3rem solid #212121;
    border-radius: 10px;
  }
  /*cherish */
  .cherish_flex_box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .cherish_left {
    width: 100%;
  }
  .cherish_right {
    width: 100%;
  }
}
