/* =======================
   home: hero
======================= */
.home-hero {
  position: relative;
  width: 100%;
  height: 50vw;
  margin-bottom: 140px;
}

.home-hero-bg,
.home-hero-bg__modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.home-hero-bg {
  z-index: 0;
}

.home-hero-bg__modal {
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4);
}

.home-hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  text-align: center;
  gap: 40px;
  z-index: 2;
}

.home-hero-content__heading {
  font-size: 42px;
  letter-spacing: 0.1em;
}

.home-hero-content__text {
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.home-hero-sp,
.home-hero-content-br {
  display: none;
}

.home-hero-pc {
  display: block;
}

@media (max-width: 1024px) {
  .home-hero-content__heading {
    font-size: 4vw;
  }
  .home-hero-content__text {
    font-size: 2vw;
    line-height: 2.4;
  }
  .home-hero {
    min-height: clamp(60vh, 96vh - 10vw, 96vh);
  }
}
@media (max-width: 768px) {
  .home-hero-sp {
    display: block;
  }
  .home-hero-pc {
    display: none;
  }
  .home-hero-content-br {
    display: block;
  }
  .home-hero-content__heading {
    font-size: clamp(32px, 6vw, 60px);
    line-height: 2;
    padding-left: 10px;
  }
  .home-hero-content__text {
    font-size: clamp(15px, 2.6vw, 28px);
    line-height: 2.6;
  }
}

@media (max-width: 425px) {
  .home-hero {
    margin-bottom: 160px;
  }
}

/* =======================
   home: topic
======================= */
.home-topic {
  position: absolute;
  left: 50%;
  top: calc(100% - 40px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  width: min(100% - var(--space-horizontal) * 2, 1240px);
  padding: 30px 40px;
  background: var(--color-white);
  z-index: 3;
}

.home-topic-header {
}

.home-topic-heading {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 40px;
}
.home-topic-heading::after {
  content: attr(data-en);
  display: block;
  text-transform: uppercase;
  font-size: 0.8em;
  color: var(--color-gray-400);
  padding-left: 4px;
  margin-top: 10px;
}

.home-topic-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  font-size: 13px;
  padding-bottom: 16px;
}

.home-topic-list__link {
  display: grid;
  gap: 5px;
  font-weight: 600;
  line-height: 1.6;
}

.home-topic-list__thumb {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
}

.home-topic-list__date {
  color: var(--color-gray-400);
}

.home-topic-list__title {
}

/* responsive */
@media (max-width: 1024px) {
  .home-topic-list {
    width: 100%;
    overflow-x: scroll;
  }
  .home-topic-list__item {
    width: 140px;
  }
}

@media (max-width: 425px) {
  .home-topic {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 20px;
  }

  .home-topic-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .home-topic-heading {
    font-size: 14px;
    margin-bottom: 0;
  }

  .home-topic-heading::after {
    margin-top: 6px;
  }

  .home-topic-header .c-btn--sm {
    font-size: 12px;
    padding: 10px 16px;
  }

  .home-topic-list__item {
    width: 120px;
  }

  .home-topic-list__date {
    font-size: 12px;
  }

  .home-topic-list__title {
    font-size: 12px;
  }

  .home-topic-list__link {
    gap: 3px;
    line-height: 1.4;
  }
}

/* =======================
   home: sales-info
======================= */
.home-sales-info {
  margin-bottom: 50px;
}

.home-sales-info-list {
}
.home-sales-info-list__item {
}
.home-sales-info-list__link {
}

.home-sales-info-list__thumb {
  width: 100%;
  aspect-ratio: 1.6;
  background-color: var(--color-gray-400);
  border-radius: 6px;
  overflow: hidden;
}

.home-sales-info-list__thumb img {
  width: 100%;
  object-fit: cover;
}

.home-sales-info-list__content {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
  padding: 20px 0;
}
.home-sales-info-list__logo {
  /* TODO: */
  width: auto;
  height: 40px;
  background-color: var(--color-gray-400);
}
.home-sales-info-list__desc {
  font-size: 13px;
  line-height: 1.6;
}
.home-sales-info-list__title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 5px;
}
.home-sales-info-list__tag {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 14px;
  background-color: var(--color-gray-100);
  padding: 8px 20px;
  border-radius: 100vmax;
}

/* 販売終了時 */
.home-sales-info-list__link:has(.is-soldout) {
  cursor: default;
}

.is-soldout {
  position: relative;
}
.is-soldout::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  background-color: rgba(0, 0, 0, 0.5);
  background-image: url(../../images/common/sold-out.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
}

@media (max-width: 768px) {
  .l-section:has(.home-sales-info) {
    padding-bottom: 0;
  }
  
  .home-sales-info-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 425px) {
  .home-sales-info-list__desc,
  .home-sales-info-list__tag {
    font-size: 12px;
  }
}

/* =======================
   home: concept
======================= */
.l-section:has(.home-concept)::before {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
  width: 100%;
  height: 60%;
  background-color: var(--color-gray-200);
  z-index: -1;
}

.home-concept {
}

.home-concept-header {
  display: flex;
  align-items: flex-start;
}

.home-concept-heading {
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1.85;
  padding-top: 40px;
}

.home-concept-heading__img {
  position: relative;
  display: flex;
  width: 74vw;
  gap: 20px;
  padding-right: 64px;
  align-items: flex-end;
  padding-bottom: 60px;
}

.home-concept-heading__img > img:nth-child(1),
.home-concept-heading__img > img:nth-child(2) {
  object-fit: cover;
}

.home-concept-heading__img > img:nth-child(1) {
  width: 60%;
  border-radius: 0 10px 10px 0;
  aspect-ratio: 1;
  object-position: center left;
}
.home-concept-heading__img > img:nth-child(2) {
  width: 40%;
  border-radius: 10px;
  aspect-ratio: 0.9;
  object-position: calc(50% + 44px) top;
}

@media (max-width: 1400px) {
  .home-concept-heading__img > img:nth-child(2) {
    object-position: calc(50% + 34px) top;
  }
}

@media (max-width: 1000px) {
  .home-concept-heading__img > img:nth-child(2) {
    object-position: calc(50% + 24px) top;
  }
}

.home-concept-content__text {
  line-height: 2;
  margin-bottom: 60px;
}

.home-concept-content-br {
  display: none;
}
.home-concept-content-br--sm {
  display: none;
}

@media (max-width: 900px) {
  .home-concept-heading {
    padding-top: 0;
  }
  .home-concept-content-br {
    display: block;
  }
}

@media (max-width: 768px) {
  .home-concept-heading {
    padding-top: 40px;
  }
  .home-concept-heading__img {
    flex-direction: column;
    align-items: flex-start;
    width: 70vw;
    padding-bottom: 40px;
  }
  .home-concept-heading__img > img:nth-child(1) {
    width: 100%;
    aspect-ratio: 1.7;
  }
  .home-concept-heading__img > img:nth-child(2) {
    width: 70%;
    aspect-ratio: 1.5;
    border-radius: 0 10px 10px 0;
    object-position: top left;
  }
  .home-concept-content-br {
    display: none;
  }
}

@media (max-width: 670px) {
  .home-concept-heading {
    padding-top: 0;
  }
  .home-concept-content-br {
    display: block;
  }
}
@media (max-width: 600px) {
  .home-concept-heading__img > img:nth-child(1) {
    aspect-ratio: 1.2;
  }
  .home-concept-heading__img > img:nth-child(2) {
    aspect-ratio: 1.2;
  }
}
@media (max-width: 500px) {
  .home-concept-heading__img {
    width: 64vw;
    padding-right: 32px;
    padding-bottom: 60px;
  }
  .home-concept-heading {
    padding-top: 32px;
  }
  .home-concept-content__btn a {
    padding-left: 30px;
    padding-right: 30px;
    font-size: 15px;
  }
}
@media (max-width: 425px) {
  .home-concept-content-br--sm {
    display: block;
  }
}

/* =======================
   home: modelhouse
======================= */
.l-section:has(.home-modelhouse) {
  background-color: var(--color-gray-200);
}

.home-modelhouse {
  position: relative;
}

.home-modelhouse-content {
  width: 40%;
  padding: 100px 0;
}

.home-modelhouse-content__heading {
}

.home-modelhouse-content__desc {
  line-height: 1.8;
}

.home-modelhouse-content__btn {
  margin-top: 64px;
}

.home-modelhouse-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  border-radius: 10px 0 0 10px;
  overflow: hidden;
}
.home-modelhouse-img img {
  position: absolute;
  object-fit: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 860px) {
  .home-modelhouse {
    display: flex;
    flex-direction: column-reverse;
  }
  .home-modelhouse-content {
    width: 100%;
    padding-bottom: 0;
    text-align: center;
  }
  .home-modelhouse-content__btn {
    margin-top: 32px;
  }
  .home-modelhouse-img {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 0;
  }
  .l-section:has(.home-modelhouse) {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .l-section:has(.home-modelhouse) {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 500px) {
  .home-modelhouse-img {
    height: 300px;
  }
}

/* =======================
   home: instagram
======================= */
.l-section:has(.home-instagram) {
  background-color: var(--color-gray-200);
}

.home-instagram {
  width: 100%;
  background-color: var(--color-white);
  padding: 60px 80px;
  display: grid;
  gap: 54px;
}

.home-instagram-upper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.home-instagram-header {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.home-instagram-header__text {
}
.home-instagram-header__title {
}
.home-instagram-header__desc {
}

.home-instagram-heading__icon {
  width: 56px;
}

/* TODO: temp */
.instagram-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.instagram-list > * {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--color-gray-400);
}

.instagram-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* instagram */
@media (max-width: 899px) {
  .home-instagram-upper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .home-instagram-btn {
    font-size: 14px;
    padding: 14px 32px;
  }
}

@media (max-width: 699px) {
  .home-instagram {
    padding: 40px 40px;
  }
}

@media (max-width: 568px) {
  .home-instagram-upper {
    align-items: center;
  }
  .home-instagram-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .instagram-list {
    gap: 10px;
  }
}

@media (max-width: 500px) {
  .home-instagram {
    padding: 40px 20px 20px;
    gap: 30px;
  }
  .home-instagram-header__title {
    font-size: 20px;
  }
  .home-instagram-header__desc {
    font-size: 12px;
  }
  .home-instagram-btn {
    font-size: 12px;
    padding: 12px 30px;
  }
}

/* =======================
   home: movie
======================= */
.l-section:has(.home-movie)::before,
.l-section:has(.home-movie)::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 74%;
}

.l-section:has(.home-movie)::before {
  background: var(--color-gray-900)
    url(../../images/pages/home/home-section-movie-bg.png) no-repeat center/cover;
  z-index: -2;
}

.l-section:has(.home-movie)::after {
  background-color: rgba(0,0,0,0.5);
  z-index: -1;
}

.home-movie {
  position: relative;
  width: 100%;
}

.home-movie-header {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  margin-bottom: 100px;
  color: var(--color-white);
}
.home-movie-header__text {
}
.home-movie-header__btn {
}

/* movie swiper */
.home-movie-list {
  position: relative;
  width: 100%;
}
.home-movie-swiper {
  width: 100%;
  height: auto;
}
.home-movie-swiper .swiper-slide {
  aspect-ratio: 1.7778;
}

.home-movie-nav {
  position: absolute;
  bottom: -54px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 999;
}

.home-movie-nav__prev,
.home-movie-nav__next {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.home-movie-nav__pagination {
  text-align: center;
  display: flex;
  justify-content: center;
}
.home-movie-nav__pagination .swiper-pagination-bullet-active {
  background: var(--color-gray-900) !important;
}

/* responsive */
@media (max-width: 900px) {
  .home-movie-header {
    flex-direction: column;
    gap: 40px;
    margin-top: 24px;
    margin-bottom: 64px;
  }
}

.home-movie-br {
  display: none;
}
@media (max-width: 680px) {
  .home-movie-header__text {
    text-align: center;
  }
  .home-movie-header__text p {
    line-height: 1.8;
  }
  .home-movie-br {
    display: block;
  }
  .home-movie-header__btn {
    display: flex;
    justify-content: center;
  }
  .home-movie-list {
    padding: 0 20px;
  }
}

/* =======================
   home: blog
======================= */
.home-blog {
}
.home-blog-list {
}
.home-blog-list__item {
}
.home-blog-list__link {
}

.home-blog-list__thumb {
  width: 100%;
  aspect-ratio: 1.5;
  border-radius: 6px;
  overflow: hidden;
}
.home-blog-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-blog-list__body {
  padding: 30px 0;
}

.home-blog-list__date {
  font-weight: 600;
  font-size: 14px;
}

.home-blog-list__tag {
  background-color: var(--color-gray-100);
  padding: 5px 16px;
  border-radius: 100vmax;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
}

.home-blog-list__desc {
  margin-top: 20px;
  line-height: 1.6;
  font-size: 15px;
}

@media (max-width: 768px) {
  .home-blog-list {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
    gap: 30px;
  }
  .home-blog-list__link {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 30px;
  }
  .home-blog-list__body {
    padding: 0;
  }
}

@media (max-width: 600px) {
  .home-blog-list__link {
    grid-template-columns: 40% 1fr;
  }
  .home-blog-list__desc {
    font-size: 14px;
  }

  .home-blog-list__thumb {
    aspect-ratio: 1.3;
  }
}

@media (max-width: 510px) {
  .home-blog-list__link {
    grid-template-columns: 30% 1fr;
  }
  .home-blog-list__tag {
    padding: 3px 12px;
    font-size: 11px;
    margin-left: 5px;
  }

  .home-blog-list__desc {
    font-size: 11.75px;
    margin-top: 10px;
  }

  .home-blog-list__thumb {
    aspect-ratio: 1;
  }
}

/* =======================
   home: zeh
======================= */
.l-section:has(.home-zeh) {
  background-color: var(--color-gray-200);
}

.home-zeh-heading {
  position: relative;
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 80px;
  letter-spacing: 0.06em;
}
.home-zeh-heading::after {
  position: absolute;
  content: "";
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 1px;
  background-color: currentColor;
}
.home-zeh-heading span {
  font-size: 16px;
  letter-spacing: 0.01em;
}

.home-zeh-body {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.home-zeh-body__text {
  line-height: 2.2;
  font-size: 15px;
  width: 50%;
}

/* table */
.home-zeh-table__title {
  position: relative;
  padding-left: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.home-zeh-table__title::before {
  position: absolute;
  top: calc(50% + 2px);
  left: 0;
  transform: translateY(-50%);
  content: "";
  width: 12px;
  height: 12px;
  background-color: currentColor;
  border-radius: 100vmax;
}

/* table */
.home-zeh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.home-zeh-table th,
.home-zeh-table td {
  border: 1px solid var(--color-gray-300);
  padding: 10px 8px;
  text-align: center;
  font-weight: 500;
  background-color: var(--color-white);
  vertical-align: middle;
}

.table__cell--highlight {
  background-color: var(--color-primary-light) !important;
  color: var(--color-primary) !important;
  font-weight: 600 !important;
}

/* responsive */
@media (max-width: 1170px) {
  .home-zeh-body__text {
    width: 40%;
  }
  .home-zeh-br {
    display: none;
  }
}

@media (max-width: 1024px) {
  .home-zeh-body {
    flex-direction: column;
    gap: 60px;
  }
  .home-zeh-body__text {
    width: 100%;
    text-align: center;
  }
  .home-zeh-br {
    display: block;
  }
  .home-zeh-table__title,
  .home-zeh-table {
    width: 100%;
    max-width: 600px;
  }
  .home-zeh-table__title {
    margin: 0 auto 16px;
  }
  .home-zeh-table {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .home-zeh-body__text {
    text-align: left;
  }
  .home-zeh-br {
    display: none;
  }
}

@media (max-width: 425px) {
  .home-zeh-heading {
    font-size: 28px;
  }
  .home-zeh-heading::after {
    width: 280px;
    bottom: -20px;
  }
  .home-zeh-heading span {
    font-size: 12px;
  }
  .home-zeh-body__text {
    font-size: 14px;
  }
  .home-zeh-table th span {
    display: inline-block;
    font-size: 11px;
  }
}

/* =======================
   home: company
======================= */
.home-company {
}

.home-company-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--color-gray-400)
    url(../../images/pages/home/home-section-company-bg.png) no-repeat
    center/cover;
  border-radius: 10px;
  color: var(--color-white);
  gap: 60px;
  padding: 120px 0 100px;
}

.home-company-content::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.5);
  border-radius: 10px;
}

.home-company-content > * {
  z-index: 9;
}

.home-company-content__text {
  text-align: center;
  line-height: 2;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.home-company-content-br {
  display: none;
}

@media (max-width: 768px) {
  .home-company-content__text {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .home-company-content {
    gap: 40px;
    padding: 80px 0 80px;
  }
  .home-company-content__text {
    line-height: 2.2;
  }
  .home-company-content-br {
    display: block;
  }
}

/* text loop */
.home-company-text-loop {
  position: absolute;
  top: -8px;
  left: 0;
  display: flex;
  width: 100%;
  overflow: hidden;
  z-index: -1;
}

.home-company-text-loop > * {
  flex: 0 0 auto;
  white-space: nowrap;
  width: auto;
  height: 140px;
  overflow: hidden;
  padding-left: 80px;
  color: var(--color-gray-200);
}

@media (max-width: 768px) {
  .home-company-text-loop > * {
    height: 120px;
    padding-left: 40px;
  }
}

.home-company-text-loop > *:nth-child(odd) {
  animation: loop 70s -35s linear infinite;
}
.home-company-text-loop > *:nth-child(even) {
  animation: loop2 70s linear infinite;
}

@keyframes loop {
  0% {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes loop2 {
  0% {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200%);
  }
}
