/* ============================================
   YANAGASE TECH INC. - Top Page Styles
   ============================================ */

/* --- Hero --- */
.hero {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

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

/* --- Hero Overlay --- */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 0 40px;
}

.hero-statement {
  font-family: var(--font-ja);
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* わいわい・CODE 共通強調 */
.em-waiwai,
.em-code {
  font-size: 1.4em;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 24px rgba(255, 255, 255, 0.3);
}

/* わいわい コーラルレッド + Zen Maru Gothic */
.em-waiwai {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  color: #d95b4e;
}

/* CODE ネオングリーン＋下線 + Poppins Italic */
.em-code {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-weight: 600;
  color: #8CD0B7;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: #8CD0B7;
}

.hero-subtitle {
  font-family: var(--font-ja);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  letter-spacing: 0.12em;
  margin-top: 16px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* --- We are --- */
.we-are {
  padding: 80px 0;
}

.we-are .container {
  display: block;
}

.we-are-header {
  margin-bottom: 40px;
}

.we-are .section-title {
  margin-bottom: 12px;
}

.we-are-content {
  flex: 1;
}

.we-are-lead {
  font-size: 18px;
  line-height: 2;
  color: var(--color-heading);
  margin-bottom: 0;
}

.we-are-content h3 {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 12px;
  color: var(--color-heading);
}

.we-are-content h3:not(:first-child) {
  margin-top: 32px;
}

.we-are-content p {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
}

/* --- Projects --- */
.projects {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.projects .section-title {
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  background: var(--color-bg);
  border-top: 3px solid var(--color-primary);
}

.project-card-body {
  padding: 28px 24px;
}

.project-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--color-heading);
}

.project-card-body p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* --- News --- */
.news {
  padding: 80px 0;
}

.news .container {
  display: flex;
  gap: 60px;
}

.news-left {
  flex-shrink: 0;
  width: 140px;
}

.news-left .section-title {
  margin-bottom: 16px;
}

.news-more a {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0;
  color: var(--color-text);
  text-decoration: underline;
  transition: opacity 0.3s;
}

.news-more a:hover {
  opacity: 0.6;
}

.news-content {
  flex: 1;
}

.news-list {
  border-top: 1px solid var(--color-border);
}

.news-item {
  border-bottom: 1px solid var(--color-border);
}

.news-item a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  transition: opacity 0.3s;
}

.news-item a:hover {
  opacity: 0.7;
}

.news-item-date {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--color-text-light);
  letter-spacing: 0;
  flex-shrink: 0;
}

.news-item-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-heading);
}

/* --- Team --- */
.team {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.team .section-title {
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 720px;
  margin: 0 auto;
}

.team-member {
  text-align: center;
}

.team-member-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #ddd;
  margin: 0 auto 20px;
  overflow: hidden;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-photo img.zoom-in {
  transform: scale(1.3);
  object-position: center 25%;
}

.team-member-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-heading);
}

.team-member-role {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--color-text-light);
  letter-spacing: 0;
  margin-bottom: 16px;
}

.team-member-bio {
  font-size: 13px;
  line-height: 1.9;
  text-align: left;
  color: var(--color-text);
}

.team-member-social {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-light);
  transition: opacity 0.3s;
}

.social-link:hover {
  opacity: 0.7;
}

.social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Company --- */
.company {
  padding: 80px 0;
}

.company .container {
  display: flex;
  gap: 60px;
}

.company .section-title {
  flex-shrink: 0;
  width: 140px;
}

.company-content {
  flex: 1;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.company-table th,
.company-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
  line-height: 1.8;
}

.company-table th {
  width: 100px;
  font-weight: normal;
  color: var(--color-text-light);
}

.company-map {
  margin-top: 24px;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.company-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Contact --- */
.contact {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.contact .container {
  display: flex;
  align-items: baseline;
  gap: 60px;
}

.contact .section-title {
  flex-shrink: 0;
  width: 140px;
}

.contact-content {
  flex: 1;
}

.contact-email a {
  font-family: var(--font-en);
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1.8;
  transition: opacity 0.3s;
}

.contact-email a:hover {
  opacity: 0.6;
}

/* ============================================
   Responsive - Top Page
   ============================================ */
@media (max-width: 768px) {
  /* Hero */
  .hero {
    height: 50vh;
    min-height: 280px;
  }

  .hero-overlay {
    padding: 0 20px;
  }

  .hero-statement {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 13px;
    margin-top: 12px;
  }

  /* We are */
  .we-are-header {
    margin-bottom: 32px;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* News */
  .news .container {
    flex-direction: column;
    gap: 24px;
  }

  .news-left {
    width: auto;
    display: flex;
    align-items: baseline;
    gap: 24px;
  }

  .news-left .section-title {
    margin-bottom: 0;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Company */
  .company .container {
    flex-direction: column;
    gap: 24px;
  }

  .company .section-title {
    width: auto;
  }

  .company-table th {
    width: 80px;
  }

  /* Contact */
  .contact .container {
    flex-direction: column;
    gap: 24px;
  }

  .contact .section-title {
    width: auto;
  }
}
