@charset "utf-8";

/* ----------------------------------------
	front-page.css
---------------------------------------- */

/* ========================================
   main visual
======================================== */

#main-visual {
  min-height: 70vh;
  padding-top: 80px;
  background: linear-gradient(135deg, #6EB6FE 20%, #ECF4FF 80%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.main-visual-left{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#main-visual p {
  background-image: linear-gradient(to left, #F45D13 0%, #F8B18C 100%);
  color: #fff;
  font-size: 1.2rem;
  width: fit-content;
  padding: 0 1rem;
  border-radius: 20px;
  margin: 0 auto 1rem auto;
}

#main-visual h1 {
  color: #fff;
  line-height: 1.8;
  text-align: center;
  padding-left: 2rem;
  white-space: nowrap; 
}

.main-visual-right img{
  width: 100%;
  max-width: 800px;
  height: auto;
  transform: translateY(30px);
}

/* 画面幅1024px以下 */
@media screen and (max-width: 1024px) {
  #main-visual{
    flex-direction: column;
    padding: 120px 2rem 3rem;
  }

  #main-visual h1{
    white-space: normal;
  }

  #main-visual h1 {
    padding-left: 0;
  }

  .main-visual-right img{
    max-width: 500px;
    transform: translateY(0px);
  }
}

/* 画面幅768px以下 */
@media screen and (max-width: 768px) {

  #main-visual {
    padding: 120px 1.5rem 3rem;
  }

  #main-visual h1 {
    font-size: 1.6rem;
  }

  #main-visual p {
    font-size: 1rem;
  }
}

/* 画面幅575px以下 */
@media screen and (max-width: 575px) {
  #main-visual {
    padding: 120px 0.9rem 3rem;
  }

  #main-visual h1 {
    font-size: 1.2rem;
  }

  #main-visual p {
    font-size: 1rem;
  }
}

/* ========================================
  パソコンの回収からデータ消去まで安心対応
======================================== */

#feature {
  margin: 8rem 15%;
}

.feature-container {
  display: flex;
  gap: 5rem;
}

.feature-content {
  flex: 1;
}

.point {
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  width: fit-content;
  text-align: center;
  margin: 0 auto;
}

.point {
  /* triangle dimension */
  --b: 1em; /* base */
  --h: 0.5em; /* height */

  --p: 50%; /* triangle position (0%:left 100%:right) */
  --r: 2em; /* the radius */

  padding: 0.5em 1em;
  margin-bottom: 2rem;
  border-radius: var(--r) var(--r) min(var(--r),100% - var(--p) - var(--b)/2) min(var(--r),var(--p) - var(--b)/2)/var(--r);
  background: 0 0/100% calc(100% + var(--h)) 
    linear-gradient(90deg,#F8B18C,#F45D13); /* the gradient */
  position: relative;
  z-index: 0;
}

.point:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 calc(-1*var(--h));
  background-image: inherit;
  clip-path: polygon(min(100%,var(--p) + var(--b)/2) calc(100% - var(--h)),var(--p) 100%,max(0%,var(--p) - var(--b)/2) calc(100% - var(--h)),50% 50%);
}

.feature-content p:nth-of-type(2) {
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1rem;
}

.feature-content .image-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 3rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-content .image-wrap::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: #ECF4FF;
  border-radius: 50%;
  z-index: 0;
}

.feature-content .image-wrap img {
  position: relative;
  z-index: 1;
  width: 250px;
  height: auto;
}

/* 画面幅1280px以下 */
@media screen and (max-width: 1280px) {
  #feature {
    margin: 6rem 2rem;
  }

  .feature-container {
    gap: 3rem;
  }
}

/* 画面幅1024px以下 */
@media screen and (max-width: 1024px) {
  #feature {
    margin: 6rem 8%;
  }

  .feature-container {
    flex-direction: column;
    gap: 6rem;
  }

  .feature-content p:nth-child(3) {
    width: 60%;
    margin: 0 auto;
  }

  .feature-content .image-wrap {
    width: 350px;
    height: 350px;
  }

  .feature-content .image-wrap::before {
    width: 350px;
    height: 350px;
  }

  .feature-content .image-wrap img {
    width: 330px;
  }
}

/* 画面幅768px以下 */
@media screen and (max-width: 768px) {
  #feature {
    margin: 4rem 1rem;
  }

  .feature-container {
    flex-direction: column;
    gap: 4rem;
  }

  .feature-content p:nth-child(3) {
    width: 80%;
  }

  .feature-content .image-wrap {
    width: 300px;
    height: 300px;
  }

  .feature-content .image-wrap::before {
    width: 300px;
    height: 300px;
  }

  .feature-content .image-wrap img {
    width: 280px;
  }
}

/* 画面幅575px以下 */
@media screen and (max-width: 575px) {
  .feature-content p:nth-child(3) {
    width: 100%;
  }

  .feature-content .image-wrap {
    width: 220px;
    height: 220px;
  }

  .feature-content .image-wrap::before {
    width: 220px;
    height: 220px;
  }

  .feature-content .image-wrap img {
    width: 200px;
  }
}

/* ========================================
  お知らせ
======================================== */

#top-news {
  margin: 8rem 15%;
}

.news-inner {
  background-color: #ECF4FF;
  padding: 2rem;
  position: relative;
}

.news-inner::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: url("../images/top-news-deco.webp");
  background-size: contain;
  background-repeat: no-repeat;
  top: -10%;
  right: 0;
}

#top-news ul {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

#top-news ul li {
  flex: 0 0 calc((100% - 4rem) / 3);
  background: #fff;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
}

.top-news-content-top {
  display: flex;
  justify-content: space-between;
}

#top-news .btn {
    max-width: 150px;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

#top-news .news {
  background-color: #488CFE;
  border-radius: 15px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.2rem 0.7rem;
  margin-bottom: 1rem;
}

#top-news time {
  color: #ddd;
  font-weight: 900;
  line-height: 1.5;

}

#top-news .news-ttl {
  margin: 2rem 0 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
}

/* 画面幅1280px以下 */
@media screen and (max-width: 1280px) {
  #top-news {
    margin: 8rem 5%;
  }
}

/* 画面幅1024px以下 */
@media screen and (max-width: 1024px) {
  #top-news {
    margin: 6rem 8%;
  }

  #top-news ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  #top-news ul li {
    flex: 100%;
  }

  .news-inner::after {
    top: -5%;
  }
}

/* 画面幅768px以下 */
@media screen and (max-width: 768px) {
  #top-news {
    margin: 4rem 1rem;
  }

  .news-inner::after {
    top: -4%;
  }

  #top-news .for-sp {
    display: none;
  }
}