/*
Theme Name: Hima Uraaka
Theme URI: 
Author: 暇な会社員
Description: 「暇な会社員の裏垢」専用テーマ。白ベース×くすみローズの大人向けレビューサイト用。
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hima-uraaka
*/

/* 暇な会社員の裏垢 v5
   コンセプト: 退勤後の日記
   - 白ベース + くすみローズ（ピンクはアクセントのみ）
   - Zen Maru Gothic（見出し）/ Noto Sans JP（本文）
   - CSSイラスト廃止 → 月モチーフSVG
   - script.js のクラスフックは v4 と互換
*/

:root {
  --paper: #faf7f5;
  --card: #ffffff;
  --ink: #38302f;
  --text: #4d4543;
  --muted: #9b8e8c;
  --line: #eee4e2;
  --rose: #c4607a;
  --rose-deep: #a64a62;
  --rose-mist: #faeef1;
  --night: #332b2e;
  --radius: 12px;
  --shadow: 0 1px 4px rgba(56, 48, 47, .05);
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- 注意帯 ---- */

.top-notice {
  background: var(--night);
  color: #e9dfe2;
  text-align: center;
}

.top-notice p {
  margin: 0;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: .04em;
}

.top-notice strong {
  color: #fff;
  font-weight: 700;
}

/* ---- ヘッダー ---- */

.site-header {
  position: relative;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 20px 22px;
  text-align: center;
}

.site-title {
  display: inline-block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
}

.site-title .moon {
  display: inline-block;
  width: .5em;
  height: .5em;
  margin-left: .25em;
  vertical-align: .08em;
}

.site-title .moon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-description {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .06em;
}

.menu-button {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}

.menu-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  border-top: 2px solid var(--rose);
  border-bottom: 2px solid var(--rose);
}

.menu-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  border-top: 2px solid var(--rose);
}

.menu-button[aria-expanded="true"] .menu-icon {
  border-color: transparent;
}

.menu-button[aria-expanded="true"] .menu-icon::before {
  top: 3px;
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  border-top: 2px solid var(--rose);
  transform: rotate(-45deg);
}

/* ---- ナビ ---- */

.global-nav {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 3vw, 34px);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.global-nav a {
  position: relative;
  padding: 13px 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .05em;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--rose);
  transform: translateX(-50%);
  transition: width .2s ease;
}

.global-nav a:hover::after,
.global-nav a.is-current::after {
  width: 70%;
}

.global-nav a.is-current {
  color: var(--rose-deep);
  font-weight: 700;
}

/* ---- ページ枠 ---- */

main.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

/* ---- ヒーロー ---- */

.hero-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-illust {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rose-mist);
}

.hero-illust svg {
  width: 58%;
  height: auto;
}

.small-label {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .02em;
}

.hero-copy > p {
  margin: 12px 0 0;
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background .15s ease;
}

.btn-primary:hover {
  background: var(--rose-deep);
}

/* ---- コンテンツボックス ---- */

.content-box,
.side-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content-box {
  margin-top: 24px;
}

.box-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 12px;
}

.box-head h2,
.side-box h2,
.about-box h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
}

.box-head h2::after,
.about-box h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--rose);
}

.box-head a {
  color: var(--rose);
  font-size: 12.5px;
  font-weight: 700;
}

.box-head a:hover {
  color: var(--rose-deep);
}

/* ---- レビュー行（日記エントリ風）---- */

.review-row {
  display: grid;
  grid-template-columns: 64px 148px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}

.entry-date {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 1px;
  padding-top: 4px;
  font-family: var(--font-display);
  line-height: 1.2;
}

.entry-date .d {
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
}

.entry-date .m,
.entry-date .y {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}

.entry-date .m {
  color: var(--rose);
  font-weight: 700;
}

.review-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--rose-mist), #f3e8ea);
  color: #cfa9b2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.review-content h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .01em;
}

.review-content h3 a {
  color: var(--ink);
}

.review-content h3 a:hover {
  color: var(--rose-deep);
}

.review-content p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.read-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 700;
}

.read-link::after {
  content: " →";
}

.read-link:hover {
  color: var(--rose-deep);
}

.list-more {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.list-more a {
  display: inline-flex;
  min-width: 230px;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--rose);
  border-radius: 999px;
  color: var(--rose);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  transition: background .15s ease, color .15s ease;
}

.list-more a:hover {
  background: var(--rose);
  color: #fff;
}

/* ---- このサイトについて ---- */

.about-box {
  padding: 24px 26px 28px;
}

.about-box p {
  margin: 14px 0 0;
  font-size: 14px;
}

/* ---- サイドバー ---- */

.sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.side-box h2 {
  padding: 14px 18px 10px;
}

.side-box h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 5px;
  border-radius: 3px;
  background: var(--rose);
}

.profile-box {
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin: 10px auto 12px;
  border-radius: 50%;
  background: var(--rose-mist);
}

.avatar svg {
  width: 52%;
  height: auto;
}

.profile-box h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
}

.profile-box > p {
  margin: 10px 20px;
  text-align: left;
  font-size: 13px;
}

.profile-list {
  margin: 14px 20px 22px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.profile-list div {
  display: grid;
  grid-template-columns: 64px 1fr;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.profile-list dt {
  color: var(--muted);
  font-weight: 500;
}

.profile-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.ranking-box ol {
  margin: 0;
  padding: 4px 18px 16px;
  list-style: none;
  counter-reset: ranking;
}

.ranking-box li {
  counter-increment: ranking;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.7;
}

.ranking-box li:last-child {
  border-bottom: 0;
}

.ranking-box li::before {
  content: counter(ranking);
  color: var(--rose);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.ranking-box a {
  color: var(--text);
}

.ranking-box a:hover {
  color: var(--rose-deep);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 3px;
}

.notice-box ul {
  margin: 0;
  padding: 4px 18px 18px 34px;
  color: var(--muted);
  font-size: 12.5px;
}

.notice-box li + li {
  margin-top: 7px;
}

.notice-box li::marker {
  color: var(--rose);
}

/* ---- フッター ---- */

.site-footer {
  background: var(--night);
  color: #fff;
  text-align: center;
  padding: 32px 18px;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 14px;
  font-size: 12.5px;
}

.site-footer a {
  color: #e9dfe2;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer p {
  margin: 0;
  color: #a8989d;
  font-size: 11.5px;
  letter-spacing: .04em;
}

/* ---- 記事ページ ---- */

.article-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.article-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.badge {
  display: inline-flex;
  padding: 2px 11px;
  border: 1px solid var(--rose);
  border-radius: 999px;
  color: var(--rose);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

.article-box h1 {
  margin: 16px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(23px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .01em;
}

.article-lead {
  margin: 18px 0 0;
  font-size: 15.5px;
  font-weight: 500;
}

.work-info {
  display: grid;
  gap: 0;
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.work-info div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 11px 16px;
}

.work-info div:nth-child(odd) {
  background: var(--paper);
}

.work-info span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.work-info strong {
  color: var(--ink);
  font-size: 14px;
}

.article-box h2 {
  margin: 38px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.article-box h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 7px;
  border-radius: 3px;
  background: var(--rose);
}

.article-box p {
  font-size: 14.5px;
}

.cta-box {
  margin-top: 36px;
  padding: 26px 22px;
  background: var(--rose-mist);
  border-radius: 10px;
  text-align: center;
}

.cta-box p {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.cta-box .btn-primary {
  margin-top: 0;
}

.cta-box small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11.5px;
}

/* ---- レスポンシブ ---- */

@media (max-width: 960px) {
  main.page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 24px 100px 16px 20px;
    text-align: left;
  }

  .site-description {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .global-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% - 1px);
    z-index: 30;
    flex-direction: column;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 14px 28px rgba(56, 48, 47, .14);
    overflow: hidden;
  }

  .global-nav.is-open {
    display: flex;
  }

  .global-nav a {
    width: 100%;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .global-nav a:last-child {
    border-bottom: 0;
  }

  .global-nav a::after {
    display: none;
  }

  .global-nav a.is-current {
    background: var(--rose-mist);
  }

  .hero-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-illust {
    width: 128px;
  }

  .tag-list {
    justify-content: center;
  }

  .review-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .entry-date {
    grid-row: 1 / 3;
  }

  .review-thumb {
    grid-column: 2;
    max-width: 280px;
  }

  .review-content {
    grid-column: 2;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .site-title {
    font-size: 24px;
  }

  main.page {
    padding: 20px 14px 40px;
  }

  .hero-card,
  .about-box {
    padding: 20px;
  }

  .review-row {
    padding: 16px 16px;
    gap: 14px;
  }

  .work-info div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---- 年齢確認ゲート ---- */

body.gate-open {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(51, 43, 46, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.age-gate[hidden] {
  display: none;
}

.gate-card {
  width: min(440px, 100%);
  padding: clamp(28px, 6vw, 44px) clamp(22px, 5vw, 38px);
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(51, 43, 46, .35);
  text-align: center;
}

.gate-moon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--rose-mist);
}

.gate-moon svg {
  width: 50%;
  height: auto;
}

.gate-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
}

.gate-card .gate-site {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.gate-card .gate-text {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 13.5px;
  line-height: 2;
}

.gate-buttons {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.gate-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .15s ease;
}

.gate-enter:hover {
  background: var(--rose-deep);
}

.gate-leave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.gate-leave:hover {
  color: var(--ink);
  border-color: var(--muted);
}

.gate-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

/* ---- WordPress用追加スタイル ---- */

/* ページネーション */
.pagination {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
}

.pagination .page-numbers.current {
  border-color: var(--rose);
  background: var(--rose);
  color: #fff;
}

.pagination a.page-numbers:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* アイキャッチ画像 */
.review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* 記事本文（ブロックエディタ出力）*/
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-body a:not(.btn-primary) {
  color: var(--rose-deep);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 3px;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--rose);
  background: var(--paper);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.article-body li::marker {
  color: var(--rose);
}

/* 記事下の戻るリンク */
.back-home {
  margin-top: 32px;
  text-align: center;
}

/* 検索結果・記事なし */
.no-posts {
  padding: 32px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

/* ---- カテゴリー・タグ表示 ---- */

.entry-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 10px;
  border: 1px solid var(--rose);
  border-radius: 999px;
  color: var(--rose);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .15s ease, color .15s ease;
}

.cat-chip:hover {
  background: var(--rose);
  color: #fff;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.tag-chip {
  display: inline-flex;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: color .15s ease, border-color .15s ease;
}

.tag-chip:hover {
  color: var(--rose-deep);
  border-color: var(--rose);
}

/* ---- 固定ページ: プロフィール ---- */

.profile-hero {
  text-align: center;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.avatar-lg {
  width: 132px;
  height: 132px;
  margin-bottom: 16px;
}

.profile-hero h1 {
  margin: 0;
}

.profile-tagline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .05em;
}

.profile-detail p {
  font-size: 14.5px;
}

.profile-x {
  margin: 28px 0 8px;
  text-align: center;
}

.profile-x .btn-primary {
  margin-top: 0;
}

.profile-x small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

/* ---- 固定ページ: 人気レビュー（ランキング） ---- */

.rank-row {
  grid-template-columns: 48px 148px minmax(0, 1fr);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--rose-mist);
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.rank-row:nth-of-type(1) .rank-num,
.rank-row:nth-of-type(2) .rank-num,
.rank-row:nth-of-type(3) .rank-num {
  background: var(--rose);
  color: #fff;
}

/* ---- カテゴリークラウド（レビュー一覧ページ上部） ---- */

.cat-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 18px;
}

@media (max-width: 720px) {
  .rank-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }
}

/* ---- 記事ページのアイキャッチ ---- */

.article-thumb {
  margin: 22px 0 0;
}

.article-thumb img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ---- サイドバー: ジャンル ---- */

.side-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 18px 18px;
}

.side-empty {
  margin: 0;
  padding: 4px 18px 18px;
  color: var(--muted);
  font-size: 12.5px;
}

/* ---- 記事タイトル上のタグ ---- */

.entry-tags-top {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.entry-tags-top + h1 {
  margin-top: 10px;
}

/* ---- サイドバー人気レビュー: サムネ付き ---- */

.ranking-box li {
  grid-template-columns: 22px 1fr;
  align-items: start;
}

.side-post {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.side-post-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--rose-mist), #f3e8ea);
}

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

.side-noimage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #cfa9b2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.side-post-title {
  display: block;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text);
}

.side-post:hover .side-post-title {
  color: var(--rose-deep);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 3px;
}

/* ---- コメント欄 ---- */

.comments-area {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}

.comment-reply-title::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--rose);
}

.comment-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.comment-list .comment {
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.comment-list .children {
  list-style: none;
  margin: 12px 0 0;
  padding-left: 24px;
  border-left: 2px solid var(--rose-mist);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink);
}

.comment-author .avatar {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
}

.comment-author .says {
  display: none;
}

.comment-metadata {
  margin: 4px 0 0 45px;
  font-size: 11.5px;
}

.comment-metadata a {
  color: var(--muted);
}

.comment-content {
  margin: 8px 0 0 45px;
  font-size: 14px;
}

.reply {
  margin: 6px 0 0 45px;
  font-size: 12.5px;
}

.reply a {
  color: var(--rose);
  font-weight: 700;
}

.comment-notes {
  color: var(--muted);
  font-size: 12.5px;
}

.comment-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.comment-form p {
  margin: 14px 0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid var(--rose);
  outline-offset: 0;
  border-color: var(--rose);
}

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .15s ease;
}

.comment-form .submit:hover {
  background: var(--rose-deep);
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-form .comment-form-cookies-consent label {
  margin: 0;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---- 広告ブロッカー注意書き ---- */

.adblock-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  text-align: right;
}

/* ---- 応援ブロック ---- */

.support-box {
  margin: 28px 0 8px;
  padding: 24px 22px;
  background: var(--rose-mist);
  border-radius: 12px;
  text-align: center;
}

.support-box h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}

.support-box p {
  margin: 0 0 16px;
  font-size: 13.5px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border: 1px solid var(--rose);
  border-radius: 999px;
  color: var(--rose);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  transition: background .15s ease, color .15s ease;
}

.btn-outline:hover {
  background: var(--rose);
  color: #fff;
}

.side-support {
  margin: 0 20px 20px;
}

.side-support a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--rose);
  border-radius: 999px;
  color: var(--rose);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  transition: background .15s ease, color .15s ease;
}

.side-support a:hover {
  background: var(--rose);
  color: #fff;
}
