:root {
  --ink: #191714;
  --muted: #6f6a61;
  --line: #ddd6c8;
  --paper: #fffdf8;
  --soft: #f7f2e8;
  --ai: #1f68d8;
  --gold: #f5bc22;
  --gold-deep: #d89400;
  --red: #d94a38;
  --blue-soft: #eaf4fb;
  --reaction: #d89400;
  --shadow: 0 8px 24px rgba(43, 34, 18, 0.1);
  --inner-min: 0px;
  --inner-max: 1180px;
  --inner-width: 90%;
}

.auth-page {
  width: var(--inner-width);
  min-width: var(--inner-min);
  max-width: var(--inner-max);
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: 56px 0;
}

.auth-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(320px, 420px);
  gap: 48px;
  border: 1px solid rgba(199, 154, 70, 0.48);
  border-radius: 8px;
  background: rgba(255, 254, 251, 0.92);
  box-shadow: var(--shadow);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 8px;
}

.auth-message-card {
  align-self: center;
}

.auth-icon,
.feature-title,
.feature-mobile-label {
  display: none;
}

.auth-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.auth-lead {
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 900;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 15px;
  border: 1px solid #c9c6be;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(25, 23, 20, 0.04);
}

.input-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 188, 34, 0.16);
}

.field-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: #8d877d;
  pointer-events: none;
}

.password-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.password-toggle:hover,
.password-toggle:active,
.password-toggle:focus {
  background: transparent;
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(216, 148, 0, 0.28);
  outline-offset: 4px;
  border-radius: 999px;
}

.remember-login {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 6px;
  color: #4d463c;
  font-size: 13px;
  font-weight: 800;
}

.remember-login input {
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
}

.primary-button {
  width: 100%;
  height: 56px;
  margin-top: 12px;
  border: 0;
  border-radius: 7px;
  color: #15120c;
  background: linear-gradient(180deg, #ffd34f, var(--gold));
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 #d99f10, 0 8px 16px rgba(216, 148, 0, 0.18);
}

.auth-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.forgot-link {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  color: #145bb2;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
}

.auth-register-link {
  display: block;
  width: fit-content;
  margin: 16px auto 0;
  color: #6f5f46;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
}

.divider {
  margin: 28px 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: #4d463c;
  font-size: 13px;
  font-weight: 800;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: rgba(199, 154, 70, 0.45);
}

.social-buttons {
  display: grid;
  gap: 10px;
}

.social-button {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #c9c6be;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  color: #201d18;
  font-size: 14px;
  font-weight: 900;
}

.social-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.social-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.social-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.social-mark.x-mark {
  border-radius: 4px;
  background: #000;
}

.auth-divider {
  width: 1px;
  background: rgba(199, 154, 70, 0.42);
}

.side-copy {
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 10px 0;
}

.auth-feature-banner {
  overflow: hidden;
  border: 1px solid rgba(199, 154, 70, 0.34);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 5px 18px rgba(43, 34, 18, 0.06);
}

.auth-feature-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-panel {
  padding: 18px 22px;
  border: 1px solid rgba(199, 154, 70, 0.34);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 5px 18px rgba(43, 34, 18, 0.06);
}

.feature-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(221, 214, 200, 0.75);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.55;
}

.feature-row:first-child {
  padding-top: 0;
}

.feature-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4ead3;
  color: #2f2a22;
}

.agreement-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.agreement {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: #3d3932;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.agreement input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.agreement a {
  color: #145bb2;
  text-decoration: underline;
}

@media (max-width: 1119px) {
  .auth-page {
    width: 100%;
    min-width: 0;
    padding: 20px 15px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 15px;
  }

  .auth-divider {
    width: 100%;
    height: 1px;
  }

  .side-copy {
    max-width: 420px;
    margin: 0 auto;
    padding: 10px 0;
  }
}

@media (max-width: 640px) {
  .auth-page {
    width: 100%;
    min-width: 0;
    min-height: auto;
    padding: 24px 12px 10px;
  }

  .auth-shell {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .auth-card {
    position: relative;
    max-width: none;
    padding: 96px 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--shadow);
  }

  .auth-message-card {
    align-self: auto;
  }

  .auth-icon {
    position: absolute;
    left: 50%;
    top: 16px;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    transform: translateX(-50%);
    border: 5px solid #fffdf8;
    border-radius: 50%;
    background: #FAF7EE;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(245, 188, 34, 0.35);
  }

  .auth-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .auth-title {
    font-size: 27px;
  }

  .auth-lead {
    margin: 12px 0 28px;
    font-size: 13px;
    font-weight: 800;
  }

  .field {
    margin-bottom: 16px;
  }

  .field label {
    margin-bottom: 8px;
  }

  .input-wrap input {
    height: 50px;
    padding-left: 16px;
    background: #fff;
    font-size: 14px;
  }

  .input-wrap input::placeholder {
    color: #aaa49a;
  }

  .agreement-list {
    gap: 9px;
    margin-top: 7px;
  }

  .agreement {
    grid-template-columns: 20px 1fr;
    gap: 8px;
    font-size: 11px;
    line-height: 1.55;
  }

  .primary-button {
    height: 54px;
    margin-top: 16px;
  }

  .forgot-link {
    margin-top: 14px;
  }

  .auth-register-link {
    margin-top: 16px;
  }

  .divider {
    margin: 24px 6px 18px;
  }

  .social-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .auth-login-page .social-buttons {
    grid-template-columns: 1fr;
  }

  .social-button {
    height: 42px;
    gap: 8px;
    background: rgba(255, 255, 255, 0.88);
    font-size: 12px;
  }

  .auth-divider {
    display: none;
  }

  .side-copy {
    max-width: none;
    margin: 12px 0 0;
    padding: 10px 0;
    gap: 12px;
  }

  .auth-feature-banner {
    border-color: var(--line);
    box-shadow: none;
  }

  .feature-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 8px;
    align-items: start;
    padding: 16px 14px 12px;
    background: #FAF7EE;
    border-color: var(--line);
    box-shadow: none;
  }

  .feature-title {
    grid-column: 1 / -1;
    display: block;
    margin: 0 0 14px;
    color: #333333;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
  }

  .feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    justify-items: center;
    padding: 0;
    border-bottom: 0;
    color: #4f4a42;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
  }

  .feature-icon i {
    font-size: 22px;
    color: var(--gold-deep);
  }

  .feature-copy,
  .feature-row br {
    display: none;
  }

  .feature-mobile-label {
    display: inline;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  letter-spacing: 0;
  background-color: #fbf8ef;
  background-image: url("/image/kabegami_test2.png");
  background-size: 280px auto;
}

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

button,
select,
input {
  font: inherit;
}

.page {
  width: var(--inner-width);
  min-width: var(--inner-min);
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 15px 0 20px;
  background: transparent;
}

.lead {
  margin: 0 0 12px;
}

.lead picture {
  display: block;
  width: 100%;
  aspect-ratio: 1783 / 518;
  overflow: hidden;
  border-radius: 8px;
}

.hero-link {
  display: block;
}

.mobile-hero {
  display: none;
}

.hero-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(221, 214, 200, 0.8);
  border-top: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(43, 34, 18, 0.06);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 16px;
  align-items: start;
  padding: 0 20px;
}

.main-feed {
  min-width: 0;
}

.feed-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
}

.feed-section > .tabs {
  margin: 15px 15px 0;
}

.topic-feed {
  max-width: 100%;
  overflow: hidden;
  margin: 0;
}

.topic-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-padding: var(--topic-side-peek, 12px);
  padding: 0 12px 12px;
  scrollbar-width: none;
}

.topic-carousel::-webkit-scrollbar {
  display: none;
}

.topic-card {
  box-sizing: border-box;
  min-width: 0;
  flex: 0 0 clamp(180px, calc((100% - 140px) / 2), 315px);
  width: clamp(180px, calc((100% - 140px) / 2), 315px);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.97);
  display: flex;
  flex-direction: column;
  padding: 15px;
  transform: translateY(var(--topic-y, 0)) scale(var(--topic-scale, 0.92));
  transform-origin: center center;
  opacity: var(--topic-opacity, 0.82);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.topic-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.topic-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: rgba(111, 106, 97, 0.2);
  padding: 0;
}

.topic-dot.active {
  background: var(--gold);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.section-mark {
  width: 5px;
  height: 34px;
  border-radius: 1px;
  background: var(--gold);
  flex: 0 0 auto;
}

.section-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 900;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.tab {
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  color: #1f1d1a;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(43, 34, 18, 0.08);
}

.tab.active {
  color: var(--gold-deep);
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(216, 148, 0, 0.16);
}

.feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 15px;
}

.feed-grid.boke-tab-panel .boke-card-text {
  margin-right: 0;
  margin-left: 0;
}

.feed-grid.boke-tab-panel .boke-card {
  padding: 8px;
}

.home-boke-more {
  display: flex;
  justify-content: center;
  margin: 0 15px 15px;
}

.home-boke-more-link {
  text-decoration: none;
}

@media (min-width: 641px) {
  .home-page .feed-grid.boke-tab-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .home-page .feed-grid.boke-tab-panel .boke-card-text {
    font-size: clamp(15px, calc(10vw - 5px), 28px);
  }
}

.boke-tab-panel[hidden] {
  display: none;
}

.home-flash {
  margin-bottom: 15px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid rgba(184, 137, 27, 0.34);
  border-radius: 8px;
  background: #fff8df;
  color: #5c4514;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 900;
}

.home-flash i {
  color: #b8891b;
  font-size: 18px;
  line-height: 1;
}

.home-flash-notice {
  border-color: rgba(127, 111, 84, 0.34);
  background: #f8f4ea;
  color: #5d5548;
}

.home-flash-notice i {
  color: #7f6f54;
}

.form-errors {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #d85f4f;
  border-radius: 7px;
  background: #fff5f3;
  color: #8d2418;
  font-size: 13px;
  font-weight: 800;
}

.form-errors p {
  margin: 0;
}

.topic-create-page .main-feed {
  display: block;
}

.post-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.post-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
}

.post-title::before {
  content: "";
  width: 5px;
  height: 34px;
  border-radius: 1px;
  background: var(--gold);
}

.post-lead {
  margin: 8px 0 20px 15px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.post-form {
  display: grid;
  gap: 15px;
}

.upload-zone {
  min-height: 250px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(216, 148, 0, 0.72);
  border-radius: 8px;
  background: rgba(255, 250, 235, 0.46);
  color: #8b671e;
  text-align: center;
  cursor: pointer;
}

.upload-inner {
  display: grid;
  place-items: center;
  gap: 10px;
}

.upload-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(199, 154, 70, 0.75);
  border-radius: 8px;
  color: var(--gold-deep);
  font-size: 38px;
}

.upload-main {
  font-size: 21px;
  font-weight: 900;
}

.upload-sub {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.upload-selected {
  max-width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border: 1px solid rgba(221, 214, 200, 0.9);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.92);
  color: #4d463d;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #191714;
  font-size: 14px;
  font-weight: 900;
}

.required {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(217, 74, 56, 0.45);
  border-radius: 5px;
  color: var(--red);
  background: rgba(255, 245, 242, 0.92);
  font-size: 11px;
  font-weight: 900;
}

.type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.type-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(43, 34, 18, 0.04);
}

.type-card input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--gold-deep);
}

.type-name {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.type-help {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.type-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(255, 248, 226, 0.84);
  box-shadow: 0 4px 14px rgba(216, 148, 0, 0.14);
}

.select-wrap select,
.prompt-field textarea {
  width: 100%;
  border: 1px solid #cfc7b8;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 700;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(25, 23, 20, 0.04);
}

.select-wrap select {
  height: 46px;
  padding: 0 12px;
}

.prompt-field {
  display: none;
  padding: 15px;
  border: 1px dashed rgba(199, 154, 70, 0.55);
  border-radius: 8px;
  background: rgba(255, 250, 235, 0.44);
}

.post-form:has(#type-ai:checked) .prompt-field {
  display: grid;
  gap: 8px;
}

.prompt-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.prompt-field textarea {
  min-height: 132px;
  resize: vertical;
  padding: 12px;
  line-height: 1.7;
}

.consent-list {
  display: grid;
  gap: 10px;
}

.consent-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--gold-deep);
}

.post-submit {
  height: 48px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #f8c742, #e1a70e);
  color: #241a08;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15), 0 5px 14px rgba(216, 148, 0, 0.2);
}

.post-check-list,
.flow-list {
  display: grid;
  gap: 12px;
}

.post-check-item,
.flow-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #3d3932;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}

.post-check-item strong,
.flow-item strong {
  display: block;
  color: #191714;
  font-size: 14px;
  font-weight: 900;
}

.post-check-icon,
.flow-no {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff8df;
  color: var(--gold-deep);
  font-weight: 900;
}

.app-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
}

.app-form-errors {
  display: grid;
  gap: 6px;
  max-width: 420px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #d85f4f;
  border-radius: 7px;
  background: #fff5f3;
  color: #8d2418;
  font-size: 13px;
  font-weight: 800;
}

.app-form-errors p {
  margin: 0;
}

.app-local-mail {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #d9c98e;
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.94);
}

.app-local-mail-label,
.app-local-mail-empty,
.app-local-mail-note {
  margin: 0;
  color: #4f4738;
  font-size: 13px;
  font-weight: 800;
}

.app-local-mail-url {
  overflow-wrap: anywhere;
  color: #145bb2;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
}

.app-inline-form {
  margin: 0;
}

.app-form-link {
  max-width: 420px;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.app-form-link a {
  color: #145bb2;
  text-decoration: underline;
}

.app-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
}

.app-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfc5a7;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}

.app-button {
  width: fit-content;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  background: linear-gradient(180deg, #ffd34f, var(--gold));
  color: #17130c;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 #d99f10;
}

.topic-card-head,
.latest-topic-card-head,
.boke-card-foot,
.boke-user-meta,
.side-panel-head,
.latest-topic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topic-label,
.latest-topic-label {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.topic-label i,
.latest-topic-label i {
  width: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: inherit;
  font-size: 12px;
}

.topic-time,
.latest-topic-time,
.boke-card-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.topic-visual,
.latest-topic-visual,
.odai-visual,
.boke-detail-visual {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.card-visual-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.boke-card-text-link,
.mini-text-link {
  color: inherit;
  text-decoration: none;
}

.boke-card-text-link {
  display: inline-block;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.topic-visual {
  aspect-ratio: 16 / 10;
  margin: 10px 0;
}

.latest-topic-visual,
.odai-visual {
  min-height: 180px;
}

.odai-visual {
  width: min(calc(100% - 30px), 520px);
  height: 360px;
  margin: 0 auto;
}

.boke-card .odai-visual,
.boke-detail-card .boke-detail-visual {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #f0d6ab 0%, #fff7df 55%, #e6d2a9 100%);
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(90deg, #7d5223 1px, transparent 1px), linear-gradient(#7d5223 1px, transparent 1px);
  background-size: 48px 48px;
}

.tatami {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: repeating-linear-gradient(90deg, #d5bd79, #d5bd79 18px, #c7ac67 18px, #c7ac67 22px);
}

.kakejiku {
  position: absolute;
  top: 14%;
  right: 10%;
  width: 64px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 6px solid #5a3b21;
  background: #fff7dc;
  color: #4d321d;
  font-size: 16px;
  font-weight: 900;
  writing-mode: vertical-rl;
}

.monk {
  position: absolute;
  left: 34%;
  bottom: 21%;
  width: 96px;
  height: 130px;
  border-radius: 45% 45% 28% 28%;
  background: #5a3b22;
}

.monk::before {
  content: "";
  position: absolute;
  left: 21px;
  top: -48px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #d7aa75;
}

.roomba {
  position: absolute;
  right: 24%;
  bottom: 20%;
  width: 102px;
  height: 34px;
  border-radius: 999px 999px 18px 18px;
  background: #252525;
  transform: rotate(-7deg);
}

.rice-stage {
  background: linear-gradient(180deg, #d7e4f5 0%, #fff8df 100%);
}

.rice-cat {
  position: absolute;
  left: 50%;
  top: 21%;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #fff8df;
  box-shadow: 0 0 0 8px #e8dca9;
  transform: translateX(-50%);
}

.rice-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 900;
}

.mic {
  position: absolute;
  bottom: 21%;
  width: 12px;
  height: 76px;
  border-radius: 999px;
  background: #222;
}

.mic.one {
  left: 35%;
  transform: rotate(-16deg);
}

.mic.two {
  right: 35%;
  transform: rotate(16deg);
}

.machine-scene {
  background: linear-gradient(145deg, #cfc6b0, #fff9e8);
}

.machine {
  position: absolute;
  left: 34%;
  top: 15%;
  width: 130px;
  height: 220px;
  border: 14px solid #aab4b8;
  border-radius: 16px;
  background: #e8eef1;
}

.scroll {
  position: absolute;
  right: 17%;
  bottom: 18%;
  width: 90px;
  height: 130px;
  display: grid;
  place-items: center;
  border: 5px solid #5d4226;
  background: #fff7d9;
  color: #3b2615;
  font-size: 13px;
  font-weight: 900;
  writing-mode: vertical-rl;
  transform: rotate(-5deg);
}

.omelet-scene {
  background: radial-gradient(circle at 50% 45%, #fff7d7, #7a4d27);
}

.plate {
  position: absolute;
  left: 17%;
  right: 17%;
  bottom: 19%;
  height: 34%;
  border-radius: 50%;
  background: #fff;
}

.omelet {
  position: absolute;
  left: 31%;
  right: 31%;
  bottom: 32%;
  height: 24%;
  border-radius: 50% 50% 42% 42%;
  background: #f4bd37;
}

.topic-visual img,
.latest-topic-visual img,
.odai-visual img {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

.topic-visual .scene,
.latest-topic-visual .scene,
.odai-visual .scene,
.boke-detail-visual .scene {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.boke-card .odai-visual img,
.boke-detail-card .boke-detail-visual img,
.latest-topic-card .latest-topic-visual img,
.topics-list-card .latest-topic-visual img,
.mobile-latest-topic-card .topic-visual img {
  object-fit: contain;
  object-position: center center;
}

.topic-card .topic-visual img,
.boke-card .topic-visual img {
  object-fit: contain;
  object-position: center center;
}

.topic-card .topic-visual,
.latest-topic-card .latest-topic-visual,
.topics-list-card .latest-topic-visual,
.mobile-latest-topic-card .topic-visual,
.boke-card .odai-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.boke-card > .card-visual-link,
.boke-list-card > .card-visual-link {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  display: block;
  overflow: hidden;
}

.boke-card > .card-visual-link > .odai-visual,
.boke-list-card > .card-visual-link > .odai-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
}

.topic-card .topic-visual > img,
.latest-topic-card .latest-topic-visual > img,
.topics-list-card .latest-topic-visual > img,
.mobile-latest-topic-card .topic-visual > img,
.boke-card .odai-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
}

.topic-card .topic-visual .scene {
  inset: auto;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
}

.latest-topic-card .latest-topic-visual .scene,
.topics-list-card .latest-topic-visual .scene,
.boke-card .odai-visual .scene,
.boke-detail-card .boke-detail-visual .scene {
  inset: auto;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
}

.topic-badges,
.latest-topic-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #4d463c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.topic-badges {
  flex-wrap: wrap;
}

.topic-meta-item,
.latest-topic-meta {
  min-width: 0;
}

.topic-meta-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.2;
}

.topic-meta-item i,
.latest-topic-meta i {
  flex: 0 0 auto;
  width: 1em;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.topic-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  margin-top: auto;
}

.topic-card .topic-card-actions {
  grid-template-columns: minmax(0, 1fr);
}

.topic-action,
.latest-topic-action {
  height: 44px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffd34f, var(--gold));
  color: #191714;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(137, 94, 0, 0.18);
}

.topic-like-form {
  min-width: 0;
  margin: 0;
}

.topic-like-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 148, 164, 0.45);
  border-radius: 50%;
  background: rgba(255, 250, 251, 0.95);
  color: #c83e62;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.topic-like-button i {
  font-size: 18px;
  line-height: 1;
}

.topic-like-button:active,
.topic-like-button:focus {
  outline: none;
}

.topic-like-button:focus-visible {
  outline: 2px solid rgba(216, 148, 164, 0.45);
  outline-offset: 2px;
}

.topic-like-button.is-active,
.topic-show-page .topic-like.is-active {
  color: #d989a1;
}

.topic-like-number {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.topic-like-inline-message {
  margin: 8px 0 0;
  color: #7a4b00;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.topics-list-card .topic-card-actions {
  position: static;
}

.topics-list-card .latest-topic-action {
  width: 100%;
}

.topics-list-card .topic-main-report-details {
  position: absolute;
  right: 12px;
  bottom: 21px;
}

.topics-list-card .topic-report-button {
  display: inline-grid;
  place-items: center;
  list-style: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: underline;
  cursor: pointer;
}

.topics-list-card .topic-report-button::-webkit-details-marker {
  display: none;
}

.topics-list-card .topic-main-report-form {
  position: absolute;
  z-index: 4;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, 78vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(221, 214, 200, 0.9);
  border-radius: 7px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.topics-list-card .topic-main-report-reason {
  min-width: 0;
  height: 32px;
  border: 1px solid rgba(221, 214, 200, 0.9);
  border-radius: 6px;
  padding: 0 8px;
  background: #fffdf8;
  color: #191714;
  font-size: 12px;
  font-weight: 800;
}

.topics-list-card .topic-main-report-submit {
  height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: #222;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.topics-list-card > .topic-like-form {
  margin-top: 18px;
}

.topics-list-card .topic-like-button {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d989a1;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.topics-list-card .topic-like-button i {
  font-size: 24px;
}

.topics-list-card .topic-like-number {
  font-size: 15px;
}

.boke-card,
.side-panel,
.latest-topic-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.boke-card {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0;
}

.boke-card.is-newly-posted {
  border-color: rgba(184, 137, 27, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 211, 79, 0.28), var(--shadow);
}

.boke-card-date {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0 8px;
  color: #aaaaaa;
  font-size: 14px;
  line-height: 1;
  text-align: right;
}

.boke-card-body {
  min-width: 0;
  display: block;
  padding: 15px 0 0;
  text-align: center;
}

.boke-card-text {
  width: auto;
  max-width: none;
  margin: 0 5px;
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: clamp(20px, 10vw, 33px);
  line-height: 1.5;
  font-weight: bold;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.topic-meta-logo {
  width: 72px;
  height: auto;
}

.boke-user-meta {
  margin-top: 25px;
  display: inline-flex;
  justify-content: center;
  gap: 22px;
}

.boke-user-title {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(197, 164, 98, 0.55);
  border-radius: 999px;
  background: rgba(255, 248, 230, 0.62);
  color: #6f521b;
}

.zabuton-options {
  margin: 18px 0 15px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.zabuton-form {
  width: 46px;
  height: 24px;
  margin: 0;
}

.zabuton-button {
  width: 46px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  cursor: pointer;
  outline: 0;
  user-select: none;
}

.zabuton-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.zabuton-form.is-submitting .zabuton-button,
.user-card-zabuton.is-submitting .user-card-zabuton-button {
  pointer-events: none;
  opacity: 0.72;
}

.zabuton-inline-message {
  width: 100%;
  margin: 6px 0 0;
  color: #7b5a18;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

.zabuton-button:hover,
.zabuton-button:active,
.zabuton-button:focus,
.zabuton-button:focus-visible {
  background: transparent;
  box-shadow: none;
  filter: none;
  outline: 0;
  transform: none;
}

.boke-user-name,
.boke-user-title {
  color: #403a32;
  font-size: 12px;
  font-weight: 800;
}

.boke-zabuton-count {
  color: var(--reaction);
  font-size: 12px;
  font-weight: 800;
}

.boke-zabuton-icon {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: middle;
}

.boke-report-details {
  position: relative;
}

.boke-report-details summary {
  list-style: none;
}

.boke-report-details summary::-webkit-details-marker {
  display: none;
}

.boke-report-form {
  position: absolute;
  right: 0;
  bottom: 24px;
  z-index: 5;
  width: min(220px, 70vw);
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.boke-card-report {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.ranking-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 16px;
  align-items: start;
  padding-right: 20px;
  padding-left: 20px;
}

.ranking-main {
  min-width: 0;
}

.ranking-banner {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(245, 188, 34, 0.82);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.ranking-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.ranking-content {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 5px 16px rgba(43, 34, 18, 0.12);
}

.ranking-tab {
  position: relative;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-right: 1px solid rgba(221, 214, 200, 0.72);
  background: transparent;
  color: #25211b;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.ranking-tab:last-child {
  border-right: 0;
}

.ranking-tab[aria-disabled="true"] {
  color: #9a9388;
}

.ranking-tab.active {
  color: var(--gold-deep);
}

.ranking-tab.active::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.period-tabs {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px auto 15px;
}

.period-button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(221, 214, 200, 0.95);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  color: #25211b;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(43, 34, 18, 0.11);
}

.period-button[aria-disabled="true"] {
  color: #9a9388;
}

.period-button.active {
  border-color: #252525;
  background: #252525;
  color: #fffdf8;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.ranking-list {
  display: grid;
  gap: 15px;
}

.ranking-lower-grid {
  display: grid;
  gap: 14px;
}

.ranking-lower-card {
  padding: 8px;
}

.ranking-lower-card .rank-label {
  top: -8px;
  width: 45px;
  height: 47px;
  font-size: 15px;
}

.ranking-lower-card .rank-number {
  padding-bottom: 3px;
  font-size: 18px;
}

.ranking-lower-card[hidden] {
  display: none;
}

.ranking-list-more {
  justify-content: center;
  margin-top: 2px;
}

.user-ranking-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.user-rank-card {
  display: grid;
  grid-template-columns: 10px 52px 64px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(221, 214, 200, 0.92);
}

.user-rank-card:last-child {
  border-bottom: 0;
}

.user-rank-marker {
  width: 3px;
  height: 34px;
  border-radius: 999px;
  background: #d89400;
}

.user-rank-number {
  color: #15130f;
  font-family: Georgia, "Times New Roman", "Yu Mincho", YuMincho, serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.user-rank-card:nth-child(1) .user-rank-number {
  background: linear-gradient(90deg, #c98200 0%, #ffd85a 45%, #fff4b8 72%, #d89400 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #d89400;
  font-size: 53px;
  -webkit-text-fill-color: transparent;
}

.user-rank-card:nth-child(2) .user-rank-number {
  background: linear-gradient(90deg, #7f8588 0%, #cfd3d5 44%, #ffffff 72%, #9aa0a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #8f9497;
  font-size: 43px;
  -webkit-text-fill-color: transparent;
}

.user-rank-card:nth-child(3) .user-rank-number {
  background: linear-gradient(90deg, #8f4f22 0%, #d69558 44%, #ffd2a0 72%, #a7652d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #a7652d;
  font-size: 33px;
  -webkit-text-fill-color: transparent;
}

.user-rank-number span {
  margin-left: 2px;
  background: none;
  color: #15130f;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 15px;
  font-weight: 900;
  -webkit-text-fill-color: #15130f;
}

.user-rank-avatar {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5ead3;
}

.user-rank-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-rank-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.user-rank-name {
  overflow-wrap: anywhere;
  color: #181612;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.user-rank-title {
  color: #6f6a61;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.user-rank-score {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-areas:
    "label label label"
    "icon number unit";
  align-items: baseline;
  justify-content: end;
  gap: 0;
  color: #2a251d;
  font-weight: 800;
  white-space: nowrap;
}

.user-rank-score span:first-child {
  grid-area: label;
  justify-self: end;
  color: #7d776d;
  font-size: 10px;
  font-weight: 800;
}

.user-rank-score-icon {
  grid-area: icon;
  align-self: end;
  display: block;
  width: 32px;
  height: auto;
  margin-right: 4px;
  margin-bottom: 2px;
}

.user-rank-score strong {
  grid-area: number;
  font-family: Georgia, "Times New Roman", "Yu Mincho", YuMincho, serif;
  font-size: 30px;
  line-height: 1;
}

.user-rank-score span:last-child {
  grid-area: unit;
}

.user-rank-trend {
  color: #d89400;
  font-size: 16px;
}

.user-rank-trend.up {
  transform: rotate(45deg);
}

.user-rank-trend.flat {
  color: #9a9388;
}

.user-rank-trend.down {
  color: #c8623c;
  transform: rotate(-45deg);
}

.ranking-list .boke-card.top-rank {
  padding: 20px 20px 18px;
}

.rank-label {
  position: absolute;
  left: 12px;
  top: 0;
  z-index: 2;
  width: 40px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='32' viewBox='0 0 40 32'%3E%3Cpath d='M.8 0 H39.2 V31 L20 24 L.8 31 Z' fill='%23f4ecd9'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  color: #333333;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.top-rank .rank-label {
  width: 50px;
  height: 55px;
  padding-top: 6px;
  padding-bottom: 0;
  flex-direction: column;
  justify-content: flex-start;
  background: none;
  color: #191714;
  font-size: 0;
}

.top-rank .rank-label::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.ranking-list .boke-card:nth-child(1) .rank-label {
  color: #d89400;
}

.ranking-list .boke-card:nth-child(1) .rank-label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='55' viewBox='0 0 50 55'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='0'%3E%3Cstop stop-color='%23ffd24a'/%3E%3Cstop offset='.43' stop-color='%23fff0a8'/%3E%3Cstop offset='1' stop-color='%23fffdf4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M.8 0 H49.2 V54 L25 44 L.8 54 Z' fill='url(%23g)' stroke='%23d89400' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ranking-list .boke-card:nth-child(2) .rank-label {
  color: #8f9497;
}

.ranking-list .boke-card:nth-child(2) .rank-label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='55' viewBox='0 0 50 55'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='0'%3E%3Cstop stop-color='%23cfd2d4'/%3E%3Cstop offset='.43' stop-color='%23f0f1f1'/%3E%3Cstop offset='1' stop-color='%23fffdf8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M.8 0 H49.2 V54 L25 44 L.8 54 Z' fill='url(%23g)' stroke='%238f9497' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ranking-list .boke-card:nth-child(3) .rank-label {
  color: #a7652d;
}

.ranking-list .boke-card:nth-child(3) .rank-label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='55' viewBox='0 0 50 55'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='0'%3E%3Cstop stop-color='%23d69a5b'/%3E%3Cstop offset='.43' stop-color='%23ffd6a6'/%3E%3Cstop offset='1' stop-color='%23fff8ec'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M.8 0 H49.2 V54 L25 44 L.8 54 Z' fill='url(%23g)' stroke='%23a7652d' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.rank-label i {
  position: static;
  margin: 0;
  font-size: 9px;
  line-height: 1;
}

.top-rank .rank-label i {
  font-size: 13px;
}

.rank-number {
  margin-top: 0;
  color: #191714;
  font-family: Georgia, "Times New Roman", "Yu Mincho", YuMincho, serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 0.92;
}

.rank-unit {
  margin-left: 1px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.ranking-list .boke-card .odai-visual {
  width: 100%;
}

.ranking-list .boke-card > .card-visual-link {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
}

.ranking-list .boke-card > .card-visual-link > .odai-visual,
.ranking-list .boke-card > .odai-visual {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin: 0;
}

.ranking-list .boke-card > .card-visual-link > .odai-visual {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}

.ranking-topic-card .topic-meta {
  justify-content: center;
  margin-top: 12px;
}

.ranking-topic-meta-label,
.ranking-topic-report {
  display: none;
}

.ranking-topic-card .ranking-topic-head {
  margin-bottom: 14px;
  padding: 0 8px;
}

.ranking-topic-actions {
  margin-top: 14px;
}

.ranking-topic-card .ranking-topic-action {
  width: 100%;
  min-height: 50px;
  margin: 0;
}

.ranking-topic-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 0 8px;
}

.ranking-topic-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d9839f;
  font-size: 15px;
  font-weight: 900;
}

@media (min-width: 901px) {
  .ranking-page .ranking-topic-card .ranking-topic-head {
    justify-content: flex-end;
  }

  .ranking-page .ranking-topic-card .latest-topic-time {
    margin-left: auto;
  }

  .ranking-page .ranking-topic-card > .card-visual-link,
  .ranking-page .ranking-topic-card > .odai-visual,
  .ranking-page .ranking-topic-card .ranking-topic-actions {
    width: min(100%, 600px);
    margin-right: auto;
    margin-left: auto;
  }

  .ranking-page .ranking-topic-card .ranking-topic-action {
    width: 300px;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .ranking-page .ranking-topic-card .ranking-topic-head-label {
    display: none;
  }

  .ranking-page .ranking-topic-card .ranking-topic-meta-label {
    display: inline-flex;
  }

  .ranking-page .ranking-topic-card .ranking-topic-foot {
    justify-content: space-between;
  }

  .ranking-page .ranking-topic-card .ranking-topic-report {
    display: block;
  }

  .ranking-page .ranking-topic-card .topic-main-report-details {
    position: relative;
  }

  .ranking-page .ranking-topic-card .topic-report-button {
    display: inline-grid;
    place-items: center;
    list-style: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: underline;
    cursor: pointer;
  }

  .ranking-page .ranking-topic-card .topic-report-button::-webkit-details-marker {
    display: none;
  }

  .ranking-page .ranking-topic-card .topic-main-report-form {
    position: absolute;
    z-index: 4;
    right: 0;
    top: calc(100% + 8px);
    width: min(280px, 78vw);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(221, 214, 200, 0.9);
    border-radius: 7px;
    background: #fffdf8;
    box-shadow: var(--shadow);
  }

  .ranking-page .ranking-topic-card .topic-main-report-reason {
    min-width: 0;
    height: 32px;
    border: 1px solid rgba(221, 214, 200, 0.9);
    border-radius: 6px;
    padding: 0 8px;
    background: #fffdf8;
    color: #191714;
    font-size: 12px;
    font-weight: 800;
  }

  .ranking-page .ranking-topic-card .topic-main-report-submit {
    height: 32px;
    border: 0;
    border-radius: 6px;
    padding: 0 10px;
    background: #222;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
  }

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

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 10px 12px 0;
  color: #6f6a61;
  font-size: 12px;
  font-weight: 800;
}

.topic-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ranking-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 30px 18px;
  border: 1px dashed rgba(199, 154, 70, 0.65);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: #6f6a61;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.ranking-empty p {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.boke-report-reason {
  width: 100%;
  min-height: 72px;
  padding: 8px;
  border: 1px solid #cfc7b8;
  border-radius: 7px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

.boke-report-submit {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  border: 0;
  border-radius: 7px;
  background: #403a32;
  color: #fffdf8;
  font-weight: 900;
  cursor: pointer;
}

.mypage-page {
  width: min(100% - 32px, 1120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.mypage-main-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.mypage-flash {
  padding: 13px 16px;
  border: 1px solid rgba(53, 134, 83, 0.35);
  border-radius: 8px;
  background: #f1fbf4;
  color: #245b36;
  font-size: 14px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.mypage-hero,
.mypage-panel,
.mypage-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.mypage-hero {
  padding: 22px;
}

.mypage-profile {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.mypage-avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #fff8df;
  color: #25211b;
  font-size: 42px;
}

.mypage-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  object-position: center center;
}

.mypage-profile-main {
  min-width: 0;
}

.mypage-kicker {
  margin: 0 0 6px;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 900;
}

.mypage-name {
  margin: 0;
  color: #191714;
  font-size: 30px;
  line-height: 1.18;
}

.mypage-meta,
.mypage-boke-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 9px;
  color: #6f6a61;
  font-size: 12px;
  font-weight: 800;
}

.mypage-title-badge {
  min-width: 150px;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 13px 16px;
  border: 1px solid rgba(216, 148, 0, 0.45);
  border-radius: 8px;
  background: #fff6d7;
}

.mypage-title-label {
  color: #221b10;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.mypage-title-date {
  color: #7a4b00;
  font-size: 11px;
  font-weight: 800;
}

.mypage-edit-link,
.secondary-link-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(37, 37, 37, 0.18);
  border-radius: 7px;
  background: #fffdf8;
  color: #191714;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.mypage-edit-link {
  justify-self: end;
}

.mypage-profile-text {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(221, 214, 200, 0.76);
  color: #403a32;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.mypage-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mypage-stat {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
}

.mypage-stat-label {
  color: #6f6a61;
  font-size: 13px;
  font-weight: 900;
}

.mypage-stat strong {
  color: #191714;
  font-family: Georgia, "Times New Roman", "Yu Mincho", YuMincho, serif;
  font-size: 34px;
  line-height: 1;
}

.mypage-stat span:last-child {
  color: #7b7468;
  font-size: 12px;
  font-weight: 800;
}

.mypage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.mypage-panel {
  padding: 18px;
}

.mypage-feed-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mypage-page .mypage-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 5px 16px rgba(43, 34, 18, 0.12);
}

.mypage-page .mypage-tab {
  position: relative;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-right: 1px solid rgba(221, 214, 200, 0.72);
  background: transparent;
  color: #25211b;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.mypage-page .mypage-tab:last-child {
  border-right: 0;
}

.mypage-page .mypage-tab.active {
  color: var(--gold-deep);
}

.mypage-page .mypage-tab.active::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--gold);
}

.mypage-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mypage-section-head h2 {
  margin: 0;
  color: #191714;
  font-size: 20px;
  line-height: 1.25;
}

.mypage-section-head i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #252525;
  color: #f5bc22;
}

.mypage-progress-copy {
  margin: 8px 0 0;
  color: #6f6a61;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.mypage-progress-copy strong {
  color: #403a32;
}

.mypage-progress-hero {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.mypage-progress-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff0c5;
  color: #d99a00;
  font-size: 30px;
}

.mypage-progress-percent {
  color: var(--gold-deep);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.progress-track {
  height: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #f4ecd9;
}

.progress-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(180deg, #ffd34f, var(--gold));
}

.requirement-list,
.title-history-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.requirement-list {
  display: grid;
  gap: 8px;
}

.requirement-list li,
.title-history-list li {
  border: 1px solid rgba(221, 214, 200, 0.78);
  border-radius: 8px;
  background: #fffdf8;
}

.requirement-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  color: #403a32;
  font-size: 13px;
  font-weight: 800;
}

.requirement-list li.is-complete {
  border-color: rgba(53, 134, 83, 0.35);
  background: #f1fbf4;
}

.requirement-list strong {
  color: #191714;
}

.title-history-list {
  display: grid;
  gap: 10px;
}

.title-history-list li {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.title-history-list strong {
  color: #191714;
  font-size: 15px;
}

.title-history-list span {
  color: #6f6a61;
  font-size: 12px;
  font-weight: 800;
}

.history-date {
  color: var(--gold-deep);
}

.mypage-empty {
  margin: 0;
  color: #6f6a61;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.mypage-boke-list {
  display: grid;
  gap: 10px;
}

.mypage-boke,
.mypage-reaction {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 13px;
  padding: 12px;
  border: 1px solid rgba(221, 214, 200, 0.78);
  border-radius: 8px;
  background: #fffdf8;
}

.mypage-boke-thumb {
  width: 116px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #f5ecd8;
  color: #6b5430;
  font-weight: 900;
}

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

.mypage-boke-body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.mypage-reaction-list {
  display: grid;
  gap: 10px;
}

.mypage-reaction-body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.mypage-reaction-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reaction-kind {
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 900;
}

.mypage-reaction-head strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #191714;
  font-size: 13px;
  font-weight: 900;
}

.mypage-boke-body p,
.mypage-reaction-body p {
  margin: 0;
  color: #191714;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.mypage-muted {
  color: #7b7468;
}

.mypage-delete-form,
.reaction-delete-form {
  margin: 2px 0 0;
}

.mypage-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.mypage-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #d8cdb7;
  border-radius: 6px;
  background: #ffffff;
  color: #4d3c20;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.mypage-delete-button,
.reaction-delete-button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #d8cdb7;
  border-radius: 6px;
  background: #fffaf1;
  color: #6f5f45;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.mypage-delete-button:hover,
.reaction-delete-button:hover {
  border-color: #b9984c;
  background: #fff4dd;
  color: #4d3c20;
}

.mypage-help-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mypage-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d8cdb7;
  border-radius: 999px;
  background: #ffffff;
  color: #6f5f45;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.mypage-help-button:hover,
.mypage-help-button[aria-expanded="true"] {
  border-color: #b9984c;
  background: #fff4dd;
  color: #4d3c20;
}

.mypage-help-bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  width: min(260px, 74vw);
  padding: 10px 12px;
  border: 1px solid #d8cdb7;
  border-radius: 6px;
  background: #fffdf8;
  box-shadow: 0 8px 20px rgba(77, 60, 32, 0.14);
  color: #4d3c20;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.mypage-help-bubble::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid #d8cdb7;
  border-bottom: 1px solid #d8cdb7;
  background: #fffdf8;
  transform: rotate(45deg);
}

.edit-profile-head {
  grid-template-columns: 74px minmax(0, 1fr) auto;
}

.profile-edit-panel {
  max-width: none;
}

.profile-edit-form {
  display: grid;
  gap: 18px;
}

.profile-social-fields {
  display: grid;
  gap: 0;
}

.profile-social-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.profile-file-field {
  min-height: 208px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  place-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px dashed rgba(199, 154, 70, 0.78);
  border-radius: 8px;
  background: #fff8df;
  color: #191714;
  font-weight: 900;
  cursor: pointer;
}

.profile-file-preview {
  width: 104px;
  height: 104px;
  display: block;
  overflow: hidden;
  margin: 20px 0;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 0 0 3px rgba(255, 253, 248, 0.95), 0 0 0 4px rgba(216, 148, 0, 0.28);
}

.profile-file-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.profile-file-copy {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.profile-file-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
}

.profile-file-copy i {
  color: var(--gold-deep);
  font-size: 24px;
}

.profile-file-field small {
  grid-column: 2;
  color: #7b7468;
  font-size: 12px;
  font-weight: 800;
}

.profile-file-selected {
  justify-self: start;
}

.profile-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.profile-textarea {
  width: 100%;
  min-height: 132px;
  padding: 12px 14px;
  border: 1px solid #d7cfbd;
  border-radius: 8px;
  background: #fffdf8;
  color: #191714;
  font: inherit;
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
}

.profile-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.profile-edit-actions .primary-button {
  flex: 1 1 auto;
  margin-top: 0;
}

.profile-edit-actions .secondary-link-button {
  flex: 0 0 132px;
  min-height: 56px;
  padding: 0 18px;
  white-space: nowrap;
}

.account-delete-form {
  margin-top: 36px;
  text-align: left;
}

.account-delete-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #c0392b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
  text-decoration: underline;
}

.account-delete-button:focus-visible {
  outline: 2px solid rgba(192, 57, 43, 0.35);
  outline-offset: 3px;
}

.mypage-page .profile-card {
  overflow: hidden;
  padding: 0;
}

.mypage-page .profile-head {
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 24px 22px 18px;
}

.mypage-page .profile-card .mypage-avatar {
  width: 78px;
  height: 78px;
  overflow: hidden;
  border: 0;
  background: #faf7ee;
  box-shadow: none;
}

.mypage-page .profile-card .profile-name p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mypage-page .profile-card .profile-edit {
  min-width: 64px;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: #252525;
  color: #fffdf8;
  font-size: 13px;
}

.mypage-page .profile-card .profile-bio-text {
  margin: -2px 20px 16px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #faf7ee;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
}

.mypage-page .mypage-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 20px 16px;
}

.mypage-page .mypage-social-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(221, 214, 200, 0.9);
  border-radius: 7px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.mypage-page .mypage-social-link.is-set {
  border-color: rgba(245, 188, 34, 0.62);
  color: #191714;
}

.mypage-page .mypage-social-link i {
  font-size: 15px;
}

.mypage-page .profile-card .profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0 20px 22px;
}

.mypage-page .profile-card .profile-stat {
  min-height: auto;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.mypage-page .profile-card .profile-stat:last-child {
  border-right: 0;
}

.mypage-page .profile-card .profile-stat strong {
  display: block;
  color: var(--gold-deep);
  font-family: inherit;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
}

.mypage-page .profile-card .profile-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mypage-page .user-feed-container {
  display: grid;
  gap: 10px;
}

.mypage-page .dashboard-cards {
  grid-template-columns: 1fr;
  gap: 10px;
}

.mypage-page .score-card,
.mypage-page .daily-popular-card {
  position: relative;
  padding: 18px;
}

.mypage-page .score-card .mypage-section-head,
.mypage-page .daily-popular-card .mypage-section-head {
  display: block;
  margin: 0 0 12px;
}

.mypage-page .score-card .mypage-section-head h2,
.mypage-page .daily-popular-label {
  margin: 0;
  color: #333333;
  font-size: 16px;
  font-weight: 900;
}

.mypage-page .score-card .score-trophy,
.mypage-page .daily-popular-card .mypage-section-head i {
  position: absolute;
  top: 16px;
  right: 18px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  background: transparent;
  color: var(--gold-deep);
  font-size: 22px;
}

.mypage-page .score-card .mypage-progress-hero {
  margin-top: 18px;
}

@media (min-width: 901px) {
  .mypage-page .requirement-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mypage-page .title-history-card .mypage-empty,
.mypage-page .score-card .mypage-empty {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mypage-page .title-history-list {
  margin-top: 8px;
}

.mypage-page .user-feed-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mypage-page .user-feed-panel > .mypage-section-head {
  display: none;
}

.mypage-page .mypage-boke-list,
.mypage-page .mypage-reaction-list {
  gap: 5px;
}

.mypage-page .mini-boke-card {
  position: relative;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 14px;
  padding: 24px 14px 13px;
}

.mypage-page .mini-date {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #aaa49a;
  font-size: 11px;
  font-weight: 800;
}

.mypage-page .mini-thumb {
  width: 102px;
  height: 78px;
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 5px;
  background: linear-gradient(180deg, #f5dfb8 0 62%, #d5bd79 62% 100%);
}

.mypage-page .mini-body {
  padding-top: 10px;
}

.mypage-page .mini-body > p:first-child {
  margin: 0;
  color: #191714;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
}

.mypage-page .mini-body .mypage-boke-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.mypage-page .mini-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 800;
}

.mypage-page .mypage-detail-link,
.mypage-page .mypage-delete-button,
.mypage-page .reaction-delete-button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  box-shadow: none;
}

.mypage-page .mypage-delete-button:hover,
.mypage-page .reaction-delete-button:hover {
  border-color: transparent;
  background: transparent;
  color: #333333;
}

.profile-file-selected {
  color: #4d463d;
}

.admin-page-inner {
  max-width: 1080px;
}

.admin-page-head {
  align-items: flex-start;
}

.admin-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-menu-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.admin-menu-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #fff3cd;
  color: #8a5a00;
  font-size: 20px;
}

.admin-menu-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-menu-title {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.admin-menu-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-menu-count {
  min-width: 42px;
  text-align: right;
  color: #7a4b00;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.admin-empty,
.admin-report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.admin-empty {
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.admin-report-section {
  margin-top: 18px;
}

.admin-section-title-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-section-title {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.admin-section-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-report-list {
  display: grid;
  gap: 12px;
}

.admin-report-card {
  padding: 12px;
}

.admin-report-card-handled {
  background: rgba(250, 248, 242, 0.94);
  box-shadow: none;
}

.admin-report-main {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
}

.admin-report-media {
  min-height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #f4efe4;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-report-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-report-body {
  min-width: 0;
}

.admin-report-meta,
.admin-report-facts {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-report-boke {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 900;
}

.admin-report-context {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
}

.admin-report-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.admin-report-facts div {
  min-width: 0;
}

.admin-report-facts dt {
  color: #7f6f54;
}

.admin-report-facts dd {
  margin: 2px 0 0;
  color: #403a32;
}

.admin-report-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-report-actions form {
  margin: 0;
  display: grid;
  gap: 6px;
}

.admin-note-input {
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #cfc7b8;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.admin-action-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #9d8a68;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: #5d4a2c;
  font-weight: 900;
  cursor: pointer;
}

.admin-action-danger {
  border-color: rgba(164, 61, 61, 0.52);
  background: #fff0ef;
  color: #9a2f2b;
}

.legal-page-inner {
  max-width: 900px;
}

@media (min-width: 901px) {
  .legal-page-inner {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
  }
}

.legal-page .legal-page-inner {
  padding: 12px;
}

.legal-page-terms .legal-page-inner,
.legal-page-privacy .legal-page-inner {
  padding-top: 50px;
  padding-bottom: 50px;
}

.legal-page .section-head {
  align-items: flex-start;
}

.legal-page .section-mark {
  margin-top: 1px;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 50px;
}

.contact-form .field {
  display: grid;
  gap: 6px;
}

.contact-form label {
  color: #191714;
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7cfbd;
  border-radius: 8px;
  background: #fffdf8;
  color: #191714;
  font: inherit;
  font-size: 15px;
}

.contact-form select,
.contact-form input {
  min-height: 44px;
  padding: 9px 12px;
}

.contact-form textarea {
  min-height: 180px;
  padding: 12px 14px;
  line-height: 1.7;
  resize: vertical;
}

.contact-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.contact-form .primary-button {
  width: 50%;
  justify-self: center;
  margin-top: 0;
  margin-bottom: 100px;
}

.contact-form-errors {
  max-width: none;
  margin-top: 16px;
}

.legal-notice {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 148, 0, 0.34);
  border-radius: 8px;
  background: #fff8df;
  color: #5d4a2c;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 800;
}

.legal-notice p {
  margin: 0;
}

.legal-doc {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.legal-doc section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.legal-doc h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
}

.legal-doc p,
.legal-doc li {
  color: #403a32;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 700;
}

.legal-doc p {
  margin: 0;
}

.legal-doc p + p {
  margin-top: 8px;
}

.legal-doc ul {
  margin: 0;
  padding-left: 1.4em;
}

@media (max-width: 720px) {
  .admin-menu-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  display: grid;
  gap: 15px;
}

.side-panel {
  padding: 15px;
}

.about-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(199, 154, 70, 0.7);
  background: #fffdf8;
}

.about-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 15px;
  align-items: start;
  margin: -15px -15px 0;
  padding: 15px;
  border-bottom: 1px solid rgba(199, 154, 70, 0.45);
  background: url("/image/side_background.png") center / cover no-repeat;
}

.about-icon {
  width: 75px;
  height: 75px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 7px 18px rgba(43, 34, 18, 0.16);
}

.panel-title,
.side-panel-title {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
}

@media (min-width: 901px) {
  .side-panel-title i {
    margin-right: 5px;
  }
}

.panel-title {
  margin-bottom: 15px;
}

.panel-text {
  margin: 0;
  color: #3d3932;
  font-size: 12.5px;
  line-height: 1.85;
  font-weight: 700;
}

.steps-image {
  display: block;
  margin: 0 -15px -15px;
}

.steps-image img,
.side-x-banner-card img,
.side-ranking-card img {
  display: block;
  width: 100%;
  height: auto;
}

.popular-list,
.notice-list {
  display: grid;
  gap: 0;
}

.popular-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(221, 214, 200, 0.86);
}

.popular-rank {
  display: none;
}

.popular-thumb {
  position: relative;
  overflow: hidden;
  width: 58px;
  height: 44px;
  border-radius: 5px;
  background: linear-gradient(180deg, #f5dfb8 0 62%, #d5bd79 62% 100%);
}

.popular-thumb .scene {
  width: 100%;
  height: 100%;
  transform: scale(0.72);
  transform-origin: center;
}

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

.side-empty {
  margin: 0;
  padding: 14px;
  color: #6f6a61;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.popular-text,
.popular-count,
.notice-row,
.x-name,
.x-id {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.notice-panel,
.x-follow-panel,
.total-ranking-panel,
.daily-popular-panel {
  padding: 0;
  overflow: hidden;
}

.side-panel-head {
  min-height: 48px;
  padding: 0 18px;
  background: #252525;
  color: #fffdf8;
}

.side-panel-link {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.notice-list,
.x-follow-box {
  padding: 10px 16px 12px;
}

.notice-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(221, 214, 200, 0.86);
}

.x-account {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.x-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #191714;
  color: #fffdf8;
  font-size: 25px;
  font-weight: 900;
}

.x-button {
  min-width: 86px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #191714;
  color: #fffdf8;
  font-size: 12px;
  font-weight: 900;
}

.mobile-x-banner-panel {
  display: none;
}

.mobile-odai-banner-panel {
  display: none;
}

.mobile-x-banner-link,
.mobile-x-banner-link img {
  display: block;
  width: 100%;
}

.mobile-x-banner-link {
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
}

.mobile-x-banner-link img {
  height: auto;
}

.side-x-banner-card,
.side-ranking-card {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.latest-topic-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
}

.latest-topic-head {
  justify-content: flex-start;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.latest-topic-head a {
  margin-left: auto;
}

.latest-topic-popular-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  background: rgba(25, 23, 20, 0.88);
  color: #fffdf8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.16);
}

.latest-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  padding: 15px;
}

.latest-topic-more {
  display: flex;
  justify-content: center;
  margin: 0 15px 15px;
}

.latest-topic-more-link {
  text-decoration: none;
}

.latest-topic-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px 12px 58px;
}

.latest-topic-card .latest-topic-meta {
  display: flex;
  justify-content: center;
  text-align: center;
}

.latest-topic-card .topic-card-actions {
  gap: 10px;
  margin-top: 0;
}

.latest-topic-card .latest-topic-action {
  width: 100%;
}

.latest-topic-card .topic-like-form {
  position: absolute;
  left: 12px;
  bottom: 14px;
  margin: 0;
}

.latest-topic-card .topic-like-button {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d989a1;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.latest-topic-card .topic-like-button i {
  font-size: 24px;
}

.latest-topic-card .topic-like-number {
  display: inline;
  font-size: 15px;
}

.latest-topic-card .topic-main-report-details {
  position: absolute;
  right: 12px;
  bottom: 16px;
}

.latest-topic-card .topic-report-button {
  display: inline-grid;
  place-items: center;
  list-style: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: underline;
  cursor: pointer;
}

.latest-topic-card .topic-report-button::-webkit-details-marker {
  display: none;
}

.latest-topic-card .topic-main-report-form {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(280px, 78vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(221, 214, 200, 0.9);
  border-radius: 7px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.latest-topic-card .topic-main-report-reason {
  min-width: 0;
  height: 32px;
  border: 1px solid rgba(221, 214, 200, 0.9);
  border-radius: 6px;
  padding: 0 8px;
  background: #fffdf8;
  color: #191714;
  font-size: 12px;
  font-weight: 800;
}

.latest-topic-card .topic-main-report-submit {
  height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: #222;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.topics-main {
  min-width: 0;
}

.topics-page .layout {
  padding-right: 20px;
  padding-left: 20px;
}

.topics-hero {
  margin-bottom: 12px;
}

.topics-list-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
}

.topics-list-head {
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.topics-list-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 15px 0;
}

.topics-list-tab {
  min-width: 72px;
  height: 38px;
  border: 1px solid rgba(216, 148, 0, 0.45);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.88);
  color: #6c5f47;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.topics-list-tab.is-active {
  border-color: rgba(216, 148, 0, 0.9);
  background: linear-gradient(180deg, #ffd34f, var(--gold));
  color: #17130c;
  box-shadow: inset 0 -3px 0 rgba(137, 94, 0, 0.18);
}

.topics-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding: 15px;
}

.topics-list-more {
  display: flex;
  justify-content: center;
  margin: 8px 0 15px;
}

.topics-list-more[hidden] {
  display: none;
}

.topics-list-more-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(216, 148, 0, 0.9);
  border-radius: 7px;
  background: #fffdf8;
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.topics-list-more-button:disabled {
  cursor: default;
  opacity: 0.58;
}

.topics-list-card {
  position: relative;
  min-width: 0;
  column-gap: 3px;
  row-gap: 3px;
}

.topics-list-card .latest-topic-meta {
  margin-top: 5px;
  margin-bottom: 5px;
  text-align: center;
}

.boke-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 15px;
}

.boke-list-grid[hidden] {
  display: none;
}

.boke-list-card {
  min-width: 0;
  padding: 10px;
}

.boke-list-card .boke-card-date {
  padding-bottom: 6px;
}

.boke-list-card .boke-card-body {
  padding-top: 10px;
}

.boke-list-card .boke-card-text {
  min-height: 82px;
  font-size: clamp(20px, 3.2vw, 30px);
}

.boke-list-card .boke-user-meta {
  margin-top: 14px;
}

.boke-list-card .zabuton-options {
  margin: 14px 0 12px;
}

.boke-list-card[hidden] {
  display: none;
}

.topics-empty {
  margin: 15px;
}

.topics-tab-empty {
  margin: 15px;
}

.mobile-latest-topic-panel {
  display: none;
}

.mobile-latest-topic-more {
  display: none;
}

footer {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  background: #2A2A2A;
  color: #eeeeee;
  font-size: 12px;
  font-weight: 700;
}

footer a {
  color: inherit;
}

body.boke-modal-open {
  overflow: hidden;
}

.boke-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(25, 23, 20, 0.58);
  backdrop-filter: blur(4px);
}

.boke-modal-backdrop.is-open {
  display: flex;
}

.boke-modal {
  width: min(100%, 560px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(221, 214, 200, 0.9);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 18px 54px rgba(25, 23, 20, 0.28);
}

.boke-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.boke-modal-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

.boke-modal-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.boke-modal-close i {
  font-size: 24px;
  line-height: 1;
}

.boke-modal-image {
  width: min(100%, 520px);
  margin: 0 auto 15px;
  border-radius: 7px;
  overflow: hidden;
}

.boke-modal-image .topic-visual,
.boke-modal-image .odai-visual,
.boke-modal-image .latest-topic-visual {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4efe4;
}

.boke-modal-image .odai-visual {
  height: 300px;
}

.boke-modal-image .topic-visual img,
.boke-modal-image .odai-visual img,
.boke-modal-image .latest-topic-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.boke-modal-image .topic-visual .scene,
.boke-modal-image .odai-visual .scene,
.boke-modal-image .latest-topic-visual .scene {
  width: 100%;
  height: 100%;
}

@media (min-width: 641px) {
  .boke-modal-image .boke-modal-preview-visual {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    margin: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f4efe4;
  }

  .boke-modal-image .boke-modal-preview-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .boke-modal-image .boke-modal-preview-visual .scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    transform: none;
  }
}

.boke-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 900;
}

.boke-textarea-wrap {
  position: relative;
}

.boke-textarea {
  width: 100%;
  min-height: 126px;
  padding: 12px 12px 32px;
  border: 1px solid #cfc7b8;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
  outline: none;
  resize: vertical;
  box-shadow: inset 0 1px 3px rgba(25, 23, 20, 0.04);
}

.boke-count {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.boke-helper {
  margin: 10px 0 15px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.boke-modal-actions {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 15px;
}

.boke-submit,
.boke-cancel {
  height: 50px;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.boke-submit {
  border: 0;
  background: linear-gradient(180deg, #ffd34f, var(--gold));
  color: #17130c;
  box-shadow: 0 3px 0 #d99f10;
}

.boke-cancel {
  border: 1px solid #9d8a68;
  background: rgba(255, 255, 255, 0.82);
  color: #6d4d15;
}

.boke-modal-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 900px) {
  .page,
  footer {
    width: min(100% - 24px, 680px);
    min-width: 0;
  }

  footer {
    width: 100%;
  }

  .page {
    padding: 16px 0;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }

  .mobile-x-banner-panel {
    display: block;
  }

  .mobile-odai-banner-panel {
    display: block;
    overflow: hidden;
    border-radius: 8px;
  }

  .mobile-odai-banner-panel img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
  }

  .sidebar {
    order: 2;
  }

  .latest-topic-panel {
    display: none;
  }

  .mobile-latest-topic-panel {
    display: block;
    padding: 12px 5px 5px;
    border-radius: 8px;
    background: #fbf7ee;
  }

  .mobile-latest-topic-head {
    margin: 0 10px 10px 6px;
  }

  .mobile-latest-topic-head-link {
    margin-left: auto;
    align-self: center;
    color: #555555;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-latest-topic-list {
    display: grid;
    gap: 5px;
  }

  .mobile-latest-topic-list > .mobile-latest-topic-card {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    flex: 0 0 100%;
    aspect-ratio: auto;
    margin: 0;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mobile-latest-topic-card .topic-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 10px 0;
    display: grid;
    place-items: center;
  }

  .mobile-latest-topic-card .topic-visual img {
    object-fit: contain;
    object-position: center center;
  }

  .mobile-latest-topic-card .topic-badges {
    padding: 5px 0 10px;
  }

  .mobile-latest-topic-card .topic-visual .scene {
    inset: auto;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    max-height: 100%;
    transform: translate(-50%, -50%);
  }

  .mobile-latest-topic-more {
    display: flex;
    justify-content: center;
    margin: 2px 0 5px;
  }

  .mobile-latest-topic-more-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid rgba(216, 148, 0, 0.9);
    border-radius: 7px;
    background: #fffdf8;
    color: var(--gold-deep);
    font-size: 14px;
    font-weight: 900;
  }

  .topics-page .layout {
    padding: 0 12px;
  }

  .topics-hero {
    width: 100vw;
    max-width: none;
    margin: -16px calc(50% - 50vw) 12px;
  }

  .topics-hero picture {
    aspect-ratio: auto;
    border-radius: 0;
  }

  .topics-hero .hero-banner {
    height: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .topics-list-panel {
    border-radius: 8px;
    background: #fbf7ee;
  }

  .topics-list-head {
    margin: 0 10px 10px 6px;
    padding: 12px 0 0;
    border-bottom: 0;
  }

  .topics-list-tabs {
    gap: 5px;
    padding: 0 5px 5px;
  }

  .topics-list-tab {
    min-width: 0;
    flex: 1 1 0;
    height: 36px;
    font-size: 13px;
  }

  .topics-list-grid {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 0 5px 5px;
  }

  .topics-list-more {
    margin: 8px 0 5px;
  }

  .topics-list-card {
    position: relative;
    width: 100%;
    max-width: none;
    padding: 10px;
  }

  .boke-list-grid {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 0 5px 5px;
  }

  .boke-list-card {
    padding: 10px;
  }

  .boke-list-card .boke-card-text {
    min-height: 58px;
    font-size: clamp(20px, 10vw, 33px);
  }

  .topics-list-card .latest-topic-visual {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 10px 0;
    display: grid;
    place-items: center;
  }

  .topics-list-card .latest-topic-visual img {
    object-fit: contain;
    object-position: center center;
  }

  .topics-list-card .latest-topic-visual .scene {
    inset: auto;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    max-height: 100%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 640px) {
  html,
  body {
    background-size: 220px auto;
  }

  .page,
  footer {
    width: 100%;
  }

  .page {
    padding: 12px 0;
  }

  .layout {
    gap: 15px;
    padding: 0 12px;
  }

  .post-card {
    padding: 16px 12px;
  }

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

  .upload-zone {
    min-height: 210px;
  }

  .type-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .main-feed > .lead {
    display: none;
  }

  .topic-show-page .main-feed > .topic-show-hero {
    display: block;
  }

  .mobile-hero {
    display: block;
    width: 100%;
    margin: 0;
  }

  .mobile-hero picture {
    aspect-ratio: auto;
    border-radius: 0;
  }

  .mobile-hero .hero-banner {
    height: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .topic-feed {
    width: 100vw;
    max-width: none;
    margin: 0 calc(50% - 50vw) 15px;
  }

  .topic-carousel {
    gap: 5px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    padding: 0 0 10px;
  }

  .topic-card {
    flex-basis: min(310px, calc(100vw - 74px));
    width: min(310px, calc(100vw - 74px));
    scroll-snap-align: center;
    padding: 10px;
  }

  .mobile-latest-topic-list > .mobile-latest-topic-card {
    width: 100%;
    max-width: none;
    flex-basis: 100%;
    transform: none;
    opacity: 1;
  }

  .topic-dots {
    display: flex;
  }

  .tabs {
    position: relative;
    z-index: 1;
    gap: 0;
    margin: 0 0 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
  }

  .feed-section > .tabs {
    margin: 0 0 5px;
  }

  .tab {
    height: 37px;
    gap: 6px;
    border: 0;
    border-radius: 0;
    background: #fffdf8;
    font-size: 14px;
    box-shadow: none;
  }

  .tab:first-child {
    border-radius: 999px 0 0 999px;
  }

  .tab:last-child {
    border-radius: 0 999px 999px 0;
  }

  .tab + .tab {
    border-left: 1px solid rgba(221, 214, 200, 0.72);
  }

  .feed-grid {
    gap: 5px;
    grid-template-columns: 1fr;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .home-page .feed-grid.boke-tab-panel {
    grid-template-columns: 1fr;
  }

  .home-boke-more {
    margin: 5px 0 0;
    padding-bottom: 5px;
  }

  .feed-section {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .ranking-page {
    width: 100%;
    box-sizing: border-box;
    display: block;
    padding: 0 12px 28px;
    overflow-x: hidden;
  }

  .ranking-banner {
    width: 100vw;
    margin: 0 calc(50% - 50vw) 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .ranking-banner img {
    height: auto;
    border-bottom: 1px solid rgba(221, 214, 200, 0.8);
    border-radius: 0;
  }

  .ranking-content {
    display: contents;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .ranking-page .sidebar {
    margin-top: 10px;
  }

  .type-tabs {
    width: 100%;
    box-sizing: border-box;
    border-radius: 999px;
  }

  .ranking-tab {
    height: 44px;
    font-size: 13px;
  }

  .period-tabs {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 7px;
    padding: 0 12px;
  }

  .period-button {
    height: 34px;
    font-size: 12px;
  }

  .ranking-list {
    gap: 8px;
  }

  .user-rank-card {
    grid-template-columns: 5px 40px 48px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 78px;
    padding: 10px;
  }

  .user-rank-marker {
    height: 28px;
  }

  .user-rank-number {
    font-size: 22px;
  }

  .user-rank-number span {
    font-size: 11px;
  }

  .user-rank-avatar {
    width: 48px;
    height: 48px;
  }

  .user-rank-name {
    font-size: 15px;
  }

  .user-rank-title {
    font-size: 11px;
  }

  .user-rank-score {
    gap: 3px;
    font-size: 11px;
  }

  .user-rank-score strong {
    font-size: 19px;
  }

  .user-rank-trend {
    display: none;
  }

  .ranking-list .boke-card .odai-visual {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .ranking-list .boke-card > .card-visual-link {
    aspect-ratio: 1 / 1;
  }

  .ranking-list .boke-card > .card-visual-link > .odai-visual {
    aspect-ratio: auto;
  }

  .mypage-page {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 10px 10px 28px;
  }

  .mypage-page > .sidebar {
    display: none;
  }

  .mypage-hero,
  .mypage-panel {
    padding: 14px;
  }

  .profile-file-field {
    min-height: 154px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .profile-file-field small,
  .profile-file-selected {
    grid-column: auto;
    justify-self: center;
  }

  .profile-file-copy {
    justify-items: center;
    text-align: center;
  }

  .profile-file-preview {
    width: 88px;
    height: 88px;
  }

  .mypage-profile {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .mypage-avatar {
    width: 58px;
    height: 58px;
    font-size: 32px;
  }

  .mypage-name {
    font-size: 23px;
  }

  .mypage-title-badge {
    grid-column: 1 / -1;
    min-width: 0;
    justify-items: start;
  }

  .mypage-edit-link {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }

  .mypage-stats,
  .mypage-grid {
    grid-template-columns: 1fr;
  }

  .mypage-progress-hero {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .mypage-progress-icon {
    width: 48px;
    height: 48px;
    font-size: 25px;
  }

  .mypage-progress-percent {
    grid-column: 2;
    justify-self: end;
    font-size: 24px;
  }

  .progress-track {
    height: 16px;
  }

  .mypage-stat {
    min-height: 96px;
    padding: 15px;
  }

  .mypage-stat strong {
    font-size: 30px;
  }

  .requirement-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .mypage-boke,
  .mypage-reaction {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .mypage-boke-thumb {
    width: 88px;
  }

  .mypage-boke-body p,
  .mypage-reaction-body p {
    font-size: 14px;
  }

  .profile-edit-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .boke-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .boke-card .odai-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }

  .boke-card > .card-visual-link > .odai-visual,
  .boke-list-card > .card-visual-link > .odai-visual {
    height: 100%;
    aspect-ratio: auto;
  }

  .boke-card-date + .odai-visual {
    margin-top: 0;
  }

  .boke-card-body {
    padding: 13px 0 0;
  }

  .boke-card-text {
    max-width: none;
    margin-right: 5px;
    margin-left: 5px;
    min-height: 48px;
  }

  .feed-grid.boke-tab-panel .boke-card-text {
    margin-right: 0;
    margin-left: 0;
  }

  .feed-grid.boke-tab-panel .boke-card {
    padding: 8px;
  }

  .boke-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .boke-modal-backdrop.is-open:not(.is-closing) {
    animation: boke-backdrop-fade 0.8s ease-out both;
  }

  .boke-modal-backdrop.is-open.is-closing {
    animation: boke-backdrop-hide 0.8s ease-out both;
  }

  .boke-modal {
    width: 100%;
    height: 70dvh;
    max-height: 70dvh;
    overflow: auto;
    padding: 15px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  .boke-modal-backdrop.is-open:not(.is-closing) .boke-modal {
    animation: boke-sheet-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: bottom center;
  }

  .boke-modal-backdrop.is-open.is-closing .boke-modal {
    animation: boke-sheet-fall 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: bottom center;
  }

  @keyframes boke-backdrop-fade {
    from {
      background: rgba(25, 23, 20, 0);
      backdrop-filter: blur(0);
    }

    to {
      background: rgba(25, 23, 20, 0.58);
      backdrop-filter: blur(4px);
    }
  }

  @keyframes boke-backdrop-hide {
    from {
      background: rgba(25, 23, 20, 0.58);
      backdrop-filter: blur(4px);
    }

    to {
      background: rgba(25, 23, 20, 0);
      backdrop-filter: blur(0);
    }
  }

  @keyframes boke-sheet-rise {
    from {
      opacity: 0.96;
      transform: translateY(100%) scaleY(0.92);
    }

    to {
      opacity: 1;
      transform: translateY(0) scaleY(1);
    }
  }

  @keyframes boke-sheet-fall {
    from {
      opacity: 1;
      transform: translateY(0) scaleY(1);
    }

    to {
      opacity: 0.96;
      transform: translateY(100%) scaleY(0.92);
    }
  }

  .boke-modal-title {
    font-size: 20px;
  }

  .boke-modal-image {
    width: 100%;
    margin-bottom: 15px;
  }

  .boke-modal-image .odai-visual {
    height: 210px;
  }

  .boke-textarea {
    min-height: 118px;
    font-size: 16px;
  }

  .boke-modal-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  footer {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 18px 12px;
    display: flex;
    align-items: normal;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    background: #2A2A2A;
    color: #eeeeee;
    font-size: 12px;
    font-weight: 700;
    line-height: normal;
  }

  footer a,
  footer span {
    display: block;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;
    white-space: normal;
  }
}

.howto-page .layout {
  grid-template-columns: minmax(0, 1fr) 350px;
}

.howto-main,
.howto-page .desktop-sidebar {
  min-width: 0;
  display: grid;
  gap: 15px;
}

.howto-page .howto-hero,
.howto-page .howto-section,
.howto-page .final-panel,
.howto-page .side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.howto-page .howto-hero {
  overflow: hidden;
  padding: 0;
  border-top: 0;
  background: #fffdf8;
}

.howto-page .howto-hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2136 / 680;
  object-fit: cover;
}

.howto-page .howto-section {
  padding: 15px 16px 16px;
}

.howto-page .play-flow-section {
  position: relative;
  padding: 20px 18px 34px;
  overflow: hidden;
  border-color: #ead7ad;
  background: linear-gradient(135deg, rgba(255, 251, 241, 0.95), rgba(255, 255, 252, 0.98) 54%, rgba(252, 244, 226, 0.92));
}

.howto-page .play-flow,
.howto-page .cycle-flow {
  display: grid;
  align-items: center;
}

.howto-page .play-flow {
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr);
}

.howto-page .play-card,
.howto-page .cycle-card,
.howto-page .rank-card,
.howto-page .progress-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8 0%, #f8f1e2 100%);
}

.howto-page .play-card {
  position: relative;
  min-height: 300px;
  padding: 38px 18px 15px;
  overflow: visible;
  text-align: center;
  box-shadow: 0 8px 18px rgba(92, 66, 25, 0.08);
}

.howto-page .play-card.odai-card,
.howto-page .play-card.boke-card,
.howto-page .play-card.zabuton-card {
  display: block;
  background-color: #fffdf8;
  background-position: 0 0;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-origin: border-box;
}

.howto-page .play-card.odai-card {
  background-image: url("/image/hokusai_odai_back.png");
}

.howto-page .play-card.boke-card {
  background-image: url("/image/ichiyo_boke_back.png");
}

.howto-page .play-card.zabuton-card {
  background-image: url("/image/rikyu_like_back.png");
}

.howto-page .step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  transform: translateX(-50%);
  filter: drop-shadow(0 5px 9px rgba(103, 70, 15, 0.22));
}

.howto-page .step-number img,
.howto-page .play-icon img,
.howto-page .cycle-visual img,
.howto-page .final-panel img {
  display: block;
}

.howto-page .step-number img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.howto-page .play-icon {
  position: relative;
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.howto-page .play-icon img {
  width: auto;
  height: 164px;
  max-width: 96%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 8px 10px rgba(71, 50, 15, 0.12));
}

.howto-page .play-icon.odai img {
  height: 154px;
}

.howto-page .play-icon.zabuton img {
  height: 156px;
}

.howto-page .flow-arrow {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 50%;
  background: #fffdf8;
  color: #dca121;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(72, 52, 16, 0.13);
}

.howto-page .play-card h2,
.howto-page .cycle-card h3,
.howto-page .rank-card h3 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.howto-page .play-card h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #78b7ee;
}

.howto-page .play-card.boke-card h2::after {
  background: #e3b22a;
}

.howto-page .play-card.zabuton-card h2::after {
  background: #ef83a2;
}

.howto-page .play-card p,
.howto-page .cycle-card p,
.howto-page .rank-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.howto-page .rank-area {
  display: grid;
  gap: 13px;
}

.howto-page .rank-lane {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.howto-page .rank-card {
  position: relative;
  min-height: 132px;
  padding: 14px 12px;
  text-align: center;
  border-color: rgba(205, 176, 123, 0.82);
  background: radial-gradient(circle at 50% 0%, rgba(245, 188, 34, 0.12), transparent 48%), linear-gradient(180deg, #fffefa 0%, #fffaf0 56%, #f7efe2 100%);
}

.howto-page .rank-card.current {
  border-color: rgba(245, 188, 34, 0.86);
  background: radial-gradient(circle at 50% 0%, rgba(255, 214, 75, 0.3), transparent 52%), linear-gradient(180deg, #fffefa 0%, #fff5ca 100%);
}

.howto-page .rank-card:not(:last-child)::after {
  content: "▶";
  position: absolute;
  right: -13px;
  top: 50%;
  z-index: 2;
  color: var(--gold);
  font-size: 16px;
  transform: translateY(-50%);
}

.howto-page .rank-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #d7a53a;
  border-radius: 50%;
  background: radial-gradient(circle at 48% 62%, #4a4841 0%, #23231f 68%);
  color: #f5bc22;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Times New Roman", serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.howto-page .rank-card.current .rank-badge {
  background: radial-gradient(circle at 50% 62%, #ffd95c 0%, #d89a13 70%);
  color: #fffdf8;
}

.howto-page .rank-card h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Times New Roman", serif;
  font-size: 19px;
}

.howto-page .rank-condition-note,
.howto-page .cycle-note {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.howto-page .progress-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 16px;
  align-items: center;
  padding: 46px 16px 16px;
  overflow: hidden;
  border-color: rgba(211, 178, 113, 0.82);
  background: #faf7ee;
}

.howto-page .progress-sample-label {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  min-width: 66px;
  padding: 7px 12px 8px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #d7ad60 0%, #c99b45 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
}

.howto-page .progress-title {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 900;
}

.howto-page .progress-score-box {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.howto-page .progress-meter-wrap {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 84px;
  gap: 16px;
  align-items: center;
}

.howto-page .progress-score-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff0c5;
  color: #d99a00;
  font-size: 30px;
}

.howto-page .meter {
  height: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #f4ecd9;
}

.howto-page .meter span {
  display: block;
  width: 89%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #ffd34f, var(--gold));
}

.howto-page .meter-bubble {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.howto-page .progress-count {
  color: var(--gold-deep);
  font-size: 28px;
  font-weight: 900;
  white-space: nowrap;
}

.howto-page .progress-action {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(25, 23, 20, 0.16);
  border-radius: 7px;
  background: linear-gradient(180deg, #fffdf8 0%, #f3efe4 100%);
  color: #252525;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 3px 0 rgba(25, 23, 20, 0.22), 0 6px 12px rgba(43, 34, 18, 0.08);
}

.howto-page .cycle-flow {
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 12px;
}

.howto-page .cycle-card {
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 10px 12px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #fffefa 0%, #f9f2e7 100%);
  box-shadow: 0 8px 18px rgba(92, 66, 25, 0.08);
}

.howto-page .cycle-visual {
  position: relative;
  z-index: 1;
  width: 142px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: -7px auto 3px;
}

.howto-page .cycle-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(74, 51, 17, 0.12));
}

.howto-page .cycle-card h3 {
  min-height: 30px;
  margin-bottom: 0;
  font-size: 19px;
  white-space: normal;
}

.howto-page .cycle-card p {
  max-width: 150px;
  font-size: 13px;
  line-height: 1.6;
}

.howto-page .cycle-flow .flow-arrow {
  width: 34px;
  height: 34px;
  background: #252525;
  color: #efbc3b;
  font-size: 0;
}

.howto-page .cycle-flow .flow-arrow::before {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-size: 16px;
  font-weight: 900;
}

.howto-page .final-panel {
  display: block;
  overflow: hidden;
  padding: 0;
  border-color: rgba(245, 188, 34, 0.65);
  background: transparent;
}

.howto-page .final-panel img {
  width: 100%;
  height: auto;
}

.howto-page .desktop-sidebar .side-panel {
  overflow: hidden;
  padding: 0;
}

.howto-page .side-panel[aria-label="今日の人気ボケ"] .popular-item {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.howto-page .side-panel[aria-label="今日の人気ボケ"] .popular-rank {
  display: none;
}

.howto-page .side-panel[aria-label="総合ランキング"] .popular-item {
  grid-template-columns: 30px 58px minmax(0, 1fr) auto;
}

.howto-page .side-panel[aria-label="総合ランキング"] .popular-rank {
  width: 28px;
  height: 35px;
  align-self: start;
  margin-top: -10px;
  padding-bottom: 8px;
  border-radius: 0;
  background: #FAF7EE;
  color: #191714;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  font-size: 16px;
}

.howto-page .popular-count {
  color: #de7b99;
}

.howto-page .side-panel[aria-label="総合ランキング"] .popular-item:nth-child(1) .popular-rank {
  background: #F5BC22;
}

.howto-page .side-panel[aria-label="総合ランキング"] .popular-item:nth-child(2) .popular-rank {
  background: #d8d4cc;
}

.howto-page .side-panel[aria-label="総合ランキング"] .popular-item:nth-child(3) .popular-rank {
  background: #c98343;
}

.howto-page .howto-latest-panel {
  display: block;
}

@media (max-width: 980px) {
  .howto-page .layout,
  .howto-page .rank-area,
  .howto-page .final-panel {
    grid-template-columns: 1fr;
  }

  .howto-page .desktop-sidebar {
    display: none;
  }

  .howto-page .layout {
    padding: 0;
  }

  .howto-page .progress-card,
  .howto-page .progress-meter-wrap,
  .howto-page .progress-side,
  .howto-page .play-flow,
  .howto-page .cycle-flow,
  .howto-page .rank-lane {
    grid-template-columns: 1fr;
  }

  .howto-page .rank-lane {
    gap: 22px;
  }

  .howto-page .rank-card:not(:last-child)::after {
    content: "▶";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -19px;
    transform: translateX(-50%) rotate(90deg);
  }

  .howto-page .flow-arrow {
    margin-top: 5px;
    justify-self: center;
    transform: rotate(90deg);
  }

  .howto-page .play-flow .flow-arrow {
    margin-bottom: 27px;
  }

  .howto-page .cycle-note {
    margin-top: 5px;
  }

  .howto-page .play-card h2 {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .howto-page.page {
    width: 100%;
    padding: 0 10px 20px;
  }

  .howto-main {
    gap: 8px;
  }

  .howto-page .howto-hero {
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .howto-page .howto-hero-image {
    border-radius: 0;
  }

  .howto-page .latest-topic-panel {
    display: none;
  }
}

.topic-show-hero {
  margin-bottom: 12px;
}

.topic-show-page .layout {
  grid-template-columns: minmax(0, 1fr) 350px;
}

.topic-show-page .topic-detail {
  display: grid;
  gap: 15px;
  min-width: 0;
}

.topic-show-page .topic-section-panel,
.topic-show-page .topic-boke-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.topic-show-page .topic-show-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 20px 20px 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.topic-show-page .topic-date {
  color: #aaa49a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

@media (min-width: 641px) {
  .topic-show-page .topic-date {
    position: absolute;
    top: 18px;
    right: 20px;
  }
}

.topic-show-page .topic-section-title,
.topic-show-page .topic-subsection-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.25;
  font-weight: 900;
}

.topic-show-page .topic-section-title {
  font-size: 26px;
}

.topic-show-page .topic-section-title::after {
  content: "";
  order: -1;
  width: 5px;
  height: 34px;
  border-radius: 1px;
  background: var(--gold);
}

.topic-show-page .topic-subsection-title {
  color: #4f4a42;
  font-size: 18px;
}

.topic-show-page .topic-subsection-title::before {
  content: "";
  width: 4px;
  height: 24px;
  border-radius: 1px;
  background: #4f4a42;
}

.topic-show-page .topic-image-wrap {
  width: min(100%, 600px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.topic-show-page .topic-visual {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.topic-show-page .topic-show-card .topic-visual img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.topic-show-page .topic-visual .kakejiku {
  left: 68px;
  right: auto;
  top: 34px;
  width: 70px;
  height: 120px;
}

.topic-show-page .topic-visual .monk {
  left: 235px;
  bottom: 74px;
  width: 118px;
  height: 148px;
}

.topic-show-page .topic-visual .monk::before {
  top: -56px;
  left: 23px;
  width: 76px;
  height: 76px;
}

.topic-show-page .topic-visual .monk::after {
  top: 2px;
  left: 83px;
  width: 40px;
  height: 66px;
}

.topic-show-page .topic-visual .roomba {
  left: 94px;
  bottom: 64px;
  width: 132px;
  height: 34px;
}

.topic-show-page .topic-meta {
  min-width: 0;
  margin: 15px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 22px;
  row-gap: 18px;
  color: #4c463d;
  font-size: 13px;
  font-weight: 800;
}

.topic-show-page .topic-meta span {
  min-width: 0;
}

.topic-show-page .topic-meta-logo {
  display: block;
  width: auto;
  height: 20px;
  object-fit: contain;
}

.topic-show-page .topic-actions {
  width: min(100%, 600px);
  max-width: 100%;
  min-width: 0;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: static;
}

.topic-show-page .topic-boke-button,
.topic-show-page .topic-report-button {
  height: 50px;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.topic-show-page .topic-boke-button {
  border: 0;
  background: linear-gradient(180deg, #ffd34f, var(--gold));
  color: #17130c;
  box-shadow: 0 3px 0 #d99f10;
}

@media (min-width: 901px) {
  .topic-show-page .topic-boke-button {
    width: 300px;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }
}

.topic-show-page .topic-report-button {
  display: inline-grid;
  place-items: center;
  list-style: none;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  text-decoration: underline;
}

.topic-show-page .topic-report-button::-webkit-details-marker {
  display: none;
}

.topic-show-page .topic-main-report-details {
  position: absolute;
  right: 20px;
  bottom: 24px;
}

.topic-show-page .topic-main-report-form {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(280px, 80vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(221, 214, 200, 0.9);
  border-radius: 7px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.topic-show-page .topic-main-report-reason,
.user-show-page .user-topic-report-reason {
  min-width: 0;
  height: 32px;
  border: 1px solid rgba(221, 214, 200, 0.9);
  border-radius: 6px;
  padding: 0 8px;
  background: #fffdf8;
  color: #191714;
  font-size: 12px;
  font-weight: 800;
}

.topic-show-page .topic-main-report-submit,
.user-show-page .user-topic-report-submit {
  height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: #222;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.topic-show-page .topic-like {
  position: absolute;
  left: 20px;
  right: auto;
  bottom: 22px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d989a1;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.topic-show-page .topic-like-number {
  display: inline;
  font-size: 15px;
}

.topic-show-page .topic-like:active,
.topic-show-page .topic-like:focus {
  background: transparent;
  outline: none;
}

.topic-show-page .topic-like:focus-visible {
  outline: 2px solid rgba(216, 148, 164, 0.45);
  outline-offset: 2px;
}

.topic-show-page .topic-like-count {
  display: none;
}

.topic-show-page .topic-show-card > .topic-like-inline-message {
  margin: 8px 0 0;
  text-align: left;
}

.topic-show-page .boke-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.9);
}

.topic-show-page .boke-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #3f382f;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.topic-show-page .boke-tab:last-child {
  border-right: 0;
}

.topic-show-page .boke-tab.active {
  background: #222;
  color: var(--gold);
}

.topic-show-page .boke-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  min-width: 0;
}

.topic-show-page .boke-card-grid[hidden] {
  display: none;
}

.topic-show-page .boke-card-grid .boke-card[hidden] {
  display: none;
}

.topic-show-page .topic-boke-panel .boke-card {
  padding: 8px;
}

.topic-show-page .same-category-topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  min-width: 0;
}

.topic-boke-more[hidden] {
  display: none;
}

.boke-show-page .boke-card-grid .boke-card {
  padding: 8px;
}

@media (min-width: 641px) {
  .topic-show-page .topic-boke-panel .boke-tab-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-show-page .same-category-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boke-show-page .related-boke-grid,
  .boke-show-page .category-boke-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boke-show-page .related-boke-grid .card-visual-link,
  .boke-show-page .category-boke-grid .card-visual-link {
    aspect-ratio: 16 / 11;
  }
}

.topic-show-page .boke-card .odai-visual {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.topic-show-page .topic-boke-panel .boke-card > .card-visual-link {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  display: block;
  overflow: hidden;
}

.topic-show-page .topic-boke-panel .boke-card > .card-visual-link > .odai-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
}

.topic-show-page .boke-card-date {
  position: static;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0 8px;
  text-align: right;
}

.topic-show-page .legacy-sidebar {
  display: grid;
}

.topic-show-page .side-panel[aria-label="今日の人気ボケ"] .popular-item {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.topic-show-page .side-panel[aria-label="今日の人気ボケ"] .popular-rank {
  display: none;
}

.topic-show-page .side-panel[aria-label="総合ランキング"] .popular-item {
  grid-template-columns: 30px 58px minmax(0, 1fr) auto;
}

.topic-show-page .side-panel[aria-label="総合ランキング"] .popular-rank {
  width: 28px;
  height: 35px;
  align-self: start;
  margin-top: -10px;
  padding-bottom: 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 0;
  background: #FAF7EE;
  color: #191714;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.topic-show-page .side-panel[aria-label="総合ランキング"] .popular-item:nth-child(1) .popular-rank {
  background: #F5BC22;
}

.topic-show-page .side-panel[aria-label="総合ランキング"] .popular-item:nth-child(2) .popular-rank {
  background: #d8d4cc;
}

.topic-show-page .side-panel[aria-label="総合ランキング"] .popular-item:nth-child(3) .popular-rank {
  background: #c98343;
}

.topic-show-page .popular-count {
  color: #de7b99;
}

.topic-show-page .latest-topic-panel {
  grid-column: 1 / -1;
}

.boke-show-page .boke-detail-card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 18px;
  border: 1px solid rgba(221, 214, 200, 0.9);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.boke-show-page .boke-detail-card > .boke-card-date {
  position: static;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0 8px;
  text-align: right;
}

.boke-show-page .boke-detail-visual {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.boke-show-page .boke-detail-visual .monk::after,
.boke-show-page .boke-card .odai-visual .monk::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 72px;
  width: 36px;
  height: 58px;
  border-radius: 7px;
  background: #222;
  transform: rotate(-12deg);
  box-shadow: inset 0 0 0 5px #383838;
}

.boke-show-page .boke-detail-text {
  min-height: 120px;
  margin: 6px 0 0;
  min-width: 0;
  display: grid;
  place-items: center;
  color: #191714;
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.45;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.boke-show-page .comment-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FAF7EE;
  box-shadow: var(--shadow);
}

.boke-show-page .comment-tabs {
  width: min(260px, 100%);
  grid-template-columns: repeat(2, 1fr);
  margin: 10px auto 8px;
}

.boke-show-page .comment-form-card {
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid rgba(245, 188, 34, 0.45);
  border-radius: 7px;
  background: #FAF7EE;
}

.boke-show-page .comment-panel + .comment-form-card {
  margin-top: 10px;
}

.boke-show-page .comment-form-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #333333;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.boke-show-page .comment-form-head i {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(245, 188, 34, 0.2);
  color: var(--gold-deep);
  font-size: 15px;
}

.boke-show-page .comment-form-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(221, 214, 200, 0.85);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.86);
}

.boke-show-page .comment-form-note {
  margin: 0;
  color: #aaa49a;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.boke-show-page .comment-form-feedback {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(216, 148, 0, 0.3);
  border-radius: 7px;
  background: #fff8df;
  color: #5c4514;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 900;
}

.boke-show-page .comment-form-feedback-success {
  border-color: rgba(37, 142, 89, 0.28);
  background: #eefaf3;
  color: #24623e;
}

.boke-show-page .comment-form-action {
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
}

.boke-show-page .comment-submit-button {
  min-width: 112px;
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffd34f, #f5bc22);
  color: #fffdf8;
  font-size: 14px;
  font-weight: 900;
  cursor: not-allowed;
  box-shadow: inset 0 -2px 0 rgba(137, 94, 0, 0.16);
}

.boke-show-page .comment-submit-button[type="submit"] {
  cursor: pointer;
}

.boke-show-page .comment-input {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: #191714;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  resize: vertical;
}

.boke-show-page .comment-input:focus {
  outline: 0;
}

.boke-show-page .comment-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boke-show-page .comment-item {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid rgba(221, 214, 200, 0.9);
}

.boke-show-page .comment-item:first-child {
  border-top: 0;
}

.boke-show-page .comment-user {
  min-width: max-content;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
}

.boke-show-page .comment-text {
  margin: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  color: #191714;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.boke-show-page .comment-body {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.boke-show-page .comment-more-button {
  display: grid;
  place-items: center;
  width: calc(100% - 24px);
  height: 38px;
  margin: 0 12px 12px;
  border: 1px solid rgba(216, 148, 0, 0.72);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.user-show-page {
  width: min(100% - 24px, 430px);
  margin: 0 auto;
  padding: 14px 0 28px;
}

.user-show-page .profile-card,
.user-show-page .daily-popular-card,
.user-show-page .mini-boke-card,
.user-show-page .ranking-link-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.user-show-page .profile-card {
  overflow: hidden;
  margin-bottom: 10px;
}

.user-show-page .user-topic-report::-webkit-details-marker {
  display: none;
}

.user-show-page .user-topic-report-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 8px;
}

.user-show-page .profile-social-links {
  position: absolute;
  top: 18px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.user-show-page .profile-social-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #000000;
  color: #fffdf8;
  font-size: 17px;
  text-decoration: none;
  opacity: 0.92;
}

.user-show-page .profile-head {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 24px 22px 18px;
}

.user-show-page .profile-avatar {
  width: 78px;
  height: 78px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #FAF7EE;
  box-shadow: none;
}

.user-show-page .profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.user-show-page .profile-name {
  min-width: 0;
}

.user-show-page .profile-name h1 {
  margin: 0 0 7px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
}

.user-show-page .profile-name p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.user-show-page .profile-bio-text {
  margin: -2px 20px 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #FAF7EE;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
}

.user-show-page .profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 20px 22px;
}

.user-show-page .profile-stat {
  min-width: 0;
  text-align: center;
  border-right: 1px solid var(--line);
}

.user-show-page .profile-stat:last-child {
  border-right: 0;
}

.user-show-page .profile-stat strong {
  display: block;
  color: var(--gold-deep);
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
}

.user-show-page .profile-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.user-show-page .daily-popular-card {
  margin: 0 0 14px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: rgba(255, 253, 248, 0.96);
}

.user-show-page .daily-popular-label {
  margin: 0 0 5px;
  color: #333333;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

.user-show-page .daily-popular-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.user-show-page .daily-popular-number {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--gold-deep);
  line-height: 1;
  white-space: nowrap;
}

.user-show-page .daily-popular-number strong {
  font-size: 30px;
  font-weight: 900;
}

.user-show-page .daily-popular-number span {
  font-size: 15px;
  font-weight: 900;
}

.user-show-page .mypage-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 5px 16px rgba(43, 34, 18, 0.12);
}

.user-show-page .mypage-tab {
  position: relative;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-right: 1px solid rgba(221, 214, 200, 0.72);
  background: transparent;
  color: #25211b;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.user-show-page .mypage-tab:last-child {
  border-right: 0;
}

.user-show-page .mypage-tab i {
  font-size: 17px;
}

.user-show-page .mypage-tab.active {
  color: var(--gold-deep);
}

.user-show-page .mypage-tab.active::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.user-show-page .mini-boke-list,
.user-show-page .user-topic-list {
  display: grid;
  gap: 5px;
}

.user-show-page .user-feed-panel[hidden] {
  display: none;
}

.user-show-page .mini-boke-card {
  position: relative;
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 14px;
  padding: 24px 14px 13px;
}

.user-show-page .mini-date {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #aaa49a;
  font-size: 11px;
  font-weight: 800;
}

.user-show-page .mini-thumb,
.user-show-page .user-topic-visual,
.user-show-page .popular-thumb {
  overflow: hidden;
  background: linear-gradient(180deg, #f5dfb8 0 62%, #d5bd79 62% 100%);
}

.user-show-page .mini-thumb {
  height: 78px;
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 5px;
}

.user-show-page .mini-thumb img,
.user-show-page .user-topic-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.user-show-page .mini-thumb .scene,
.user-show-page .user-topic-visual .scene {
  inset: auto;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
}

.topic-visual,
.latest-topic-visual,
.odai-visual,
.boke-detail-visual,
.user-show-page .mini-thumb,
.user-show-page .user-topic-visual {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.topic-visual > img,
.latest-topic-visual > img,
.odai-visual > img,
.boke-detail-visual > img,
.user-show-page .mini-thumb > img,
.user-show-page .user-topic-visual > img {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.user-show-page .mini-scene {
  position: relative;
  width: 100%;
  height: 100%;
}

.user-show-page .mini-head {
  position: absolute;
  top: 11px;
  left: 47px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #deb176;
}

.user-show-page .mini-shadow {
  position: absolute;
  left: 18px;
  bottom: 14px;
  width: 62px;
  height: 18px;
  border-radius: 50%;
  background: #1b1b1b;
}

.user-show-page .mini-body {
  min-width: 0;
  padding-top: 10px;
}

.user-show-page .mini-text {
  margin: 0 0 16px;
  min-width: 0;
  color: #191714;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.user-show-page .mini-user-name,
.user-show-page .user-card-zabuton,
.user-show-page .user-topic-author {
  display: none;
}

.user-show-page .mini-odai {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 800;
}

.user-show-page .mini-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 800;
}

.user-show-page .mini-zabuton {
  color: var(--reaction);
}

.user-show-page .mini-zabuton i {
  margin-right: 5px;
  font-size: 17px;
}

.user-show-page .mini-report,
.user-show-page .user-topic-report {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  list-style: none;
}

.user-show-page .user-feed-container {
  display: grid;
  gap: 10px;
}

.user-show-page .user-topic-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.user-show-page .user-topic-date {
  display: block;
  margin: 15px 18px 0 auto;
  color: #aaa49a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.user-show-page .user-topic-visual {
  height: 170px;
  margin: 8px 14px 0;
  border-radius: 5px;
}

.user-show-page .user-topic-body {
  padding: 14px;
  text-align: center;
}

.user-show-page .user-topic-action {
  width: 100%;
  min-width: 0;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffd34f, var(--gold));
  color: #191714;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 -3px 0 rgba(137, 94, 0, 0.18);
}

.user-show-page .user-topic-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.user-show-page .user-topic-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--reaction);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.user-show-page .user-topic-like i {
  font-size: 20px;
}

.user-show-page .post-pagination {
  margin: 10px 0 0;
  padding: 5px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.user-show-page .pagination-button,
.user-show-page .pagination-status {
  min-width: 0;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.user-show-page .pagination-button {
  border: 1px solid rgba(245, 188, 34, 0.85);
  background: #fffdf8;
  color: var(--gold-deep);
  cursor: pointer;
}

.user-show-page .pagination-button:disabled {
  border-color: var(--line);
  color: #aaa49a;
  cursor: default;
  opacity: 0.75;
}

.user-show-page .pagination-status {
  color: #333333;
}

.user-show-page .ranking-link-card {
  position: relative;
  margin-top: 16px;
  padding: 20px;
  border-color: var(--gold);
  background: rgba(255, 253, 248, 0.97);
}

.user-show-page .ranking-link-card h2 {
  margin: 0 0 7px;
  color: #333333;
  font-size: 19px;
  font-weight: 900;
}

.user-show-page .ranking-link-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.user-show-page .ranking-icon {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--gold-deep);
  font-size: 30px;
}

.user-show-page .ranking-button {
  width: 142px;
  height: 36px;
  margin: 18px 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffd34f, var(--gold));
  color: #191714;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(137, 94, 0, 0.18);
}

.user-show-page .desktop-sidebar {
  display: none;
}

.user-show-page .popular-thumb {
  height: 44px;
  display: block;
  border-radius: 5px;
}

.user-show-page .popular-thumb .mini-scene {
  transform: scale(0.72);
  transform-origin: center;
}

@media (min-width: 901px) {
  .user-show-page {
    width: var(--inner-width);
    min-width: var(--inner-min);
    max-width: var(--inner-max);
    padding: 15px 20px 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 16px;
    align-items: start;
  }

  .user-show-page .profile-card,
  .user-show-page .user-feed-container {
    grid-column: 1;
  }

  .user-show-page .user-feed-container {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--shadow);
  }

  .user-show-page .profile-card {
    margin-bottom: 0;
  }

  .user-show-page .profile-social-links {
    top: 28px;
    right: 28px;
  }

  .user-show-page .profile-social-link {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .user-show-page .profile-head {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 22px;
    padding: 28px 28px 8px;
  }

  .user-show-page .profile-avatar {
    grid-row: 1 / span 3;
    width: 112px;
    height: 112px;
  }

  .user-show-page .profile-card.is-deleted-user .profile-avatar {
    grid-row: auto;
  }

  .user-show-page .profile-card.is-deleted-user .profile-head {
    padding-bottom: 28px;
  }

  .user-show-page .profile-name h1 {
    margin-bottom: 10px;
    font-size: 30px;
  }

  .user-show-page .profile-name p {
    width: fit-content;
    padding: 5px 10px;
    border: 1px solid rgba(245, 188, 34, 0.65);
    border-radius: 6px;
    background: #FAF7EE;
    color: #6d4d15;
    font-size: 14px;
  }

  .user-show-page .profile-bio-text {
    margin: -42px 28px 12px 180px;
    padding: 0;
    background: transparent;
    font-size: 13px;
    line-height: 1.7;
  }

  .user-show-page .profile-stats {
    margin-left: 170px;
    padding: 12px 28px 24px 0;
  }

  .user-show-page .profile-stat strong {
    font-size: 34px;
  }

  .user-show-page .profile-stat span {
    font-size: 13px;
  }

  .user-show-page .daily-popular-card,
  .user-show-page > .ranking-link-card {
    display: none;
  }

  .user-show-page .mypage-tabs {
    margin: 0;
    border-radius: 8px;
  }

  .user-show-page .mypage-tab {
    height: 56px;
    font-size: 16px;
  }

  .user-show-page .mypage-tab.active::after {
    left: 0;
    right: 0;
  }

  .user-show-page .mini-boke-list,
  .user-show-page .user-topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .user-show-page .user-topic-card,
  .user-show-page .mini-boke-card {
    min-height: 418px;
  }

  .user-show-page .mini-boke-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    gap: 0;
    overflow: hidden;
    padding: 0;
  }

  .user-show-page .mini-date {
    position: static;
    display: block;
    margin: 15px 18px 0 auto;
    font-size: 12px;
    line-height: 1;
    text-align: right;
  }

  .user-show-page .mini-thumb {
    width: calc(100% - 30px);
    height: 210px;
    margin: 8px auto 0;
  }

  .user-show-page .mini-body {
    display: grid;
    align-content: start;
    padding: 16px 16px 0;
    text-align: center;
  }

  .user-show-page .mini-text {
    min-height: 0;
    margin: 0;
    display: block;
    font-size: 23px;
    line-height: 1.45;
  }

  .user-show-page .mini-user-name {
    width: fit-content;
    margin: 12px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #4c463d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
  }

  .user-show-page .mini-odai {
    display: none;
  }

  .user-show-page .user-card-zabuton {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .user-show-page .user-card-zabuton-button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .user-show-page .user-card-zabuton-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .user-show-page .mini-foot {
    grid-column: auto;
    grid-row: auto;
    align-self: end;
    padding: 14px 16px 16px;
    margin-top: 0;
  }

  .user-show-page .mini-zabuton {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1;
    text-align: left;
  }

  .user-show-page .mini-zabuton i {
    display: none;
  }

  .user-show-page .user-topic-card {
    display: grid;
    grid-template-rows: auto auto auto;
  }

  .user-show-page .user-topic-author {
    position: absolute;
    top: 15px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #4c463d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
  }

  .user-show-page .user-topic-visual {
    width: calc(100% - 30px);
    height: 260px;
    margin: 8px auto 0;
  }

  .user-show-page .user-topic-body {
    align-self: end;
    padding: 16px 14px 14px;
  }

  .user-show-page .user-topic-action {
    height: 52px;
    font-size: 22px;
  }

  .user-show-page .post-pagination {
    margin: 0;
    box-shadow: none;
  }

  .user-show-page .desktop-sidebar {
    grid-column: 2;
    grid-row: 1 / span 5;
    display: grid;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .user-show-page {
    width: 100%;
    padding: 12px 12px 28px;
  }

  .user-show-page .profile-head {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    padding: 18px 14px 16px;
  }

  .user-show-page .profile-card.has-profile-social .profile-head {
    padding: 18px 92px 16px 14px;
  }

  .user-show-page .profile-avatar {
    width: 68px;
    height: 68px;
  }

  .user-show-page .profile-name h1 {
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .profile-social-fields {
    gap: 0;
  }

  .user-show-page .profile-name p {
    font-size: 12px;
  }

  .user-show-page .profile-bio-text {
    margin: -1px 14px 14px;
  }

  .user-show-page .mypage-tab {
    height: 50px;
    gap: 6px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .user-show-page .profile-head {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
    padding: 18px 12px 16px;
  }

  .user-show-page .profile-card.has-profile-social .profile-head {
    padding: 18px 84px 16px 12px;
  }

  .user-show-page .profile-social-links {
    right: 12px;
    gap: 6px;
  }

  .user-show-page .profile-social-link {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .user-show-page .profile-avatar {
    width: 62px;
    height: 62px;
  }

  .user-show-page .profile-name h1 {
    font-size: 19px;
  }

  .user-show-page .mini-boke-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }
}

.mypage-sample-page .profile-head {
  grid-template-columns: 86px minmax(0, 1fr) auto;
}

.mypage-sample-page .profile-edit {
  min-width: 64px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: #252525;
  color: #fffdf8;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.mypage-sample-page .dashboard-cards {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.mypage-sample-page .score-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.mypage-sample-page .score-card h2 {
  margin: 0 0 12px;
  color: #333333;
  font-size: 16px;
  font-weight: 900;
}

.mypage-sample-page .score-trophy {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--gold-deep);
  font-size: 22px;
}

.mypage-sample-page .score-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.mypage-sample-page .score-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee3c8;
}

.mypage-sample-page .score-fill {
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd34f, var(--gold-deep));
}

.mypage-sample-page .score-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mypage-sample-page .score-percent {
  color: var(--gold-deep);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.mypage-sample-page .mypage-tabs {
  grid-template-columns: repeat(3, 1fr);
}

.mypage-sample-page .mini-delete,
.mypage-sample-page .user-topic-delete,
.mypage-sample-page .favorite-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.mypage-sample-page .favorite-feed {
  display: grid;
  gap: 5px;
}

.mypage-sample-page .favorite-feed[hidden] {
  display: none;
}

.profile-editor {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  align-items: end;
  pointer-events: none;
}

.profile-editor[hidden] {
  display: none;
}

.profile-editor-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
  transition: background 0.8s ease;
}

.profile-editor-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: 70svh;
  margin: 0 auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 18px 20px;
  border: 1px solid rgba(221, 214, 200, 0.95);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #fffdf8;
  box-shadow: 0 -12px 32px rgba(43, 34, 18, 0.18);
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.profile-editor.is-open {
  pointer-events: auto;
}

.profile-editor.is-open .profile-editor-backdrop {
  background: rgba(0, 0, 0, 0.42);
}

.profile-editor.is-open .profile-editor-sheet {
  transform: translateY(0);
}

.profile-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-editor-title {
  margin: 0;
  color: #333333;
  font-size: 18px;
  font-weight: 900;
}

.profile-editor-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FAF7EE;
  color: #333333;
  cursor: pointer;
}

.profile-editor-avatar {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.profile-editor-avatar img {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: cover;
  border: 4px solid #fffdf8;
  border-radius: 50%;
  background: #FAF7EE;
  box-shadow: 0 0 0 1px rgba(245, 188, 34, 0.35);
}

.profile-avatar-button {
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(245, 188, 34, 0.9);
  border-radius: 7px;
  background: #FAF7EE;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.profile-editor-form {
  display: grid;
  gap: 14px;
}

.profile-field {
  display: grid;
  gap: 7px;
}

.profile-field label {
  color: #333333;
  font-size: 13px;
  font-weight: 900;
}

.profile-field input,
.profile-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FAF7EE;
  color: #191714;
  font-size: 15px;
  font-weight: 800;
  outline: none;
}

.profile-field input {
  height: 44px;
  padding: 0 12px;
}

.profile-field textarea {
  min-height: 104px;
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
}

.profile-field input:focus,
.profile-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 188, 34, 0.18);
}

.profile-field-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 800;
}

.profile-editor-error {
  min-height: 18px;
  margin: 0;
  color: #c9483c;
  font-size: 12px;
  font-weight: 900;
}

.profile-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-editor-cancel,
.profile-editor-save {
  height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.profile-editor-cancel {
  border: 1px solid var(--line);
  background: #fffdf8;
  color: #333333;
}

.profile-editor-save {
  border: 0;
  background: linear-gradient(180deg, #ffd34f, var(--gold));
  color: #191714;
  box-shadow: inset 0 -3px 0 rgba(137, 94, 0, 0.18);
}

@media (min-width: 901px) {
  .mypage-sample-page .profile-head {
    grid-template-columns: 130px minmax(0, 1fr) auto;
  }

  .mypage-sample-page .dashboard-cards {
    grid-column: 1;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 0;
  }

  .mypage-sample-page .daily-popular-card {
    display: grid;
  }

  .mypage-sample-page .favorite-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .profile-editor {
    align-items: center;
    padding: 24px;
  }

  .profile-editor-backdrop {
    transition: background 0.22s ease;
  }

  .profile-editor-sheet {
    width: min(100%, 560px);
    max-height: calc(100vh - 48px);
    border-bottom: 1px solid rgba(221, 214, 200, 0.95);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(43, 34, 18, 0.24);
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .profile-editor.is-open .profile-editor-sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .mypage-sample-page .profile-head {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }

  .mypage-sample-page .profile-edit {
    min-width: 54px;
    height: 32px;
  }

  .mypage-sample-page .score-card {
    padding: 14px;
  }
}

@media (min-width: 981px) {
  .topic-show-page .legacy-sidebar {
    display: grid;
  }
}

@media (max-width: 900px) {
  .topic-show-page .layout {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }

  .topic-show-page .legacy-sidebar {
    display: grid;
  }
}

@media (max-width: 640px) {
  .topic-show-hero {
    width: 100vw;
    max-width: none;
    margin: -16px calc(50% - 50vw) 12px;
  }

  .topic-show-hero picture {
    aspect-ratio: auto;
    border-radius: 0;
  }

  .topic-show-hero .hero-banner {
    height: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .topic-show-page .topic-section-panel,
  .topic-show-page .topic-boke-panel {
    padding: 10px;
  }

  .topic-show-page .topic-show-card {
    padding: 16px 12px 62px;
  }

  .topic-show-page .topic-date {
    display: block;
    margin-bottom: 12px;
    text-align: right;
  }

  .topic-show-page .topic-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .topic-show-page .topic-visual .kakejiku {
    left: 58px;
    top: 24px;
    width: 58px;
    height: 96px;
  }

  .topic-show-page .topic-visual .monk {
    left: 168px;
    bottom: 64px;
    width: 104px;
    height: 132px;
  }

  .topic-show-page .topic-visual .monk::before {
    top: -48px;
    left: 20px;
    width: 66px;
    height: 66px;
  }

  .topic-show-page .topic-visual .monk::after {
    top: 3px;
    left: 72px;
    width: 36px;
    height: 58px;
  }

  .topic-show-page .topic-visual .roomba {
    left: 105px;
    bottom: 58px;
    width: 118px;
    height: 30px;
  }

  .topic-show-page .topic-actions {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .topic-show-page .topic-boke-button {
    height: 44px;
    font-size: 17px;
  }

  .topic-show-page .topic-report-button {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
    text-decoration: underline;
    box-shadow: none;
  }

  .topic-show-page .topic-main-report-details {
    right: 14px;
    bottom: 14px;
  }

  .topic-show-page .topic-like {
    left: 14px;
    right: auto;
    bottom: 14px;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 0;
    color: #d989a1;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
  }

  .topic-show-page .topic-like-count {
    display: none;
  }

  .topic-show-page .topic-like-number {
    display: inline;
    font-size: 15px;
  }

  .topic-show-page .topic-show-card > .topic-like-inline-message {
    font-size: 11px;
  }

  .topic-show-page .topic-subsection-title {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 23px;
    line-height: 1.25;
    box-shadow: none;
  }

  .topic-show-page .topic-subsection-title::before {
    content: "";
    width: 5px;
    height: 34px;
    display: block;
    flex: 0 0 auto;
    border-radius: 1px;
    background: var(--gold);
  }

  .topic-show-page .boke-tabs {
    position: relative;
    z-index: 1;
    gap: 0;
    margin: 0;
    padding: 0 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(221, 214, 200, 0.9);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.97);
    box-shadow: 0 5px 16px rgba(43, 34, 18, 0.12);
  }

  .boke-show-page .comment-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-show-page .boke-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    height: 35px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1f1d1a;
    font-size: 14px;
    box-shadow: none;
  }

  .topic-show-page .boke-tab i {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 17px;
  }

  .topic-show-page .boke-tab + .boke-tab {
    border-left: 1px solid rgba(221, 214, 200, 0.72);
  }

  .topic-show-page .boke-tab.active {
    background: transparent;
    color: var(--gold-deep);
    box-shadow: none;
  }

  .topic-show-page .boke-tab.active::after {
    content: "";
    position: absolute;
    left: 28%;
    right: 28%;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--gold);
  }

  .topic-show-page .boke-card-text {
    font-size: 24px;
  }

  .topic-show-page .boke-user-meta {
    gap: 12px;
    flex-wrap: wrap;
  }

  .boke-show-page .boke-detail-card {
    padding: 16px 13px 13px;
  }

  .boke-show-page .boke-detail-text {
    min-height: 132px;
    font-size: clamp(30px, 10vw, 42px);
  }

  .boke-show-page .comment-panel {
    margin-top: 10px;
    padding: 10px 5px 5px;
    border-radius: 7px;
    box-shadow: none;
  }

  .boke-show-page .comment-tabs {
    margin: 0 auto 8px;
    padding: 0 8px;
    box-shadow: none;
  }

  .boke-show-page .comment-form-card {
    margin: 0 0 10px;
    padding: 12px;
  }

  .boke-show-page .comment-panel + .comment-form-card {
    margin-top: 0;
  }

  .boke-show-page .comment-form-head {
    margin-bottom: 10px;
    font-size: 17px;
  }

  .boke-show-page .comment-form-body {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 12px;
  }

  .boke-show-page .comment-submit-button {
    justify-self: end;
  }

  .boke-show-page .comment-item {
    padding: 12px 8px;
  }

  .boke-show-page .comment-text {
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 13px;
  }

  .boke-show-page .comment-user {
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .mypage-page .profile-card {
    padding: 0;
  }

  .mypage-page .profile-head {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px 14px 14px;
  }

  .mypage-page .profile-card .mypage-avatar {
    width: 58px;
    height: 58px;
  }

  .mypage-page .profile-card .profile-edit {
    grid-column: auto;
    width: auto;
    justify-self: end;
    align-self: center;
  }

  .mypage-page .profile-card .profile-bio-text {
    margin: 0 14px 14px;
  }

  .mypage-page .profile-card .profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 14px 18px;
  }

  .mypage-page .profile-card .profile-stat {
    min-height: 0;
    padding: 0;
  }

  .mypage-page .profile-card .profile-stat strong {
    font-size: 22px;
  }

  .mypage-page .mini-boke-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    padding: 24px 10px 12px;
  }

  .mypage-page .mini-thumb {
    width: 88px;
    height: 66px;
  }

  .mypage-page .mini-body {
    padding-top: 7px;
  }
}
