@import url("./root.css");

.container {
  max-width: 1300px;
}

@media screen and (max-width: 768px) {
  .container {
    max-width: calc(100% - 30px);
  }
}

/* FVセクション */
.fv {
  padding: 0;
  line-height: 0;
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
  max-width: 1200px;
  height: 45vw;
  max-width: 88vw;
  max-height: 70vh;
}

.fv__img {
  width: 100%;
  height: 100%;
}

/* FVスライダー */
.fv__img .splide {
  width: 100%;
  height: 100%;
}

.fv__img .splide__track {
  width: 100%;
  height: 100%;
}

.fv__img .splide__list {
  width: 100%;
  height: 100%;
}

.fv__img .splide__slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fv__img .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

/* TOP NEWSセクション */
.front-top-news {
  padding: 0;
  line-height: 2;
  position: relative;
  z-index: 10;
  width: 50%;
  margin: -4rem 0 0 0;
  background-color: white;
  border: 2px solid var(--color-yellow);
}

.front-top-news__content {
  padding: 1rem 2rem;
}

.front-top-news__content article {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
}

.front-top-news__content article .posts__date {
  font-size: 0.75rem;
  font-weight: 700;
}

.front-top-news__content article .posts__title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 1;
}

@media screen and (max-width: 1300px) {
  .fv {
    height: 55vw;
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .fv{
    padding-bottom: 0;
    height: inherit;
    width: 100%;
  }
  .fv__img{
    border-bottom: none;
  }
  .front-top-news {
    width: 95%;
    margin: -2rem 0 0 0;
  }

  .front-top-news__content {
    padding: 0.5rem 1rem;
  }


  .front-top-news__content article {
    flex-direction: column;
    gap: 0;
    line-height: 1.6;
    font-size: 0.85rem;
  }
}

/* ABOUTセクション */
.front-about {
  padding: 80px 0;
  background-color: var(--color-bg-gray);
  position: relative;
}

.front-about::before {
  content: "";
  position: absolute;
  top: -3rem;
  right: 0;
  bottom: 0;
  width: 50%;
  background: url("../images/front/about_bg.png") right bottom/contain no-repeat;
  z-index: 0;
}

.front-about .container {
  position: relative;
  z-index: 1;
}

.front-about__content {
  margin-top: 60px;
}

.front-about__main {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 60px;
  text-align: center;
}

.front-about__image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 540px;
}

.front-about__image {
  width: 56%;
}

.front-about__image.company-info {
  margin-right: -60px;
}

.front-about__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.front-about__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.front-about__highlight {
  margin-bottom: 20px;
}

.front-about__highlight p {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.highlight-box {
  border: 1px solid var(--color-yellow);
  background-color: white;
  padding: 8px 16px;
  margin-right: 8px;
}

.front-about__description p {
  line-height: 2.2;
  margin: 0;
  color: var(--color-dark-gray);
}

.highlight-underline {
  text-decoration: underline;
  text-decoration-color: var(--color-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

@media screen and (max-width: 1024px) {
  .front-about__main {
    flex-direction: column;
    gap: 40px;
  }

  .front-about__image-wrapper {
    flex-direction: column;
    max-width: 100%;
  }

  .front-about__image {
    width: 80%;
  }

  .front-about__image.company-info {
    margin-right: auto;
  }

  .front-about__image.philosophy {
    margin-top: -60px;
    margin-left: auto;
    margin-right: -10px;
  }

  .front-about__buttons {
    gap: 30px;
  }

  .front-about__button {
    width: 180px;
    height: 180px;
    padding: 25px;
  }
}

@media screen and (max-width: 768px) {
  html {
    max-width: 100vw;
    overflow-x: hidden;
  }
  body {
    max-width: 100vw;
  }
  .front-about {
    padding: 60px 0;
  }

  .front-about .container {
    padding: 0;
  }

  .front-about::before {
    width: 80%;
  }

  .front-about__content {
    margin-top: 40px;
  }

  .front-about__main {
    margin-bottom: 40px;
    text-align: left;
  }

  .front-about__highlight p {
    font-size: 1.4rem;
    line-height: 2.2;
  }

  .front-about__description p {
    font-size: 1rem;
    line-height: 2.8;
  }
}

@media screen and (max-width: 400px) {
  .front-about .container {
    max-width: 100%;
  }
  .front-about__description p {
    letter-spacing: 0.1em;
  }
}

/* PRODUCTセクション */
.front-product {
  padding: 80px 0;
  background-color: #fff;
}

.front-product .container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 60px;
}

.front-product__title {
  margin-bottom: 40px;
}

.front-product__image {
  flex: 0 0 50%;
  max-width: 50%;
}

.front-product__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.front-product__categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.front-product__category {
  display: flex;
  align-items: center;
  gap: 15px;
}

.front-product__category-group {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 160px;
}

.front-product__category-text {
  font-size: 1.2rem;
  font-weight: 700;
}

.front-product__category-line {
  flex: 1;
  height: 2px;
  background-color: var(--color-yellow);
}

.front-product__category-en {
  font-size: 1.1rem;
  font-weight: 500;
}

.front-product__description {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.front-product__description h3 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 2.2;
  font-feature-settings: "palt";
}

.front-product__description p {
  margin: 0;
  font-feature-settings: "palt";
}

.front-product__button {
  align-self: flex-start;
  margin-top: 20px;
}

@media screen and (max-width: 768px) {
  .front-product {
    padding: 40px 0;
  }

  .front-product .container {
    flex-direction: column;
    padding: 0;
    margin-top: 0;
  }

  .front-product__image {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .front-product__category-group {
    width: 140px;
  }

  .front-product__category-en {
    white-space: nowrap;
  }

  .front-product__description h3 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 400px) {
  .front-product__description p {
    font-size: 0.95rem;
  }
}

/* FLOWセクション */
.front-flow {
  position: relative;
  padding: 60px 0 60px 0;
  overflow: hidden;
}
.front-flow__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.front-flow__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  display: block;
}
.front-flow .container {
  position: relative;
  z-index: 1;
}
.front-flow__steps {
  display: flex;
  gap: 1rem;
  margin-top: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.front-flow__step {
  background: url("../images/front/flow_bg.png") top left/cover no-repeat;
  flex: 1 1 0;
  min-width: 220px;
  max-width: 25%;
  padding: 32px 20px 32px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.front-flow__number {
  position: absolute;
  left: 0;
  top: -4px;
  width: 48px;
  height: 48px;
  z-index: 2;
}
.front-flow__number img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.front-flow__icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.front-flow__heading {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  margin-top: 24px;
}
.front-flow__desc {
  line-height: 2.2;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  padding-top: 8px;
}
@media screen and (max-width: 1024px) {
  .front-flow__steps {
    flex-wrap: wrap;
    gap: 16px;
  }
  .front-flow__step {
    max-width: 48%;
    min-width: 200px;
    margin-bottom: 16px;
  }
}
@media screen and (max-width: 600px) {
  .front-flow__steps {
    flex-direction: column;
    gap: 16px;
    padding: 0 15px;
  }
  .front-flow__step {
    max-width: 100%;
    min-width: 0;
    padding: 24px 10px;
  }
}

/* NEWSセクション */
.front-news {
  padding: 0;
  background-color: white;
}

.front-news__content {
  display: flex;
  gap: 0;
}

.front-news__title {
  flex: 0 0 30%;
  align-items: center;
  padding-top: 60px;
}

.front-news__main {
  flex: 0 0 70%;
  background-color: var(--color-bg-gray);
  padding: 60px 120px;
  margin-top: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.front-news__list.posts__list {
  border-top: 2px solid var(--color-light-gray);
  flex: 1;
}

.front-news__list .posts__item {
  padding-block: 1.5rem;
  padding-inline: 2rem;
  border-bottom: 2px solid var(--color-light-gray);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease;
}

.front-news__list .posts__meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.front-news__list .posts__date {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.4px;
  position: relative;
}

.front-news__list .posts__category {
  display: inline-block;
  padding: 8px 12px;
  border: 2px solid;
  font-size: 0.875rem;
  line-height: 1.2;
  margin-left: 3rem;
  background-color: white;
}

.front-news__list .posts__date::after {
  content: "";
  position: absolute;
  right: -1.4rem;
  top: 50%;
  transform: translateY(-50%);
  height: 2.5rem;
  width: 1px;
  background-color: #8f8f8f;
}

.front-news__list .posts__title {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: 0.15em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 5;
}

.front-news__button-wrapper {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
}

.front-news__button {
  margin: 0;
}

.view-more-button {
  text-align: right;
}

@media screen and (max-width: 1024px) {
  .front-news__content {
    flex-direction: column;
  }

  .front-news__title {
    flex: none;
    padding: 30px 20px;
  }

  .front-news__main {
    flex: none;
    padding: 30px 20px;
    margin-top: 0;
  }
}

@media screen and (max-width: 768px) {
  .front-news {
    padding: 40px 0;
    background-image: linear-gradient(white 1px, transparent 1px),
      linear-gradient(to right, white 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: var(--color-light-yellow);
    background-position: -14px 14px;
  }

  .front-news__content {
    margin-top: 40px;
  }

  .front-news__main {
    width: calc(100% - 30px);
    margin-inline: auto;
    padding: 2rem;
  }

  .front-news__list .posts__item {
    padding: 1.5rem 0.5rem;
  }

  .front-news__list .posts__meta {
    justify-content: space-between;
  }

  .front-news__list .posts__date::after {
    right: -1.2rem;
  }

  .front-news__list .posts__category {
    margin-left: 2rem;
  }
}
