/* ====== Top 共通 ====== */
.top-page header {
  background-color: transparent;
  position: fixed;
  width: 100%;
  box-shadow: none;
  z-index: 9999;
}

.top-page header .logo {
  background-image: url(/common/images/header-logo_w.png);
}

.top-page .nav-menu li a {
  color: #fff;
}

.top-page .nav-menu li a:hover {
  text-decoration-color: #fff;
}

.top-page .header-buttons .btn-secondary {
  background-color: #000;
}

.top-page .header-buttons .btn-secondary:hover {
  background-color: var(--main-color);
  color: #fff;
}

.top-page header.is-scrolled {
  background-color: #fff;
}

.top-page header.is-scrolled .logo {
  background-image: url(/common/images/header-logo.png);
}

.top-page header.is-scrolled .nav-menu li a {
  color: #000;
}

.top-page header.is-scrolled .nav-menu li a:hover {
  text-decoration-color: #000;
}

.top-page header.is-scrolled .header-buttons .btn-secondary {
  background-color: var(--main-color);
}

/* ====== Hero ====== */
.top-hero {
  position: relative;
  height: clamp(560px, 90vh, 860px);
  min-height: 560px;
  background-image: url(/common/images/top/mv-bg.png);
  background-color: #fff;
  background-size: cover;
  overflow: hidden;
}

@media (max-width: 480px) {
  .top-hero {
    min-height: unset;
    height: 80vh;
  }
}

.top-hero__container {
  position: relative;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-hero__content {
  z-index: 2;
  max-width: 520px;
  margin-bottom: 200px;
}

.top-hero__subtitle {
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.top-hero__title {
  color: #fff;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
}

/* ====== ABOUT ====== */
.top-about {
  padding: 60px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 45%, #eef0f8 100%);
}

.top-about__container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.top-about__content {
  flex: 1;
  max-width: 620px;
}

.top-about__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--main-color);
  margin: 0 0 24px;
  font-family: "Oswald", sans-serif;
}

.top-about__text {
  color: #222;
  font-size: 16px;
  line-height: 2.1;
  margin: 0 0 14px;
}

.top-about__button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 28px 16px 26px;
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-about__button::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.top-about__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.top-about__button:hover::after {
  transform: translateX(3px);
}

.top-about__image {
  flex: 0.5;
  height: 450px;
  background-image: url("/common/images/top/top-about-img.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
}

/* ====== PRODUCTS ====== */
.top-products {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  background-image: url("/common/images/top/top-product-bg.webp");
  background-size: cover;
  background-position: center;
}

.top-products__container {
  position: relative;
  width: 50%;
  z-index: 1;
  margin: 0 auto;
  padding: 40px 30px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
}

.top-products__title {
  color: var(--main-color);
  font-size: 58px;
  font-family: "Oswald", sans-serif;
  font-weight: 800;
  margin-bottom: 10px;
}

.top-products__subtitle {
  color: #222;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 32px;
}

.top-products__buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.top-products__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 60px;
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  transition: background 0.3s, transform 0.3s;
}

.top-products__button::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s;
}

.top-products__button:hover {
  background: #333;
  transform: translateY(-2px);
}

.top-products__button:hover::after {
  transform: translateX(3px);
}

/* ====== NEWS ====== */
.top-news {
  padding: 64px;
  background: #fff;
}

.top-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 320px 1fr;
  column-gap: 24px;
  align-items: start;
}

.top-news__eyebrow {
  color: var(--main-color);
  font-weight: 800;
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.top-news__heading {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 24px;
  color: #111;
}

.top-news__more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-news__more::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.top-news__more:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.top-news__more:hover::after {
  transform: translateX(3px);
}

.top-news__list {
  margin: 0;
}

.top-news__item {
  display: grid;
  grid-template-columns: 120px 130px 1fr;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid #e9e9ee;
}

.top-news__date {
  color: #80808a;
  font-size: 14px;
  line-height: 1;
}

.top-news__category {
  display: inline-block;
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1;
  color: #6d6a7f;
  background: #eceaf6;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
}

.top-news__text {
  color: #000;
  font-size: 15px;
  margin: 0;
  line-height: 1.8;
}

/* ====== ENVIRONMENT ====== */
.top-environment {
  position: relative;
  padding: 80px 120px;
  background-image: url("/common/images/top/top-env-bg.webp");
  background-size: cover;
  background-position: center;
}

.top-environment__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: left;
}

.top-environment__eyebrow {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
}

.top-environment__title {
  font-family: "Oswald", sans-serif;
  color: #fff;
  font-weight: 900;
  font-size: 80px;
  line-height: 1.05;
  margin: 0 0 18px;
}

.top-environment__content {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.top-environment__text {
  color: #fff;
  font-size: 32px;
  line-height: 1.7;
  font-weight: 700;
  margin: 0 0 28px;
}

.top-environment__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--main-color);
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 700;
  height: 70px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.top-environment__button::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.top-environment__button:hover {
  background: #ff5777;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 65, 99, 0.25);
}

.top-environment__button:hover::after {
  transform: translateX(3px);
}

/* ====== RECRUIT ====== */
.top-recruit {
  position: relative;
  background-image: url(/common/images/top/top-recruit-bg.webp);
  background-size: cover;
}

.top-recruit::before,
.top-recruit::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
  mix-blend-mode: soft-light;
  border-radius: 4px;
}

.top-recruit::before {
  width: min(28vw, 440px);
  height: min(18vw, 260px);
  left: max(4vw, 40px);
  top: clamp(40px, 8vw, 120px);
}

.top-recruit::after {
  width: min(36vw, 560px);
  height: min(16vw, 220px);
  right: max(6vw, 60px);
  bottom: clamp(40px, 8vw, 120px);
}

.top-recruit__container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 520fr 680fr;
  align-items: center;
  column-gap: clamp(32px, 5vw, 72px);
}

.top-recruit__label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}

.top-recruit__title {
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-weight: 900;
  font-size: 80px;
  line-height: 1.06;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

.top-recruit__text {
  color: #fff;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.8;
  margin: 0 0 30px;
}

.top-recruit__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.top-recruit__button::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.top-recruit__button:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.top-recruit__image {
  flex: 0 0 200px;
  height: 500px;
  background-image: url("/common/images/top/top-recruit-img.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
}

/* ====== COMPANY ====== */
.top-company {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
}

.top-company__container {
  margin: 0 auto;
  padding-right: 120px;
  display: grid;
  grid-template-columns: 520fr 680fr;
  column-gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.top-company__panel {
  background: #fff;
  width: 130%;
  position: relative;
  z-index: 2;
  border-radius: 8px;
  margin-top: 100px;
  box-shadow: 0 12px 28px rgba(21, 27, 53, 0.08);
  padding: 80px;
  padding-right: 80px;
  display: flex;
  justify-content: flex-end;
}

.top-company-wrapper {
  width: 60%;
}

.top-company__eyebrow {
  color: #8a8fa3;
  font-size: 20px;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
}

.top-company__title {
  color: var(--main-color);
  font-family: "Oswald", sans-serif;
  font-weight: 900;
  font-size: 80px;
  line-height: 1.05;
  margin: 0 0 20px;
}

.top-company__nav {
  display: flex;
  flex-direction: column;
}

.top-company__link {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #e7e7ed;
  transition: color 0.2s ease;
  font-size: 18px;
}

.top-company__link:first-child {
  color: var(--main-color);
  font-weight: 700;
}

.top-company__link:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 3px;
  background: var(--main-color);
  border-radius: 2px;
}

.top-company__arrow {
  font-size: 20px;
  color: #111;
  transition: transform 0.2s ease, color 0.2s ease;
}

.top-company__link:hover .top-company__arrow {
  transform: translateX(4px);
  color: var(--main-color);
}

.top-company__image {
  position: relative;
  height: clamp(360px, 46vw, 560px);
  background-image: url("/common/images/top/ceo.webp");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* ====== LINKS ====== */
.top-links {
  padding: 40px 0;
}

.top-links__container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: clamp(20px, 5vw, 40px);
  justify-content: center;
  flex-wrap: wrap;
}

.top-links__item {
  flex: 0.7;
  min-width: 320px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 30px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-links__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.top-links__icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.top-links__text {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.top-links__arrow {
  font-size: 20px;
  color: #111;
  transition: transform 0.2s ease;
}

.top-links__item:hover .top-links__arrow {
  transform: translateX(3px);
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .top-hero__container,
  .top-about__container,
  .top-recruit__container,
  .top-company__container {
    padding: 0 20px;
  }

  .top-hero__container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .top-hero__visual {
    width: 100%;
    height: 300px;
    margin-top: 20px;
    background-position: center bottom;
  }

  .top-about__container {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding-top: 40px;
  }

  .top-about__image {
    width: 100%;
    height: 240px;
  }

  .top-products__container {
    padding: 30px 20px;
  }

  .top-products__buttons {
    flex-direction: column;
    gap: 16px;
  }

  .top-products__button {
    width: 100%;
    justify-content: center;
  }

  .top-news__container {
    grid-template-columns: 1fr;
    row-gap: 20px;
    padding: 0 20px;
  }

  .top-news__item {
    grid-template-columns: 100px 1fr;
    grid-template-areas:
      "date category"
      "text text";
  }

  .top-news__date {
    grid-area: date;
  }

  .top-news__category {
    grid-area: category;
    justify-self: start;
  }

  .top-news__text {
    grid-area: text;
  }

  .top-environment__container {
    padding: 0 20px;
  }

  .top-environment__text {
    margin-bottom: 22px;
  }

  .top-recruit {
    padding: 72px 0;
  }

  .top-recruit__container {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .top-recruit__image {
    height: 320px;
  }

  .top-recruit::before,
  .top-recruit::after {
    display: none;
  }

  .top-company__container {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .top-company__image {
    height: 300px;
  }

  .top-links__container {
    flex-direction: column;
    padding: 0 20px;
    gap: 16px;
  }

  .top-links__item {
    min-width: auto;
    width: 100%;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .top-hero {
    background-position: center;
    background-image: url(/common/images/top/mv-bg-sp.png);
  }

  .top-products__container {
    width: 90%;
  }

  .top-products__title {
    font-size: 40px;
    line-height: 1.3;
  }

  .top-products__subtitle {
    font-size: 20px;
  }

  .top-products {
    padding: 60px 0;
  }

  .top-news {
    padding: 32px 20px;
  }

  .top-news__container {
    width: 100%;
  }

  .top-environment {
    padding: 32px 20px;
  }

  .top-environment__title {
    font-size: 48px;
  }

  .top-environment__eyebrow {
    font-size: 16px;
  }

  .top-environment__content {
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .top-environment__button {
    font-size: 14px;
    padding: 8px 14px;
    line-height: 1;
    height: 50px;
  }

  .top-environment__text {
    font-size: 16px;
  }

  .top-recruit__label {
    font-size: 16px;
  }

  .top-recruit {
    padding: 32px 20px;
    background-image: url(/common/images/top/top-recruit-bg-sp.webp);
  }

  .top-recruit__title {
    font-size: 48px;
  }

  .top-company__panel {
    width: 100%;
    margin-top: 0;
    padding: 32px;
    justify-content: flex-start;
  }

  .top-company__eyebrow {
    font-size: 16px;
  }

  .top-company__title {
    font-size: 48px;
  }

  .top-company-wrapper {
    width: 100%;
  }

  .top-about {
    padding-top: 0;
  }

  .top-hero__title {
    text-align: left;
  }

  .top-hero__container {
    align-items: flex-start;
  }

  .top-links__icon {
    width: 30px;
    height: 30px;
  }

  .top-links__text {
    font-size: 15px;
  }

  .top-company__link {
    font-size: 15px;
  }
}
