@import url("./root.css");

.site-header {
  background-color: transparent;
  border-bottom: none;
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.main-navigation a {
  color: white;
  transition: color 0.3s ease;
}

.site-header.scrolled .main-navigation a {
  color: var(--color-txt-black);
}

.site-main {
  padding-top: 0;
}

/*======= ヒーローセクション =======*/
.hero-section {
  height: 100vh;
}

.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-video__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-video__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.hero-video__content {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 95%;
  margin: 0 auto;
}

.hero-video__content h2 {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: white;
  font-family: var(--font-serif);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-news.btn {
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid white;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.hero-news.btn a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
  font-size: 0.9em;
}

.hero-news.btn .title {
  max-width: 12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media screen and (max-width: 768px) {
  .hero-news.btn a {
    font-size: 0.8em;
  }

  .hero-video__content {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-video__content h2 {
    font-size: 1.2rem;
  }
}

/*======= イベントセクション =======*/
.event-section {
  border-bottom: 1px solid var(--color-border-gray);
  padding: 120px 0;
}

.event-section .container {
  display: flex;
  justify-content: space-between;
}

.event-grid {
  display: flex;
  gap: 1.8rem;
  width: 76%;
}

.event-main-col {
  flex: 1;
}

.event-side-col {
  flex: 1;
}

.event-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.event-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
}

.event-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* 透かしスタイルを追加 */
.event-thumbnail::after {
  content: "終了しました";
  position: absolute;
  text-align: center;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 2rem;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
}

.event-item--small .event-thumbnail::after {
  font-size: 1.5rem;
}

.event-thumbnail.ended::after {
  display: flex;
}

.event-status {
  display: flex;
  gap: 0.5em;
  align-items: center;
  margin-bottom: 0.7em;
  flex-wrap: wrap;
}

.event-status__tag {
  background: white;
  color: var(--color-btn-gray);
  border: 1px solid var(--color-btn-gray);
  font-size: 0.9rem;
  padding: 0 0.5em;
  font-weight: 500;
  pointer-events: none;
}

.event-status__text {
  display: inline-block;
  width: fit-content;
  background-color: var(--color-btn-gray);
  color: white;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 400;
}

.event-date {
  color: var(--color-txt-gray);
  font-size: 0.8rem;
}

.event-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 2;
}

.event-text {
  font-size: 0.8rem;
  line-height: 0.8rem;
  max-width: 14em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-item--large .event-thumbnail {
  margin-bottom: 0.8rem;
}

.event-item--small {
  margin-bottom: 7%;
}

.event-item--small a {
  display: flex;
  gap: 4%;
}

.event-item--small .event-thumbnail {
  width: 47%;
  height: auto;
}

.event-item--small .event-content {
  width: 50%;
}

@media screen and (max-width: 768px) {
  .event-section {
    padding: 40px 0 100px;
  }

  .event-section .container {
    flex-direction: column;
  }

  .event-grid {
    width: 100%;
    flex-direction: column;
  }

  .event-item--small {
    margin-bottom: 1.5rem;
  }

  .event-thumbnail::after {
    font-size: 1.5rem;
  }
}

/* ======= コンセプトセクション ======= */
.concept-section {
  padding: 120px 0;
}

.concept-section .section-title {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.concept-section .section-title-sub {
  font-weight: 400;
  letter-spacing: 0.1em;
}

.concept__content {
  display: flex;
}

.concept__left {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 3rem;
}

.concept__text {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  line-height: 2.4;
}

.concept__right {
  flex: 1;
}

.concept__image {
  width: 100%;
  aspect-ratio: 479/346;
  object-fit: cover;
  background-color: aliceblue;
  margin-bottom: 3rem;
}

.concept__image img {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .concept__content {
    flex-direction: column;
  }

  .concept__left {
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .concept__image {
    margin-bottom: 2rem;
  }
}

/* ======= 私たちの家づくりセクション ======= */
.about-section {
  padding: 0;
}

.section__header-image {
  width: 100%;
  height: 380px;
}

.section__header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-section .container__bg {
  margin-left: 10%;
  margin-right: 0;
  background-color: var(--color-bg-gray);
  position: relative;
  aspect-ratio: 32 / 28;
}

.about-section .container {
  max-width: 64%;
  margin: 0 auto;
}

.about__image {
  position: absolute;
  top: 29%;
  left: -11.5%;
  width: 34%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-section h2 {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  padding: 17% 0;
  position: relative;
  padding-left: 160px;
  margin-left: -160px;
}

.about-section h2::before {
  content: "";
  display: inline-block;
  width: 140px;
  height: 1px;
  background-color: var(--color-border-gray);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.about-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 10%;
}

.about__text-wrapper {
  width: 70%;
  margin-bottom: 2em;
}

.about__text {
  display: flex;
  align-items: center;
  gap: 5rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--color-border-gray);
  padding: 1em 0;
}

.about__text span {
  font-size: 1rem;
  font-family: var(--font-en);
  line-height: 0;
}

.about__text:first-child {
  border-top: 1px solid var(--color-border-gray);
}

@media screen and (max-width: 768px) {
  .menu-toggle-icon {
    color: white;
  }
  .concept-section{
    padding: 40px 0;
  }
  .section__header-image {
    height: 260px;
  }

  .about-section .container__bg {
    margin-left: 5%;
    padding-bottom: 270px;
  }

  .about-section .container {
    max-width: 100%;
    padding: 0 8%;
  } 

  .about-section h2::before {
    display: none;
  }

  .concept__content {
    padding-bottom: 2rem;
  }

  .about__text-wrapper {
    width: 100%;
    margin-bottom: 1.2em;
  }

  .about__text {
    gap: 1.5rem;
    font-size: 1.1rem;
  }

  .about__text span {
    font-size: 0.8rem;
  }

  .about-section h2 {
    font-size: 1.2rem;
  }

  .about-content {
    padding-right: 5%;
  }

  .about__image {
    top: unset;
    bottom: 4%;
    left: unset;
    right: 5%;
    width: 50%;
    flex-direction: row-reverse;
  }
}

/* ======= ワークスセクション ======= */
.works-section .section-title p {
  font-size: 1.2rem;
}

.works-section .section-title__wrapper {
  margin-bottom: 2rem;
}

.works-section .section-title.sub {
  padding-bottom: 0.5em;
}

.works-section .section-title.sub p {
  margin-bottom: 1.2em;
}

.works-slider {
  width: 80%;
  margin: 0 auto;
  padding: 20px 0;
}

.works-swiper {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.works-slider .swiper-wrapper {
  margin-bottom: 2.5rem;
}

.works-swiper .swiper-slide {
  text-align: center;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.works-thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
}

.works-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-title {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
}

/* ページネーションのカスタマイズ */
.works-swiper .swiper-pagination {
  top: unset !important;
  bottom: -2.5rem !important;
}

.works-swiper .swiper-pagination-bullet {
  background: var(--color-border-gray);
}

.works-swiper .swiper-pagination-bullet-active {
  background: var(--color-txt-gray);
}

@media screen and (max-width: 768px) {
  .works-section {
    overflow: hidden;
  }
  .works-section .section-title p {
    font-size: 0.8rem;
    letter-spacing: 0;
  }

  .works-thumbnail {
    min-width: unset;
  }
}

/* ======= お客様の声セクション ======= */
.voice-section {
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--color-border-gray);
}

.voice-section__left {
  display: flex;
  flex-direction: column;
  height: 450px;
  justify-content: space-between;
  width: 28%;
}

.voice-section .section-title__wrapper {
  width: 100%;
  margin-right: 0;
  position: relative;
  z-index: 10;
}

.voice-section .container {
  display: flex;
}

.voice-slider {
  width: 70vw;
  overflow-x: hidden;
  margin-right: calc((100vw - 100%) / -2);
  padding-bottom: 100px;
}

#voice-splide {
  width: 100%;
  height: 100%;
}

#voice-splide .splide__slide {
  width: calc((70vw - 2rem) / 1.8) !important;
  min-width: 500px;
  max-width: 700px;
  opacity: 1;
}

.carousel__progress {
  position: relative;
  width: 20%;
  height: 2px;
  background: var(--color-border-gray);
  margin-top: 60px;
}

.carousel__progress--bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--color-txt-black);
  transition: width 0.4s ease;
}

.voice-image__wrapper {
  display: flex;
  width: 100%;
}

.voice-image-left,
.voice-image-right {
  flex: 1;
  width: 50%;
}

.voice-image-left {
  padding-bottom: 3rem;
}

.voice-image-right {
  padding-top: 3rem;
}

.voice-image {
  width: 100%;
  height: auto;
  aspect-ratio: 40/49;
}

.voice-image-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-gray);
}

.voice-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.voice-title {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
}

.voice-name {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
}

/* ページネーションのカスタマイズ */
.voice-swiper .swiper-pagination {
  top: unset !important;
  bottom: -100px !important;
  text-align: left;
}

.voice-swiper .swiper-pagination-bullet {
  --swiper-pagination-bullet-width: 20px;
  --swiper-pagination-bullet-height: 1px;
  --swiper-pagination-bullet-border-radius: 0;
  background: var(--color-border-gray);
  opacity: 1;
  margin: 0 !important;
}

.voice-swiper .swiper-pagination-bullet-active {
  background: var(--color-txt-black);
}

@media screen and (max-width: 768px) {
  .voice-section {
    padding: 20px 0;
}

.voice-section .container {
    height: 600px;
    flex-direction: column;
    gap: 1rem;
}

  .voice-section__left {
    flex-direction: row;
    width: 100%;
    align-items: center;
    height: unset;
}

.voice-slider {
  margin-right: 0;
  top: unset;
  left: 0;
  width: 100%;
  padding: 0 15px;
}

#voice-splide .splide__slide {
    width: 100% !important;
    max-width: 100vw;
    opacity: 1;
    min-width: unset;
}

.carousel__progress {
    position: relative;
    width: 40%;
    height: 2px;
    background: var(--color-border-gray);
    margin-top: 60px;
    margin-inline: auto;
}

}

/* ======= ラインナップセクション ======= */
.line-up-section .section-title__wrapper {
  flex-direction: row;
  padding: 4rem 0;
}

.line-up-section .section-title__wrapper h2:not(:last-child) {
  padding-right: 160px;
}

.line-up-section .section-title__wrapper h2.serif {
  position: relative;
}

.line-up-section .section-title__wrapper .serif::before {
  content: "";
  display: inline-block;
  width: 140px;
  height: 1px;
  background-color: var(--color-border-gray);
  position: absolute;
  top: 50%;
  left: -157px;
  transform: translateY(-50%);
}

.line-up-main {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.line-up-main__image {
  width: 50vw;
  margin-left: calc(50% - 50vw);
}

.line-up-main__image img {
  width: 100%;
  height: auto;
  display: block;
}

.line-up-main__content {
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 10%;
}

.line-up-main__logo {
  width: 100%;
  margin-bottom: 3rem;
  text-align: center;
}

.line-up-main__logo img {
  width: 100%;
}

.line-up-main__logo.fit img {
  height: 100%;
  width: auto;
}

.line-up-main__title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.8;
}

.line-up-main__text {
  font-size: 0.9rem;
  margin-bottom: 3rem;
  line-height: 2.4;
  letter-spacing: 0.05em;
}

@media screen and (max-width: 768px) {
  .line-up-section .section-title__wrapper {
    padding: 2rem 0 0;
  }

  .line-up-section .section-title__wrapper h2:not(:last-child) {
    padding-right: 0;
}
  .line-up-section {
    padding: 40px 0 0;
  }

  .line-up-main {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 5rem;
  }

  .line-up-main__image,
  .line-up-main__content {
    width: 100%;
    margin-left: 0;
  }

  .line-up-main__content {
    padding: 0 5%;
    align-items: center;
  }

  .line-up-section .section-title__wrapper {
    gap: 60px;
  }

  .line-up-section .section-title__wrapper .serif::before {
    width: 40px;
    left: -50px;
}

.line-up-main__title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.line-up-main__text {
  font-size: 0.7rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.line-up-main__logo {
  margin-bottom: 1rem;
}

.line-up-main__logo.fit {
  height: 80px;
}

.line-up-main__logo img {
  width: 50%;
}
}

/* ======= ブログセクション ======= */
.blog-section .section-title__wrapper {
  margin-bottom: 4rem;
}

.blog-section .container {
  max-width: 900px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-thumbnail {
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.blog-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 350 / 235;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-item:hover .blog-thumbnail img {
  transform: scale(1.05);
}

.blog-date {
  font-size: 0.8rem;
  color: var(--color-border-gray);
  margin-bottom: 0.6rem;
}

.blog-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-txt-black);
  line-height: 1.5;
}

.blog-section .view-more {
  text-align: center;
  margin-top: 4rem;
}

@media screen and (max-width: 768px) {
  .blog-section .section-title__wrapper {
    justify-content: flex-start !important;
    flex-direction: row !important;
    margin-bottom: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .blog-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .blog-thumbnail {
    width: 100%;
    margin-bottom: 0;
    line-height: 0;
  }
  .blog-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-date {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-align: left;
  }
  .blog-title {
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 3;
  }
  .blog-section .view-more {
    margin: 1rem 0;
  }
}

/* ======= ニュースセクション ======= */
.news-section .section-title__wrapper {
  margin-bottom: 2rem;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.news-section .container {
  max-width: 900px;
}

.news-section .news-list-content {
  width: 100%;
  padding: 0;
  margin-bottom: 2rem;
}

.news-section .news-list-content .news-item {
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-gray);
  position: relative;
}

.news-section .news-list-content .news-item:first-child {
  border-top: 1px solid var(--color-border-gray);
}

.news-section .news-list-content .news-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100px;
  display: flex;
}

.news-section .news-list-content .news-item::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  z-index: 0;
  opacity: 0;
}

.news-section .news-list-content .news-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-color: var(--color-border-gray);
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  z-index: 0;
}

.news-section .news-list-content .news-item:hover::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  z-index: 1;
}

.news-section .news-list-content .news-item:hover::after {
  transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
  transform: translateY(-50%) scale(120);
}

.news-section .news-list-content .news-item:hover a {
  color: white;
}

.news-section .news-list-content .news-item a:hover {
  opacity: 1;
}

.news-section .news-list-content .news-item .news-thumbnail {
  width: auto;
  height: 100%;
  aspect-ratio: 25 / 29;
  object-fit: cover;
  padding: 0.5rem 0;
}

.news-section .news-list-content .news-item .news-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  padding-left: 2rem;
}

.news-section .news-list-content .news-item .news-date {
  color: var(--color-border-gray);
  font-size: 0.8rem;
  padding: 0.2rem 0;
  transition: color 0.5s;
}

.news-section .news-list-content .news-item:hover .news-date {
  color: rgba(255, 255, 255, 0.7);
}

.news-section .news-list-content .news-item .news-title {
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.8s;
}

@media screen and (max-width: 768px) {
  .news-section .section-title__wrapper {
    gap: 0.5rem;
  }

  .news-section .news-list-content .news-item .news-date {
  font-size: 0.7rem;
  padding: 0;
  }
  .news-section .news-list-content .news-item .news-title {
    font-size: 0.9rem;
    padding-right: 50px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
  }
}