* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fbfaff;
  color: #34313c;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}


/* =========================
   Header
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #ece8f6;
  backdrop-filter: blur(10px);
}

.site-header-inner {
  width: min(1120px, calc(100% - 30px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
}

.site-logo-main {
  color: #35313b;
  font-size: 23px;
}

.site-logo-db {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 28px;
  padding: 0 7px;
  background: linear-gradient(135deg,
      #7a5cff,
      #b457e7);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  letter-spacing: -0.02em;
  box-shadow:
    0 4px 12px rgba(118, 82, 224, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 21px;
}

.site-nav a {
  color: #655f6f;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: #7255df;
}


/* =========================
   Main
========================= */

.site-main {
  min-height: 70vh;
}


/* =========================
   Layout
========================= */

.container {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
}

.content-section {
  width: min(1080px, calc(100% - 28px));
  margin: 32px auto;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.section-heading-main {
  min-width: 0;
}

.section-label {
  display: block;
  margin-bottom: 2px;
  color: #775adb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin: 0;
  color: #3a3541;
  font-size: 22px;
  line-height: 1.4;
}

.section-more {
  flex: none;
  color: #7654d8;
  font-size: 13px;
  font-weight: 700;
}


/* =========================
   Cards
========================= */

.card {
  background: #fff;
  border: 1px solid #ece8f2;
  border-radius: 16px;
  box-shadow:
    0 4px 16px rgba(58, 45, 83, 0.055);
}


/* =========================
   Person grid
========================= */

.person-grid {
  display: grid;
  grid-template-columns:
    repeat(6, minmax(0, 1fr));
  gap: 13px;
}

.person-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ece8f2;
  border-radius: 14px;
  box-shadow:
    0 3px 12px rgba(67, 51, 93, 0.055);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.person-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(67, 51, 93, 0.10);
}

.person-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      #f2effa,
      #faf8ff);
}

.person-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card-body {
  padding: 9px 9px 10px;
}

.person-card-name {
  overflow: hidden;
  margin: 0;
  color: #39343f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.person-card-meta {
  margin: 3px 0 0;
  color: #8b8392;
  font-size: 12px;
}


/* =========================
   Person detail
========================= */

.person-profile {
  width: min(1080px, calc(100% - 28px));
  margin: 26px auto 0;
}

.person-profile-main {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.person-main-image {
  overflow: hidden;
  background: #f0edf7;
  border-radius: 18px;
  box-shadow:
    0 5px 18px rgba(66, 50, 92, 0.08);
}

.person-main-image img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
}

.person-profile-info {
  min-width: 0;
}

.person-name-en {
  margin: 0 0 4px;
  color: #91889a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.person-profile-info h1 {
  margin: 0;
  color: #302c36;
  font-size: clamp(28px, 4vw, 39px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.person-primary-occupation {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 11px;
  background: #f0ecff;
  border-radius: 999px;
  color: #7254d1;
  font-size: 12px;
  font-weight: 800;
}

.person-summary {
  margin: 15px 0 0;
  color: #5e5765;
  font-size: 15px;
}


/* =========================
   Vote
========================= */

.vote-panel {
  grid-column: 1 / -1;
  width: 100%;

  margin-top: 17px;
  padding: 15px;

  background:
    linear-gradient(135deg,
      #faf8ff,
      #fff8fb);

  border: 1px solid #e9e2fa;
  border-radius: 16px;
}

.vote-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.vote-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.vote-index {
  color: #7052d5;
  font-size: 13px;
  font-weight: 800;
}

.vote-buttons {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.vote-button {
  min-height: 52px;
  padding: 7px 5px;
  border: 1px solid #e4deec;
  border-radius: 11px;
  background: #fff;
  color: #4a4450;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  transition:
    transform 0.1s ease,
    border-color 0.1s ease;
}

.vote-button:hover {
  transform: translateY(-1px);
}

.vote-button-positive {
  border-color: #ffd2dc;
}

.vote-button-neutral {
  border-color: #ddd8e4;
}

.vote-button-negative {
  border-color: #d9d8f2;
}

.vote-button-emoji {
  display: block;
  margin-bottom: 1px;
  font-size: 18px;
}

.vote-bar {
  display: flex;
  height: 12px;
  margin-top: 12px;
  overflow: hidden;
  background: #ece9ef;
  border-radius: 999px;
}

.vote-bar-positive {
  background: #f17a9f;
}

.vote-bar-neutral {
  background: #b7b0bc;
}

.vote-bar-negative {
  background: #8071d8;
}

.vote-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 13px;
  margin-top: 8px;
  color: #7d7480;
  font-size: 11px;
}

.vote-button-label {
  display: block;
}

.vote-button-count {
  display: block;

  margin-top: 3px;

  color: #968d9a;

  font-size: 12px;
  font-weight: 700;
}

.vote-button.is-selected .vote-button-count {
  color: inherit;
  opacity: .8;
}


/* =========================
   Profile information
========================= */

.profile-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid #ebe7f0;
  border-radius: 14px;
}

.profile-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  border-bottom: 1px solid #f0edf3;
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-label {
  padding: 11px 13px;
  background: #faf9fc;
  color: #77707d;
  font-size: 13px;
  font-weight: 700;
}

.profile-value {
  min-width: 0;
  padding: 11px 14px;
  color: #403a45;
  font-size: 14px;
}


/* =========================
   Tags
========================= */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  background: #f5f2fc;
  border-radius: 999px;
  color: #6855ab;
  font-size: 12px;
  font-weight: 700;
}


/* =========================
   SNS
========================= */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 11px;
  background: #fff;
  border: 1px solid #e9e4ef;
  border-radius: 9px;
  color: #514a56;
  font-size: 13px;
  font-weight: 700;
}


/* =========================
   Image gallery
========================= */

.person-gallery {
  display: grid;
  grid-template-columns:
    repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.person-gallery-item {
  overflow: hidden;
  background: #f1eef5;
  border-radius: 10px;
}

.person-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}


/* =========================
   Comments
========================= */

.comment-form-card {
  padding: 16px;
}

.comment-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid #dfd9e7;
  border-radius: 10px;
  background: #fff;
  color: #3f3944;
  outline: none;
}

.comment-form textarea:focus {
  border-color: #8b72de;
  box-shadow:
    0 0 0 3px rgba(126, 92, 213, 0.08);
}

.comment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 9px;
  padding: 7px 20px;
  border: 0;
  border-radius: 10px;
  background:
    linear-gradient(135deg,
      #795ce0,
      #a653dc);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.comment-card {
  padding: 14px 15px;
  background: #fff;
  border: 1px solid #ebe7f0;
  border-radius: 13px;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.comment-user {
  color: #5c5360;
  font-size: 12px;
  font-weight: 800;
}

.comment-date {
  color: #a097a3;
  font-size: 11px;
}

.comment-body {
  margin: 0;
  color: #403a44;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.comment-action {
  min-height: 31px;
  padding: 4px 9px;
  border: 1px solid #e5dfe9;
  border-radius: 999px;
  background: #faf9fb;
  color: #6d6570;
  font-size: 11px;
  font-weight: 700;
}

.comment-report {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #aaa1ab;
  font-size: 11px;
}


/* =========================
   Utility
========================= */

.empty-message {
  padding: 25px;
  background: #fff;
  border: 1px solid #ebe7f0;
  border-radius: 13px;
  color: #837a86;
  text-align: center;
}

.muted {
  color: #928997;
}


/* =========================
   Footer
========================= */

.site-footer {
  margin-top: 50px;
  padding: 34px 15px;
  background: #38323f;
  color: #d9d3dc;
}

.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin-bottom: 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.footer-description {
  margin: 4px 0 13px;
  font-size: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 18px;
  margin-bottom: 14px;
}

.footer-nav a {
  color: #eee9f0;
  font-size: 12px;
}

.footer-owner,
.copyright {
  margin: 4px 0;
  font-size: 11px;
  opacity: 0.8;
}

.footer-owner a {
  text-decoration: underline;
}


/* =========================
   Tablet
========================= */

@media (max-width: 850px) {

  .person-grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .person-profile-main {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }

  .person-gallery {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }
}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

  body {
    font-size: 15px;
  }

  .site-header-inner {
    width: calc(100% - 22px);
    height: 58px;
  }

  .site-logo-main {
    font-size: 20px;
  }

  .site-logo-db {
    min-width: 31px;
    height: 25px;
    font-size: 13px;
  }

  .site-nav {
    gap: 11px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .content-section,
  .person-profile {
    width: calc(100% - 20px);
  }

  .content-section {
    margin: 25px auto;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .person-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .person-card {
    border-radius: 10px;
  }

  .person-card-body {
    padding: 7px 7px 8px;
  }

  .person-card-name {
    font-size: 13px;
  }

  .person-card-meta {
    font-size: 11px;
  }

  /*
     * 人物ページ
     *
     * 画像を小さめにして、
     * 投票ボタンがファーストビューへ
     * 入りやすくする。
     */
  .person-profile {
    margin-top: 16px;
  }

  .person-profile-main {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 13px;
  }

  .person-main-image {
    border-radius: 13px;
  }

  .person-profile-info h1 {
    font-size: 23px;
  }

  .person-name-en {
    font-size: 10px;
  }

  .person-primary-occupation {
    margin-top: 5px;
    padding: 3px 8px;
    font-size: 11px;
  }

  .person-summary {
    display: none;
  }

  /*
     * モバイルでは投票を
     * プロフィール直後に全幅表示
     */
  .vote-panel {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 12px;
  }

  .vote-panel-title {
    font-size: 14px;
  }

  .vote-buttons {
    gap: 5px;
  }

  .vote-button {
    min-height: 49px;
    padding: 5px 3px;
    font-size: 11px;
  }

  .vote-button-emoji {
    font-size: 17px;
  }

  .vote-legend {
    gap: 4px 9px;
    font-size: 10px;
  }

  .profile-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .profile-label {
    padding: 10px 9px;
    font-size: 12px;
  }

  .profile-value {
    padding: 10px 11px;
    font-size: 13px;
  }

  .person-gallery {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .comment-form-card {
    padding: 13px;
  }

  .comment-card {
    padding: 12px;
  }

  .footer-nav {
    gap: 6px 13px;
  }
}


/* =========================
   Small Mobile
========================= */

@media (max-width: 380px) {

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    font-size: 11px;
  }

  .person-profile-main {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 11px;
  }

  .person-profile-info h1 {
    font-size: 21px;
  }

  .vote-button {
    font-size: 10px;
  }
}

/* =========================
   Person page additions
========================= */

.person-description-card {
  padding: 16px 18px;
}

.person-description-card p {
  margin: 0;
  color: #554e5b;
  font-size: 14px;
  line-height: 1.85;
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.comment-form-footer .muted {
  font-size: 11px;
}

.person-image-upload-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.person-gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #f1eef5;
  border-radius: 10px;
  cursor: pointer;
}

.comment-more-wrap {
  margin-top: 15px;
  text-align: center;
}

.comment-more-button {
  min-height: 40px;
  padding: 7px 18px;
  border: 1px solid #dfd8eb;
  border-radius: 999px;
  background: #fff;
  color: #7257c7;
  font-size: 13px;
  font-weight: 700;
}


/* =========================
   Report modal
========================= */

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.report-modal[hidden] {
  display: none;
}

.report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 36, .52);
}

.report-modal-content {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(20, 15, 30, .22);
}

.report-modal-content h2 {
  margin: 0;
  font-size: 19px;
}

.report-modal-content>p {
  margin: 5px 0 14px;
  color: #817887;
  font-size: 13px;
}

.report-modal-content form>label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 5px;
  border-bottom: 1px solid #f0edf3;
  font-size: 13px;
  cursor: pointer;
}

.report-modal-content input[type="radio"] {
  margin-top: 4px;
}

.report-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.report-cancel-button,
.report-submit-button {
  min-height: 39px;
  padding: 6px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

.report-cancel-button {
  border: 1px solid #ddd7e2;
  background: #fff;
  color: #665f6b;
}

.report-submit-button {
  border: 0;
  background: #7155d6;
  color: #fff;
}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

  .person-description-card {
    padding: 13px 14px;
  }

  .person-description-card p {
    font-size: 13px;
  }

  .person-image-upload-button {
    font-size: 12px;
  }

  .report-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .report-modal-content {
    width: 100%;
    border-radius: 17px;
  }
}

/* =========================
   Vote interaction
========================= */

.vote-button:disabled {
  cursor: default;
  opacity: .72;
}

.vote-button.is-selected {
  position: relative;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow:
    0 4px 13px rgba(66, 48, 90, .11);
}

.vote-button-positive.is-selected {
  background: #fff0f5;
  border-color: #ed7d9e;
  color: #c84e75;
}

.vote-button-neutral.is-selected {
  background: #f5f3f6;
  border-color: #aaa2af;
  color: #5f5963;
}

.vote-button-negative.is-selected {
  background: #f2f0ff;
  border-color: #8271db;
  color: #6554bf;
}

.vote-panel.is-submitting {
  opacity: .85;
}

.vote-bar>span {
  display: block;
  height: 100%;
  transition: width .35s ease;
}

.vote-legend strong {
  font-weight: 800;
}

.vote-message {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.vote-message.is-success {
  background: #f0f8f4;
  color: #39765a;
}

.vote-message.is-error {
  background: #fff3f5;
  color: #b8536a;
}

/* =========================
   Comment interaction
========================= */

.comment-submit:disabled,
.comment-action:disabled {
  cursor: default;
  opacity: .65;
}

.comment-action.is-selected {
  background: #f0ecff;
  border-color: #8b72dd;
  color: #6650bf;
}

.comment-status-message {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.comment-status-message.is-success {
  background: #eff9f4;
  color: #3c765b;
}

.comment-status-message.is-error {
  background: #fff2f5;
  color: #b6506b;
}

.comment-report:hover {
  color: #c15b76;
}

.comment-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 15px;
  background: #fff;
  border: 1px solid #ebe7f0;
  border-radius: 13px;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  overflow: hidden;
  background: #f1eef7;
  border: 1px solid #e4deed;
  border-radius: 50%;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-content {
  min-width: 0;
  flex: 1;
}

@media (max-width: 600px) {

  .comment-card {
    gap: 9px;
    padding: 12px;
  }

  .comment-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

/* =========================
   Person top meta
========================= */

.person-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.person-top-meta .person-primary-occupation {
  margin-top: 0;
}

.person-view-count {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  background: #f7f5fa;
  border: 1px solid #ebe6f1;
  border-radius: 999px;
  color: #756d7c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}


/* Mobile */

@media (max-width: 600px) {

  .person-top-meta {
    gap: 5px;
    margin-top: 5px;
  }

  .person-view-count {
    min-height: 24px;
    padding: 3px 7px;
    font-size: 10px;
  }
}

/* =========================
   Comment vote lock
========================= */

.comment-lock-container {
  position: relative;
}

.comment-lock-content {
  transition:
    filter .25s ease,
    opacity .25s ease;
}


/*
 * 未投票
 */
.comment-lock-container.is-locked .comment-lock-content {
  max-height: 430px;
  overflow: hidden;
  filter: blur(5px);
  opacity: .48;
  pointer-events: none;
  user-select: none;
}


/*
 * 下側を自然にフェード
 */
.comment-lock-container.is-locked .comment-lock-content::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background:
    linear-gradient(to bottom,
      rgba(251, 250, 255, 0),
      #fbfaff);
}


/* =========================
   Overlay
========================= */

.comment-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding: 65px 15px 20px;

  background:
    linear-gradient(to bottom,
      rgba(251, 250, 255, .18),
      rgba(251, 250, 255, .83) 55%,
      #fbfaff 100%);
}

.comment-lock-message {
  width: min(390px, 100%);
  padding: 21px 20px;

  background: rgba(255, 255, 255, .96);

  border: 1px solid #e7e0f2;
  border-radius: 16px;

  box-shadow:
    0 10px 30px rgba(65, 45, 92, .12);

  text-align: center;
}

.comment-lock-icon {
  margin-bottom: 5px;
  font-size: 27px;
}

.comment-lock-message strong {
  display: block;

  color: #403649;
  font-size: 16px;
}

.comment-lock-message p {
  margin: 6px 0 15px;

  color: #7e7482;
  font-size: 13px;
  line-height: 1.65;
}

.comment-lock-vote-button {
  display: inline-flex;
  min-height: 42px;

  align-items: center;
  justify-content: center;

  padding: 7px 19px;

  background:
    linear-gradient(135deg,
      #795ce0,
      #a754dc);

  border-radius: 10px;

  color: #fff;

  font-size: 13px;
  font-weight: 800;

  box-shadow:
    0 5px 13px rgba(112, 77, 195, .18);
}


/* =========================
   Unlock animation
========================= */

.comment-lock-container.is-unlocking .comment-lock-content {
  filter: blur(0);
  opacity: 1;
}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

  .comment-lock-container.is-locked .comment-lock-content {
    max-height: 370px;
    filter: blur(4px);
  }

  .comment-lock-overlay {
    padding-top: 52px;
  }

  .comment-lock-message {
    padding: 18px 15px;
  }

  .comment-lock-message strong {
    font-size: 15px;
  }

  .comment-lock-message p {
    font-size: 12px;
  }
}

/* =========================
   Page hero
========================= */

.page-hero {
  background:
    linear-gradient(135deg,
      #f5f1ff,
      #fff5fa);

  border-bottom:
    1px solid #ebe5f3;
}

.page-hero-compact {
  padding: 28px 0 25px;
}

.page-hero h1 {
  margin: 0;
  color: #37313e;
  font-size: clamp(24px,
      5vw,
      34px);
  line-height: 1.35;
}

.page-hero p {
  margin: 6px 0 0;
  color: #776e7e;
  font-size: 14px;
}


/* =========================
   Header search
========================= */

.header-search {
  display: flex;
  width: min(360px, 34vw);
  margin-left: auto;
  overflow: hidden;
  border: 1px solid #e4deec;
  border-radius: 999px;
  background: #faf9fc;
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 8px 5px 8px 14px;
  border: 0;
  background: transparent;
  outline: none;
  color: #443e49;
  font-size: 13px;
}

.header-search button {
  width: 39px;
  flex: none;
  border: 0;
  background: transparent;
}

.header-actions {
  display: none;
}

.mobile-search-wrap {
  display: none;
}


/* =========================
   Search
========================= */

.main-search-form {
  display: flex;
  width: min(650px, 100%);
  margin: 0 auto 25px;
  overflow: hidden;
  background: #fff;
  border: 2px solid #dcd3ef;
  border-radius: 13px;
}

.main-search-form:focus-within {
  border-color: #8063d9;
}

.main-search-form input {
  min-width: 0;
  flex: 1;
  padding: 13px 15px;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.main-search-form button {
  width: 80px;
  border: 0;
  background:
    linear-gradient(135deg,
      #7658dc,
      #a752dc);
  color: #fff;
  font-weight: 800;
}

.result-summary {
  margin-bottom: 15px;
  color: #625a67;
  font-size: 14px;
}

.result-summary span {
  margin-left: 5px;
  color: #785ad4;
  font-weight: 800;
}

.search-guide {
  padding: 35px 20px;
  background: #fff;
  border: 1px solid #ebe6f0;
  border-radius: 15px;
  text-align: center;
}

.search-guide strong {
  font-size: 17px;
}

.search-guide p {
  margin: 5px 0 0;
  color: #8c838f;
  font-size: 13px;
}


/* =========================
   Pagination
========================= */

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.pagination a {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #e3ddeb;
  border-radius: 9px;
  color: #675f6d;
  font-size: 13px;
  font-weight: 700;
}

.pagination a.active {
  background: #7658d8;
  border-color: #7658d8;
  color: #fff;
}


/* =========================
   Occupations
========================= */

.occupation-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.occupation-card {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #ebe6f0;
  border-radius: 11px;
  transition:
    transform .15s ease,
    border-color .15s ease;
}

.occupation-card:hover {
  transform: translateY(-1px);
  border-color: #cfc2ea;
}

.occupation-card strong {
  overflow: hidden;
  color: #403a45;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.occupation-card span {
  color: #978d9a;
  font-size: 11px;
}

.occupation-card b {
  color: #9a84d4;
  font-size: 20px;
}

.back-link-wrap {
  margin-top: 25px;
  text-align: center;
}

.back-link-wrap a {
  color: #7257c7;
  font-size: 13px;
  font-weight: 700;
}


/* =========================
   Ranking tabs
========================= */

.ranking-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ranking-tabs::-webkit-scrollbar {
  display: none;
}

.ranking-tabs a {
  flex: none;
  padding: 8px 13px;
  background: #fff;
  border: 1px solid #e5dfeb;
  border-radius: 999px;
  color: #675e6d;
  font-size: 12px;
  font-weight: 800;
}

.ranking-tabs a.active {
  background:
    linear-gradient(135deg,
      #7659db,
      #a953dc);
  border-color: transparent;
  color: #fff;
}


/* =========================
   Ranking list
========================= */

.ranking-list {
  display: grid;
  gap: 8px;
}

.ranking-item {
  display: grid;
  grid-template-columns:
    45px 58px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 9px 13px;
  background: #fff;
  border: 1px solid #ebe6f0;
  border-radius: 12px;
}

.ranking-position {
  color: #867b8b;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.ranking-position.rank-1 {
  color: #d69b21;
  font-size: 24px;
}

.ranking-position.rank-2 {
  color: #8f99a5;
  font-size: 22px;
}

.ranking-position.rank-3 {
  color: #b47b55;
  font-size: 21px;
}

.ranking-image {
  width: 58px;
  height: 58px;
  overflow: hidden;
  background: #f0edf5;
  border-radius: 50%;
}

.ranking-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-person {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ranking-person strong {
  overflow: hidden;
  color: #3e3843;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-person span {
  margin-top: 2px;
  color: #968c99;
  font-size: 11px;
}

.ranking-score {
  min-width: 70px;
  text-align: right;
}

.ranking-score strong {
  display: block;
  color: #7255d0;
  font-size: 18px;
  line-height: 1.1;
}

.ranking-score span {
  color: #9a909c;
  font-size: 10px;
}


/* =========================
   Mobile header
========================= */

@media (max-width: 700px) {

  .site-header-inner {
    position: relative;
  }

  .header-search {
    display: none;
  }

  .header-actions {
    display: flex;
    margin-left: auto;
    gap: 5px;
  }

  .header-search-toggle,
  .menu-toggle {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e6e0eb;
    border-radius: 9px;
    background: #faf9fc;
  }

  .menu-toggle {
    flex-direction: column;
    gap: 4px;
  }

  .menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background: #625a69;
    border-radius: 2px;
  }

  .site-nav {
    position: absolute;
    top: 57px;
    right: 10px;
    display: none;
    width: 210px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e9e3ee;
    border-radius: 12px;
    box-shadow:
      0 10px 30px rgba(45, 34, 58, .14);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    display: block !important;
    padding: 10px 11px;
    border-radius: 8px;
    font-size: 13px;
  }

  .site-nav a:hover {
    background: #f6f3fb;
  }

  .mobile-search-wrap {
    display: none;
    padding: 8px 10px 11px;
    background: #fff;
    border-top: 1px solid #f1edf3;
  }

  .mobile-search-wrap.is-open {
    display: block;
  }

  .mobile-search {
    display: flex;
    overflow: hidden;
    border: 1px solid #ded7e8;
    border-radius: 10px;
  }

  .mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 11px;
    border: 0;
    outline: none;
    font-size: 14px;
  }

  .mobile-search button {
    width: 62px;
    border: 0;
    background: #7658d8;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
  }


  /* =====================
       Occupations
    ===================== */

  .occupation-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .occupation-card {
    padding: 11px 10px;
  }

  .occupation-card strong {
    font-size: 13px;
  }


  /* =====================
       Ranking
    ===================== */

  .ranking-item {
    grid-template-columns:
      31px 48px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .ranking-position {
    font-size: 15px;
  }

  .ranking-position.rank-1,
  .ranking-position.rank-2,
  .ranking-position.rank-3 {
    font-size: 19px;
  }

  .ranking-image {
    width: 48px;
    height: 48px;
  }

  .ranking-person strong {
    font-size: 13px;
  }

  .ranking-score {
    min-width: 55px;
  }

  .ranking-score strong {
    font-size: 15px;
  }

  .ranking-tabs {
    margin-left: -2px;
    margin-right: -2px;
  }
}


/* =========================
   Very small mobile
========================= */

@media (max-width: 380px) {

  .occupation-grid {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns:
      28px 44px minmax(0, 1fr) auto;
  }

  .ranking-image {
    width: 44px;
    height: 44px;
  }
}

/* =========================
   Region / Birthplace
========================= */

.section-description {
  margin: -5px 0 15px;
  color: #817987;
  font-size: 13px;
}

.region-total {
  flex: none;
  color: #7961c8;
  font-size: 12px;
  font-weight: 800;
}


/* =========================
   Region grid
========================= */

.region-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.region-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  padding: 11px 12px;

  background: #fff;

  border: 1px solid #ebe6f1;
  border-radius: 11px;

  transition:
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

.region-card:hover {
  transform: translateY(-1px);

  border-color: #cdc1e8;

  box-shadow:
    0 4px 13px rgba(65, 48, 88, .07);
}

.region-card-main {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.region-card-main strong {
  overflow: hidden;

  color: #403a45;

  font-size: 13px;
  font-weight: 800;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.region-card-main span {
  flex: none;

  color: #928999;

  font-size: 10px;
}

.region-card>b {
  color: #a08bd5;
  font-size: 19px;
  font-weight: 400;
}


/* =========================
   Overseas
========================= */

.region-grid-countries {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}


/* =========================
   Sub regions
========================= */

.region-sub-section {
  margin-bottom: 20px;
}

.region-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  min-height: 31px;

  padding: 5px 10px;

  background: #fff;

  border: 1px solid #e8e2ef;
  border-radius: 999px;

  color: #605865;

  font-size: 12px;
  font-weight: 700;
}

.region-chip small {
  color: #988da0;
  font-size: 9px;
}


/* =========================
   Region person card
========================= */

.person-card-meta {
  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;
}


/* =========================
   Tablet
========================= */

@media (max-width: 850px) {

  .region-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .region-grid-countries {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

  .region-grid,
  .region-grid-countries {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 6px;
  }

  .region-card {
    padding: 10px 9px;
  }

  .region-card-main {
    display: block;
  }

  .region-card-main strong {
    display: block;
    font-size: 13px;
  }

  .region-card-main span {
    display: block;
    margin-top: 1px;
    font-size: 10px;
  }

  .region-card>b {
    font-size: 17px;
  }

  .region-chip-list {
    gap: 5px;
  }

  .region-chip {
    min-height: 29px;
    padding: 4px 9px;
    font-size: 11px;
  }
}

/* =========================
   Schools
========================= */

.school-type-nav {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.school-type-nav::-webkit-scrollbar {
  display: none;
}

.school-type-nav a {
  flex: none;

  padding: 7px 12px;

  background: #fff;

  border: 1px solid #e5dfeb;
  border-radius: 999px;

  color: #675e6d;

  font-size: 12px;
  font-weight: 800;
}

.school-type-nav a.active {
  background:
    linear-gradient(135deg,
      #7658da,
      #a653dc);

  border-color: transparent;

  color: #fff;
}


/* =========================
   School list
========================= */

.school-list {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.school-card {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr) auto 15px;

  gap: 10px;

  align-items: center;

  padding: 12px 13px;

  background: #fff;

  border:
    1px solid #ebe6f0;

  border-radius: 12px;

  transition:
    transform .15s ease,
    border-color .15s ease;
}

.school-card:hover {
  transform:
    translateY(-1px);

  border-color:
    #cfc3e8;
}

.school-card-main {
  min-width: 0;
}

.school-card-main>strong {
  display: block;

  overflow: hidden;

  color: #403a45;

  font-size: 14px;
  font-weight: 800;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.school-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;

  margin-top: 3px;

  color: #938a97;

  font-size: 10px;
}

.school-card-count {
  text-align: right;
}

.school-card-count strong {
  color: #7358c8;
  font-size: 16px;
}

.school-card-count span {
  color: #948b98;
  font-size: 10px;
}

.school-card-arrow {
  color: #a28dd5;
  font-size: 19px;
}


/* =========================
   School detail
========================= */

.school-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  margin-top: 8px;
}

.school-page-meta span {
  display: inline-flex;

  padding: 4px 9px;

  background:
    rgba(255, 255, 255, .75);

  border:
    1px solid #e7dff1;

  border-radius: 999px;

  color: #706676;

  font-size: 11px;
  font-weight: 700;
}

.school-page-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 10px 20px;

  margin-top: 25px;
}

.school-page-links a {
  color: #7156c5;
  font-size: 13px;
  font-weight: 700;
}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

  .school-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .school-card {
    padding: 10px 11px;
  }

  .school-card-main>strong {
    font-size: 13px;
  }

  .school-card-count strong {
    font-size: 15px;
  }
}

/* =========================
   School summary
========================= */

.school-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 17px 18px;

  background: #fff;

  border: 1px solid #ebe6f0;
  border-radius: 15px;

  box-shadow:
    0 4px 15px rgba(57, 44, 78, .045);
}

.school-summary-main {
  min-width: 0;
}

.school-summary-main h2 {
  margin: 0;

  color: #3d3742;

  font-size: 19px;
  line-height: 1.4;
}

.school-summary-kana {
  margin: 2px 0 0;

  color: #958c99;

  font-size: 11px;
}

.school-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;

  margin-top: 8px;
}

.school-summary-meta span {
  display: inline-flex;

  padding: 4px 9px;

  background: #f6f3fb;

  border-radius: 999px;

  color: #6d6176;

  font-size: 11px;
  font-weight: 700;
}

.school-official-link {
  flex: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 37px;

  padding: 6px 12px;

  background: #f5f1ff;

  border: 1px solid #dfd6f2;
  border-radius: 9px;

  color: #7155c6;

  font-size: 12px;
  font-weight: 800;
}

.school-official-link:hover {
  background: #eee8ff;
}


/* =========================
   Pagination dots
========================= */

.pagination-dots {
  display: inline-flex;

  min-width: 25px;
  height: 38px;

  align-items: center;
  justify-content: center;

  color: #948b99;

  font-size: 12px;
}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

  .school-summary-card {
    align-items: flex-start;
    padding: 13px 14px;
  }

  .school-summary-main h2 {
    font-size: 16px;
  }

  .school-summary-meta span {
    padding: 3px 7px;
    font-size: 10px;
  }

  .school-official-link {
    min-height: 33px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .pagination-dots {
    height: 36px;
  }
}

/* =========================
   Home first view
========================= */

.home-first-view {
  padding: 24px 0 22px;

  background:
    linear-gradient(135deg,
      #f8f5ff 0%,
      #fff8fb 52%,
      #f7f9ff 100%);

  border-bottom:
    1px solid #ebe7f1;
}

.home-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 20px;
}

.home-intro h1 {
  margin: 0;

  color: #342e3a;

  font-size: clamp(25px,
      4vw,
      34px);

  line-height: 1.3;

  letter-spacing:
    -.035em;
}

.home-search-link {
  flex: none;

  display: inline-flex;

  min-height: 39px;

  align-items: center;
  justify-content: center;

  padding: 7px 14px;

  background: #fff;

  border:
    1px solid #e2dbea;

  border-radius: 999px;

  color: #7156c7;

  font-size: 12px;
  font-weight: 800;
}


/* =========================
   First faces
========================= */

.home-face-list {
  display: grid;

  grid-template-columns:
    repeat(8, minmax(0, 1fr));

  gap: 13px;
}

.home-face-item {
  min-width: 0;
  text-align: center;
}

.home-face-image {
  width: min(84px, 100%);
  aspect-ratio: 1 / 1;

  margin: 0 auto 6px;

  overflow: hidden;

  background: #eeeaf5;

  border:
    3px solid rgba(255,
      255,
      255,
      .9);

  border-radius: 50%;

  box-shadow:
    0 5px 14px rgba(61, 45, 79, .09);
}

.home-face-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.home-face-item span {
  display: block;

  overflow: hidden;

  color: #4b4450;

  font-size: 12px;
  font-weight: 700;

  white-space: nowrap;
  text-overflow: ellipsis;
}


/* =========================
   Home ranking
========================= */

.home-ranking-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 8px;
}

.home-ranking-card {
  display: grid;

  grid-template-columns:
    32px 48px minmax(0, 1fr);

  align-items: center;

  gap: 9px;

  min-width: 0;

  padding: 8px 11px;

  background: #fff;

  border:
    1px solid #ebe6f0;

  border-radius: 12px;

  transition:
    transform .15s ease,
    border-color .15s ease;
}

.home-ranking-card:hover {
  transform:
    translateY(-1px);

  border-color:
    #cdc1e8;
}

.home-ranking-number {
  color: #918697;

  font-size: 15px;
  font-weight: 900;

  text-align: center;
}

.home-ranking-number.rank-1 {
  color: #d89b20;
  font-size: 20px;
}

.home-ranking-number.rank-2 {
  color: #939ba4;
  font-size: 18px;
}

.home-ranking-number.rank-3 {
  color: #b67d58;
  font-size: 18px;
}

.home-ranking-image {
  width: 48px;
  height: 48px;

  overflow: hidden;

  background: #f0edf5;

  border-radius: 50%;
}

.home-ranking-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.home-ranking-info {
  min-width: 0;
}

.home-ranking-info strong {
  display: block;

  overflow: hidden;

  color: #403a45;

  font-size: 13px;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-ranking-info span {
  display: block;

  margin-top: 2px;

  color: #948a98;

  font-size: 10px;
}


/* =========================
   Round people
========================= */

.home-person-row {
  display: grid;

  grid-template-columns:
    repeat(12, minmax(0, 1fr));

  gap: 11px;
}

.home-round-person {
  min-width: 0;

  text-align: center;
}

.home-round-image {
  width: min(72px, 100%);
  aspect-ratio: 1 / 1;

  margin: 0 auto 6px;

  overflow: hidden;

  background: #f0edf5;

  border-radius: 50%;

  box-shadow:
    0 3px 10px rgba(62, 47, 78, .07);
}

.home-round-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.home-round-person strong {
  display: block;

  overflow: hidden;

  color: #49424e;

  font-size: 11px;

  line-height: 1.4;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-round-person span {
  display: block;

  margin-top: 1px;

  color: #9a909d;

  font-size: 9px;
}


/* =========================
   Categories
========================= */

.home-category-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 8px;
}

.home-category-card {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 9px;

  min-width: 0;

  padding: 11px 12px;

  background: #fff;

  border:
    1px solid #ebe6f0;

  border-radius: 11px;
}

.home-category-card>div {
  min-width: 0;
}

.home-category-card strong {
  display: block;

  overflow: hidden;

  color: #443d49;

  font-size: 13px;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-category-card span {
  display: block;

  margin-top: 1px;

  color: #968d99;

  font-size: 10px;
}

.home-category-card b {
  color: #a18bd5;

  font-size: 19px;
  font-weight: 400;
}


/* =========================
   Occupation section
========================= */

.home-occupation-section {
  padding-top: 4px;
}


/* =========================
   Discovery
========================= */

.home-discovery-box {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 25px;

  padding: 20px;

  background:
    linear-gradient(135deg,
      #f2edff,
      #fff5fa);

  border:
    1px solid #e5dcf1;

  border-radius: 16px;
}

.home-discovery-box h2 {
  margin: 0;

  color: #3c3542;

  font-size: 18px;
}

.home-discovery-box p {
  margin: 5px 0 0;

  color: #7d7481;

  font-size: 12px;
}

.home-discovery-links {
  display: grid;

  grid-template-columns:
    repeat(2, auto);

  gap: 7px;
}

.home-discovery-links a {
  padding: 7px 11px;

  background:
    rgba(255, 255, 255, .85);

  border:
    1px solid #e0d8eb;

  border-radius: 9px;

  color: #66566f;

  font-size: 11px;
  font-weight: 800;
}


/* =========================
   Utility
========================= */

.mobile-only {
  display: none;
}


/* =========================
   Tablet
========================= */

@media (max-width: 850px) {

  .home-face-list {
    grid-template-columns:
      repeat(6, minmax(0, 1fr));
  }

  .home-face-item:nth-child(n+7) {
    display: none;
  }

  .home-person-row {
    grid-template-columns:
      repeat(8, minmax(0, 1fr));
  }

  .home-round-person:nth-child(n+9) {
    display: none;
  }

  .home-category-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

  .home-first-view {
    padding: 19px 0 18px;
  }

  .home-intro {
    align-items: center;

    margin-bottom: 15px;
  }

  .home-intro h1 {
    font-size: 23px;
  }

  .home-search-link {
    min-height: 34px;

    padding: 5px 10px;

    font-size: 10px;
  }

  .mobile-only {
    display: block;
  }


  /*
     * ファーストビュー
     * 4人×2段
     */
  .home-face-list {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    gap: 10px 7px;
  }

  .home-face-item:nth-child(n+7) {
    display: block;
  }

  .home-face-image {
    width: 64px;

    margin-bottom: 4px;

    border-width: 2px;
  }

  .home-face-item span {
    font-size: 10px;
  }


  /*
     * Ranking
     */
  .home-ranking-grid {
    grid-template-columns: 1fr;

    gap: 6px;
  }

  .home-ranking-card {
    grid-template-columns:
      27px 44px minmax(0, 1fr);

    gap: 8px;

    padding: 7px 9px;
  }

  .home-ranking-image {
    width: 44px;
    height: 44px;
  }


  /*
     * New / occupation people
     */
  .home-person-row {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    gap: 11px 7px;
  }

  .home-round-person:nth-child(n+9) {
    display: block;
  }

  .home-round-image {
    width: 62px;

    margin-bottom: 4px;
  }

  .home-round-person strong {
    font-size: 10px;
  }

  .home-round-person span {
    font-size: 8px;
  }


  /*
     * Category
     */
  .home-category-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 6px;
  }

  .home-category-card {
    padding: 9px 10px;
  }

  .home-category-card strong {
    font-size: 12px;
  }


  /*
     * Discovery
     */
  .home-discovery-box {
    display: block;

    padding: 16px;
  }

  .home-discovery-box h2 {
    font-size: 16px;
  }

  .home-discovery-links {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    margin-top: 13px;
  }

  .home-discovery-links a {
    text-align: center;
  }
}

/* =========================
   Legal / Information pages
========================= */

.legal-page {
  max-width: 900px;
}

.legal-intro {
  margin-bottom: 16px;
  padding: 20px 22px;

  background:
    linear-gradient(135deg,
      #f5f1ff,
      #fff7fa);

  border: 1px solid #e6def0;
  border-radius: 16px;
}

.legal-intro h2 {
  margin: 0 0 8px;

  color: #3d3543;

  font-size: 20px;
}

.legal-intro p {
  margin: 8px 0 0;

  color: #625967;

  font-size: 14px;
  line-height: 1.85;
}


.legal-section {
  margin-top: 13px;
  padding: 19px 21px;

  background: #fff;

  border: 1px solid #ebe6f0;
  border-radius: 14px;
}

.legal-section h2 {
  margin: 0 0 10px;

  color: #403943;

  font-size: 17px;
  line-height: 1.5;
}

.legal-section p {
  margin: 8px 0;

  color: #615964;

  font-size: 14px;
  line-height: 1.85;
}

.legal-section ul {
  margin: 10px 0;
  padding-left: 22px;
}

.legal-section li {
  margin: 5px 0;

  color: #615964;

  font-size: 14px;
  line-height: 1.75;
}

.legal-section a:not(.legal-button) {
  color: #7155c8;

  text-decoration: underline;
  text-underline-offset: 2px;
}


/* =========================
   Operator
========================= */

.operator-info {
  margin: 0;
}

.operator-info>div {
  display: grid;

  grid-template-columns:
    110px minmax(0, 1fr);

  border-bottom:
    1px solid #f0edf3;
}

.operator-info>div:last-child {
  border-bottom: 0;
}

.operator-info dt,
.operator-info dd {
  margin: 0;
  padding: 10px 5px;
}

.operator-info dt {
  color: #807684;

  font-size: 12px;
  font-weight: 700;
}

.operator-info dd {
  color: #453e49;

  font-size: 13px;
}


/* =========================
   Legal button
========================= */

.legal-button {
  display: inline-flex;

  min-height: 39px;

  align-items: center;
  justify-content: center;

  margin-top: 8px;

  padding: 6px 15px;

  background:
    linear-gradient(135deg,
      #7759da,
      #a653dc);

  border-radius: 9px;

  color: #fff !important;

  font-size: 12px;
  font-weight: 800;

  text-decoration: none !important;
}


/* =========================
   Contact
========================= */

.contact-card {
  padding: 30px 24px;

  background:
    linear-gradient(135deg,
      #f5f1ff,
      #fff6fa);

  border: 1px solid #e5dcf0;
  border-radius: 18px;

  text-align: center;
}

.contact-icon {
  display: flex;

  width: 52px;
  height: 52px;

  align-items: center;
  justify-content: center;

  margin: 0 auto 10px;

  background: #fff;

  border: 1px solid #e3dbed;
  border-radius: 50%;

  color: #7557cf;

  font-size: 23px;

  box-shadow:
    0 5px 14px rgba(64, 48, 85, .08);
}

.contact-card h2 {
  margin: 0;

  color: #3c3542;

  font-size: 21px;
}

.contact-card p {
  max-width: 620px;

  margin: 10px auto 18px;

  color: #6f6573;

  font-size: 13px;
  line-height: 1.8;
}

.contact-main-button {
  display: inline-flex;

  min-height: 43px;

  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 7px 20px;

  background:
    linear-gradient(135deg,
      #7659dc,
      #a652dc);

  border-radius: 10px;

  color: #fff;

  font-size: 13px;
  font-weight: 800;
}

.contact-main-button span {
  font-size: 14px;
}

.contact-note {
  margin-top: 14px;

  padding: 18px 20px;

  background: #fff;

  border: 1px solid #ebe6f0;
  border-radius: 14px;
}

.contact-note h2 {
  margin: 0 0 5px;

  color: #403943;

  font-size: 16px;
}

.contact-note p {
  margin: 0;

  color: #6d646f;

  font-size: 13px;
  line-height: 1.8;
}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

  .legal-intro {
    padding: 16px;
  }

  .legal-intro h2 {
    font-size: 18px;
  }

  .legal-intro p {
    font-size: 13px;
  }

  .legal-section {
    margin-top: 10px;
    padding: 15px;
  }

  .legal-section h2 {
    font-size: 16px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 13px;
  }

  .operator-info>div {
    grid-template-columns:
      85px minmax(0, 1fr);
  }

  .operator-info dt {
    font-size: 11px;
  }

  .operator-info dd {
    font-size: 12px;
  }

  .contact-card {
    padding: 23px 16px;
  }

  .contact-card h2 {
    font-size: 19px;
  }

  .contact-icon {
    width: 46px;
    height: 46px;

    font-size: 20px;
  }

  .contact-note {
    padding: 15px;
  }
}