/* Top Page Styles */

/* ========================================
   Hero Section
   ======================================== */
.top-hero {
  position: relative;
  aspect-ratio: 1500 / 813;
  background-image: url('../img/top/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  padding: 12% 80px 0;
  overflow: hidden;
}

.top-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.top-hero-content {
  position: relative;
  color: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top-hero-tagline {
  font-family: var(--font-serif-jp);
  font-size: 40px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 8px;
  margin-bottom: 40px;
}

.top-hero-description {
  font-family: var(--font-serif-jp);
  font-size: 18px;
  letter-spacing: 1.35px;
  line-height: 36px;
  margin-bottom: 40px;
}

.top-hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-hero-brand-text {
  font-family: var(--font-serif);
  font-size: 120px;
  font-weight: 500;
  letter-spacing: 9px;
}

.top-hero-brand-line {
  flex: 1;
  height: 1px;
  background-color: #fff;
  margin-right: -9999px;
  margin-top: 10px;
}

.pc-only {
  display: inline;
}

.sp-only {
  display: none;
}

/* ========================================
   Common Section Styles
   ======================================== */
.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 2.4px;
  margin-bottom: 10px;
}

.section-subtitle {
  font-family: var(--font-serif-jp);
  font-size: 12px;
  color: var(--color-text);
  letter-spacing: 0.9px;
}

/* ========================================
   About us Section
   ======================================== */
.top-about {
  background-color: #fff;
}

.top-about > .container {
  padding-top: 100px;
  padding-bottom: 100px;
}

.top-about-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}


.top-about-catchphrase {
  font-family: var(--font-serif-jp);
  font-size: 28px;
  font-weight: 400;
  line-height: 50.4px;
  letter-spacing: 2.1px;
  margin-bottom: 30px;
}

.top-about-text {
  font-family: var(--font-serif-jp);
  font-size: 15px;
  line-height: 40px;
  letter-spacing: 1.125px;
  margin-bottom: 20px;
}

.top-link-button {
  display: inline-flex;
  align-items: center;
  gap: 50px;
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  margin-top: 20px;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 10px;
}

.top-link-button-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.top-link-button-arrow::after {
  content: '';
  width: 5px;
  height: 5px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: rotate(45deg);
  margin-left: -2px;
}

/* ========================================
   Service Cards Section
   ======================================== */
.top-service-cards-wrapper {
  background: linear-gradient(to bottom, #fff 50%, #E4F2F2 50%);
}

.top-service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.top-service-card {
  position: relative;
  height: 437px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.top-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.347);
}

.top-service-card-marin {
  background-image: url('../img/top/service-card-marin.jpg');
}

.top-service-card-architecture {
  background-image: url('../img/top/service-card-architecture.jpg');
}

.top-service-card-overlay {
  position: relative;
  text-align: center;
  color: #fff;
}

.top-service-card-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 3.15px;
  margin-bottom: 10px;
}

.top-service-card-subtitle {
  font-size: 14px;
  letter-spacing: 1.05px;
}

/* ========================================
   Service Section
   ======================================== */
.top-service {
  background-color: #E4F2F2;
}

.top-service > .container {
  padding-top: 100px;
  padding-bottom: 40px;
}

.top-service .section-subtitle {
  margin-bottom: 60px;
}

.top-service-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  margin-bottom: 80px;
  align-items: center;
}

.top-service-item-image img {
  width: 100%;
  aspect-ratio: 519 / 437;
  object-fit: cover;
}

.top-service-item-label {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1.05px;
  margin-bottom: 10px;
}

.top-service-item-name {
  font-family: var(--font-serif-jp);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 2.1px;
  line-height: 33.6px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.top-service-item-line {
  flex: 1;
  height: 1px;
  background-color: #333;
}

.top-service-item-text {
  font-size: 15px;
  line-height: 32px;
  letter-spacing: 1.125px;
  margin-bottom: 20px;
}

/* ========================================
   News Section
   ======================================== */
.top-news {
  background-color: #fff;
}

.top-news > .container {
  padding-top: 40px;
  padding-bottom: 100px;
}

.top-news .section-subtitle {
  margin-bottom: 40px;
}

.top-news-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid #B2B2B2;
  text-decoration: none;
  color: var(--color-text);
}

.top-news-item:first-child {
  border-top: none;
}

.top-news-item-date {
  font-size: 14px;
  color: var(--color-primary);
}

.top-news-item-title {
  font-size: 15px;
  letter-spacing: 1.125px;
  line-height: 28px;
}

.top-news-item-arrow {
  width: 25px;
  height: 25px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-news-item-arrow::after {
  content: '';
  width: 6px;
  height: 6px;
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
  transform: rotate(45deg);
  margin-left: -2px;
}

/* ========================================
   Gallery Section
   ======================================== */
.top-gallery {
  overflow: hidden;
  background-color: #fff;
  width: 100%;
}

.top-gallery-track {
  display: flex;
  gap: 10px;
}

.top-gallery-item {
  flex-shrink: 0;
}

.top-gallery-item img {
  width: 460px;
  height: 324px;
  object-fit: cover;
}

/* ========================================
   Company Info Section
   ======================================== */
.top-company {
  background-color: #fff;
}

.top-company > .container {
  padding-top: 100px;
  padding-bottom: 100px;
}

.top-company-container {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 60px;
  align-items: center;
}

.top-company .section-subtitle {
  margin-bottom: 30px;
}

.top-company-name {
  font-size: 15px;
  letter-spacing: 1.125px;
  line-height: 28px;
  margin-bottom: 15px;
}

.top-company-address,
.top-company-tel {
  font-size: 14px;
  letter-spacing: 1.125px;
  line-height: 28px;
  margin-bottom: 5px;
}

.top-company-map {
  aspect-ratio: 863 / 506;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

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

/* ========================================
   Responsive - Tablet (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .top-hero {
    padding: 60px 40px;
  }

  .top-hero-tagline {
    font-size: 30px;
  }

  .top-hero-brand-text {
    font-size: 40px;
  }

  .top-about > .container {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .top-about-container {
    gap: 40px;
  }

  .top-about-catchphrase {
    font-size: 24px;
  }

  .top-service > .container {
    padding-top: 80px;
    padding-bottom: 30px;
  }

  .top-service-item {
    gap: 40px;
  }

  .top-news > .container {
    padding-top: 30px;
    padding-bottom: 80px;
  }

  .top-company > .container {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* ========================================
   Responsive - Mobile (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }

  .top-hero {
    padding: 0 24px;
    aspect-ratio: 375 / 666;
    width: 100%;
  }

  .top-hero-content {
    justify-content: center;
    padding-bottom: 80px;
  }

  .top-hero-tagline {
    font-size: 26px;
    letter-spacing: 5.2px;
    line-height: 31.2px;
    margin-bottom: 20px;
  }

  .top-hero-description {
    font-size: 15px;
    letter-spacing: 1.125px;
    line-height: 28px;
    margin-bottom: 0;
  }

  .top-hero-brand {
    position: absolute;
    bottom: -1px;
    left: 10px;
    right: 24px;
  }

  .top-hero-brand-text {
    font-size: 40px;
    letter-spacing: 3px;
  }

  .top-hero-brand-line {
    flex: 1;
    margin-right: -9999px;
    margin-top: 10px;
  }

  .top-about > .container {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .top-about-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .section-subtitle {
    text-align: center;
  }

  .top-about-left {
    text-align: center;
  }

  .top-about-catchphrase {
    font-size: 22px;
    line-height: 35px;
    letter-spacing: 1.65px;
  }

  .top-about-text {
    font-size: 14px;
    line-height: 30px;
    letter-spacing: 1.125px;
    text-align: left;
  }

  .top-service-cards-wrapper {
    background: linear-gradient(to bottom, #fff 75%, #E4F2F2 75%);
  }

  .top-service-cards {
    grid-template-columns: 1fr;
  }

  .top-service-card {
    height: 209px;
  }

  .top-service-card-title {
    font-size: 30px;
    letter-spacing: 2.25px;
  }

  .top-service > .container {
    padding-top: 60px;
    padding-bottom: 30px;
  }

  .top-service .section-subtitle {
    margin-bottom: 40px;
  }

  .top-service-item {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .top-service-item-reverse {
    direction: ltr;
  }

  .top-service-item-image img {
    height: 250px;
  }

  .top-service-item-name {
    font-size: 20px;
    letter-spacing: 1.5px;
    line-height: 24px;
  }

  .top-service-item-text {
    font-size: 14px;
    letter-spacing: 1.05px;
    line-height: 28px;
  }

  .top-news > .container {
    padding-top: 30px;
    padding-bottom: 60px;
  }

  .top-news-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .top-news-item-arrow {
    display: none;
  }

  .top-gallery-item img {
    width: 220px;
    height: 155px;
  }

  .top-company > .container {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .top-company-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .top-company-details {
    text-align: left;
  }

  .top-company-map {
    aspect-ratio: 334 / 187;
    height: auto;
    width: 100%;
  }

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