:root {
  --primary: #d95f7d;
  --primary-dark: #a94f68;
  --primary-light: #f8d7df;
  --secondary: #4f8a75;
  --accent: #d99a45;
  --bg: #fffaf4;
  --bg-card: #ffffff;
  --text: #2f2924;
  --text-light: #756a61;
  --text-muted: #a9998f;
  --border: #eadfd4;
  --shadow: 0 8px 26px rgba(71, 54, 42, 0.07);
  --shadow-hover: 0 14px 34px rgba(71, 54, 42, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 222, 194, 0.45), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(195, 228, 214, 0.42), transparent 30rem),
    #f4f1ec;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
}

a { color: var(--primary-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

/* ========== Site Wrapper ========== */
.site-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(234, 223, 212, 0.7), 0 30px 90px rgba(71, 54, 42, 0.08);
  min-height: 100vh;
  overflow-x: clip;
}

/* ========== Header ========== */
header {
  background: rgba(255, 252, 247, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

header a {
  display: inline-flex;
}

/* ========== Search Widget ========== */
.search-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.search-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.search-widget-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.search-widget-icon {
  font-size: 1.1rem;
}

.sidebar-search-form {
  display: flex;
  gap: 0;
}

.sidebar-search-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.sidebar-search-form input:focus {
  border-color: var(--primary);
}

.sidebar-search-form input::placeholder {
  color: var(--text-muted);
}

.sidebar-search-form button {
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-search-form button:hover {
  filter: brightness(1.1);
}

/* ========== Breadcrumbs ========== */
.breadcrumbs {
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: '>';
  margin-left: 8px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-light);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary-dark);
}

.breadcrumbs span {
  color: var(--text);
}

/* ========== Container (2-column) ========== */
.container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 24px 20px;
}

.container.full-width {
  display: block;
  max-width: 1104px;
  margin: 0 auto;
  padding: 22px 20px 38px;
}

/* ========== Main Content ========== */
main {
  background: transparent;
  min-width: 0;
}

/* ========== Sidebar ========== */
.sidebar {
  min-width: 0;
}

/* Responsive: 1 column on mobile */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 4px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ========== 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:
    linear-gradient(90deg, rgba(255, 250, 244, 0.98) 0%, rgba(255, 250, 244, 0.94) 35%, rgba(255, 250, 244, 0.44) 66%, rgba(255, 250, 244, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.08) 0%, rgba(255, 250, 244, 0.08) 62%, rgba(255, 250, 244, 0.72) 100%);
  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: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  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:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.94), transparent 60%),
    linear-gradient(145deg, #fff3e5 0%, #f9d7df 100%);
  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;
}

.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;
}

.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:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 247, 0.86)),
    radial-gradient(circle at 12% 0%, rgba(255, 226, 236, 0.42), transparent 28rem);
  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:
    radial-gradient(circle at 48% 20%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(135deg, #fff7ef 0%, #fff2f8 53%, #eff8f2 100%);
}

.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:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(135deg, #f6f4f1 0%, #eeeae4 100%);
}

.kotoria-home-latest .post-card .card-thumbnail .placeholder-image.kotoria-emoji-thumbnail {
  font-size: clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 44% 28%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(135deg, #fff8ef 0%, #fff4f8 50%, #eef8f3 100%);
}

.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:
    linear-gradient(135deg, rgba(255, 246, 249, 0.62), rgba(246, 252, 249, 0.66)),
    rgba(255, 255, 255, 0.86);
  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: linear-gradient(135deg, #ff6f89 0%, #ff9eac 100%);
  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: linear-gradient(135deg, #e6b764 0%, #f5d38a 100%);
  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:
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.92), transparent 35%),
    linear-gradient(135deg, rgba(255, 246, 249, 0.9), rgba(246, 252, 249, 0.9));
  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 {
  overflow: hidden;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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:
    radial-gradient(circle at 6% 18%, rgba(255, 236, 179, 0.34), transparent 36%),
    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:
    radial-gradient(circle at 6% 18%, rgba(226, 232, 240, 0.42), transparent 36%),
    rgba(255, 253, 248, 0.96);
}

.kotoria-home-blogger-card.is-rank-3 {
  border-color: rgba(180, 120, 72, 0.32);
  background:
    radial-gradient(circle at 6% 18%, rgba(251, 215, 178, 0.34), transparent 36%),
    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:
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.92), transparent 35%),
    linear-gradient(135deg, rgba(255, 246, 249, 0.9), rgba(246, 252, 249, 0.9));
}

.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: linear-gradient(135deg, #ff6f89 0%, #ff9eac 100%);
  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: linear-gradient(135deg, #f6c95f 0%, #f7a84c 100%);
  text-shadow: 0 1px 2px rgba(126, 77, 20, 0.24);
}

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

.kotoria-home-blogger-card.is-rank-3 .kotoria-home-blogger-rank {
  background: linear-gradient(135deg, #d99a63 0%, #efbd8a 100%);
  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:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.12), transparent 18rem),
    linear-gradient(135deg, #2f2924 0%, #4f8a75 100%);
  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);
}

/* ========== Post List (Card Grid) ========== */
.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.post-card .card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.post-card .card-thumbnail {
  flex-shrink: 0;
  width: 130px;
  min-height: 130px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.post-card .card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card:hover .card-thumbnail img {
  transform: scale(1.05);
}

.post-card .card-thumbnail img.error {
  display: none;
}

.post-card .card-thumbnail.no-image .placeholder-image,
.post-card .card-thumbnail .placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
}

.post-card .card-thumbnail .placeholder-image svg {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.post-card .card-thumbnail .placeholder-image span {
  font-size: 0.7rem;
  margin-top: 4px;
  opacity: 0.6;
}

.post-card .card-thumbnail .placeholder-image.kotoria-emoji-thumbnail {
  background: radial-gradient(circle at 30% 20%, #fff8e8 0%, #fff4f8 44%, #edf8f2 100%);
  color: #2f2925;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
}

.post-card .card-inner {
  flex: 1;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
}

.post-card .card-title-link {
  text-decoration: none;
  color: inherit;
}

.post-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .card-title-link:hover .card-title {
  color: var(--primary-dark);
}

.post-card .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 0;
}

.post-card .card-meta .date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-card .card-meta .comment-count {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
}

.post-card .card-category {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 238, 245, 0.86);
  color: var(--primary-dark);
  font-weight: 700;
}

.post-card .card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.post-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
}

.post-card .card-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 10px;
  background: rgba(255, 107, 157, 0.12);
  color: var(--primary);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== Tags ========== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tags a {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 20px;
  transition: all 0.2s;
  text-decoration: none;
}

.tags a:nth-child(5n+1) { background: #fce4ec; color: #c2185b; }
.tags a:nth-child(5n+2) { background: #e8eaf6; color: #3949ab; }
.tags a:nth-child(5n+3) { background: #e0f7fa; color: #00838f; }
.tags a:nth-child(5n+4) { background: #fff3e0; color: #e65100; }
.tags a:nth-child(5n+5) { background: #f3e5f5; color: #7b1fa2; }

.tags a:hover {
  transform: scale(1.05);
  filter: brightness(0.95);
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-decoration: none;
}

.pagination a {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.pagination a:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.pagination .current {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
}

/* ========== Post Detail ========== */
.post-detail {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.post-header {
  padding: 24px;
  background: var(--bg-card);
}

.post-header.has-thumbnail {
  padding: 0;
}

.post-header-card {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffeef4 0%, #f5f0ff 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: none;
}

.post-header-content {
  flex: 1;
  padding: 24px;
}

.post-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
  text-align: left;
}

.post-header .post-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.post-meta-comments {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.post-meta-comments:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.post-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.header-tag {
  display: inline-block;
  padding: 5px 12px;
  background: linear-gradient(135deg, #fff0f3 0%, #ffe4ec 100%);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.header-tag:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.post-thumbnail {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  padding: 32px;
  line-height: 1.9;
  font-size: 1rem;
}

.post-content p {
  margin-bottom: 1.5em;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 1em 0;
}

.post-content blockquote {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 1.5em 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}

.post-content a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-underline-offset: 2px;
}

.post-content a:hover {
  text-decoration-color: var(--primary-dark);
}

.source-link {
  margin: 0 32px 32px;
  padding: 16px 20px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.source-link strong {
  color: var(--text-light);
  margin-right: 8px;
}

/* ========== Post Tags ========== */
.post-tags {
  margin: 0 32px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tag {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 100%);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid rgba(219, 39, 119, 0.2);
  transition: all 0.2s ease;
}

.post-tag:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ========== Materials Promo ========== */
.materials-promo {
  margin: 0 32px 20px;
  text-align: right;
}

.materials-promo a {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: none;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 4px;
  transition: all 0.2s;
}

.materials-promo a:hover {
  color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

/* ========== SNS Share Buttons ========== */
.share-buttons {
  margin: 0 32px 32px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.share-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.share-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.share-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-twitter {
  background: #000;
}

.share-facebook {
  background: #1877f2;
}

.share-line {
  background: #00c300;
}

.share-hatena {
  background: #00a4de;
}

.share-copy {
  background: var(--text-light);
  color: #fff;
}

.share-copy:hover {
  background: var(--text);
}

/* コピー完了トースト */
.copy-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s;
  z-index: 9999;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .share-buttons {
    margin: 0 16px 24px;
    padding: 16px;
  }

  .share-btn {
    width: 40px;
    height: 40px;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.2s;
}

.back-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

/* ========== Article RSS Frames ========== */
.article-rss-frame {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 20px 0;
}

.article-rss-frame .frame-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.article-rss-frame .frame-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 400px;
  overflow-y: auto;
}

.article-rss-frame .frame-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.article-rss-frame .frame-item-favicon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.article-rss-frame .frame-item-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.article-rss-frame .frame-item:last-child {
  border-bottom: none;
}

.article-rss-frame .frame-item:hover {
  color: var(--primary);
}

.article-rss-top {
  margin: 0 0 20px 0;
}

.article-rss-bottom {
  margin: 24px 0;
}

@media (max-width: 640px) {
  .article-rss-top {
    margin: 0 0 16px 0;
  }

  .article-rss-frame {
    padding: 16px;
  }

  .article-rss-frame .frame-item {
    padding: 10px 0;
    font-size: 0.85rem;
  }
}

/* ========== Related Posts ========== */
.related-posts {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 24px;
}

.related-posts h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

.related-post-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.related-post-card:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  color: inherit;
}

.related-post-card:hover h3 {
  color: var(--text);
}

.related-post-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-thumb.no-thumb {
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-light);
}

.related-post-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-post-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.related-post-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ========== Tag Page ========== */
.tag-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tag-count {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* ========== Footer ========== */
.site-footer {
  margin-top: 40px;
  padding: 24px 20px 30px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 230, 238, 0.38), transparent 18rem),
    radial-gradient(circle at 92% 12%, rgba(206, 235, 224, 0.4), transparent 18rem),
    linear-gradient(180deg, rgba(255, 250, 246, 0.96), rgba(255, 255, 255, 0.99)),
    var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 12px 0 0;
}

.footer-brand-link {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-brand-link:hover {
  color: var(--primary-dark);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 0;
}

.site-footer-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-light);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer-link + .site-footer-link::before {
  content: "|";
  color: rgba(131, 111, 98, 0.44);
  font-weight: 500;
  margin-right: 14px;
}

.site-footer-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.group-feed-footer {
  width: min(920px, calc(100% - 48px));
  box-sizing: border-box;
  max-width: 920px;
  margin: 34px auto 22px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 244, 0.88)),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 16px 40px rgba(82, 62, 46, 0.08);
}

.group-feed-footer[hidden] {
  display: none;
}

.group-feed-footer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.group-feed-footer-eyebrow {
  margin: 0 0 2px;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.group-feed-footer-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.group-feed-footer-cta {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.group-feed-footer-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.group-feed-footer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.group-feed-footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.group-feed-footer-link:hover {
  background: #fff;
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.group-feed-footer-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(224, 207, 194, 0.72);
  border-radius: 12px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(135deg, #fff7fb 0%, #eef8f3 100%);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.group-feed-footer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.group-feed-footer-text {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 22px 16px 28px;
  }

  .site-footer-links {
    gap: 7px 10px;
  }

  .site-footer-link {
    font-size: 0.82rem;
  }

  .site-footer-link + .site-footer-link::before {
    margin-right: 10px;
  }

  .group-feed-footer {
    width: min(100%, calc(100% - 28px));
    margin: 28px auto 18px;
    padding: 14px;
    border-radius: 18px;
  }

  .group-feed-footer-header {
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .group-feed-footer-title {
    font-size: 0.96rem;
  }

  .group-feed-footer-cta {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.78rem;
  }

  .group-feed-footer-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .group-feed-footer-link {
    min-height: 64px;
    gap: 9px;
    padding: 7px 9px;
  }

  .group-feed-footer-thumb {
    width: 50px;
    height: 50px;
    border-radius: 11px;
  }

  .group-feed-footer-text {
    font-size: 0.84rem;
    line-height: 1.45;
  }
}

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 38px 18px;
  color: var(--text-light);
}

.empty-state p {
  font-size: 0.98rem;
}

/* ========== Responsive ========== */
@media (max-width: 640px) {
  .header-inner {
    padding: 12px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .site-brand {
    flex: 1 1 100%;
  }

  .site-logo {
    font-size: 1.25rem;
  }

  .site-logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .site-beta-badge {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .header-nav a,
  .header-nav summary.header-search-link,
  .header-nav button {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 0.82rem;
  }

  .header-search-popover {
    left: 0;
    right: auto;
    width: min(420px, calc(100vw - 32px));
  }

  .container {
    padding: 16px;
  }

  .container.full-width {
    padding: 16px 14px 30px;
  }

  .post-card .card-link {
    flex-direction: column;
  }

  .post-card .card-thumbnail {
    width: 100%;
    height: 180px;
    min-height: 180px;
  }

  .post-card .card-inner {
    padding: 12px 14px;
    min-height: auto;
  }

  .post-card .card-title {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
  }

  .post-header {
    padding: 16px;
  }

  .post-header-card {
    flex-direction: column;
  }

  .post-thumbnail {
    width: 100%;
    height: 180px;
  }

  .post-header-content {
    padding: 16px;
  }

  .post-header h1 {
    font-size: 1.2rem;
  }

  .post-content {
    padding: 24px 16px;
  }

  .source-link {
    margin: 0 16px 24px;
  }

  .post-tags {
    margin: 0 16px 20px;
  }
}
/* ========== Header Banner ========== */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1104px;
  margin: 0 auto;
  padding: 14px 20px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.site-beta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(217, 95, 125, 0.18);
  border-radius: 999px;
  background: rgba(255, 246, 249, 0.86);
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.site-beta-badge:hover {
  background: #ffeef4;
  border-color: rgba(217, 95, 125, 0.34);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.site-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(71, 54, 42, 0.08);
}

.site-logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site-tagline {
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 700;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav a,
.header-nav summary.header-search-link,
.header-nav summary.header-icon-link {
  min-height: 40px;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--text-light);
  font-size: 0.86rem;
  font-weight: 800;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.header-nav button {
  min-height: 40px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(217, 95, 125, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--text-light);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}

.header-nav a:hover,
.header-nav summary.header-search-link:hover {
  background: rgba(217, 95, 125, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.header-nav button:hover {
  background: rgba(217, 95, 125, 0.08);
  border-color: rgba(217, 95, 125, 0.28);
  color: var(--text);
  transform: translateY(-1px);
}

.header-nav a.primary {
  background: var(--text);
  color: #fffaf7;
  box-shadow: 0 8px 18px rgba(47, 41, 36, 0.14);
}

.header-nav a.header-search-link,
.header-nav summary.header-search-link,
.header-nav a.header-icon-link,
.header-nav summary.header-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(166, 124, 82, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.header-nav summary.header-search-link {
  justify-content: center;
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.header-nav summary.header-search-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-search-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-search-menu summary {
  list-style: none;
  cursor: pointer;
}

.header-search-menu summary::-webkit-details-marker {
  display: none;
}

.header-search-menu[open] summary {
  background: #fff6f9;
  border-color: rgba(217, 95, 125, 0.28);
  color: var(--text);
}

.header-search-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  width: min(420px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid rgba(224, 207, 194, 0.82);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(71, 54, 42, 0.16);
}

.header-search-form {
  display: grid;
  gap: 9px;
}

.header-search-form label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
}

.header-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid rgba(224, 207, 194, 0.9);
  border-radius: 999px;
  background: #fffaf7;
}

.header-search-row:focus-within {
  border-color: rgba(217, 95, 125, 0.46);
  box-shadow: 0 0 0 4px rgba(217, 95, 125, 0.1);
}

.header-search-row input {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 16px;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}

.header-search-row button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
}

.header-search-row button:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: none;
}

.header-search-form p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.6;
}

.header-nav a.header-account-link,
.header-nav summary.header-account-link {
  display: inline-flex;
  width: 42px;
  min-width: 42px;
  padding: 0;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 900;
}

.header-account-link img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: none;
}

.header-account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-account-menu summary {
  list-style: none;
  cursor: pointer;
}

.header-account-menu summary::-webkit-details-marker {
  display: none;
}

.header-account-menu[open] summary {
  background: transparent;
  border-color: transparent;
  color: var(--primary-dark);
}

.header-account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 4px;
  width: min(240px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid rgba(224, 207, 194, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(71, 54, 42, 0.16);
}

.header-account-name {
  padding: 8px 10px 10px;
  border-bottom: 1px solid rgba(224, 207, 194, 0.7);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-account-popover a,
.header-account-popover button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 38px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-light);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.header-account-popover a:hover,
.header-account-popover button:hover {
  background: rgba(217, 95, 125, 0.08);
  color: var(--text);
  transform: none;
}

.header-notification-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-notification-menu summary {
  list-style: none;
  cursor: pointer;
}

.header-notification-menu summary::-webkit-details-marker {
  display: none;
}

.header-notification-menu[open] summary {
  background: #fff6f9;
  border-color: rgba(217, 95, 125, 0.3);
  color: var(--text);
}

.header-notification-menu summary.header-icon-link {
  position: relative;
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.header-notification-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-icon-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.header-notification-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 85;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(224, 207, 194, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(71, 54, 42, 0.16);
}

.header-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid rgba(224, 207, 194, 0.7);
}

.header-notification-head strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
}

.header-notification-head span {
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.header-notification-list {
  display: grid;
  gap: 6px;
}

.header-notification-empty {
  margin: 0;
  padding: 12px 6px;
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 800;
}

.header-notification-item {
  display: grid;
  gap: 5px;
  min-height: 0;
  height: auto;
  padding: 10px;
  border: 1px solid rgba(224, 207, 194, 0.58);
  border-radius: 14px;
  background: #fffaf7;
  color: var(--text);
  text-decoration: none;
}

.header-notification-item.unread {
  border-color: rgba(217, 95, 125, 0.22);
  background: #fff6f9;
}

.header-notification-item:hover {
  background: rgba(217, 95, 125, 0.08);
  color: var(--text);
  transform: none;
}

.header-notification-item span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.55;
}

.header-notification-item time {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.header-notification-all {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(224, 207, 194, 0.72);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.header-notification-all:hover {
  background: #fff6f9;
  color: var(--primary-dark);
  transform: none;
}

.header-notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #d95f7d 0%, #b9466b 100%);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 14px rgba(185, 70, 107, 0.24);
}

.member-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.member-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.member-widget-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 0.9rem;
}

.member-widget h3 {
  font-size: 1rem;
}

.member-widget-text {
  color: var(--text-light);
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.member-widget-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.member-widget-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.member-widget-actions .primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.member-widget-actions .secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}

/* ========== Tags Widget ========== */
.tags-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.tags-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.tags-widget-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.tags-widget-icon {
  font-size: 1.1rem;
}

.tags-widget .tags {
  margin-top: 0;
}

/* ========== About Widget ========== */
.about-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.about-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.about-widget-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.about-widget-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 6px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.about-description {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

.about-subsite {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.about-subsite a {
  color: var(--primary-dark);
  font-weight: 500;
}

/* ========== RSS Widget ========== */
.rss-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 20px;
}

.rss-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.rss-widget-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.rss-widget-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, #0097a7 100%);
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
}

.rss-list {
  list-style: none;
}

.rss-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.rss-item:last-child {
  border-bottom: none;
}

.rss-item a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color 0.2s;
}

.rss-favicon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 4px;
}

.rss-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.rss-item a:hover {
  color: var(--primary-dark);
}

.rss-item .site-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== PR in RSS ========== */
.rss-pr {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pr-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  border-radius: 4px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}

.rss-pr a {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar > section,
.sidebar .search-widget,
.sidebar .member-widget,
.sidebar .about-widget,
.sidebar .tags-widget,
.sidebar .popular-widget,
.sidebar .comments-widget,
.sidebar .ranking-widget,
.sidebar .thanks-widget,
.sidebar .rss-widget {
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.sidebar .search-widget-header,
.sidebar .member-widget-header,
.sidebar .about-widget-header,
.sidebar .tags-widget-header,
.sidebar .popular-widget-header,
.sidebar .comments-widget-header,
.sidebar .ranking-widget-header,
.sidebar .thanks-widget-header,
.sidebar .rss-widget-header {
  display: block;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 3px solid #d95f7d;
}

.sidebar .search-widget-icon,
.sidebar .member-widget-icon,
.sidebar .about-widget-icon,
.sidebar .tags-widget-icon,
.sidebar .popular-widget-icon,
.sidebar .comments-widget-icon,
.sidebar .ranking-widget-icon,
.sidebar .thanks-widget-icon,
.sidebar .rss-widget-icon {
  display: none;
}

.sidebar h3 {
  color: #2f2924;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.45;
}

.sidebar .rss-list,
.sidebar .popular-list,
.sidebar .recent-comments-list,
.sidebar .ranking-list,
.sidebar .thanks-list {
  display: grid;
  gap: 0;
}

.sidebar .rss-item,
.sidebar .popular-item,
.sidebar .recent-comment-item,
.sidebar .ranking-item,
.sidebar .thanks-item {
  border-bottom: 1px solid #ead8ca;
  padding: 12px 0;
}

.sidebar .rss-item a,
.sidebar .popular-title,
.sidebar .recent-comment-item a,
.sidebar .ranking-item a,
.sidebar .thanks-item a {
  color: #2f2924;
  font-weight: 900;
  line-height: 1.55;
}

/* ========== Popular Widget ========== */
.popular-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.popular-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.popular-widget-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.popular-widget-icon {
  font-size: 1.2rem;
}

.popular-list {
  list-style: none;
}

.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.popular-item:last-child {
  border-bottom: none;
}

.popular-thumb {
  flex-shrink: 0;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.popular-rank {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 0 0 6px 0;
  z-index: 1;
}

.popular-rank.rank-1 {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.popular-rank.rank-2 {
  background: linear-gradient(135deg, #a8a8a8 0%, #888888 100%);
}

.popular-rank.rank-3 {
  background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
}

.popular-content {
  flex: 1;
  min-width: 0;
}

.popular-title {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.popular-title:hover {
  color: var(--primary-dark);
}

.popular-comment-count {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========== Recent Comments Widget ========== */
.comments-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
}

.comments-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #10b981;
}

.comments-widget-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.comments-widget-icon {
  font-size: 1.2rem;
}

.recent-comments-list {
  list-style: none;
}

.recent-comment-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.recent-comment-item:last-child {
  border-bottom: none;
}

.recent-comment-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.recent-comment-item a:hover {
  opacity: 0.8;
}

.comment-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.comment-preview {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.comment-post-title {
  font-size: 0.75rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ========== Access Ranking Widget ========== */
.ranking-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
}

.ranking-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #8b5cf6;
}

.ranking-widget-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.ranking-widget-icon {
  font-size: 1.2rem;
}

.ranking-list {
  list-style: none;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-rank {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--text-muted);
}

.ranking-rank.rank-1 {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
}

.ranking-rank.rank-2 {
  background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
  box-shadow: 0 2px 6px rgba(192, 192, 192, 0.4);
}

.ranking-rank.rank-3 {
  background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
  box-shadow: 0 2px 6px rgba(205, 127, 50, 0.4);
}

.ranking-item a {
  flex: 1;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.ranking-item a:hover {
  color: var(--primary-dark);
}

/* ========== Special Thanks Widget ========== */
.thanks-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.thanks-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f59e0b;
}

.thanks-widget-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.thanks-widget-icon {
  font-size: 1rem;
}

.thanks-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thanks-item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 20px;
  color: #92400e;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}

.thanks-item a:hover {
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.thanks-favicon {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

.sidebar > section,
.sidebar .search-widget,
.sidebar .member-widget,
.sidebar .about-widget,
.sidebar .tags-widget,
.sidebar .popular-widget,
.sidebar .comments-widget,
.sidebar .ranking-widget,
.sidebar .thanks-widget,
.sidebar .rss-widget {
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.sidebar .search-widget-header,
.sidebar .member-widget-header,
.sidebar .about-widget-header,
.sidebar .tags-widget-header,
.sidebar .popular-widget-header,
.sidebar .comments-widget-header,
.sidebar .ranking-widget-header,
.sidebar .thanks-widget-header,
.sidebar .rss-widget-header {
  display: block;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 3px solid #d95f7d;
}

.sidebar .search-widget-icon,
.sidebar .member-widget-icon,
.sidebar .about-widget-icon,
.sidebar .tags-widget-icon,
.sidebar .popular-widget-icon,
.sidebar .comments-widget-icon,
.sidebar .ranking-widget-icon,
.sidebar .thanks-widget-icon,
.sidebar .rss-widget-icon {
  display: none;
}

.sidebar h3 {
  color: #2f2924;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.45;
}

.sidebar .rss-list,
.sidebar .popular-list,
.sidebar .recent-comments-list,
.sidebar .ranking-list,
.sidebar .thanks-list {
  display: grid;
  gap: 0;
}

.sidebar .rss-item,
.sidebar .popular-item,
.sidebar .recent-comment-item,
.sidebar .ranking-item,
.sidebar .thanks-item {
  border-bottom: 1px solid #ead8ca;
  padding: 12px 0;
}

.sidebar .rss-item:last-child,
.sidebar .popular-item:last-child,
.sidebar .recent-comment-item:last-child,
.sidebar .ranking-item:last-child,
.sidebar .thanks-item:last-child {
  border-bottom: 0;
}

.sidebar .rss-item a,
.sidebar .popular-title,
.sidebar .recent-comment-item a,
.sidebar .ranking-item a,
.sidebar .thanks-item a {
  color: #2f2924;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 900;
  line-height: 1.55;
  padding: 0;
  transform: none;
}

/* ========== Comments Section ========== */
.comments-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 24px;
}

.comments-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.comments-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* コメント投稿フォーム */
.comment-form {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}

.comment-form .form-group {
  margin-bottom: 12px;
}

.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.comment-form textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* コメント一覧 */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.no-comments, .loading-comments {
  text-align: center;
  color: var(--text-light);
  padding: 32px;
  font-size: 0.9rem;
}

/* コメント1件 */
.comment-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comment-number {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.comment-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}

.comment-actions {
  display: flex;
  gap: 8px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.vote-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vote-like {
  color: #e91e63;
}

.vote-like:hover:not(:disabled) {
  background: #fce4ec;
  border-color: #e91e63;
}

.vote-icon {
  font-weight: 700;
  font-size: 1rem;
}

/* 評価に応じたコメント装飾（がるちゃん風） */
.comment-positive {
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 100%);
  border-color: #ffb6c1;
}

.comment-very-positive {
  background: linear-gradient(135deg, #ffe4ec 0%, #ffccd5 100%);
  border-color: #ff69b4;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}

/* 返信ボタン */
.reply-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-light);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.reply-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* 返信インジケーター */
.reply-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--primary-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--primary);
}

.cancel-reply {
  padding: 2px 8px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.cancel-reply:hover {
  color: var(--danger);
}

/* 返信コメント */
.comment-replies {
  margin-top: 12px;
  margin-left: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--primary-light);
}

.comment-item.is-reply {
  background: rgba(255, 255, 255, 0.5);
  padding: 12px;
  margin-bottom: 8px;
}

.comment-item.is-reply .comment-number {
  display: none;
}

.comment-item.is-reply .comment-header::before {
  content: '↳';
  margin-right: 6px;
  color: var(--primary);
}

/* フローティングボタン */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.floating-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, opacity 0.2s, background 0.2s;
}

.floating-btn:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.floating-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .floating-buttons {
    right: 12px;
    bottom: 12px;
  }

  .floating-btn {
    width: 40px;
    height: 40px;
  }

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

  .kotoria-home-hero {
    min-height: 540px;
    padding: 20px;
    border-radius: 20px;
    align-items: flex-end;
  }

  .kotoria-home-features div,
  .kotoria-home-usecase,
  .kotoria-home-step {
    grid-template-columns: 36px 1fr;
    column-gap: 12px;
    min-height: auto;
  }

  .kotoria-home-hero::before {
    background-position: center top;
  }

  .kotoria-home-hero::after {
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.5) 0%, rgba(255, 250, 244, 0.96) 58%, rgba(255, 250, 244, 0.98) 100%);
  }

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

  .kotoria-home-eyebrow {
    font-size: 0.74rem;
  }

  .kotoria-home-copy h1 {
    font-size: clamp(2.22rem, 9.8vw, 2.85rem);
    line-height: 1.14;
    margin-bottom: 14px;
    max-width: 10em;
    word-break: keep-all;
    overflow-wrap: normal;
    line-break: strict;
  }

  .kotoria-home-copy p {
    font-size: 0.9rem;
    line-height: 1.74;
    margin-bottom: 18px;
  }

  .kotoria-home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .kotoria-home-button {
    width: 100%;
  }

  .kotoria-home-copy {
    max-width: 100%;
  }

  .kotoria-home-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .kotoria-home-latest {
    padding: 16px;
  }

  .kotoria-home-latest .post-list {
    gap: 10px;
  }

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

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

  .kotoria-home-latest .post-card .card-thumbnail img {
    object-fit: cover;
    padding: 0;
  }

  .kotoria-home-latest .post-card .card-inner {
    display: grid;
    grid-template-rows: 24px minmax(44px, auto) 24px 22px;
    min-width: 0;
    min-height: 132px;
    padding: 12px;
  }

  .kotoria-home-latest .post-card .card-title {
    font-size: 0.96rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    min-height: 0;
    margin-bottom: 2px;
  }

  .kotoria-home-latest .post-card .card-blog-name {
    min-height: 24px;
    padding: 2px 8px 2px 3px;
    font-size: 0.7rem;
  }

  .kotoria-home-latest .post-card .card-blog-icon {
    width: 19px;
    height: 19px;
  }

  .kotoria-home-latest .post-card .card-meta {
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.72rem;
  }

  .kotoria-home-latest .post-card .card-tags {
    gap: 5px;
    padding-top: 2px;
    min-height: 22px;
  }

  .kotoria-home-latest .post-card .card-tag {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kotoria-home-bloggers {
    margin-bottom: 30px;
    padding: 16px;
  }

  .kotoria-home-trending {
    padding: 16px;
  }

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

  .kotoria-home-blogger-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .header-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .header-nav a,
  .header-nav summary.header-search-link {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .header-nav button {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.82rem;
  }
}

@media (max-width: 430px) {
  .kotoria-home-hero {
    min-height: 500px;
    padding: 18px;
  }

  .kotoria-home-copy h1 {
    font-size: clamp(2.18rem, 10vw, 2.45rem);
    line-height: 1.16;
  }

  .kotoria-home-copy p {
    font-size: 0.88rem;
    line-height: 1.76;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .kotoria-home-latest .post-list {
    grid-template-columns: 1fr;
  }

  .kotoria-home-latest .post-card .card-link {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: 142px;
  }

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

  .kotoria-home-latest .post-card .card-thumbnail img {
    object-fit: cover;
    padding: 0;
  }

  .kotoria-home-latest .post-card .card-inner {
    display: grid;
    grid-template-rows: 28px minmax(48px, auto) 26px 24px;
    min-width: 0;
    min-height: 142px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .site-brand {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    min-width: 0;
    gap: 6px;
  }

  .site-logo {
    min-width: 0;
    gap: 6px;
    font-size: clamp(1rem, 4vw, 1.22rem);
  }

  .site-logo span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-logo-mark {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .site-beta-badge {
    flex: 0 0 auto;
    min-height: 22px;
    padding: 3px 7px;
    font-size: 0.64rem;
  }

  .header-nav {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: auto;
    gap: 6px;
  }

  .header-nav a,
  .header-nav button,
  .header-nav summary.header-search-link,
  .header-nav summary.header-icon-link {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .header-nav summary.header-search-link,
  .header-nav summary.header-icon-link,
  .header-nav summary.header-account-link {
    width: 36px;
    min-width: 36px;
    padding: 0;
  }

  .header-account-link img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 380px) {
  .site-beta-badge {
    display: none;
  }
}
