.tai-technology-detail-page,
.tai-harbor-page {
  overflow: hidden;
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font-ja);
}

.tai-technology-detail-page *,
.tai-technology-detail-page *::before,
.tai-technology-detail-page *::after,
.tai-harbor-page *,
.tai-harbor-page *::before,
.tai-harbor-page *::after {
  box-sizing: border-box;
}

.tai-technology-detail-page a,
.tai-harbor-page a {
  color: inherit;
  text-decoration: none;
}

.tai-technology-detail-page h1,
.tai-technology-detail-page h2,
.tai-technology-detail-page h3,
.tai-technology-detail-page p,
.tai-harbor-page h1,
.tai-harbor-page h2,
.tai-harbor-page h3,
.tai-harbor-page p {
  margin: 0;
}

.tai-technology-detail-page img,
.tai-harbor-page img {
  display: block;
  width: 100%;
  height: 210px;
}

.harbor-hero {
  padding-top: 86px;
}

.harbor-hero-grid {
  display: grid;
  grid-template-columns: 393px minmax(0, 1fr);
  gap: 41px;
  align-items: start;
  margin-top: 56px;
}

.harbor-eyebrow {
  color: var(--primary-red);
  font-family: var(--font-en);
  font-weight: 500;
  line-height: 1.35;
}

p.harbor-eyebrow {
  font-size: 24px !important;
}

.harbor-eyebrow span {
  margin: 0 8px;
}

.harbor-hero h1 {
  margin-top: 16px;
  font-family: var(--font-en);
  font-size: 50px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

.harbor-hero-text {
  margin-top: 48px !important;
  color: var(--text-primary);
  font-weight: 500 !important;
  line-height: 1.8 !important;
  letter-spacing: 0.03em;
}

p.harbor-hero-text {
  font-size: 15px !important;
}

.harbor-hero-image {
  width: calc(100% + max(40px, (100vw - 1080px) / 2));
  overflow: hidden;
}

.harbor-hero-image img {
  height: 391px;
  object-fit: contain;
  object-position: top right;
  filter: grayscale(100%);
}

.tai-technology-sashimi .harbor-hero-image img,
.tai-technology-seaside .harbor-hero-image img {
  object-position: center;
}

.harbor-cases {
  padding: 69px 0 95px;
  background: var(--primary-red);
  color: #fff;
}

.harbor-cases-head h2 {
  font-family: var(--font-en);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.harbor-cases-head p {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.harbor-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 75px;
}

.harbor-case-card-image {
  overflow: hidden;
  border-radius: 16px;
}

.harbor-case-card img {
  aspect-ratio: 331 / 234;
  object-fit: cover;
  filter: grayscale(100%);
}

.harbor-case-card time {
  display: block;
  margin-top: 42px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.harbor-case-card h3 {
  display: -webkit-box;
  height: 4.35em;
  overflow: hidden;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.harbor-case-card p {
  margin-top: 24px;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.04em;
}

.harbor-case-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 65px;
}

.harbor-case-more .t-btn-outline {
  min-width: 161px;
}

@media screen and (min-width: 992px) {
  .tai-technology-detail-page .gov-feature h3,
  .tai-harbor-page .gov-feature h3 {
    margin-top: 18px;
  }

  .harbor-hero-grid {
    grid-template-columns: minmax(393px, calc(38vw - 41px)) minmax(0, 1fr);
  }

  .harbor-hero-copy {
    max-width: 393px;
  }

  .harbor-hero-image {
    width: calc(100% + 12vw);
  }

  .harbor-hero-image picture {
    display: block;
    width: 100%;
  }

  .harbor-hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top right;
  }
}

@media screen and (max-width: 991px) {
  .harbor-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .harbor-hero-text {
    margin-top: 36px;
  }

}

@media screen and (max-width: 767px) {
  .harbor-hero > .gov-container {
    display: flex;
    flex-direction: column;
  }

  .harbor-hero {
    padding-top: 113px;
  }

  .harbor-hero-grid {
    display: contents;
  }

  .harbor-hero-copy {
    display: contents;
  }

  .harbor-eyebrow {
    order: 1;
    margin-top: 38px;
    font-size: 14px;
    line-height: 1.35;
  }

  p.harbor-eyebrow {
    font-size: 18px !important;
  }

  .harbor-eyebrow span {
    margin: 0 6px;
  }

  .harbor-hero h1 {
    order: 2;
    margin-top: 8px;
    font-size: 30px;
    line-height: 1.18;
  }

  .harbor-breadcrumb {
    order: 3;
    padding-top: 0;
    margin-top: 24px;
  }

  .harbor-hero-image {
    order: 4;
    width: calc(100% + 9.3vw);
    margin-top: 34px;
    margin-left: 0;
  }

  .harbor-hero-image img {
    aspect-ratio: 532 / 346;
    object-fit: cover;
    height:  auto;
  }

  .harbor-hero-text {
    order: 5;
    margin-top: 31px !important;
    color: #333;
    font-size: 14px !important;
    line-height: 2.05 !important;
  }

  .harbor-cases {
    padding: 70px 0 78px;
  }

  .harbor-cases-head h2 {
    font-size: 30px;
    line-height: 1.1;
  }

  .harbor-cases-head p {
    margin-top: 6px;
    font-size: 13px;
  }

  .harbor-case-grid {
    display: flex;
    gap: 28px;
    width: auto;
    margin-top: 40px;
    margin-right: -9.3%;
    padding-right: 7%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .harbor-case-grid::-webkit-scrollbar {
    display: none;
  }

  .harbor-case-card {
    flex: 0 0 295px;
    scroll-snap-align: start;
  }

  .harbor-case-card a {
    display: flex;
    flex-direction: column;
  }

  .harbor-case-card-image {
    order: 3;
    border-radius: 10px;
  }

  .harbor-case-card img {
    aspect-ratio: 295 / 199;
  }

  .harbor-case-card time {
    order: 1;
    margin-top: 0;
    margin-bottom: 2px;
    font-size: 16px;
  }

  .harbor-case-card h3 {
    order: 2;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.45;
  }

  .harbor-case-card p {
    order: 4;
    margin-top: 20px;
    font-size: 12px;
    line-height: 2;
  }

  .harbor-case-more {
    justify-content: flex-end;
    margin-top: 46px;
  }

  .harbor-case-more .t-btn-outline {
    justify-content: space-between;
    padding: 10px 18px;
    font-size: 16px;
  }
}
