/* 
─────────────────────────────────────────────────────────────────
Ｓ：概要
───────────────────────────────────────────────────────────────── */
.main_summary {
  width: 100%;
  background-color: #fff;
}

.main_summary_frame {
  max-width: 648px;
  margin: 0 auto;
}

.main_summary_contents {
  max-width: 600px;
  padding: 40px 0 56px;
  margin: 0 24px;
}

/* 
───────────────────────────────────────────────────────────────── */
.summary_area {
  margin: 16px 0 0;
}

.summary_item {
  display: flex;
  flex-flow: column;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-around;
}

.summary_list {
  flex: 1;
}

/* 
───────────────────────────────────────────────────────────────── */
.summary_button {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.summary_button_message {
  position: relative;
  background-image: url("../../img/company_message.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.summary_button_philosophy {
  position: relative;
  background-image: url("../../img/company_philosophy.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.summary_button_information {
  position: relative;
  background-image: url("../../img/company_information.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.summary_button_news {
  position: relative;
  background-image: url("../../img/company_news.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.summary_button_message::before,
.summary_button_philosophy::before,
.summary_button_information::before,
.summary_button_news::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  content: "";
  background: hsl(240deg 100% 31% / 60%);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.summary_button_frame {
  position: relative; /* summary_button_titleとsummary_button_button_signの起点 */
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.summary_button_title {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  width: auto;
  font-weight: 550;
  color: #fff;
}

.summary_button_title_sub {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, calc(12px + (16 - 12) * ((100vw - 888px) / (1248 - 888))), 16px);
  text-align: center;
}

.summary_button_title_main {
  font-size: clamp(18px, calc(18px + (24 - 18) * ((100vw - 888px) / (1248 - 888))), 24px);
  font-weight: 500;
}

.summary_button_sign {
  position: absolute;
  top: 50%;
  right: 16px;
  transition: all 0.3s ease;
  transform: translateY(-50%);
}

.summary_button_sign_frame {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.summary_button_sign_line {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 56%;
  height: 56%;
  margin: -28% 0 0 -38%;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* 
───────────────────────────────────────────────────────────────── */
.summary_description {
  margin: 16px 0 0;
}

/* 
───────────────────────────────────────────────────────────────── */
.contents_scroll {
  margin: 80px auto 24px;
}

.contents_scroll_item {
  display: flex;
  flex-flow: row wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

/* 
───────────────────────────────────────────────────────────────── */
.contents_scroll_button {
  width: auto;
  cursor: pointer;
  background-color: #ddd6ce;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.contents_scroll_button_frame {
  position: relative; /* contents_scroll_button_signの起点 */
  display: block;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px 40px 8px 24px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.contents_scroll_button_title {
  width: auto;
  font-size: 0.8rem;
  font-weight: 550;
  color: #665c50;
}

.contents_scroll_button_sign_top,
.contents_scroll_button_sign_bottom {
  position: absolute;
  top: 50%;
  right: 16px;
  margin: -1px 0 0;
  transition: all 0.3s ease;
  transform: translateY(-50%);
}

.contents_scroll_button_sign_top {
  bottom: 50%;
  margin: -6px 0 0;
}

.contents_scroll_button_sign_frame {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.contents_scroll_button_sign_top .contents_scroll_button_sign_line,
.contents_scroll_button_sign_bottom .contents_scroll_button_sign_line {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 56%;
  height: 56%;
  margin: -28% 0 0 -38%;
  border-right: 2px solid #665c50;
  border-bottom: 2px solid #665c50;
  transform: rotate(225deg);
}

.contents_scroll_button_sign_bottom .contents_scroll_button_sign_line {
  transform: rotate(45deg);
}

/* 
─────────────────────────────────────────────────────────────────
横幅800px～
───────────────────────────────────────────────────────────────── */
@media screen and (width >= 888px) {
  /* 
  ─────────────────────────────────────────────────────────────────
  Ｌ：概要
  ───────────────────────────────────────────────────────────────── */
  .main_summary {
    width: 100%;
  }

  .main_summary_frame {
    max-width: 1248px;
  }

  .main_summary_contents {
    max-width: 1200px;
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .summary_item {
    flex-flow: row;
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .summary_button {
    width: auto;
  }

  .summary_button_frame {
    padding: 24px 0 40px;
  }

  .summary_button_message:hover::before,
  .summary_button_philosophy:hover::before,
  .summary_button_information:hover::before,
  .summary_button_news:hover::before {
    background: hsl(240deg 100% 31% / 40%);
  }

  .summary_button_title_sub {
    display: flex;
  }

  .summary_button_sign {
    position: absolute;
    inset: auto auto 12px 50%;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .summary_button:hover .summary_button_sign {
    transform: translateX(-50%) translateY(4px);
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .contents_scroll_button:hover {
    background-color: #eeeae6;
  }

  .contents_scroll_button_sign {
    position: absolute;
    right: 16px;
  }

  .contents_scroll_button:hover .contents_scroll_button_sign_top {
    transform: translateY(-8px) translateX(0);
  }

  .contents_scroll_button:hover .contents_scroll_button_sign_bottom {
    transform: translateY(-8px) translateX(0);
  }

  /*
  ─────────────────────────────────────────────────────────────────
  ここまで
  ───────────────────────────────────────────────────────────────── */
}
