/* Kotoria service top / latest / rankings. Loaded only on service-facing listing pages. */
/* ========== Kotoria Home ========== */
.kotoria-home-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(500px, 60vh, 640px);
  margin-bottom: 18px;
  padding: clamp(26px, 4.6vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(166, 124, 82, 0.14);
  border-radius: 24px;
  background: #fff8ef;
  box-shadow: 0 22px 54px rgba(71, 54, 42, 0.1);
}

.kotoria-home-hero::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: url('/kotoria-hero.png') center right / cover no-repeat;
  transform: scale(1.018);
  transform-origin: center;
  pointer-events: none;
}

.kotoria-home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 250, 244, 0.74);
  pointer-events: none;
}

.kotoria-home-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.kotoria-home-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(217, 95, 125, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.kotoria-home-copy h1 {
  font-size: clamp(2.45rem, 6vw, 4.65rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--text);
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.kotoria-home-copy p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.82;
  margin-bottom: 20px;
  max-width: 590px;
}

.kotoria-home-brand-icon {
  width: 72px;
  height: 72px;
  display: block;
  margin-bottom: 14px;
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(71, 54, 42, 0.12);
}

.kotoria-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.kotoria-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kotoria-home-button.primary {
  border-color: transparent;
  background: var(--primary-dark);
  color: #fffaf7;
}

.kotoria-home-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(71, 54, 42, 0.12);
}

.kotoria-home-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 700;
}

.kotoria-home-proof span {
  padding: 7px 10px;
  border: 1px solid rgba(217, 95, 125, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.kotoria-home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border: 1px solid rgba(217, 95, 125, 0.16);
  border-radius: 14px;
  background: #fff8f1;
  color: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(71, 54, 42, 0.08);
}

.kotoria-home-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.kotoria-home-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.kotoria-home-features div {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 6px;
  column-gap: 14px;
  min-height: 92px;
  padding: 17px 19px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 10px 26px rgba(71, 54, 42, 0.055);
}

.kotoria-home-features strong {
  grid-column: 2;
  color: var(--text);
  font-size: 0.95rem;
}

.kotoria-home-features span {
  grid-column: 2;
  color: var(--text-light);
  font-size: 0.84rem;
  line-height: 1.65;
}

.kotoria-home-features .kotoria-home-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .kotoria-home-hero {
    align-items: flex-start;
    min-height: auto;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 18px;
  }

  .kotoria-home-hero::before {
    inset: 0;
    background-position: center top;
    opacity: 0.16;
    transform: none;
  }

  .kotoria-home-hero::after {
    background: rgba(255, 250, 244, 0.9);
  }

  .kotoria-home-copy {
    display: grid;
    width: 100%;
    max-width: none;
    gap: 14px;
  }

  .kotoria-home-brand-icon {
    width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 17px;
  }

  .kotoria-home-eyebrow {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 8px 12px;
    border-color: rgba(166, 124, 82, 0.16);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-light);
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .kotoria-home-copy h1 {
    max-width: 8em;
    margin: 0;
    font-size: clamp(2.15rem, 11vw, 3.05rem);
    line-height: 1.08;
  }

  .kotoria-home-copy > p:not(.kotoria-home-eyebrow) {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.78;
  }

  .kotoria-home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
  }

  .kotoria-home-button {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .kotoria-home-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    font-size: 0.82rem;
  }

  .kotoria-home-proof span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 8px;
    text-align: center;
  }

  .kotoria-home-features,
  .kotoria-home-usecases,
  .kotoria-home-steps {
    grid-template-columns: 1fr;
  }

  .kotoria-home-features div,
  .kotoria-home-usecase,
  .kotoria-home-step {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    min-height: 0;
    padding: 16px;
  }

  .kotoria-home-features strong,
  .kotoria-home-usecase strong,
  .kotoria-home-step strong {
    font-size: 1rem;
    line-height: 1.45;
  }

  .kotoria-home-features span,
  .kotoria-home-usecase p,
  .kotoria-home-step p {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .kotoria-home-features .kotoria-home-icon,
  .kotoria-home-usecase .kotoria-home-icon,
  .kotoria-home-step .kotoria-home-icon {
    width: 44px;
    height: 44px;
  }
}

.kotoria-home-section {
  margin: 38px 0 0;
}

.kotoria-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.kotoria-home-section-head h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.28;
}

.kotoria-home-section-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.18;
}

.kotoria-home-section-head p {
  color: var(--text-light);
  max-width: 520px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .kotoria-home-section-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    justify-content: start;
    gap: 8px;
    text-align: left;
  }

  .kotoria-home-section-head h1,
  .kotoria-home-section-head h2,
  .kotoria-home-section-head p {
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .kotoria-home-section-head h2 {
    font-size: 1.38rem;
  }
}

.kotoria-home-section-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(71, 54, 42, 0.06);
  white-space: nowrap;
}

.kotoria-home-section-link:hover {
  transform: translateY(-1px);
  border-color: rgba(194, 80, 119, 0.34);
  box-shadow: 0 12px 26px rgba(71, 54, 42, 0.1);
}

.kotoria-latest-page {
  margin-top: 28px;
}

.kotoria-home-usecases,
.kotoria-home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kotoria-home-usecase,
.kotoria-home-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  align-content: start;
  column-gap: 14px;
  min-height: 148px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.kotoria-home-usecase strong,
.kotoria-home-step strong {
  display: block;
  grid-column: 2;
  margin-bottom: 6px;
  font-size: 1.08rem;
  color: var(--text);
}

.kotoria-home-usecase p,
.kotoria-home-step p {
  grid-column: 2;
  color: var(--text-light);
  line-height: 1.72;
  font-size: 0.9rem;
}

.kotoria-home-usecase .kotoria-home-icon,
.kotoria-home-step .kotoria-home-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  margin-bottom: 0;
}

.kotoria-home-step-number {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f8d7df;
  color: var(--primary-dark);
  font-weight: 900;
}

.kotoria-home-latest {
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(71, 54, 42, 0.08);
}

.kotoria-home-latest .post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.kotoria-home-latest .post-card .card-link {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  height: 100%;
  min-height: 150px;
}

.kotoria-home-latest .post-card .card-thumbnail {
  width: 132px;
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  padding: 0;
  border-radius: 18px 0 0 18px;
  border-right: 1px solid rgba(224, 207, 194, 0.7);
  border-bottom: 0;
  background: #fff8f1;
}

.kotoria-home-latest .post-card .card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.kotoria-home-latest .post-card .card-title {
  font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.04rem;
  line-height: 1.52;
  min-height: 0;
  margin-bottom: 0;
  font-weight: 800;
  letter-spacing: 0;
  -webkit-line-clamp: 2;
}

.kotoria-home-latest .post-card .card-blog-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  justify-self: start;
  width: auto;
  max-width: min(100%, 360px);
  min-height: 28px;
  padding: 3px 10px 3px 4px;
  border: 1px solid rgba(194, 80, 119, 0.18);
  border-radius: 999px;
  background: rgba(255, 246, 249, 0.88);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kotoria-home-latest .post-card .card-blog-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(194, 80, 119, 0.16);
  background: #fff;
  flex: 0 0 auto;
}

.kotoria-home-latest .post-card .card-blog-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kotoria-home-latest .post-card {
  border-color: rgba(224, 207, 194, 0.82);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(71, 54, 42, 0.075);
  background: rgba(255, 255, 255, 0.94);
  height: 100%;
}

.kotoria-home-latest .post-card .card-inner {
  display: grid;
  grid-template-rows: 28px minmax(48px, auto) 26px 24px;
  align-content: stretch;
  gap: 10px;
  min-height: 0;
  padding: 14px 16px;
  justify-content: flex-start;
}

.kotoria-home-latest .post-card .card-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  padding-top: 0;
}

.kotoria-home-latest .post-card .card-tags {
  display: flex;
  flex-wrap: nowrap;
  margin-top: 0;
  padding-top: 0;
  gap: 6px;
  min-height: 24px;
  overflow: hidden;
}

.kotoria-home-latest .post-card .card-tags:empty {
  visibility: hidden;
}

.kotoria-home-latest .post-card .card-thumbnail .placeholder-image {
  background: #f6f4f1;
}

.kotoria-home-latest .post-card .card-thumbnail .placeholder-image.kotoria-emoji-thumbnail {
  font-size: clamp(4rem, 7vw, 6rem);
  background: #fff8ef;
}

.kotoria-home-bloggers {
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(71, 54, 42, 0.07);
}

.kotoria-home-trending {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(71, 54, 42, 0.07);
}

.kotoria-home-trending-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kotoria-home-trending-link {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 80px;
  border: 1px solid rgba(224, 207, 194, 0.86);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.9);
  color: inherit;
  padding: 11px 12px;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.kotoria-home-trending-link:hover {
  transform: translateY(-1px);
  border-color: rgba(206, 97, 130, 0.32);
  box-shadow: 0 12px 24px rgba(71, 54, 42, 0.08);
}

.kotoria-home-trending-rank {
  position: absolute;
  left: 12px;
  top: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 38px;
  height: 38px;
  padding: 5px 0 0 8px;
  border-radius: 12px 0 0 0;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  text-shadow: 0 1px 2px rgba(138, 49, 80, 0.22);
}

.kotoria-home-trending-list li:nth-child(n + 4) .kotoria-home-trending-rank {
  background: var(--accent);
  text-shadow: 0 1px 2px rgba(126, 77, 20, 0.22);
}

.kotoria-home-trending-thumb {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid rgba(166, 124, 82, 0.14);
  border-radius: 12px;
  background: #fff8f1;
  color: var(--primary-dark);
  font-size: 1.55rem;
  font-weight: 900;
}

.kotoria-home-trending-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kotoria-home-trending-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.kotoria-home-trending-body strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.42;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kotoria-home-trending-body small {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.35;
  min-width: 0;
}

.kotoria-home-blogger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.kotoria-home-blogger-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 13px 14px;
  border: 1px solid rgba(224, 207, 194, 0.9);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.92);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.kotoria-home-blogger-card.is-top {
  border-color: rgba(190, 137, 49, 0.28);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 28px rgba(71, 54, 42, 0.09);
}

.kotoria-home-blogger-card.is-rank-2 {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 253, 248, 0.96);
}

.kotoria-home-blogger-card.is-rank-3 {
  border-color: rgba(180, 120, 72, 0.32);
  background: rgba(255, 253, 248, 0.96);
}

.kotoria-home-blogger-card:hover {
  transform: translateY(-1px);
  border-color: rgba(206, 97, 130, 0.32);
  box-shadow: 0 12px 24px rgba(71, 54, 42, 0.08);
}

.kotoria-home-blogger-thumb {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff8f1;
}

.kotoria-home-blogger-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kotoria-home-blogger-rank {
  position: absolute;
  left: -2px;
  top: -2px;
  z-index: 2;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 40px;
  height: 40px;
  padding: 7px 0 0 10px;
  border-radius: 16px 0 0 0;
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(138, 49, 80, 0.22);
}

.kotoria-home-blogger-card.is-rank-1 .kotoria-home-blogger-rank {
  background: var(--accent);
  text-shadow: 0 1px 2px rgba(126, 77, 20, 0.24);
}

.kotoria-home-blogger-card.is-rank-2 .kotoria-home-blogger-rank {
  background: #8fb9e7;
  text-shadow: 0 1px 2px rgba(71, 85, 105, 0.22);
}

.kotoria-home-blogger-card.is-rank-3 .kotoria-home-blogger-rank {
  background: #d99a63;
  text-shadow: 0 1px 2px rgba(126, 77, 20, 0.22);
}

.kotoria-home-blogger-card.is-top .kotoria-home-blogger-thumb {
  border: 2px solid rgba(214, 156, 47, 0.34);
  box-shadow: 0 8px 16px rgba(71, 54, 42, 0.08);
}

.kotoria-home-blogger-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.kotoria-home-blogger-body strong {
  color: var(--primary-dark);
  font-size: 0.98rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kotoria-home-blogger-body small {
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.kotoria-home-section-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.kotoria-home-final {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 36px 0 4px;
  padding: 30px 22px;
  border-radius: 20px;
  background: #2f2924;
  color: #fffaf4;
  text-align: center;
}

.kotoria-home-final h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.4;
}

.kotoria-home-final p {
  color: rgba(255, 250, 244, 0.82);
  line-height: 1.8;
}

.kotoria-home-final .kotoria-home-button {
  border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 520px) {
  .kotoria-home-latest,
  .kotoria-home-trending,
  .kotoria-home-bloggers {
    padding: 14px;
  }

  .kotoria-home-latest .post-card .card-link {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .kotoria-home-latest .post-card .card-thumbnail {
    width: 104px;
    min-width: 104px;
  }

  .kotoria-home-latest .post-card .card-inner {
    padding: 12px;
  }

  .kotoria-home-trending-list,
  .kotoria-home-blogger-grid {
    grid-template-columns: 1fr;
  }

  .kotoria-home-trending-link,
  .kotoria-home-blogger-card {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .kotoria-home-features,
  .kotoria-home-usecases,
  .kotoria-home-steps {
    grid-template-columns: 1fr;
  }

  .kotoria-home-features div,
  .kotoria-home-usecase,
  .kotoria-home-step {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 0;
    padding: 16px;
  }

  .kotoria-home-usecase strong,
  .kotoria-home-step strong {
    margin-bottom: 4px;
  }

  .kotoria-home-section {
    margin-top: 30px;
  }

  .kotoria-home-final {
    padding: 24px 18px;
  }
}
