
@media screen and (max-width: 1439px) and (min-width: 1024px) {
    .bg_stage:nth-of-type(3) {
      margin-top: 40% !important;
}
}

.fv {
  width: 100%;
  padding-top: 23.6rem;
}

.fv_inner {
  max-width: 1600px;
  width: calc(100% - 8rem);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.fv_left {
  padding-top: clamp(2rem, 2.232vw - 0.285rem, 4rem);
  padding-left: clamp(4rem, 4.464vw - 0.571rem, 8rem);
  flex-shrink: 0;
}

.fv_ttl {
  font-size: clamp(3.2rem, 3.333vw, 6.4rem);
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 4rem;
}

.fv_txt {
  font-size: clamp(1.6rem, 0.446vw + 1.143rem, 2rem);
  line-height: 1.8;
  margin-bottom: 8rem;
  font-weight: 500;
}

.fv_right {}

.fv_service {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 6.4rem 6rem 7.2rem 4rem;
}

.fv_service_ttl {
  font-size: clamp(2.4rem, 1.786vw + 0.571rem, 4rem);
  font-weight: bold;
  text-align: center;
  padding-bottom: 1.6rem;
  margin-bottom: 4.8rem;
  position: relative;

  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10rem;
    height: 3px;
    background-color: #1E40AF;
    border-radius: 2px;
  }
}

.log_service {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem 0rem;
}

@media screen and (max-width: 1439px) {
  .fv {
    padding-top: 14.8rem;
  }

  .fv_ttl {
    margin-bottom: 2.4rem;
  }

  .fv_txt {
    margin-bottom: 4.8rem;
  }



  .fv_service {
    padding: 3.2rem 3rem 4.8rem 2rem;

  }


}

@media screen and (max-width: 1023px) {
  .fv_inner {
    flex-direction: column;
    width: calc(100% - 12rem);
  }

  .fv_left {
    padding-left: 0;
    margin-bottom: 4.8rem;
  }

  .fv_service {
    padding: 4.8rem 4rem;
  }

  .fv_service_ttl {
    margin-bottom: 3.2rem;
  }
}

@media screen and (max-width: 767px) {
  .fv {
    padding-top: 16rem;
  }

  .fv_inner {
    width: calc(100% - 4rem);
  }

  .fv_left {
    padding-top: 0;
    margin-bottom: 8rem;
    margin-left: 2rem;
  }

  .fv_ttl {
    font-size: 3.2rem;
    margin-bottom: 2.4rem;
  }

  .fv_txt {
    font-size: 1.4rem;
    margin-bottom: 4.8rem;
  }

  .fv_service {
    padding: 3.2rem 2rem;
  }

  .fv_service_ttl {
    font-size: 2rem;
    margin-bottom: 3.2rem;
    &::after {
      width: 5rem;
    }
  }

  .log_service {
    grid-template-columns: 1fr;
    gap: 0;
  }

}

.p_message {
  margin-top: 20rem;
  position: relative;
  width: 100%;
}

.p_message_bg_txt {
  position: absolute;
  top: -9rem;
  left: 8rem;
  width: clamp(9rem, 6.696vw + 2.143rem, 15rem);
  /* SVGの幅 */
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.p_message_bg_txt svg {
  width: 100%;
  height: auto;
  display: block;
}

/* もしパスの色をCSSから変更したい場合 */
.p_message_bg_txt svg path {
  fill: #ffffff;
  /* または currentColor */
}

.p_message_inner {
  max-width: 800px;
  margin: 0 auto;
}

.p_message_ttl {
  font-size: clamp(2.8rem, 2.5vw, 4.8rem);
  font-weight: bold;
  line-height: 1.75;
  margin-bottom: 8rem;
}

.p_message_txt_wrap {
  margin-bottom: 8rem;
}

.p_message_txt {
  font-size: clamp(1.6rem, 0.446vw + 1.143rem, 2rem);
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 2.4rem;
}

.p_message_gallery {
  width: 100%;
  overflow: hidden;
  margin-top: 20rem;
}

.p_message_gallery_track {
  display: flex;
  width: fit-content;
  animation: loop_gallery 60s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.p_message_gallery_list {
  display: flex;
  gap: 2rem;
  padding-right: 2rem;
}

.p_gallery_img {
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.p_gallery_img.is_large {
  width: clamp(32rem, 31.25vw, 60rem);
  height: clamp(24rem, 17.857vw + 5.714rem, 40rem);
}

.p_gallery_grid {
  display: grid;
  grid-template-columns: repeat(2, clamp(14.4rem, 14.063vw, 27rem));
  grid-template-rows: repeat(2, clamp(11.4rem, 8.482vw + 2.714rem, 19rem));
  gap: clamp(1.2rem, 0.893vw + 0.286rem, 2rem);
  width: clamp(30rem, 29.018vw + 0.286rem, 56rem);
  height: clamp(24rem, 17.857vw + 5.714rem, 40rem);
}

.p_gallery_img.is_small {
  width: clamp(14.4rem, 14.063vw, 27rem);
  height: clamp(11.4rem, 8.482vw + 2.714rem, 19rem);
}

.p_gallery_img.is_bl {
  grid-area: 2 / 1 / 3 / 2;
}

.p_gallery_img.is_tr {
  grid-area: 1 / 2 / 2 / 3;
}

@keyframes loop_gallery {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 1439px) {
  .p_message {
    margin-top: 14.4rem;
  }

  .p_message_inner {
    max-width: 604px;
    margin-left: 24rem;
  }

  .p_message_ttl {
    margin-bottom: 4.8rem;
  }

  .p_message_bg_txt {
    left: 4rem;
    top: -3.9rem;
  }

  .p_message_txt_wrap {
    margin-bottom: 4.8rem;
  }

  .p_message_gallery {
    margin-top: 12rem;
  }
}

@media screen and (max-width: 1023px) {
  .p_message_inner {
    margin-left: 12rem;
    max-width: calc(100% - 14rem);
  }

  .p_message_gallery {
    margin-top: 10.4rem;
  }

  .p_message_bg_txt {
    width: 6rem;
    left: 2rem;
    top: 0;
  }
}

@media screen and (max-width: 767px) {
  .p_message {
    margin-top: 8rem;
  }

  .p_message_bg_txt {
    left: 1rem;
    top: 66rem;
    width: 2.786rem;
  }

  .p_message_inner {
    margin-left: 0;
    max-width: 100%;
    padding: 0 1.6rem;
  }

  .p_message_ttl {
    font-size: 2.2rem;
  }

  .p_message_txt {
    font-size: 1.4rem;
  }

  .p_message_btn .c_btn {
    width: 100%;
  }

  .p_gallery_img.is_large {
    width: 36rem;
  }

  .p_message_gallery_list {
    gap: 1.2rem;
  }

  .p_gallery_img.is_small {
    width: 16.2rem;
  }

  .p_gallery_grid {
    width: 33.6rem;
    height: 24rem;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
}

.p_promise {
  margin-top: 16rem;
  background-color: #FFFFFF;
  width: calc(100% - 16rem);
  /* max-width: 1760px; */
  margin-left: auto;
  border-radius: 20rem 0 0 20rem;
  padding: 12rem 4rem 8rem 8rem;
}

.p_promise_inner {
  /* max-width: 1440px; */
  margin-right: auto;
}

.p_promise_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  max-width: 1200px;
  margin-bottom: 10rem;
  gap: 8rem;
}

.p_promise_head_left {
  display: flex;
  flex-direction: column;
}

.p_promise_head_left img {
  width: 83px;
  margin-bottom: 2.4rem;
}

.p_promise_ttl {
  font-size: clamp(2.4rem, 1.786vw + 0.571rem, 4rem);
  font-weight: 700;
  line-height: 1.5;
}

.p_promise_head_right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 56rem;
}

.p_promise_head_right_item {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  line-height: 1.8;
  font-weight: 500;
}

.p_promise_head_right_icon {
  width: 11rem;
  flex-shrink: 0;
}

.p_promise_head_right_txt {
  padding: 3.2rem;
  background-color: #EAF2FF;
  border-radius: 8px;
  position: relative;
  font-size: 1.8rem;

  span {
    font-weight: bold;
    color: #1E40AF;
  }
}

.one .p_promise_head_right_txt::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1.6rem;
  transform: translateY(-50%);
  width: 1.8467rem;
  height: 1.76rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18.467' height='17.6' viewBox='0 0 18.467 17.6'%3E%3Cpath d='M18.467 0L0 8.8l18.467 8.8z' fill='%23eaf2ff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.two .p_promise_head_right_txt::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.6rem;
  transform: translateY(-50%);
  width: 1.8467rem;
  height: 1.76rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18.467' height='17.6' viewBox='0 0 18.467 17.6'%3E%3Cpath d='M0 0l18.467 8.8L0 17.6z' fill='%23eaf2ff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.p_promise_sub {
  text-align: center;
  width: fit-content;
  margin: 0 auto;
  position: relative;

  &::after {
    content: "";
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 10rem;
    height: 3px;
    background-color: #1E40AF;
    border-radius: 2px;
  }
}

.p_promise_sub_en {
  display: block;
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.p_promise_sub_ttl {
  font-size: clamp(2.8rem, 1.339vw + 1.429rem, 4rem);
  font-weight: bold;
}

.p_promise_list {
  display: flex;
  flex-direction: column;
  background-color: #EAF2FF;
  border-radius: 12rem 2rem 2rem 12rem;
  padding: 10rem 4rem 6.4rem;
  margin-top: -1.2rem;
}

.p_promise_item {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 4.8rem;
  position: relative;
}

.p_promise_item:not(:last-child) {
  margin-bottom: 4.8rem;
}

.p_promise_item:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='273' height='3' viewBox='0 0 273 3'%3E%3Cline id='border' x2='270' transform='translate(1.5 1.5)' fill='none' stroke='%23c3cede' stroke-linecap='round' stroke-width='3' stroke-dasharray='1 8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: 273px 3px;
}

.p_promise_item_content {
  flex: 1;
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 2rem;
  padding-right: 7rem;
  margin-top: 3.2rem;
}

.p_promise_item:last-of-type .p_promise_item_content {
  column-gap: 1rem;
  padding-right: 4rem;
}

.p_promise_item_num {
  grid-column: 1;
  grid-row: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #ffffff;
  background-color: #1E40AF;
  width: clamp(4.4rem, 1.786vw + 3.771rem, 7.2rem);
  height: clamp(4.4rem, 1.786vw + 3.771rem, 7.2rem);
  font-size: clamp(2rem, 0.446vw + 1.143rem, 2.4rem);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.p_promise_item_ttl {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(2rem, 1.339vw + 0.629rem, 3.2rem);
  font-weight: bold;
  color: #1E40AF;
  margin: 0.6rem 0 3.2rem 0;
  display: flex;
  align-items: center;
  line-height: 1.8;
}

.p_promise_item_sub {
  grid-column: 2;
  grid-row: 2;
  font-size: clamp(1.6rem, 0.893vw + 0.686rem, 2.4rem);
  font-weight: bold;
  margin: 0 0 1.6rem 0;
  line-height: 1.8;
}

.p_promise_item_txt {
  grid-column: 2;
  grid-row: 3;
  font-size: 1.6rem;
  line-height: 1.8;
  color: #2B2D33;
  margin: 0;
  font-weight: 500;
  max-width: 518px;
}

.p_promise_item_img {
  width: 45%;
  flex-shrink: 0;
  max-width: 54rem;
}

.p_promise_item_img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 1439px) {
  .p_promise {
    margin-top: 10rem;
    padding: 8rem 4rem 4rem;
    border-radius: 12rem 0 0 12rem;
    width: calc(100% - 6rem);
  }

  .p_promise_head_left {
    width: fit-content;
    margin-right: 3.6rem;
  }

  .p_promise_head_left img {
    width: 5rem;
  }

  .p_promise_head_right_icon {
    width: 6.6rem;
  }

  .p_promise_head {
    margin: 0 auto 6rem;
    justify-content: center;
    gap: 0rem;
  }

  .p_promise_head_right_txt {
    padding: 1.6rem;
    font-size: 1.6rem;
  }

  .p_promise_head_right_item {
    max-width: 43.2rem;
    gap: 1.4rem;
  }

  .p_promise_list {
    border-radius: 7.2rem 1.2rem 1.2rem 7.2rem;
    padding: 6.5rem 4rem 0.8rem;
  }

  .p_promise_item {
    padding-bottom: 3.2rem;
  }

  .p_promise_item:not(:last-child) {
    margin-bottom: 3.2rem;
  }

  .p_promise_item_content {
    padding-right: 4.8rem;
    grid-template-columns: 4.4rem 1fr;
  }

  .p_promise_item_num {
    width: 4.4rem;
    height: 4.4rem;
    font-size: 1.6rem;
    line-height: 0;
  }

  .p_promise_item_ttl {
    margin-bottom: 2.4rem;
  }

  .p_promise_item_img {
    width: 32.4rem;
  }
}

/* ==============================================
   Promiseセクション（front-page.css）
============================================== */
@media screen and (max-width: 1023px) {
  .p_promise {
    width: calc(100% - 4rem);
    padding: 6rem 4rem;
    border-radius: 4.8rem 0 0 4.8rem;
  }

  .p_promise_head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .p_promise_head_left {
    margin-right: 0;
    margin-bottom: 3.2rem;
  }

  .p_promise_head_left img {
    width: 50.66px;
    margin: 0 auto 1.6rem;
  }

  /* お困りごと吹き出しを横並びに維持 */
  .p_promise_head_right_item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .p_promise_list {
    padding: 4.8rem 4rem;
    border-radius: 4.8rem 1.2rem 1.2rem 4.8rem;
  }

  /* CSSグリッドで画像の位置をタイトルとサブタイトルの間に変更 */
  .p_promise_item {
    display: grid;
    grid-template-columns: 5.6rem 1fr;
    gap: 1.6rem 2rem;
  }

  .p_promise_item_content {
    display: contents;
    /* 子要素を直接.p_promise_itemのグリッドに参加させる */
  }

  .p_promise_item_num {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 5.6rem;
    height: 5.6rem;
    font-size: 2.4rem;
    margin: 0;
  }

  .p_promise_item_ttl {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin: 0;
    display: flex;
    align-items: center;
  }

  .p_promise_item_img {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    width: 100%;
    max-width: 100%;
    margin: 0.8rem 0;
  }

  .p_promise_item_sub {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    margin: 0;
  }

  .p_promise_item_txt {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
    margin: 0;
  }
}

@media screen and (max-width: 767px) {
  .p_promise {
    width: calc(100% - 2rem);
    padding: 6.4rem 2rem 2rem;
    margin-top: 10.4rem;
  }

  .p_promise_ttl {
    font-size: 2rem;
  }

  .p_promise_sub_ttl {
    font-size: 2rem;
  }

  .p_promise_head_right {
    gap: 1.6rem;
  }

  .p_promise_head_right_icon {
    width: 6.6rem;
    align-self: center;
  }

  .p_promise_head_right_txt {
    font-size: 1.4rem;
    padding: 1.6rem;
  }

  /* 吹き出しのしっぽを再表示・微調整 */
  .one .p_promise_head_right_txt::before,
  .two .p_promise_head_right_txt::after {
    display: block;
    width: 1.2rem;
    height: 1.2rem;
  }

  .one .p_promise_head_right_txt::before {
    left: -1rem;
  }

  .two .p_promise_head_right_txt::after {
    right: -1rem;
  }

  .p_promise_head {
    margin-bottom: 6.4rem;
  }

  .p_promise_list {
    border-radius: 4.8rem 0.8rem 0.8rem 4.8rem;
    padding: 4.8rem 2rem;
  }

  .p_promise_item {
    grid-template-columns: 4.4rem 1fr;
    gap: 1.6rem 1.2rem;
  }

  .p_promise_item:last-of-type {
    padding-bottom: 0;
  }

  .p_promise_item_num {
    width: 4rem;
    height: 4rem;
    font-size: 1.4rem;
  }

  .p_promise_item_ttl {
    font-size: 1.8rem;
  }

  .p_promise_item_sub {
    font-size: 1.6rem;
  }

  .p_promise_item_txt {
    font-size: 1.4rem;
  }

  .p_promise_sub_en {
    font-size: 1rem;
  }

  .p_promise_sub {
    &::after {
      bottom: -8px;
    }
  }

  .p_promise_item_img {
    margin: 0;
  }
}

.p_about {
  margin-top: 14rem;
  background-color: #FFFFFF;
  /* max-width: 1760px; */
  width: calc(100% - 16rem);
  margin-right: auto;
  border-radius: 0 20rem 20rem 0;
  padding: 10rem 8rem 12rem 4rem;
}

.p_about_inner {
  /* max-width: 1440px; */
  margin-left: auto;

  >* {
    max-width: 1200px;
    margin: 0 auto;
  }
}

.p_about_head {
  margin-bottom: 4.8rem;
}



.c_sec_txt {
  font-size: 1.6rem;
  line-height: 1.8;
  font-weight: 500;
}

.p_about_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem 3.97rem;
  margin-bottom: 6.4rem;
}

.p_about_card {
  text-decoration: none;
  color: #2B2D33;
}

.p_about_card_img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
}

.p_about_card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.p_about_card_name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  min-height: 10rem;
  border-bottom: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='273' height='3' viewBox='0 0 273 3'%3E%3Cline id='border' x2='270' transform='translate(1.5 1.5)' fill='none' stroke='%23c3cede' stroke-linecap='round' stroke-width='3' stroke-dasharray='1 8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: 273px 3px;
  line-height: 1.5;
  font-size: 2rem;
  font-weight: bold;
}

.p_about_card_name h3 {
  font-size: clamp(1.6rem, 0.446vw + 1.143rem, 2rem);
  font-weight: 700;
  margin: 0;
  transition: all 0.3s ease;
}

.p_about_card_txt {
  font-size: 1.6rem;
  line-height: 1.8;
  font-weight: 500;
}

.p_about_card:hover .p_about_card_img img {
  transform: scale(1.1);
}

.p_about_card:hover .p_about_card_name h3 {
  color: #1E40AF;
  text-decoration: underline;
}

.p_about_btn {
  text-align: center;
}

@media screen and (max-width: 1439px) {
  .p_about {
    margin-top: 8rem;
    padding: 8rem 6rem 8rem 10rem;
    border-radius: 0 12rem 12rem 0;
    width: calc(100% - 8rem);
  }

  .p_about_head {
    margin-bottom: 4rem;
  }

  .p_about_grid {
    gap: 4rem 2.4rem;
  }

  .p_about_card_name {
    min-height: 7.8rem;
  }
}

/* ==============================================
   Aboutセクション（front-page.css および main.css共通部分）
============================================== */
@media screen and (max-width: 1023px) {
  .p_about {
    width: calc(100% - 4rem);
    padding: 6rem 4rem;
    border-radius: 0 4.8rem 4.8rem 0;
  }

  .p_about_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .p_about {
    width: calc(100% - 2rem);
    border-radius: 0 4.8rem 4.8rem 0;
    padding: 4.8rem 4rem;
    margin-top: 4.8rem;
  }

  .p_about_head {
    margin-bottom: 3.2rem;
  }

  .c_sec_txt {
    font-size: 1.4rem;
  }

  .p_about_grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
    margin-bottom: 4.8rem;
  }

  .p_about_card_name {
    min-height: 5.6rem;
    padding: 1.2rem 0;
    margin-bottom: 1.2rem;
  }
}

.p_news {
  padding: 8rem 4rem;
  background-color: #FFFFFF;
  border-radius: 20rem;
  max-width: 1440px;
  margin: 14rem auto 12rem;
}

.p_news_inner {
  max-width: 1200px;
  margin: 0 auto;
}

.p_news_head {
  .c_sec_ttl {
    text-align: center;

    &::after {
      left: 50%;
      transform: translateX(-50%);
    }
  }
}

.p_news_list {
  display: flex;
  flex-direction: column;
  margin-bottom: 6.4rem;
}

.p_news_item {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 2.4rem 2rem;
  text-decoration: none;
  border-bottom: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='273' height='3' viewBox='0 0 273 3'%3E%3Cline id='border' x2='270' transform='translate(1.5 1.5)' fill='none' stroke='%23c3cede' stroke-linecap='round' stroke-width='3' stroke-dasharray='1 8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: 273px 3px;
  transition: all 0.3s ease;
  line-height: 1.8;
  gap: 0.8rem;
}

.p_news_item:first-child {
  border-top: none;
  position: relative;
}

.p_news_item:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='273' height='3' viewBox='0 0 273 3'%3E%3Cline id='border' x2='270' transform='translate(1.5 1.5)' fill='none' stroke='%23c3cede' stroke-linecap='round' stroke-width='3' stroke-dasharray='1 8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 273px 3px;
}

.p_news_item_meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.p_news_item_meta time {
  font-size: 1.6rem;
  font-weight: 500;
  color: #1E40AF;
}

.p_news_item_cat {
  font-size: 1.4rem;
  font-weight: 500;
  color: #1E40AF;
  border: 1px solid #1E40AF;
  padding: 0rem 1.6rem;
  border-radius: 20px;
}

.p_news_item_ttl {
  font-size: clamp(1.6rem, 0.446vw + 1.143rem, 2rem);
  font-weight: 500;
  margin: 0;
  transition: all 0.3s ease;
}

.p_news_item:hover {
  background-color: #EAF2FF;
}

.p_news_item:hover .p_news_item_ttl {
  color: #1E40AF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.p_news_btn {
  text-align: center;
}

@media screen and (max-width: 1439px) {
  .p_news {
    width: calc(100% - 12rem);
    border-radius: 12rem;
    padding: 4.8rem 8rem 6.4rem;
    margin-top: 8rem;
    margin-bottom: 8rem;

  }

  .p_news_item {
    padding: 1.6rem 1.2rem;
  }

  .p_news_item_meta time {
    font-size: 1.4rem;
  }

  .p_news_item_cat {
    font-size: 1.2rem;
  }

}

/* ==============================================
   Newsセクション（front-page.css）
============================================== */
@media screen and (max-width: 1023px) {
  .p_news {
    width: calc(100% - 4rem);
    border-radius: 4.8rem;
    padding: 4.8rem 4rem;
  }
}

@media screen and (max-width: 767px) {
  .p_news {
    width: calc(100% - 4rem);
    border-radius: 4.8rem;
    padding: 3.2rem 2rem 4rem;
    margin-top: 4.8rem;
    margin-bottom: 4.8rem;
  }

  .p_news_item {
    padding: 1.6rem 0;
  }

  .p_news_item_meta {
    gap: 0.8rem;
  }

  .p_news_item_ttl {
    font-size: 1.4rem;
    margin-top: 0rem;
  }

  .p_news_item_meta time {
    font-size: 1.3rem ;
  }
  .p_news_btn .c_btn {
    width: 100%;
    max-width: 100%;
  }
  .p_news_item_cat {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .p_news_list {
    margin-bottom: 4rem;
  }
}