/* =========================
   Reset / Base
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f9f9f9;
  --card: #ffffff;
  --text: #222;
  --muted: #666;
  --line: #dcdfe6;
  --accent: #111;
  --accent-2: #2f6fed;
  --danger: #d93025;
  --ok: #188038;
  --radius: 14px;
  --header-bg: #ffffff;
  --header-text: #111111;
  --header-border: #e8e8e8;
  --header-shadow: 0 2px 12px rgba(187, 187, 187, 0.1);
  --header-max: 1360px;
  --pc-header-h: 64px;
  --sp-top-h: 44px;
  --sp-bottom-h: 44px;
  --z-header: 1000;
  --z-search: 1005;
  --z-overlay: 1004;
  --z-menu: 1010;
  --kvh-text: #222;
  --kvh-muted: #666;
  --kvh-accent: #ff4f8b;
  --kvh-accent-soft: #fff2f7;
  --kvh-panel: #fff;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding-top: var(--pc-header-h);
  color: var(--header-text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  line-height: 1.6;
  background: #fefefe;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

.p-3 {
  padding: 15px;
}

.p-md-3 {
  padding: 15px;
}

@media all and (max-width: 768px) {
  .p-md-3 {
    padding: 5px;
  }
}

.page-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}

.page-subtitle {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  color: #666;
}

.list-title {
  position: relative;
  text-align: center;
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  color: #444;
  letter-spacing: 0.05em;
}

.list-title::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: #f5dde3;
}

.list-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 36px;
  height: 2px;
  background: #e6a8b6;
  border-radius: 999px;
}

.home-section-s {
  margin-bottom: 50px;
}

.home-section-s:last-child {
  margin-bottom: 0;
}

.home-section {
  margin-bottom: 22px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 2px 2px #f8f8f8;
  padding: 14px;
  background-color: #fff;
}

.home-section:last-child {
  margin-bottom: 0;
}

.main-contenter {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 24px 16px;
  min-height: calc(100vh - 186px);
}

@media all and (max-width: 768px) {
  .main-contenter {
    width: 100%;
    padding: 35px 10px 15px 10px;
  }
}

i {
  margin-right: 4px;
}

/* 2カラム */
.content-flex {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}

/* メイン */
.main-column {
  flex: 1;
  min-width: 0;
}

/* サイド */
.side-column {
  width: 260px;
}

/* スマホ */
@media (max-width:768px) {

  .content-flex {
    display: block;
  }

  .side-column {
    display: none;
  }

}

/* =========================
   Header
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: color-mix(in srgb, var(--header-bg) 85%, transparent);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(6px);
  box-shadow: var(--header-shadow);
  z-index: var(--z-header);
}

.header-inner {
  max-width: var(--header-max);
  height: var(--pc-header-h);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-logo {
  flex: 0 0 auto;
  min-width: 0;
}

.site-logo a {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-logo img {
  display: block;
  max-height: 40px;
  width: auto;
  max-width: 220px;
}

.site-title {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.header-nav a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

/* dropdown */
.nav-item {
  position: relative;
}

.nav-item>a {
  position: relative;
  padding-right: 16px;
}

.nav-item>a::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: translateY(-60%) rotate(45deg);
  transition: transform .2s ease;
}

/* hover時に矢印回転 */
.nav-item:hover>a::after {
  transform: translateY(-60%) rotate(225deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  min-width: 160px;
  padding: 6px 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s ease;
  z-index: 50;
}

.dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 16px;
  white-space: nowrap;
}

.dropdown a:hover {
  background: #f6f6f6;
}

/* hoverで表示 */
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 260px;
}

/* 区切り線 */
.dropdown-info a {
  border-bottom: 1px solid #f0f0f0;
}

/* 左列の縦線 */
.dropdown-info a:nth-child(odd) {
  border-right: 1px solid #f0f0f0;
}

/* 最後の行は下線消す */
.dropdown-info a:nth-last-child(-n+2) {
  border-bottom: none;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.header-icon-btn:hover {
  background: rgba(0, 0, 0, .05);
}

/* 検索アイコン */
.icon-search {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.icon-search::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid #111;
  border-radius: 50%;
}

.icon-search::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 7px;
  height: 2px;
  background: #111;
  transform: rotate(45deg);
  transform-origin: right center;
  border-radius: 2px;
}

/* メニューアイコン */
.icon-menu {
  position: relative;
  width: 18px;
  height: 14px;
  display: block;
}

.icon-menu::before,
.icon-menu::after,
.icon-menu {
  background: none;
}

.icon-menu::before,
.icon-menu::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

.icon-menu::before {
  top: 0;
  box-shadow: 0 6px 0 #111, 0 12px 0 #111;
}

/* 検索ポップアップ */
.header-search-popup {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  padding: 14px 16px;
  display: none;
  z-index: var(--z-search);
}

.header-search-popup.is-open {
  display: block;
}

.header-search-form {
  max-width: var(--header-max);
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.header-search-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
}

.header-search-form input:focus {
  border-color: #999;
}

.header-search-form button {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 14px;
}

.header-search-overlay {
  position: fixed;
  inset: 0;
  display: none;
}

.header-search-overlay.is-open {
  display: block;
}

/* SPメニュー */
.sp-side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(84vw, 340px);
  height: 100dvh;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, .14);
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
}

.sp-side-menu.is-open {
  transform: translateX(0);
}

.sp-side-menu__head {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  border-bottom: 1px solid #eee;
}

.sp-side-menu__close {
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
}

.sp-side-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  overflow-y: auto;
}

@media all and (max-width: 768px) {
  .sp-side-menu__nav {
    padding: 0;
  }
}

.sp-side-menu__nav a {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid #f3f3f3;
  font-size: 15px;
}

.sp-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .25);
  z-index: calc(var(--z-menu) - 1);
  display: none;
}

.sp-menu-overlay.is-open {
  display: block;
}

/* 表示切替 */
.sp-only {
  display: none;
}

.pc-only {
  display: flex;
}

/* SP */
@media (max-width: 767px) {
  body {
    padding-top: calc(var(--sp-top-h) + var(--sp-bottom-h));
  }

  .pc-only {
    display: none !important;
  }

  .sp-only {
    display: flex !important;
  }

  .site-header {
    overflow: visible;
  }

  .header-inner {
    position: relative;
    max-width: none;
    height: var(--sp-top-h);
    padding: 0 10px;
    justify-content: space-between;
    gap: 0;
  }

  .site-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 110px);
    display: flex;
    justify-content: center;
  }

  .site-logo a {
    justify-content: center;
  }

  .site-logo img {
    max-height: 30px;
    max-width: 180px;
  }

  .site-title {
    font-size: 22px;
  }

  .header-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    height: var(--sp-bottom-h);
    border-top: 1px solid #f3f3f3;
    background: #fff;
  }

  .header-bottom-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 100%;
    font-size: 12px;
    text-align: center;
    padding: 0 4px;
    border-right: 1px solid #f3f3f3;
  }

  .header-bottom-nav a:last-child {
    border-right: 0;
  }


  .header-icon-btn {
    width: 40px;
    height: 40px;
  }

  .header-search-popup {
    padding: 10px 10px 12px;
  }

  .header-search-form {
    max-width: none;
  }

  .header-search-form input {
    height: 40px;
    font-size: 14px;
  }

  .header-search-form button {
    height: 40px;
    padding: 0 14px;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.header-right a,
.header-menu-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.header-menu-wrap {
  position: relative;
}

.header-menu-btn {
  min-width: 110px;
}

.header-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  display: none;
  z-index: 1000;
}

.header-dropdown.is-open {
  display: block;
}

.header-dropdown-inner {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  padding: 8px 0;
}

.header-dropdown-head {
  padding: 12px 16px 10px;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 4px;
}

.header-dropdown a,
.dropdown-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  color: #222;
  cursor: pointer;
}

.header-dropdown a:hover,
.dropdown-logout-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 8px 0;
}

.header-dropdown a,
.dropdown-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* ←中央配置 */
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
  background: none;
  border: none;
  font-size: 14px;
  color: #222;
  cursor: pointer;
}

.dropdown-logout-btn {
  color: #c62828;
}

.dropdown-logout-btn[disabled] {
  opacity: 0.65;
  pointer-events: none;
  cursor: not-allowed;
}

/* =========================
   Footer
========================= */
.site-footer {
  margin-top: 5px;
  border-top: 1px solid #ececec;
  background: #ffffff;
}

.footer-inner {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.footer-inner a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: #555555;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-inner a:hover {
  color: #111111;
  opacity: 0.75;
}

.footer-inner a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: #111111;
  transition: width 0.22s ease;
}

.footer-inner a:hover::after {
  width: 100%;
}

/* =========================
   Tablet
========================= */
@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 190px 1fr 190px;
    gap: 16px;
    padding: 0 18px;
  }

  .header-center {
    gap: 20px;
  }

  .header-right {
    gap: 16px;
  }

  .site-logo img {
    height: 30px;
  }

  .site-title {
    font-size: 23px;
  }
}

/* =========================
   Mobile
========================= */
@media (max-width: 767px) {
  .pc-only {
    display: none !important;
  }

  .sp-only {
    display: block;
  }

  .footer-inner {
    justify-content: flex-start;
    padding: 22px 14px;
    gap: 12px 18px;
  }

  .footer-inner a {
    font-size: 13px;
  }

  .top-page,
  .page-wrap,
  main {
    padding-top: 118px;
  }
}

/* =========================
   main
========================= */
.top-page {
  width: 100%;
  padding-top: 0;
  min-height: calc(100vh - 88px);
}

.category-page {
  width: 100%;
  padding-top: 0;
  min-height: calc(100vh - 88px);
}

.search-page {
  width: 100%;
  padding-top: 0;
  min-height: calc(100vh - 888px);
}

.grid-wrap {
  margin: 0 auto;
  padding: 0px 2px 20px 2px;
}

@media (max-width: 767px) {
  .grid-wrap {
    padding: 0px 0 15px 0;
  }

  .home-section {
    margin-bottom: 16px;
    border: 0px solid #ddd;
    border-radius: 0px;
  }

  .home-section:last-child {
    margin-bottom: 0;
  }
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px 12px;
}

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px 10px;
  }
}

@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
  }
}

.post-card {
  background: #ffffff;
  border: 1px solid #f4f4f4;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .post-card {
    border-radius: 4px;
  }
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.post-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* デフォルト画像だけ中央表示・横幅100% */
.post-thumb.is-default-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.post-meta,
.post-title,
.post-author {
  padding-left: 8px;
  padding-right: 8px;
}

.post-meta {
  display: flex;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: #777777;
}

/* 右端に押し出す */
.post-price {
  margin-left: auto;
  font-weight: 700;
  color: #1e6bff;
  font-size: 14px;
}

.post-category {
  padding: 2px 5px;
  border-radius: 5px;
}

.post-category.cat-movie {
  background-color: rgb(220, 152, 195);
  color: #ffffff;
}

.post-category.cat-image {
  background-color: rgb(231, 138, 45);
  color: #fff;
}

.post-title {
  margin-top: 10px;
  margin-bottom: 5px;
}

.post-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #111111;
  min-height: calc(1.3em * 2);
}

.post-author {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #555555;
}

/* 会員登録 */
.register-wrap {
  width: 100%;
  max-width: 880px;
  margin: 20px auto 10px auto;
  padding: 20px;
}

.register-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.required-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.4;
  color: #fff;
  background: var(--danger);
  border-radius: 999px;
  vertical-align: middle;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.12);
}

.form-input.is-error {
  border-color: var(--danger);
  background: #fff8f7;
}

.error-text {
  display: none;
  margin-top: 7px;
  font-size: 13px;
  color: var(--danger);
}

.check-area {
  margin-bottom: 14px;
}

.check-box-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
  transition: border-color .2s, background .2s;
}

.check-box-wrap.is-error {
  border-color: var(--danger);
  background: #fff8f7;
}

.check-box-wrap input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.check-text {
  font-size: 14px;
  line-height: 1.7;
}

.check-text a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
}

.check-text a:hover {
  text-decoration: underline;
}

.submit-wrap {
  margin-top: 24px;
}

.submit-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .04s;
}

.submit-btn:hover {
  opacity: 0.92;
}

.submit-btn:active {
  transform: translateY(1px);
}

.form-message {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.form-message.is-error {
  display: block;
  background: #fff3f2;
  color: var(--danger);
  border: 1px solid #f4c7c3;
}

.form-message.is-ok {
  display: block;
  background: #edf8ef;
  color: var(--ok);
  border: 1px solid #b7dfbd;
}

.input-note {
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .register-wrap {
    margin: 20px auto;
    padding: 14px;
  }

  .register-card {
    padding: 22px 16px;
    border-radius: 12px;
  }

  .form-input {
    height: 46px;
    font-size: 16px;
  }

  .submit-btn {
    height: 50px;
  }
}

/* 登録できるメールアドレスポップアップ */
#emailCheckLink {
  color: #2f6fed;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
}

.popup-box {
  position: relative;
  width: min(92vw, 640px);
  max-height: 70vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.popup-head {
  flex: 0 0 auto;
  padding: 22px 24px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.popup-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
  padding-right: 36px;
}

.popup-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 24px 24px;
  -webkit-overflow-scrolling: touch;
}

.popup-text {
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  word-break: break-word;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: #222;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.popup-close:hover {
  background: #e5e7eb;
}

.popup-close:active {
  transform: scale(0.97);
}

@media (max-width: 640px) {
  .popup-overlay {
    padding: 12px;
  }

  .popup-box {
    width: 100%;
    max-height: 70vh;
    border-radius: 14px;
  }

  .popup-head {
    padding: 18px 18px 12px;
  }

  .popup-title {
    font-size: 18px;
    padding-right: 34px;
  }

  .popup-body {
    padding: 14px 18px 18px;
  }

  .popup-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .popup-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}

/* ログインページ */
.login-page {
  width: 100%;
  padding: 0 20px;
}

.login-card {
  width: 100%;
  max-width: 680px;
  margin: 40px auto 10px auto;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.required-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.4;
  color: #fff;
  background: #d93025;
  border-radius: 999px;
  vertical-align: middle;
}

.form-input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #dcdfe6;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-input:focus {
  border-color: #2f6fed;
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.12);
}

.form-input::placeholder {
  color: #999;
}

.submit-wrap {
  margin-top: 24px;
}

.submit-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .04s;
}

.submit-btn:hover {
  opacity: 0.92;
}

.submit-btn:active {
  transform: translateY(1px);
}

.forgot-wrap {
  margin-top: 18px;
  text-align: center;
}

.forgot-link {
  font-size: 14px;
  color: #2f6fed;
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .login-page {
    margin-top: 56px;
    padding: 0 14px;
  }

  .login-card {
    padding: 24px 16px;
    border-radius: 14px;
  }

  .login-title {
    font-size: 24px;
  }

  .form-input {
    height: 48px;
    font-size: 16px;
  }

  .submit-btn {
    height: 50px;
  }
}

/*ログイン*/
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-login {
  display: inline-block;
  padding: 4px 10px;
  background: #efefef;
  color: #2f2c2c;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: 0.2s;
}

.btn-login:hover {
  background: #3d3d3d;
  color: #fff;
}

/* マイページメニュー */
.mypage-menu-card,
.mypage-menu-group {
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 0;
  box-shadow: 0 8px 30px rgba(20, 20, 30, 0.04);
}

@media all and (max-width: 768px) {

  .mypage-menu-card,
  .mypage-menu-group {
    border-radius: 0px;
  }
}

.mypage-menu-card {
  margin-bottom: 16px;
}

.mypage-menu-user-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mypage-menu-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
}

.mypage-user-balance {
  margin: 0px 0 10px;
  padding: 12px 14px;
  background: #fff7fc;
  border: 1px solid #eeeeee;
}

.balance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.balance-item+.balance-item {
  border-top: 1px solid #e6e6e6;
  margin-top: 6px;
  padding-top: 8px;
}

.balance-label {
  font-size: 12px;
  color: #666;
}

.balance-value {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.mypage-menu-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ececf3, #dfe3ea);
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.mypage-menu-usermeta {
  min-width: 0;
}

.mypage-menu-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
}

.mypage-menu-id {
  margin-top: 2px;
  font-size: 12px;
  color: #8a8f98;
  line-height: 1.4;
  word-break: break-all;
}

.mypage-menu-group {
  padding: 8px;
  margin-bottom: 14px;
}

.mypage-menu-group.is-last {
  margin-bottom: 58px;
}

.mypage-menu-link,
.mypage-menu-toggle {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
  color: #2b2f36;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  box-sizing: border-box;
}

.mypage-menu-link:hover,
.mypage-menu-toggle:hover {
  background: #f6f7fa;
}

.mypage-menu-link.is-active {
  background: #f2f4f8;
  color: #111;
  font-weight: 700;
}

.menu-label {
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.mypage-menu-toggle {
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.toggle-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid #8c92a0;
  border-bottom: 2px solid #8c92a0;
  transform: rotate(45deg);
  transition: transform .2s ease, margin-top .2s ease;
  margin-top: -4px;
  flex-shrink: 0;
}

.mypage-menu-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(225deg);
  margin-top: 3px;
}

.mypage-submenu {
  display: none;
  padding-top: 6px;
}

.mypage-submenu.is-open {
  display: block;
}

.mypage-submenu .mypage-menu-link {
  padding-left: 14px;
  color: #5a6170;
}

.mypage-submenu .mypage-menu-link:hover {
  color: #222;
}

.mypage-menu-link.danger {
  color: #8a4b4b;
}

.mypage-menu-link.danger:hover {
  background: #fbf4f4;
  color: #7a2f2f;
}

.mypage-menu-split {
  display: flex;
  gap: 8px;
}

.mypage-menu-split .mypage-menu-link {
  flex: 1;
  justify-content: center;
}

.split-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.menu-count {
  margin-top: 2px;
  font-size: 12px;
  color: #8a8f98;
}

.mypage-user-stats {
  display: flex;
  padding-bottom: 6px;
  gap: 6px;
}

.mypage-user-stat {
  flex: 1;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  border-radius: 10px;
  transition: background .15s ease;
}

.mypage-user-stat:hover {
  background: #f7f8fb;
}

.stat-label {
  font-size: 12px;
  color: #8a8f98;
}

.stat-count {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-top: 2px;
}

/* =========================
   スマホ下部ナビ
========================= */
.header-bottom-nav {
  display: flex;
  background: #fff;
  border-top: 1px solid #ececf3;
  border-bottom: 1px solid #ececf3;
}

.header-bottom-nav>a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2d3448;
  text-decoration: none;
  position: relative;
}

.header-bottom-nav>a:active {
  background: #f7f8ff;
}

/* 開閉用矢印を付けたいなら */
.nav-info-sp::after,
.nav-creative-sp::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-right: 1.5px solid #7a8198;
  border-bottom: 1.5px solid #7a8198;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s ease;
}

.nav-info-sp.is-open::after,
.nav-creative-sp.is-open::after {
  transform: rotate(-135deg) translateY(-1px);
  transition: transform .2s ease;
}

/* =========================
   スマホ用ドロップダウン
========================= */
.dropdown-sp {
  display: none;
  background: #fff;
  border-bottom: 1px solid #ececf3;
  box-shadow: 0 14px 30px rgba(20, 25, 40, 0.06);
}

.dropdown-sp a {
  display: block;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #2f3647;
  text-decoration: none;
  border-top: 1px solid #f2f3f7;
}

.dropdown-sp a:first-child {
  border-top: none;
}

.dropdown-sp a:active {
  background: #f7f8ff;
  color: #5c6ee6;
}

/* =========================
   PC用は従来のまま別管理
========================= */
.dropdown-pc {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

/* 例: hover時だけ見せる */
.has-dropdown-pc:hover .dropdown-pc {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================
   表示切り替え
========================= */
@media (min-width: 768px) {

  .sp-only,
  .dropdown-sp {
    display: none !important;
  }
}

@media (max-width: 767px) {

  .pc-only,
  .dropdown-pc {
    display: none !important;
  }
}

.dropdown-info-sp {
  max-height: 60vh;
  overflow: auto;
  display: none;
  background: #fff;
  border-bottom: 1px solid #ececf3;
  box-shadow: 0 14px 30px rgba(20, 25, 40, 0.06);
}

/* 開いた時だけ2列 */
.dropdown-info-sp.is-open {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dropdown-info-sp a {
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #2f3647;
  text-decoration: none;
  border-top: 1px solid #f2f3f7;
}

.dropdown-info-sp a:nth-child(odd) {
  border-right: 1px solid #f2f3f7;
}

.dropdown-sp {
  display: none;
  background: #fff;
  border-bottom: 1px solid #ececf3;
  box-shadow: 0 14px 30px rgba(20, 25, 40, 0.06);
}

/* 2列レイアウトは inner に持たせる */
.dropdown-info-sp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* リンク */
.dropdown-info-sp-inner a,
.dropdown-creative-sp a {
  display: block;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #2f3647;
  text-decoration: none;
  border-top: 1px solid #f2f3f7;
}

/* 左右の境界線 */
.dropdown-info-sp-inner a:nth-child(odd) {
  border-right: 1px solid #f2f3f7;
}

.dropdown-info-sp-inner a:active,
.dropdown-creative-sp a:active {
  background: #f7f8ff;
  color: #5c6ee6;
}

.dropdown-creative-sp a {
  display: block;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #2f3647;
  text-decoration: none;
  border-top: 1px solid #f2f3f7;
}

.dropdown-info-sp-inner a:active,
.dropdown-creative-sp a:active {
  background: #f7f8ff;
  color: #5c6ee6;
}

@media all and (max-width: 768px) {
  .mypage-menu-card {
    margin-bottom: 10px;
    border: 0px solid #fff;
  }

  .mypage-menu-group {
    margin-bottom: 10px;
    border: 0px solid #fff;
  }
}

/* ユーザープロフィールページ */
.profile-card {
  width: 100%;
  margin-bottom: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  padding: 22px;
}

.profile-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 50%;
  overflow: hidden;
  background: #dbe4f0;
  border: 1px solid var(--line);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-main {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0 4px;
  word-break: break-word;
}

.profile-id {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.profile-created_at {
  font-size: 13px;
  margin-top: 6px;
  color: #666;
}

.profile-bio {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: #4b5563;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px;
  word-break: break-word;
}

.profile-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

.follow-btn,
.icon-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  height: 44px;
  cursor: pointer;
  transition: 0.2s ease;
}

.follow-btn {
  /* min-width: 140px; */
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.follow-btn:hover {
  background: #4b5563;
  border-color: #fff;
  ;
}

.follow-btn.is-following {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.follow-btn.is-following:hover {
  background: #f8fafc;
}

.icon-menu-wrap {
  position: relative;
}

.icon-btn {
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.icon-btn:hover {
  background: #f8fafc;
  border-color: #d6dee9;
}

.icon-svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: #475569;
}

.popup-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  padding: 8px;
  z-index: 30;
}

.popup-menu.is-open {
  display: block;
}

.popup-menu a,
.popup-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.popup-menu a:hover,
.popup-menu button:hover {
  background: #f8fafc;
}

.popup-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}

@media (max-width: 640px) {

  .profile-card {
    padding: 18px;
    border-radius: 20px;
  }

  .profile-top {
    gap: 14px;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .profile-name {
    font-size: 20px;
  }

  .profile-actions {
    gap: 8px;
  }

  .follow-btn {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.frequent-tags-wrap {
  margin-top: 12px;
}

.frequent-tags-title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
}

.frequent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.frequent-tag-btn {
  border: 1px solid #dcdcdc;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.frequent-tag-btn:hover {
  background: #f7f7f7;
}

.frequent-tags-empty {
  font-size: 12px;
  color: #999;
}

/* margin */
.mt-4 {
  margin-top: 25px;
}

.mb-2 {
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 25px;
}

.set-archive-page {
  width: 100%;
}

.set-archive-head {
  margin-bottom: 18px;
}

.set-archive-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #222;
}

.set-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.set-archive-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  min-width: 0;
}

.set-archive-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f3f3;
  overflow: hidden;
}

.set-archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.set-archive-card:hover .set-archive-thumb img {
  transform: scale(1.03);
}

.set-archive-body {
  padding: 14px;
}

.set-archive-card-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  min-height: 3em;
  word-break: break-word;
}

.set-archive-card-title a {
  color: #222;
  text-decoration: none;
}

.set-archive-card-title a:hover {
  opacity: .85;
}

.set-archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.set-archive-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.set-archive-badge.sub {
  background: #fff3f7;
  color: #c24c73;
}

.set-archive-user {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.set-archive-user a {
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.set-archive-user a:hover {
  text-decoration: underline;
}

.set-archive-empty {
  padding: 36px 18px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
  color: #666;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 991px) {
  .set-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .set-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .set-archive-title {
    font-size: 22px;
  }

  .set-archive-body {
    padding: 12px;
  }

  .set-archive-card-title {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .set-archive-meta {
    gap: 6px;
    margin-bottom: 8px;
  }

  .set-archive-badge {
    font-size: 11px;
    padding: 0 8px;
    min-height: 28px;
  }

  .set-archive-user {
    font-size: 12px;
  }
}

.setdetail-page {
  width: 100%;
}

.setdetail-main-card {
  margin-bottom: 20px;
}

.setdetail-main-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.setdetail-thumb {
  width: 280px;
  min-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f3f3;
}

.setdetail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.setdetail-info {
  flex: 1;
  min-width: 0;
}

.setdetail-title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
  word-break: break-word;
}

.setdetail-meta>div {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.setdetail-user a,
.setdetail-item-user a {
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.setdetail-user a:hover,
.setdetail-item-user a:hover {
  text-decoration: underline;
}

.setdetail-user-name {
  color: #777;
}

.setdetail-price strong {
  font-size: 24px;
  color: #111;
}

.setdetail-affiliate {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ead9de;
  color: #c24c73 !important;
  font-weight: 700;
}

.setdetail-atokara {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #efd8d1;
  color: #87224f !important;
  font-weight: 700;
}

.setdetail-buy-wrap {
  margin-top: 18px;
}

.setdetail-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}

.setdetail-buy-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.setdetail-list-head {
  margin-bottom: 16px;
}

.setdetail-list-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

.setdetail-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.setdetail-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
}

.setdetail-item-thumb {
  width: 100px;
  min-width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
}

.setdetail-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.setdetail-item-body {
  flex: 1;
  min-width: 0;
}

.setdetail-item-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
}

.setdetail-item-title a {
  color: #222;
  text-decoration: none;
}

.setdetail-item-title a:hover {
  opacity: .85;
}

.setdetail-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.setdetail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #333;
  font-size: 12px;
  font-weight: 700;
}

.setdetail-item-user {
  color: #666;
  font-size: 13px;
  line-height: 1.7;
}

.setdetail-item-link-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.setdetail-item-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: opacity .2s ease, transform .2s ease;
}

.setdetail-item-link:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.setdetail-empty {
  padding: 28px 16px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fafafa;
  color: #666;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 767px) {
  .setdetail-main-top {
    flex-direction: column;
  }

  .setdetail-thumb {
    width: 100%;
    min-width: 0;
  }

  .setdetail-title {
    font-size: 22px;
  }

  .setdetail-price strong {
    font-size: 20px;
  }

  .setdetail-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .setdetail-item-thumb {
    width: 100%;
    min-width: 0;
    height: 180px;
  }

  .setdetail-item-link-wrap {
    width: 100%;
  }

  .setdetail-item-link {
    width: 100%;
  }

  .setdetail-buy-btn {
    width: 100%;
  }
}

.setdetail-buy-wrap {
  margin: 20px 0;
}

.setdetail-buy-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: #ff4f87;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  cursor: pointer;
  transition: .2s;
}

.setdetail-buy-btn:hover {
  opacity: .9;
}

.setdetail-buy-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.setbuy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.setbuy-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.setbuy-modal-box {
  position: relative;
  width: min(92%, 420px);
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
  z-index: 2;
}

.setbuy-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: #888;
}

.setbuy-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.setbuy-text {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

.setbuy-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f3;
  color: #d11a4a;
  font-size: 13px;
}

.setbuy-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.setbuy-modal-actions button {
  flex: 1;
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.setbuy-cancel {
  background: #f3f3f3;
  color: #333;
}

.setbuy-submit {
  background: #ff4f87;
  color: #fff;
}

.setbuy-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.setdetail-bought-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
  background: #edf7ed;
  border: 1px solid #c8e6c9;
  border-radius: 999px;
}

.setdetail-bought-text::before {
  content: "✓";
  font-size: 13px;
}

.post-owned-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

.tag-head-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 22px 0;
}

.tag-list-title {
  margin: 0;
}

.fav-tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #efcfd7;
  border-radius: 999px;
  background: #fff;
  color: #a35f70;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.fav-tag-btn:hover {
  background: #fff6f8;
  border-color: #e8b8c4;
  color: #944b5e;
}

.fav-tag-btn.is-saved {
  background: #fff0f4;
  border-color: #e3a7b6;
  color: #8e4258;
}

.fav-tag-btn:disabled {
  opacity: .65;
  cursor: default;
}

.fav-tag-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: rgba(44, 44, 44, .92);
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
}

.fav-tag-toast.is-show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  .tag-head-wrap {
    gap: 10px;
    margin-bottom: 18px;
  }

  .fav-tag-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }
}

.home-section {
  width: 100%;
  margin-bottom: 24px;
}

/* タイトル行 */
.fav-tag-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.fav-tag-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  position: relative;
  padding-left: 18px;
  /* アイコン分の余白 */
}

.fav-tag-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border: 3px solid #ff4da6;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 4px rgba(255, 77, 166, 0.3);
}

.fav-tag-edit {
  font-size: 12px;
  color: #a35f70;
  text-decoration: none;
}

.fav-tag-edit:hover {
  text-decoration: underline;
}

/* タグ一覧 */
.fav-tag-list-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* 小さいタグボタン */
.fav-tag-mini-btn {
  display: inline-block;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: #fff6f8;
  border: 1px solid #f0d5dc;
  color: #7c4958;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}

.fav-tag-mini-btn:hover {
  background: #ffeef3;
  border-color: #e7bcc8;
}

/* 空状態 */
.fav-tag-empty-mini {
  font-size: 13px;
  color: #999;
}

.post-thumb {
  position: relative;
}

.rank-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 上位だけちょっとだけ特別扱い */
.rank-1 {
  background: #d4af37;
}

.rank-2 {
  background: #c0c0c0;
}

.rank-3 {
  background: #cd7f32;
}

.ranking-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.ranking-tabs a {
  padding: 8px 16px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  border-radius: 6px 6px 0 0;
  transition: all 0.2s ease;
  position: relative;
}

/* ホバー */
.ranking-tabs a:hover {
  background: #fafafa;
  color: #333;
}

/* アクティブ */
.ranking-tabs a.is-active {
  color: #333;
  font-weight: 600;
}

/* 下線で選択状態を出す */
.ranking-tabs a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: #ff8fb1;
  /* 薄いピンク */
}

.ranking-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.ranking-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 10px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  background: #fff;
  transition: all 0.2s ease;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: center;
  line-height: 1.4;
}

.ranking-menu a:hover {
  background: #fafafa;
  color: #333;
}

.ranking-menu a.is-active {
  background: #fff;
  font-weight: 600;
  color: #333;
  position: relative;
}

.ranking-menu a.is-active::after {
  content: '';
  position: absolute;
  left: 20%;
  bottom: 8px;
  width: 60%;
  height: 2px;
  background: #ff8fb1;
}

/* PC時の端処理 */
.ranking-menu a:nth-child(4n) {
  border-right: none;
}

.ranking-menu a:nth-last-child(-n+4) {
  border-bottom: none;
}

/* スマホで2段 */
@media (max-width: 767px) {
  .ranking-menu {
    grid-template-columns: repeat(2, 1fr);
  }

  .ranking-menu a {
    min-height: 50px;
    font-size: 13px;
    padding: 10px 8px;
  }

  .ranking-menu a:nth-child(2n) {
    border-right: none;
  }

  .ranking-menu a:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .ranking-menu a:nth-child(4n) {
    border-right: 1px solid #eee;
  }
}

.ranking-submenu {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.ranking-submenu a {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  border-radius: 20px;
  background: #f7f7f7;
  transition: all 0.2s ease;
}

/* hover */
.ranking-submenu a:hover {
  background: #eee;
  color: #333;
}

/* active */
.ranking-submenu a.is-active {
  background: #ff8fb1;
  color: #fff;
  font-weight: 600;
}

.newpost-sortbar {
  margin: 0 0 18px;
}

.newpost-sortbar__inner {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.newpost-sortbar__group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.newpost-sortbar__label {
  font-size: 12px;
  color: #9b7d86;
  white-space: nowrap;
}

.newpost-sortbar__select {
  height: 34px;
  padding: 0 28px 0 10px;
  font-size: 13px;
  border: 1px solid #e7cfd7;
  border-radius: 8px;
  background-color: #fffafb;
  outline: none;
  appearance: none;
  cursor: pointer;

  background-image:
    linear-gradient(45deg, transparent 50%, #b98d99 50%),
    linear-gradient(135deg, #b98d99 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.newpost-sortbar__select:hover {
  border-color: #dcaebb;
}

.newpost-sortbar__action {
  margin-left: 6px;
}

.newpost-sortbar__button {
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: #e4a9b8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.newpost-sortbar__button:hover {
  opacity: 0.9;
}

.info-page-wrap {
  width: 100%;
  background: #f8fafc;
}

.info-page-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.info-page-article {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.info-page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.info-page-title {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.45;
  font-weight: 700;
  color: #111827;
  word-break: break-word;
}

.info-page-meta {
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.info-page-body {
  font-size: 16px;
  line-height: 2;
  color: #1f2937;
  word-break: break-word;
}

.info-page-body>*:first-child {
  margin-top: 0;
}

.info-page-body h1,
.info-page-body h2,
.info-page-body h3,
.info-page-body h4,
.info-page-body h5,
.info-page-body h6 {
  margin: 1.4em 0 0.7em;
  line-height: 1.5;
  font-weight: 700;
  color: #111827;
}

.info-page-body h1 {
  font-size: 30px;
}

.info-page-body h2 {
  font-size: 26px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.info-page-body h3 {
  font-size: 22px;
}

.info-page-body h4 {
  font-size: 18px;
}

.info-page-body p {
  margin: 0 0 1.2em;
}

.info-page-body ul,
.info-page-body ol {
  margin: 0 0 1.2em 1.4em;
  padding: 0;
}

.info-page-body li {
  margin: 0 0 0.5em;
}

.info-page-body a {
  color: #2563eb;
  text-decoration: underline;
  word-break: break-all;
}

.info-page-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border-radius: 14px;
}

.info-page-body blockquote {
  margin: 1.4em 0;
  padding: 16px 18px;
  border-left: 4px solid #93c5fd;
  background: #eff6ff;
  border-radius: 10px;
  color: #1e3a8a;
}

.info-page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.info-page-body th,
.info-page-body td {
  border: 1px solid #dbe1ea;
  padding: 10px 12px;
  text-align: left;
  background: #fff;
}

.info-page-body th {
  background: #f8fafc;
  font-weight: 700;
}

.info-page-body hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2em 0;
}

.info-page-body div {
  margin: 0 0 1em;
}

@media (max-width: 767px) {
  .info-page-wrap {
    padding: 10px 4px 10px 4px;
  }

  .info-page-article {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .info-page-title {
    font-size: 26px;
  }

  .info-page-body {
    font-size: 15px;
    line-height: 1.9;
  }

  .info-page-body h1 {
    font-size: 26px;
  }

  .info-page-body h2 {
    font-size: 22px;
  }

  .info-page-body h3 {
    font-size: 19px;
  }
}

.newslist-wrap {
  width: 100%;
  box-sizing: border-box;
}

.newslist-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.newslist-head {
  margin-bottom: 24px;
}

.newslist-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  color: #111;
}

.newslist-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

.newslist-item {
  border-bottom: 1px solid #eceff3;
}

.newslist-item:last-child {
  border-bottom: none;
}

.newslist-link {
  display: block;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.newslist-link:hover {
  background: #fafbfc;
}

.newslist-date-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.newslist-date {
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.newslist-badge-important {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 9999px;
  background: #fff1f1;
  color: #c62828;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  box-sizing: border-box;
}

.newslist-title-text {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 600;
  color: #111827;
  word-break: break-word;
}

.newslist-empty {
  padding: 48px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-align: center;
  font-size: 14px;
  color: #666;
  background: #fff;
}

.newslist-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.newslist-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.newslist-page-btn:hover {
  background: #f6f7f9;
}

.newslist-page-btn.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.newslist-page-dots {
  padding: 0 4px;
  font-size: 14px;
  color: #777;
}

@media (max-width: 767px) {
  .newslist-wrap {
    padding: 10px 4px 10px 4px;
  }

  .newslist-title {
    font-size: 24px;
  }

  .newslist-link {
    padding: 16px 14px;
  }

  .newslist-title-text {
    font-size: 16px;
    line-height: 1.6;
  }

  .newslist-page-btn {
    min-width: 38px;
    height: 38px;
    font-size: 13px;
  }
}

.newsdetail-wrap {
  width: 100%;
  box-sizing: border-box;
}

.newsdetail-inner {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 18px;
}

.newsdetail-head {
  margin-bottom: 28px;
}

.newsdetail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.newsdetail-date {
  font-size: 13px;
  color: #6b7280;
}

.newsdetail-updated {
  font-size: 12px;
  color: #888;
}

.newsdetail-badge-important {
  padding: 4px 8px;
  border-radius: 9999px;
  background: #fff1f1;
  color: #c62828;
  font-size: 11px;
  font-weight: 700;
}

.newsdetail-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 700;
  color: #111;
}

.newsdetail-body {
  font-size: 16px;
  line-height: 1.9;
  color: #222;
  word-break: break-word;
}

.newsdetail-body a {
  color: rgb(49, 49, 170);
}

.newsdetail-footer {
  margin-top: 40px;
}

.newsdetail-back {
  display: inline-block;
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
}

.newsdetail-back:hover {
  text-decoration: underline;
}

.newsdetail-empty {
  padding: 60px 20px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.topnews-simple-wrap {
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.topnews-simple-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topnews-simple-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: #111;
}

.topnews-simple-more {
  font-size: 13px;
  line-height: 1.4;
  color: #a31175;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid #eee;
  background-color: #eed7ee;
  padding: 2px 8px;
  border-radius: 5px;
}

.topnews-simple-more:hover {
  background-color: #cb5fcb;
  color: #fff;
}

.topnews-simple-list {
  width: 100%;
  background-color: #fff;
}

.topnews-simple-item {
  border-top: 1px solid #eef1f4;
}

.topnews-simple-item:first-child {
  border-top: none;
}

.topnews-simple-list-top {}

.topnews-simple-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
}

.topnews-simple-link:hover .topnews-simple-text {
  text-decoration: underline;
}

.topnews-simple-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 110px;
}

.topnews-simple-date {
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
  white-space: nowrap;
}

.topnews-simple-important {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d92d20;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

.topnews-simple-text {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topnews-simple-empty {
  padding: 14px 0 8px;
  font-size: 14px;
  color: #666;
}

@media (max-width: 767px) {
  .topnews-simple-wrap {
    padding: 0;
    border-radius: 12px;
  }

  .topnews-simple-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .topnews-simple-title {
    font-size: 17px;
  }

  .topnews-simple-link {
    display: block;
    padding: 12px 0;
  }

  .topnews-simple-meta {
    min-width: 0;
    margin-bottom: 4px;
  }

  .topnews-simple-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.creator-ranking-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

.creator-ranking-tabs a {
  min-width: 96px;
  padding: 10px 16px;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #333;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  transition: .2s;
}

.creator-ranking-tabs a.is-active {
  background: #111;
  color: #fff;
}

.creator-ranking-wrap {
  width: 100%;
}

.creator-ranking-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.creator-ranking-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px 14px 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.creator-ranking-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 9999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
  box-sizing: border-box;
  z-index: 2;
}

.creator-ranking-rank.rank-1 {
  background: #c99a00;
}

.creator-ranking-rank.rank-2 {
  background: #8c98a4;
}

.creator-ranking-rank.rank-3 {
  background: #b87333;
}

.creator-ranking-icon-link {
  display: block;
  width: 96px;
  height: 96px;
  margin: 18px auto 14px;
  text-decoration: none;
}

.creator-ranking-icon {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f5f5f5;
}

.creator-ranking-name {
  margin: 0 0 6px;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  word-break: break-word;
}

.creator-ranking-name a {
  color: #111;
  text-decoration: none;
}

.creator-ranking-id {
  margin: 0 0 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  word-break: break-all;
}

.creator-ranking-id a {
  color: #666;
  text-decoration: none;
}

.creator-ranking-bio {
  min-height: 4.8em;
  margin: 0 0 14px;
  color: #444;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.creator-ranking-stats {
  display: grid;
  gap: 8px;
}

.creator-ranking-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8f8f8;
  border-radius: 10px;
}

.creator-ranking-stat-label {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.creator-ranking-stat-value {
  color: #111;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  text-align: right;
}

.creator-ranking-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 40px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  color: #666;
}

@media (max-width: 999px) {
  .creator-ranking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .creator-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .creator-ranking-card {
    padding: 16px 10px 14px;
    border-radius: 14px;
  }

  .creator-ranking-icon-link,
  .creator-ranking-icon {
    width: 78px;
    height: 78px;
  }

  .creator-ranking-name {
    font-size: 14px;
  }

  .creator-ranking-id {
    font-size: 11px;
  }

  .creator-ranking-bio {
    min-height: 4.5em;
    font-size: 12px;
    line-height: 1.5;
    -webkit-line-clamp: 3;
  }

  .creator-ranking-stat {
    padding: 8px 10px;
  }

  .creator-ranking-stat-label {
    font-size: 11px;
  }

  .creator-ranking-stat-value {
    font-size: 12px;
  }
}

.post-affiliate-box {
  box-sizing: border-box;
  padding: 20px;
}

.post-affiliate-head {
  margin-bottom: 14px;
}

.post-affiliate-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.post-affiliate-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #666;
}

.post-affiliate-login-msg,
.post-affiliate-error-msg {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.post-affiliate-login-msg {
  background: #f7f7f7;
  color: #444;
}

.post-affiliate-error-msg {
  background: #fff3f3;
  color: #c33;
}

.post-affiliate-url-wrap {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.post-affiliate-url-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fafafa;
  font-size: 14px;
  color: #222;
  box-sizing: border-box;
}

.post-affiliate-url-input:focus {
  outline: none;
  border-color: #999;
  background: #fff;
}

.post-affiliate-copy-btn {
  flex: 0 0 120px;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.post-affiliate-copy-btn:hover {
  opacity: 0.88;
}

.post-affiliate-copy-btn.is-copied {
  background: #2d8f4e;
}

.post-affiliate-copy-result {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #2d8f4e;
}

@media (max-width: 767px) {
  .post-affiliate-url-wrap {
    flex-direction: column;
  }

  .post-affiliate-copy-btn {
    flex: none;
    width: 100%;
  }
}

.age-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.age-auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.age-auth-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 32px);
  max-width: 460px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.age-auth-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.age-auth-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.age-auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.age-auth-btn {
  flex: 1;
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.age-auth-btn:hover {
  opacity: 0.9;
}

.age-auth-btn:active {
  transform: scale(0.98);
}

.age-auth-btn-yes {
  background: #111;
  color: #fff;
}

.age-auth-btn-no {
  background: #e9e9e9;
  color: #222;
}

body.age-auth-lock {
  overflow: hidden;
}

@media (max-width: 640px) {
  .age-auth-box {
    padding: 24px 18px 20px;
    border-radius: 14px;
  }

  .age-auth-title {
    font-size: 21px;
  }

  .age-auth-text {
    font-size: 14px;
  }

  .age-auth-actions {
    flex-direction: column;
  }
}

.account-switcher-dropdown {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

/* 1件 */
.account-switcher-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e9f0;
  text-decoration: none;
  color: #222;
  transition: all 0.15s ease;
}

/* hover */
.account-switcher-item:hover {
  background: #f7f9fc;
  border-color: #d6dce6;
  transform: translateY(-1px);
}

.account-switcher-item-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef1f5;
}

.account-switcher-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-switcher-item-body {
  flex: 1;
  min-width: 0;
}

.account-switcher-item-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-switcher-item-id {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .account-switcher-dropdown {
    grid-template-columns: 1fr;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}

.page-num,
.page-prev,
.page-next {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: #fff;
  text-decoration: none;
  color: #333;
  border-radius: 6px;
}

.page-num.is-active {
  background: #333;
  color: #fff;
  border-color: #333;
}

.dm-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.dm-link.disabled {
  color: #999;
  pointer-events: none;
  cursor: default;
}

.dm-icon-ng {
  color: #d92d20;
  font-size: 14px;
}

.js-dm-block-user.is-blocked {
  color: #999;
  pointer-events: none;
  text-decoration: none;
  cursor: default;
}

.js-dm-block-toggle {
  color: #d92d20;
  text-decoration: none;
  cursor: pointer;
}

.js-dm-block-toggle.is-blocked {
  color: #666;
}

.breadcrumb {
  font-size: 13px;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 25px;
}

.breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: 0.2s;
}

.breadcrumb a:hover {
  color: #555;
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #ccc;
  margin: 0 2px;
}

.breadcrumb-current {
  color: #333;
}

.profile-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #f1c9d5;
  background: #fff;
  color: #c85b7d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: .2s ease;
}

.profile-link-btn:hover {
  background: #fff3f7;
  border-color: #e8a9bc;
  color: #b94b6d;
  text-decoration: none;
}

.profile-link-btn-free {
  color: #555;
  border-color: #ddd;
  background: #fafafa;
}

.profile-link-btn-free:hover {
  background: #f3f3f3;
  border-color: #ccc;
  color: #333;
}

@media (max-width: 767px) {
  .profile-link-buttons {
    gap: 8px;
  }

  .profile-link-btn {
    width: 100%;
  }
}

.account-switch-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.account-switch-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.account-switch-modal__box {
  position: relative;
  width: calc(100% - 30px);
  max-width: 420px;
  margin: 80px auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 22px 18px 18px;
  box-sizing: border-box;
  z-index: 2;
}

.account-switch-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.account-switch-modal__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.account-switch-modal__text {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.account-switch-modal__error {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fff2f2;
  color: #d11a1a;
  border-radius: 8px;
  font-size: 13px;
}

.account-switch-modal__input {
  width: 100%;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 12px;
  box-sizing: border-box;
  font-size: 14px;
}

.account-switch-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.account-switch-modal__btn {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.account-switch-modal__btn.is-sub {
  background: #f1f1f1;
  color: #333;
}

.account-switch-modal__btn.is-main {
  background: #111;
  color: #fff;
}

.user-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.user-post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}

.user-post-card__icon-link {
  display: inline-block;
  text-decoration: none;
}

.user-post-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
  background: #f5f5f5;
}

.user-post-card__body {
  line-height: 1.5;
}

.user-post-card__name {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  word-break: break-word;
}

.user-post-card__name:hover {
  text-decoration: underline;
}

.user-post-card__id {
  margin-top: 4px;
  font-size: 13px;
  color: #777;
  word-break: break-all;
}

@media (max-width: 767px) {
  .user-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .user-post-card {
    padding: 14px 10px;
  }

  .user-post-card__icon {
    width: 64px;
    height: 64px;
  }
}

.profile-recommend-block {
  margin-top: 24px;
}

.profile-recommend-block__title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.profile-recommend-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px 12px;
  margin-bottom: 20px;
}

.profile-recommend-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-recommend-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.profile-recommend-card__thumb {
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  overflow: hidden;
}

.profile-recommend-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-recommend-card__body {
  padding: 12px;
}

.profile-recommend-card__meta {
  margin-bottom: 8px;
}

.profile-recommend-card__type {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.profile-recommend-card__type--post {
  background: #eef6ff;
  color: #2667b5;
}

.profile-recommend-card__type--set {
  background: #fff2ea;
  color: #b3621f;
}

.profile-recommend-card__title {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  word-break: break-word;
}

@media (max-width: 1024px) {
  .profile-recommend-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px 8px;
  }
}

@media (max-width: 767px) {
  .profile-recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
  }

  .profile-recommend-card__body {
    padding: 10px;
  }

  .profile-recommend-card__title {
    font-size: 13px;
  }
}

.admin-page-note-box {
  margin: 20px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #f1d7df;
  border-radius: 10px;
}

.admin-page-note-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.admin-page-note-textarea {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: vertical;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.7;
}

.admin-page-note-save-btn {
  margin-top: 12px;
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: #ef8fa7;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.admin-page-note-save-btn:hover {
  opacity: 0.9;
}

.admin-page-note-message {
  margin-top: 10px;
  font-size: 13px;
}

.admin-page-note-message.is-success {
  color: #2c7a4b;
}

.admin-page-note-message.is-error {
  color: #c0392b;
}

.admin-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
}

.admin-btns .btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  transition: 0.2s;
}

/* 投稿編集（青） */
.btn-edit {
  background: #3498db;
}

.btn-edit:hover {
  background: #2d83bd;
}

/* 投稿者詳細（グレー） */
.btn-user {
  background: #7f8c8d;
}

.btn-user:hover {
  background: #6c7778;
}

/* 新ヘッダー */
.kvh-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: color-mix(in srgb, var(--header-bg) 85%, transparent);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(6px);
  box-shadow: var(--header-shadow);
}

.kvh-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
}

.kvh-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0;
}

.kvh-row>*:not(:last-child) {
  margin-right: 18px;
}

.kvh-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kvh-side-left {
  display: none;
}

.kvh-brand a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.kvh-brand img {
  display: block;
  max-height: 42px;
  width: auto;
}

.kvh-brand-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--kvh-text);
}

.kvh-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.kvh-item {
  position: relative;
}

.kvh-mainbtn {
  appearance: none;
  border: 0;
  background: transparent;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--kvh-text);
  font-size: 18px;
  cursor: pointer;
  transition: .2s;
}

.kvh-mainbtn:hover,
.kvh-item.is-open .kvh-mainbtn {
  background: var(--kvh-accent-soft);
  color: var(--kvh-accent);
}

.kvh-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 22px 12px 12px;
  background: var(--kvh-panel);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  display: grid;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: .2s;
}

.kvh-sub a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--kvh-text);
  text-decoration: none;
  font-size: 14px;
}

.kvh-sub a:hover {
  background: #f8f8f8;
}

.kvh-sub-info {
  width: 460px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kvh-item.is-open .kvh-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 768px) {
  .kvh-item:hover .kvh-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.kvh-side-right {
  justify-self: end;
}

.kvh-iconbtn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.kvh-iconbtn-user {
  background: #fff;
  border: 1px solid #ff1493;
  color: #ffb6c1;
}

.kvh-iconbtn-user i {
  padding-left: 3px;
}

.kvh-iconbtn:hover {
  background: #ee82ee;
  color: #fff;
}

.kvh-iconbtn-user:hover {
  background: #ee82ee;
  color: #fff;
}

.kvh-ico {
  display: block;
  position: relative;
  margin: 0 auto;
}

.kvh-ico-search {
  width: 17px;
  height: 17px;
  border: 2px solid #222;
  border-radius: 50%;
}

.kvh-ico-search::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  background: #222;
  transform: rotate(45deg);
  border-radius: 2px;
}

.kvh-ico-user {
  width: 18px;
  height: 18px;
}

.kvh-ico-user::before,
.kvh-ico-user::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid #222;
}

.kvh-ico-user::before {
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.kvh-ico-user::after {
  bottom: -2px;
  width: 16px;
  height: 8px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 0;
}

.kvh-loginlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--kvh-accent);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.kvh-registry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  padding: 0 12px;
  border-radius: 999px;
  background: #8b008b;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

@media all and (max-width: 768px) {

  .kvh-registry,
  .kvh-loginlink {
    font-size: 11px;
  }
}

.kvh-sp-icon {
  display: none;
}

@media (max-width: 768px) {

  .kvh-registry,
  .kvh-loginlink {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .kvh-link-text {
    display: none;
  }

  .kvh-sp-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
  }
}

.kvh-searchbox {
  display: none;
  padding: 0 0 14px;
}

.kvh-searchbox.is-open {
  display: block;
}

.kvh-searchform {
  display: flex;
  gap: 10px;
}

.kvh-searchform input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.kvh-searchform button {
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--kvh-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.kvh-drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .38);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
  z-index: 1090;
}

.kvh-drawer-mask.is-open {
  opacity: 1;
  visibility: visible;
}

.kvh-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 86vw);
  height: 100vh;
  background: #fff;
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 1100;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .12);
}

.kvh-drawer.is-open {
  transform: translateX(0);
}

.kvh-drawer-head {
  display: flex;
  justify-content: flex-end;
  padding: 14px;
  border-bottom: 1px solid #eee;
}

.kvh-drawer-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: #f6f6f6;
  border-radius: 999px;
  font-size: 24px;
  cursor: pointer;
}

.kvh-drawer-body {
  height: calc(100vh - 69px);
  overflow-y: auto;
  padding: 0;
}

@media (max-width: 767px) {
  .kvh-shell {
    padding: 0 10px;
  }

  .kvh-row {
    min-height: 64px;
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
    grid-template-areas:
      "left logo right"
      "nav nav nav";
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .kvh-side-left {
    display: flex;
    grid-area: left;
  }

  .kvh-brand {
    grid-area: logo;
    justify-self: center;
  }

  .kvh-brand img {
    max-height: 34px;
  }

  .kvh-nav {
    grid-area: nav;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 2px;
  }

  .kvh-item {
    position: static;
  }

  .kvh-mainbtn {
    width: 100%;
    height: 42px;
    padding: 0 8px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #eee;
    font-size: 14px;
  }

  .kvh-side-right {
    grid-area: right;
  }

  .kvh-search-pc {
    display: none;
  }

  .kvh-loginlink {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .kvh-sub {
    position: static;
    min-width: 0;
    margin-top: 8px;
    padding: 10px;
    border-radius: 14px;
    box-shadow: none;
    border: 1px solid #eee;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .kvh-item.is-open .kvh-sub {
    display: grid;
  }

  .kvh-sub-info {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kvh-sub a {
    padding: 10px;
    font-size: 13px;
  }

  .kvh-searchbox {
    padding: 0 0 12px;
  }

  .kvh-item:hover .kvh-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .kvh-sub {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border-radius: 14px;
    box-shadow: none;
    border: 1px solid #eee;

    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .kvh-item.is-open .kvh-sub {
    display: grid !important;
  }
}

.kvh-mobile-subwrap {
  display: none;
}

@media (max-width: 767px) {
  .kvh-mobile-subwrap {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    margin-top: 8px;
  }

  .kvh-mobile-subwrap.is-open {
    display: block;
  }

  .kvh-mobile-subwrap .kvh-sub {
    position: static;
    display: grid !important;
    width: 100%;
    margin-top: 0;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .kvh-mobile-subwrap .kvh-sub-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .kvh-item>.kvh-sub {
    display: none !important;
  }
}

.kvh-item {
  position: relative;
}

@media (min-width: 768px) {
  .kvh-item {
    padding-bottom: 12px;
    margin-bottom: -12px;
  }
}

.kv-switch-tabs {
  display: flex;
  width: 100%;
  margin: 30px 0 15px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.kv-switch-btn {
  width: 50%;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: #333;
  background: #f7f7f7;
  text-decoration: none;
  transition: 0.2s;
}

.kv-switch-btn+.kv-switch-btn {
  border-left: 1px solid #ddd;
}

.kv-switch-btn.is-onpage {
  background: #333;
  color: #fff;
  font-weight: bold;
}

.kv-switch-btn:hover {
  background: #eaeaea;
}

.price-original {
  text-decoration: line-through;
  color: #999;
  margin-right: 8px;
}

.price-discount {
  color: #e60023 !important;
}

.price-discount-text {
  font-size: 13px;
  color: #555 !important;
}

.salesreport-point-sub {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #777;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .salesreport-point-sub {
    white-space: normal;
  }
}

.under_link {
  color: #00f;
  text-decoration: underline;
}

.btn-add-account {
  display: inline-block;
  background: #ffe4ec;
  color: #333;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
  text-align: center;
}

.btn-add-account:hover {
  background: #ffd6e4;
  /* 少し濃く */
}

.form-input[readonly] {
  background: #f5f5f5;
  color: #777;
}