@charset "utf-8";

/* ========================================
   TOPページ - FV（ファーストビュー）
======================================== */
.top_fv {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top_fv_video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
}

.top_fv_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.5) 0%,
    rgba(51, 51, 51, 0.5) 100%
  );
  z-index: 2;
}

.top_fv_content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--content-width-lg);
  padding: 0 var(--section-padding-sp-sm);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 120px);
}

@media (min-width: 1080px) {
  .top_fv_content {
    padding: 0 var(--section-padding-pc-sm);
  }
}

.top_fv_title_wrapper {
  margin-bottom: auto;
  padding-top: 120px;
  align-self: flex-start;
}

@media (min-width: 1080px) {
  .top_fv_title_wrapper {
    padding-top: 140px;
  }
}

.top_fv_title {
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-display);
  background: linear-gradient(90deg, #f0f0f0 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.top_fv_subtitle {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-family: var(--font-serif);
  line-height: 1.8;
  font-weight: 500;
  color: var(--color-bg-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.08em;
}

.top_fv_btn {
  width: 100%;
  max-width: 400px;
  margin-top: auto;
  margin-bottom: 80px;
}

@media (min-width: 601px) {
  .top_fv_btn {
    max-width: 440px;
    margin-left: auto;
    margin-right: 0;
  }
}

@media (min-width: 1080px) {
  .top_fv_btn {
    margin-bottom: 100px;
  }
}

/* ========================================
   TOPページ - Concept(企業理念)
======================================== */
.top_concept {
  background: url("../img/concept_sp.webp") no-repeat top center;
  background-size: cover;
  position: relative;
}

@media (min-width: 601px) {
  .top_concept {
    background: url("../img/concept.webp") no-repeat center center;
    background-size: cover;
    background-color: var(--color-white);
  }
}

.top_concept_content {
  max-width: 900px;
  background: rgba(250, 250, 250, 0.7);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

@media (min-width: 601px) {
  .top_concept_content {
    max-width: 809px;
    margin: 0 auto var(--spacing-xxl);
  }
}

.top_concept_text {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  color: var(--color-text);
}

.top_concept_description {
  font-size: clamp(0.875rem, 2vw, 1.3rem);
  line-height: 1.9;
  color: var(--color-text);
  margin-top: var(--spacing-lg);
}

/* ========================================
   TOPページ - Project（2つの強み）
======================================== */
.top_project {
  background: linear-gradient(180deg, #f0f0f0 0%, #fafafa 100%);
}

.top_project_grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxl);
}

@media (min-width: 1080px) {
  .top_project_grid {
    gap: 100px;
  }
}

.top_project_card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  align-items: center;
}

@media (min-width: 769px) {
  .top_project_card {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }
}

@media (min-width: 1080px) {
  .top_project_card {
    gap: 60px;
  }
}

.top_project_card--reverse {
  direction: ltr;
}

@media (min-width: 769px) {
  .top_project_card--reverse {
    direction: rtl;
  }
}

.top_project_card--reverse > * {
  direction: ltr;
}

.top_project_card_content {
  padding: 0;
}

.top_project_card_image {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  width: 100%;
  height: 286px;
}

@media (min-width: 1080px) {
  .top_project_card_image {
    width: auto;
    height: 490px;
  }
}

.top_project_card_image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(250, 250, 250) 0%,
    rgba(250, 250, 250, 0) 30%
  );
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 1080px) {
  .top_project_card:not(.top_project_card--reverse)
    .top_project_card_image::before {
    background: linear-gradient(
      to right,
      rgba(250, 250, 250) 0%,
      rgba(250, 250, 250, 0) 30%
    );
  }

  .top_project_card--reverse .top_project_card_image::before {
    background: linear-gradient(
      to left,
      rgba(250, 250, 250) 0%,
      rgba(250, 250, 250, 0) 30%
    );
  }
}

.top_project_card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.top_project_card:hover .top_project_card_image img {
  transform: scale(1.05);
}

.top_project_card_description {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--color-text);
}

@media (min-width: 1080px) {
  .top_project_card_description {
    font-size: 1.05rem;
  }
}

/* ========================================
   TOPページ - Solution（勝利への論理）
======================================== */
.top_solution {
  background: var(--color-black);
  overflow: hidden;
  padding: var(--section-padding-sp) 0;
}

@media (min-width: 1080px) {
  .top_solution {
    padding: var(--section-padding-pc) 0;
  }
}

.top_solution .l_container {
  max-width: 100%;
  padding: 0;
}

.top_solution .m_section_header {
  padding: 0 var(--section-padding-sp-sm);
  margin-bottom: var(--spacing-xlg);
}

@media (min-width: 601px) {
  .top_solution .m_section_header {
    padding: 0 var(--spacing-lg);
  }
}

@media (min-width: 1080px) {
  .top_solution .m_section_header {
    padding: 0 var(--section-padding-pc-sm);
  }
}

.top_solution_intro {
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: var(--spacing-xlg);
  color: var(--color-white);
  padding: 0 var(--section-padding-sp-sm);
}

@media (min-width: 601px) {
  .top_solution_intro {
    padding: 0 var(--spacing-lg);
  }
}

@media (min-width: 1080px) {
  .top_solution_intro {
    margin-bottom: 80px;
    padding: 0 var(--section-padding-pc-sm);
  }
}

.top_solution_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: var(--spacing-xl);
}

@media (min-width: 769px) {
  .top_solution_grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1440px;
    margin: 0 auto;
  }
}

.top_solution_card {
  position: relative;
  height: 400px;
  overflow: hidden;
  border: 1px solid var(--color-accent);
  cursor: pointer;
}

.top_solution_card:hover {
  opacity: 1 !important;
}

@media (min-width: 1080px) {
  .top_solution_card {
    height: 500px;
  }
}

.top_solution_card_image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.top_solution_card_image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: background 0.3s;
}

.top_solution_card:hover .top_solution_card_image::before {
  background: rgba(0, 0, 0, 0.6);
}

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

.top_solution_card_content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: var(--spacing-lg);
  text-align: left;
  z-index: 2;
}

@media (min-width: 1080px) {
  .top_solution_card_content {
    padding: var(--spacing-xl);
  }
}

.top_solution_card_content h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
}

.top_solution_card_content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-white);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s, max-height 0.3s;
  margin-bottom: var(--spacing-sm);
}

@media (min-width: 1080px) {
  .top_solution_card_content p {
    font-size: 1rem;
  }
}

.top_solution_card:hover .top_solution_card_content p {
  opacity: 1;
  max-height: 200px;
}

.top_solution_card_link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateX(-10px);
}

.top_solution_card:hover .top_solution_card_link {
  opacity: 1;
  transform: translateX(0);
}

.top_solution_cta {
  text-align: center;
  margin-top: var(--spacing-xxl);
  padding: 0 var(--section-padding-sp-sm);
}

@media (min-width: 601px) {
  .top_solution_cta {
    padding: 0 var(--spacing-lg);
  }
}

@media (min-width: 1080px) {
  .top_solution_cta {
    padding: 0 var(--section-padding-pc-sm);
  }
}

/* ========================================
   TOPページ - Stories（Instagram）
======================================== */
.top_stories {
  background: var(--color-bg-white);
}

.top_stories .l_container .l_contents {
  padding-bottom: 0;
}

.top_stories_slider {
  position: relative;
  margin: var(--spacing-xl) 0;
  padding: 0;
}

@media (min-width: 1080px) {
  .top_stories_slider {
    padding: 0;
    max-width: 1440px;
    margin: 0 auto;
  }
}

.top_stories_slider_track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
}

.top_stories_slider_track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1080px) {
  .top_stories_slider_track {
    gap: 20px;
    justify-content: center;
  }
}

.top_stories_card {
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 3/4;
  scroll-snap-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

@media (min-width: 1080px) {
  .top_stories_card {
    width: calc((100% - 80px) / 5);
    height: 540px;
    max-width: none;
  }
}

.top_stories_card:not(.top_stories_card--center)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 1;
  display: none;
}

@media (min-width: 1080px) {
  .top_stories_card:not(.top_stories_card--center)::before {
    display: block;
  }
}

.top_stories_card--center {
  z-index: 2;
}

.top_stories_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1079px) {
  .top_stories_slider_track {
    justify-content: flex-start;
    padding: 0 calc(50% - 175px);
  }
}

.top_stories_card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.top_stories_card:hover img {
  transform: scale(1.05);
}

.top_stories_slider_btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
  z-index: 3;
}

.top_stories_slider_btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.top_stories_slider_btn--prev {
  left: 0;
}

.top_stories_slider_btn--prev img {
  transform: rotate(180deg);
  filter: drop-shadow(0 -4px 4px rgba(0, 0, 0, 0.25));
}

.top_stories_slider_btn--next {
  right: 0;
}

.top_stories_slider_btn--next img {
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.top_stories_cta {
  text-align: center;
  margin-top: var(--spacing-xxl);
  margin-bottom: 140px;
}

/* ========================================
   TOPページ - Video（YouTube）
======================================== */
.top_video {
  background: var(--color-accent);
}

.top_video_intro {
  text-align: left;
  font-size: 1rem;
  margin-bottom: var(--spacing-xlg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text);
}

@media (min-width: 1080px) {
  .top_video_intro {
    font-size: 1.05rem;
    margin-bottom: var(--spacing-xxl);
  }
}

.top_video_container {
  max-width: 900px;
  margin: 0 auto;
}

.top_video_wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.top_video_wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   TOPページ - Company（会社概要）
======================================== */
.top_company {
  background: var(--color-black);
  color: var(--color-white);
}

.top_company_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

@media (min-width: 1080px) {
  .top_company_grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
  }
}

.top_company_info {
  order: 1;
}

.top_company_list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.top_company_item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 601px) {
  .top_company_item {
    grid-template-columns: 150px 1fr;
    gap: var(--spacing-lg);
  }
}

.top_company_item:last-child {
  border-bottom: none;
}

.top_company_item dt {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 0.95rem;
}

.top_company_item dd {
  line-height: 1.8;
  font-weight: 300;
  font-size: 0.95rem;
}

.top_company_map {
  min-height: 350px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  order: 2;
  position: relative;
}

.top_company_map::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 1;
  transition: background 0.3s;
}

.top_company_map:hover::before {
  background: rgba(0, 0, 0, 0);
}

.top_company_map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.top_company_map:hover iframe {
  filter: grayscale(0%);
}

@media (min-width: 769px) {
  .top_company_map iframe {
    min-height: 400px;
  }
}

@media (min-width: 1080px) {
  .top_company_map iframe {
    min-height: 450px;
  }
}
