.page-top-template .page-detail {
  padding: 88px var(--side-padding) 0;
}

.page-top-template .detail-layout,
.page-top-template .recommend-section {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.page-top-template .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 877px) 340px;
  align-items: start;
  gap: clamp(48px, 4.5vw, 78px);
}

.page-top-template .profile-header,
.page-top-template .ranking-heading {
  border-bottom: 1px solid var(--color-black);
}

.page-top-template .profile-title-row {
  min-height: 80px;
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
  gap: 18px;
  flex-wrap: wrap;
}

.page-top-template .profile-title-row h1 {
  margin: 0;
  font-size: clamp(36px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1.2;
}

.page-top-template .profile-en {
  font-size: 15px;
  line-height: 1;
}

.page-top-template .tag {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.page-top-template .tag-yellow {
  background: var(--color-yellow);
  letter-spacing: .2em;
}

.page-top-template .social-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.page-top-template .social {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
}

.page-top-template .social img {
  width: auto;
  height: auto;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
}

.page-top-template .profile-main-image {
  width: 100%;
  margin-top: 38px;
  aspect-ratio: 877 / 657;
  background: var(--color-gray);
  object-fit: cover;
}

.page-top-template .profile-intro {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 38px;
  margin-top: 38px;
}

.page-top-template .profile-intro .profile-main-image,
.page-top-template .profile-intro .profile-copy,
.page-top-template .profile-intro .partner-lead {
  margin-top: 0;
}

.page-top-template .profile-copy,
.page-top-template .partner-lead {
  margin-top: 38px;
  font-size: 16px;
  line-height: 2.05;
}

.page-top-template .profile-copy p,
.page-top-template .partner-lead p {
  margin: 0 0 1em;
}

.page-top-template .partner-lead-name {
  display: inline-block;
  margin: 0 0 24px;
  padding-bottom: 7px;
  border-bottom: 5px solid var(--color-yellow);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.18;
}

.page-top-template .partner-section,
.page-top-template .content-section {
  margin-top: 48px;
}

.page-top-template .partner-section h2,
.page-top-template .content-section h2 {
  min-height: 57px;
  display: flex;
  align-items: center;
  margin: 0 0 28px;
  padding: 8px 32px;
  background: var(--color-yellow);
  font-size: 24px;
  font-weight: 700;
}

.page-top-template .career-section h2 {
  display: inline-flex;
  min-height: auto;
  margin-bottom: 0px;
  padding: 4px 9px;
  font-size: 18px;
  line-height: 1.25;
}

.page-top-template .career-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 2.05;
}

.page-top-template .career-list li {
  position: relative;
  padding: 8px 0 8px 36px;
  border-bottom: 1px solid rgba(0, 0, 0, .16);
  background: #fefefe;
}

.page-top-template .career-list li::before {
  position: absolute;
  top: 1.25em;
  left: 1em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-yellow);
  content: "";
}

.page-top-template .partner-qa,
.page-top-template .qa-section {
  margin-top: 64px;
}

.page-top-template .qa-section h2 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  min-height: auto;
  align-items: center;
  margin: 0 0 30px;
  padding: 0;
  background: transparent;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  letter-spacing: .08em;
}

.page-top-template .qa-section h2::before,
.page-top-template .qa-section h2::after {
  display: block;
  height: 1px;
  background: var(--color-black);
  content: "";
}

.page-top-template .qa-list {
  margin: 0;
  padding: 14px 18px 0;
  background: #fefefe;
}

.page-top-template .qa-list dt {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-yellow);
  font-size: 16px;
  font-weight: 700;
  line-height: 2.05;
}

.page-top-template .qa-list dt:first-of-type {
  margin-top: 0;
}

.page-top-template .qa-list dd {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 12px 0 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.page-top-template .qa-label {
  display: inline-flex;
  min-width: 38px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.page-top-template .qa-label-question {
  background: var(--color-yellow);
  color: var(--color-black);
}

.page-top-template .qa-label-answer {
  background: var(--color-black);
  color: var(--color-yellow);
}

.page-top-template .qa-text {
  min-width: 0;
}

.page-top-template .ranking-sidebar {
  position: sticky;
  top: 24px;
}

.page-top-template .ranking-heading {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 16px;
}

.page-top-template .ranking-heading h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
}

.page-top-template .ranking-heading p {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.page-top-template .ranking-list {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.page-top-template .ranking-card {
  position: relative;
  min-height: 155px;
  display: grid;
  grid-template-columns: 52px minmax(110px, 164px) 1fr;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  padding: 16px 18px 16px 0;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.page-top-template .ranking-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 62px;
  background: var(--color-yellow);
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0% 100%);
  content: "";
}

.page-top-template .rank-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 100%;
  place-items: center;
  align-self: stretch;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.page-top-template .ranking-card img {
  width: 164px;
  aspect-ratio: 877 / 657;
  object-fit: cover;
}

.page-top-template .ranking-image-placeholder {
  display: block;
  width: 164px;
  aspect-ratio: 877 / 657;
  background: var(--color-gray);
}

.page-top-template .ranking-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.page-top-template .ranking-info strong {
  font-size: 16px;
  font-weight: 500;
}

.page-top-template .ranking-info em {
  min-width: 95px;
  padding: 8px 10px;
  background: var(--color-yellow);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.page-top-template .recommend-section {
  padding: 112px 0 120px;
}

.page-top-template .recommend-section h2 {
  margin: 0 0 52px;
  font-size: 32px;
  font-weight: 400;
  text-align: center;
}

.page-top-template .recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.page-top-template .recommend-card {
  display: block;
}

.page-top-template .recommend-card img {
  width: 100%;
  aspect-ratio: 877 / 657;
  background: var(--color-gray);
  object-fit: cover;
}

.page-top-template .recommend-image-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 877 / 657;
  background: var(--color-gray);
}

.page-top-template .recommend-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.page-top-template .recommend-meta strong {
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.1;
}

.page-top-template .recommend-meta small {
  font-size: 15px;
}

.page-top-template .recommend-meta em {
  min-width: 94px;
  padding: 8px 16px;
  background: var(--color-gray);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.page-top-template .recommend-card p {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 2.05;
}

@media (max-width: 1100px) {
  .page-top-template .detail-layout {
    grid-template-columns: 1fr;
  }

  .page-top-template .ranking-sidebar {
    position: static;
  }

  .page-top-template .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-top-template .partner-lead-name {
    display: none;
  }

  .page-top-template .social-links {
    gap: 10px;
  }

  .page-top-template .social {
    width: 19px;
    height: 19px;
  }

  .page-top-template .social img {
    max-width: 19px;
    max-height: 19px;
  }

  .page-top-template .profile-title-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
    min-height: auto;
    align-items: center;
  }

  .page-top-template .profile-title-row h1 {
    grid-column: 1;
    font-size: clamp(18px, 6vw, 30px);
  }

  .page-top-template .profile-en {
    grid-column: 2;
    font-size: 12px;
  }

  .page-top-template .tag {
    grid-column: 1;
    min-height: 17px;
    padding: 3px 8px;
    font-size: 8px;
  }

  .page-top-template .profile-title-row .social-links {
    grid-column: 2;
  }

  .page-top-template .ranking-list,
  .page-top-template .recommend-grid {
    grid-template-columns: 1fr;
  }

  .page-top-template .ranking-card {
    grid-template-columns: 46px 130px 1fr;
    min-height: 155px;
    gap: 12px;
    padding-right: 14px;
  }

  .page-top-template .ranking-card::before {
    width: 56px;
  }

  .page-top-template .rank-number {
    width: 46px;
    height: 100%;
    font-size: 24px;
  }

  .page-top-template .ranking-card img {
    width: 130px;
  }

  .page-top-template .ranking-image-placeholder {
    width: 130px;
  }
}
