@charset "utf-8";

/*　====================================================
共通css
====================================================*/
html {
  scroll-behavior: smooth;
}

body {
  max-width: 144rem;
  margin: 0 auto;
  color: #232323;
  font-family: "IBM Plex Sans JP", sans-serif;
}

.sp_only {
  display: none;
}

.pc_only {
  display: block;
}

/*　====================================================
ヘッダー
====================================================*/
.header {
  min-width: 144rem;
  margin: 0 auto;
  height: 10rem;
  background-color: #fff;
  position: fixed;
  z-index: 100;
}

.header_inner {
  z-index: 100;
  max-width: 130rem;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main_title {
  font-size: 4.4rem;
}

.nav_list {
  display: flex;
  gap: 2.5rem;
  font-size: 2.4rem;
  font-weight: 600;
}

.nav_list a,
.nav_list {
  color: #232323;
}

.menu_item a:hover {
  color: #a3a3a3;
}

/* ------------ サブメニュー ------------ */
.sub_menu {
  position: absolute;
  top: 3rem;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu_item {
  position: relative;
}

.sub_menu_item {
  width: 100%;
  text-align: center;
  background-color: #fff;
  font-size: 1.8rem;
  border-bottom: 0.2rem solid #a3a3a3;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.sub_menu_item_last {
  border: none;
}

/* ホバー時 */
.menu_item:hover .sub_menu {
  opacity: 1;
  visibility: visible;
}

/*　====================================================
メインビジュアル
====================================================*/
/* ------------ カード設定 ------------ */
.mainvisual {
  display: flex;
  gap: 2rem;
  margin-bottom: 15rem;
}

.mainvisual_card {
  margin-top: 10rem;
  width: calc((100% - 6rem) / 3);
}

/* ------------ 画像リンクエリア ------------ */
/* 画像エリアスタイル */
.mainvisual_link_area {
  display: block;
  width: 100%;
  height: 50rem;
  background-position: center;
  background-repeat: no-repeat;
  /* タグの絶対位置基準設定 */
  position: relative;
  overflow: hidden;
}

/* 背景画像スタイル */
.mainvisual_link_area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 拡大して縦の余白を消す(画像サイズが足りない) */
  transform: scale(1.1);
  background-image: url('../img/kodatikai_bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  transition: transform 0.5s ease;
}

/* 背景透過グラデーション共通設定 */
.mainvisual_link_area::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* 背景透過グラデーション個別設定 */
.mainvisual_link_kodatikai::after {
  background: linear-gradient(to top, rgb(3 131 26) 10%, rgba(1, 84, 16, 0.1) 30%);
}

.mainvisual_link_frise::after {
  background: linear-gradient(to top, rgb(14, 59, 133) 10%, rgba(37, 174, 216, 0.1) 30%);
}

.mainvisual_link_verite::after {
  background: linear-gradient(to top, rgb(104, 2, 2) 10%, rgba(104, 2, 2, 0.2) 30%);
}

.mainvisual_link_carepro::after {
  background: linear-gradient(to top, rgb(232, 88, 104) 10%, rgba(232, 88, 104, 0.1) 30%);
}

/* 背景画像URL指定 */
.mainvisual_link_kodatikai::before {
  background-image: url(../img/kodatikai_bg.png);
  background-position-x: right;
}

.mainvisual_link_frise::before {
  background-image: url(../img/frise_bg.png);
}

.mainvisual_link_verite::before {
  background-image: url(../img/verite_bg.png);
}

.mainvisual_link_carepro::before {
  background-image: url(../img/carepro_bg.png);
}

/* 画像リンクホバー時拡大 */
.mainvisual_link_kodatikai:hover::before,
.mainvisual_link_frise:hover::before,
.mainvisual_link_verite:hover::before,
.mainvisual_link_carepro:hover::before {
  transform: scale(1.2);
}

/* ロゴ設定 */
.logo_container {
  position: relative;
}

.mainvisual_link_logo {
  object-fit: contain;
  position: relative;
  width: auto;
  height: 16rem;
  z-index: 10;
}

.kodachikai_mainvisual_link_logo {
  width: auto;
  height: 24rem;
}

.mainvisual_link_logo_bg {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 16rem;
  height: 16rem;
  background-color: #ffffff;
  border-radius: 50%;
  filter: blur(20px);
}

.mainvisual_link_contents {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* VERITEサイト工事中の文言 */
.mainvisual_construction {
  font-size: 4rem;
  color: #fff;
  position: absolute;
  top: 5rem;
  left: 3rem;
}

/* ------------ タグ ------------ */
/* タググループ */
.mainvisual_tag_wrap {
  display: flex;
  flex-wrap: wrap-reverse;
  /* gap: 1.5em; */

  /* 絶対位置指定 */
  position: absolute;
  bottom: 1.5em;
  left: 1rem;
  z-index: 10;
}

/* タグ */
.mainvisual_tag {
  font-size: 2rem;
  padding: 0.5rem 1rem;
  color: #fff;
}

/* .mainvisual_tag_kodatikai {
    background-color: #3a7c11;
}

.mainvisual_tag_frise {
    background-color: #2c2a74;
}

.mainvisual_tag_verite {
    background-color: #5a2222;
}

.mainvisual_tag_carepro {
    background-color: #873d4d;
} */

/* ------------ 詳細エリア ------------ */
.company_name {
  width: 90%;
  font-size: 2rem;
  font-weight: bold;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #000;
  margin-bottom: 1.2rem;
}

.mainvisual_detail_text_area {
  width: 90%;
}

/* テキスト */
.mainvisual_detail_text {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* ボタン部 */
.mainvisual_button_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.mainvisual_button {
  padding: 1rem;
  color: #fff;
  background-color: #2c3679;
  font-size: 1.5rem;
}

.mainvisual_button:hover {
  opacity: 0.7;
}

/*　====================================================
アバウト（工事中）
====================================================*/
.about {
  margin-bottom: 15rem;
}

.about_construction_wrap {
  margin-top: 10rem;
  text-align: center;
}

.about_construction {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.about_construction_text {
  font-size: 2rem;
}


/*　====================================================
沿革
====================================================*/
.history {
  margin-bottom: 15rem;
}

.sec_title {
  font-size: 3rem;
  font-weight: bold;
  padding-top: 10rem;
  text-align: center;
}

.history_list_wrap {
  max-width: 128rem;
  width: 100%;
  margin: 2rem auto 0;
}

.history_list {
  display: flex;
  flex-direction: column;
}

.flex_wrap {
  display: flex;
  border: 1px solid #d8d8d8;
}

.date {
  width: 20%;
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 1.25%;
  background-color: #c8eff6;
  font-size: 2rem;
}

.event {
  width: 80%;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: #fff;
  font-size: 2rem;
  white-space: nowrap;
  padding-left: 3rem;
}

.dd_wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.pagetop {
  height: 5rem;
  width: 5rem;
  position: fixed;
  right: 3rem;
  bottom: 3rem;
  background: #fff;
  border: solid 2px #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 15;
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
}

.pagetop.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pagetop__arrow {
  height: 1rem;
  width: 1rem;
  border-top: 3px solid #000;
  border-right: 3px solid #000;
  transform: translateY(20%) rotate(-45deg);
}

.copy_right {
  min-width: 144rem;
  width: 100%;
  margin: 0 auto;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  background-color: #395E65;
  height: 6rem;
  text-align: center;
  padding: 1.8rem 0;
}


@media screen and (max-width:699.98px) {

  .sp_only {
    display: block;
  }

  .pc_only {
    display: none;
  }

  /*　====================================================
    ヘッダー
    ====================================================*/
  .header {
    min-width: 37.5rem;
  }

  .header_inner {
    max-width: 30rem;
    margin: 0 auto;
  }

  .main_title {
    font-size: 1.7rem;
  }

  .nav_list {
    gap: 0.5rem;
    font-size: 1rem;
  }

  /* ------------------ ハンバーガーメニュー ------------------ */
  /* ボタンのスタイル */
  .hamburger {
    width: 4rem;
    height: 4rem;
    position: fixed;
    top: 2.5rem;
    right: 2rem;
    z-index: 200;
    border: none;
    cursor: pointer;
  }

  .hamburger_bar {
    width: 100%;
    height: 0.2rem;
    right: 0;
    background: #4f4f4f;
    border-radius: 0.4rem;
    z-index: 200;
    position: absolute;
    transition: 0.3s;
  }

  /* 各線の位置 */
  .hamburger_bar:nth-child(1) {
    top: 1.5rem;
  }

  .hamburger_bar:nth-child(2) {
    top: 2.3rem;
  }

  .hamburger_bar:nth-child(3) {
    top: 3.1rem;
  }

  /* ボタンアクティブ時 */
  .hamburger.is_active .hamburger_bar:nth-child(1) {
    transform: translateY(0.8rem) rotate(45deg);
  }

  .hamburger.is_active .hamburger_bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is_active .hamburger_bar:nth-child(3) {
    transform: translateY(-0.8rem) rotate(-45deg);
  }

  /* メニューのスタイル */
  .hamburger_menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    color: #232323;
    display: none;
  }

  .hamburger_menu_inner {
    padding: 10rem 3rem;
  }

  .hamburger_menu_paragraph {
    margin-bottom: 3rem;
  }

  .hamburger_heading {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hamburger_child_element {
    font-size: 1.3rem;
    padding-left: 4rem;
    margin-bottom: 1rem;
  }

  /* リンクホバー時 */
  .hamburger_menu_link:hover {
    color: #7c7c7c;
  }

  /* メニュー表示時のスタイル */
  .hamburger_menu.is_open {
    display: block;
  }

  /*　====================================================
    メインビジュアル
    ====================================================*/
  .mainvisual {
    display: block;
    padding-top: 10rem;
    margin-bottom: 0;
  }

  .mainvisual_tag {
    font-size: 1.6rem;
  }

  .mainvisual_card {
    margin-top: 0rem;
    margin-bottom: 0;
    width: 100%;
    position: relative;
  }

  .mainvisual_link_area {
    height: calc(100vh / 3);
  }

  .mainvisual_tag_wrap {
    bottom: 0;
  }

  .mainvisual_link_area::after {
    height: 4.5rem;
  }

  .mainvisual_link_kodatikai::after {
    background-color: rgba(3, 131, 26, 0.8);
  }

  .mainvisual_link_frise::after {
    background-color: rgba(14, 59, 133, 0.8);
  }

  .mainvisual_link_verite::after {
    background-color: rgba(104, 2, 2, 0.8);
  }

  .mainvisual_link_contents {
    justify-content: flex-start;
  }

  .sp_description {
    width: 15rem;
    position: absolute;
    top: 4.3rem;
    right: 2.6rem;
  }

  .sp_description p {
    font-size: 1.2rem;
    color: #000;
    -webkit-text-stroke: 2px #fff;
    /* 縁取りの太さと色 */
    paint-order: stroke fill;
  }

  .frise_mainvisual_link_logo {
    width: 7.6rem;
    height: 10.5rem;
    position: absolute;
    left: 5rem;
    top: -6rem;
  }

  .verite_mainvisual_link_logo {
    width: 11.7rem;
    height: 11.4rem;
    position: absolute;
    top: -7rem;
    left: 3rem;
  }

  .kodachikai_mainvisual_link_logo {
    position: absolute;
    top: -13.5rem;
  }

  .mainvisual_link_logo_bg {
    top: -10.5rem;
    width: 14rem;
    height: 14rem;
  }

  /*　====================================================
 沿革
====================================================*/
  .history {
    margin-bottom: 8rem;
  }

  .history_list_wrap {
    max-width: 30.3rem;
    width: 100%;
    margin: 2rem auto 0;
  }

  .flex_wrap {
    display: flex;
    flex-direction: column;
    border: 1px solid #d8d8d8;
  }

  .date {
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1.25%;
    background-color: #c8eff6;
    font-size: 1.6rem;
    text-align: left;
  }

  .event {
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1%;
    background-color: #fff;
    font-size: 1.6rem;
    white-space: wrap;
    word-break: break-word;
    text-align: left;
  }

  .dd_wrap {
    padding-left: 1%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    word-break: break-word;
  }

  .pagetop {
    height: 4rem;
    width: 4rem;
    position: fixed;
    right: 1rem;
    bottom: 2rem;
    background: #fff;
    border: solid 2px #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
  }

  .copy_right {
    min-width: 37.5rem;
    width: 100%;
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    background-color: #395E65;
    height: 4rem;
    text-align: center;
    padding: 1rem 0;
  }


}