/* ランクフレーム */
.userpage-head.rank-frame {
  border: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--rank-frame) border-box;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.userpage-wrap.rank-standard {
  --rank-frame: linear-gradient(135deg, #1f7a34, #6ee27a, #145c27);
}
.userpage-wrap.rank-bronze {
  --rank-frame: linear-gradient(135deg, #6b3a16, #cd7f32, #3b1f0d);
}
.userpage-wrap.rank-silver {
  --rank-frame: linear-gradient(135deg, #777, #f5f5f5, #999);
}
.userpage-wrap.rank-gold {
  --rank-frame: linear-gradient(135deg, #8a6500, #ffd700, #b8860b);
}
.userpage-wrap.rank-platinum {
  --rank-frame: linear-gradient(135deg, #9ea7ad, #ffffff, #cfd8dc);
}
.userpage-wrap.rank-diamond {
  --rank-frame: linear-gradient(135deg, #0d47a1, #4fc3f7, #e1f5fe);
}
.userpage-wrap.rank-premium {
  --rank-frame: linear-gradient(135deg, #6d0000, #d32f2f, #ffb300);
}
.userpage-wrap.rank-royal {
  --rank-frame: linear-gradient(135deg, #4a148c, #9c27b0, #ffd700);
}
.userpage-wrap.rank-executive {
  --rank-frame: linear-gradient(135deg, #111, #d4af37, #222);
}
.userpage-wrap.rank-black {
  --rank-frame: linear-gradient(135deg, #000, #333, #b71c1c);
}

/* ランク別背景画像 */
.userpage-wrap.rank-standard .inner,    .userpage-body.rank-standard    { background-image: url('/images/rank/bg/userrank-bg-standard.jpg'); }
.userpage-wrap.rank-bronze .inner,      .userpage-body.rank-bronze      { background-image: url('/images/rank/bg/userrank-bg-bronze.jpg'); }
.userpage-wrap.rank-silver .inner,      .userpage-body.rank-silver      { background-image: url('/images/rank/bg/userrank-bg-silver.jpg'); }
.userpage-wrap.rank-gold .inner,        .userpage-body.rank-gold        { background-image: url('/images/rank/bg/userrank-bg-gold.jpg'); }
.userpage-wrap.rank-platinum .inner,    .userpage-body.rank-platinum    { background-image: url('/images/rank/bg/userrank-bg-platinum.jpg'); }
.userpage-wrap.rank-diamond .inner,     .userpage-body.rank-diamond     { background-image: url('/images/rank/bg/userrank-bg-diamond.jpg'); }
.userpage-wrap.rank-premium .inner,     .userpage-body.rank-premium     { background-image: url('/images/rank/bg/userrank-bg-premium.jpg'); }
.userpage-wrap.rank-royal .inner,       .userpage-body.rank-royal       { background-image: url('/images/rank/bg/userrank-bg-royal.jpg'); }
.userpage-wrap.rank-executive .inner,   .userpage-body.rank-executive   { background-image: url('/images/rank/bg/userrank-bg-executive.jpg'); }
.userpage-wrap.rank-black .inner,       .userpage-body.rank-black       { background-image: url('/images/rank/bg/userrank-bg-black.jpg'); }

/* ユーザーページ */
.userpage-wrap .userpage-head {
  position: relative;
  color: #000;
}
.userpage-wrap .userpage-edit-btn {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #222;
  color: #fff;
  font-size: 1.1em;
}
.userpage-wrap .userpage-head .userpage-head-top {
  display: flex;
  align-items: center;
}
.userpage-wrap {
  border-radius: 6px;
  box-shadow: 1px 1px 6px -1px rgba(0, 0, 0, .3);
}
.userpage-wrap .inner {
  background-color: #fff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.userpage-wrap .userpage-head {
}
.userpage-wrap .userpage-head .inner {
  padding: 20px 20px 36px;
}
.userpage-body {
  padding: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.userpage-wrap .userpage-head .userpage-title {
  padding-bottom: .4em;
  margin-bottom: .4em;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
}
.userpage-wrap .userpage-head .userrank-ico {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 3.2em;
  width: auto;
}
@media screen and (max-width: 850px) {
  .userpage-wrap .userpage-head .userrank-ico {
    height: 2.5em;
  }
}
.userpage-wrap .userpage-head h3 {
  font-size: 1.3em;
  margin-bottom: .3em;
}
.userpage-wrap .userpage-head hr {
  border-top: 1px solid rgba(0, 0, 0, .2);
  margin: .5em 0;
}
.userpage-wrap .userpage-head .user-icon-frame {
  flex-shrink: 0;
  padding: 4px;
  background: linear-gradient(135deg, #5c3d00, #ffd700, #f5c842, #ffd700, #5c3d00);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.5),
    0 3px 12px rgba(160, 110, 0, 0.45);
}
.userpage-wrap .userpage-head .user-icon {
  width: 100px;
  height: 100px;
  overflow: hidden;
  display: block;
}
.userpage-wrap .userpage-head .user-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.userpage-wrap .userpage-head .user-info {
  flex: 1;
  min-width: 0;
  padding-left: 20px;
  text-shadow: 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff;
}

/* マイページリンク（自分のページ閲覧時のみ） */
.userpage-mylinks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.userpage-mylink {
  display: inline-flex;
  align-items: center;
  padding: .4em .9em;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: .82em;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.userpage-mylink:hover {
  background: rgba(0, 0, 0, .8);
  color: #fff;
  text-decoration: none;
}

/* メッセージ */
.userpage-wrap .userpage-message {
  margin-top: 14px;
  padding: 6px 16px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  line-height: 1.7;
}

/* ボディ */
.userpage-body {
  background: #fff url(https://mantube.manzoku.me/manzokustaticfile/manzoku-2024/1779785575390.png) center / cover no-repeat;
}
.userpage-body h3.userpage-section-title {
  font-size: 1.1em;
  padding: .6em 20px;
  background: #222;
  color: #fff;
}
.userpage-body h3.userpage-section-title i {
  margin-right: .5em;
}
.userpage-body .userpage-section {
  padding: 16px 20px;
}
.userpage-body .userpage-section--bg {
  background: rgba(255, 255, 255, .75);
}
.userpage-body table {
  border-collapse: collapse;
  width: 100%;
}
.userpage-body table tr {
  border-bottom: 1px solid #e8e8e8;
}
.userpage-body table tr:last-child {
  border-bottom: none;
}
.userpage-body table th,
.userpage-body table td {
  padding: .65em 1em;
  text-align: left;
}
.userpage-body table th {
  width: 10em;
  color: #888;
  font-size: .85em;
  font-weight: normal;
}
.userpage-body .userpage-comment {
  padding: 10px;
  margin-bottom: 4em;
  background: #f4f4f4;
  border-radius: 6px;
}

/* Myガール・Myショップ */
.userpage-body .userpage-fe {
}
.userpage-body .userpage-fe .userpage-fe-item {
  text-align: center;
}
.userpage-body .userpage-fe .userpage-fe-item img {
  display: block;
  width: 100%;
}
.userpage-body .userpage-fe .userpage-fe-thumb {
  overflow: hidden;
  height: 280px;
  display: block;
  position: relative;
  margin-bottom: 5px;
  border: 1px solid #EDCBE7;
}
.userpage-body .userpage-fe .userpage-fe-thumb.shop {
  height: auto;
}
.userpage-body .userpage-fe .userpage-fe-thumb span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #444;
  font-weight: bold;
  padding: .3em .5em;
  background: rgba(255, 255, 255, .8);
}
.userpage-body .userpage-fe .userpage-fe-shop {
  display: block;
  color: #666;
  padding: 5px;
  border: 1px solid #aaa;
  border-radius: 3px;
}
.userpage-body .userpage-fe .userpage-fe-shop h4 {
  color: #ff5297;
}
.userpage-body .userpage-fe .userpage-fe-shop p {
  font-size: .8em;
}

/* クチコミ一覧ページ */
.userpage-reviews-header {
  margin-bottom: 1em;
}
.userpage-reviews-header h2 {
  font-size: 1.1em;
  font-weight: bold;
  margin-top: .5em;
}
.userpage-back-btn {
  display: inline-block;
  font-size: .85em;
  color: #666;
  padding: .3em 0;
}
.userpage-back-btn:hover { color: #222; }

/* タブ */
.userpage-tabs {
  display: flex;
  border-bottom: 2px solid #222;
  margin: 1em 0 1px;
  gap: 10px;
}
.userpage-tab-btn {
  flex: 1;
  padding: .9em 1em;
  background: #fff;
  border: none;
  border-right: 1px solid #e0e0e0;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-size: .85em;
  font-weight: bold;
  color: #999;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25em;
  transition: background .15s, color .15s;
  line-height: 1.3;
}
.userpage-tab-btn:last-child { border-right: none; }
.userpage-tab-btn i {
  font-size: 1.15em;
}
.userpage-tab-btn:hover:not(.active) {
  background: #f5f5f5;
  color: #555;
  text-decoration: none;
}
.userpage-tab-btn.active {
  background: #000;
  color: #fff;
}
.userpage-tab-panel { display: none; }
.userpage-tab-panel.active { display: block; }

/* レスポンシブ */
@media screen and (max-width: 767px) {
  .cr_topcontentbox_trs .cr_flexscrollitem {
    margin: .5em 1em 1em 0;
  }
  main .cr_memberbasicinfochange {
    padding: 0;
  }
}
@media screen and (max-width: 850px) {
  .userpage-wrap {
    border-radius: 0;
  }
  .userpage-wrap .userpage-head .inner {
    padding: 12px 12px 34px;
  }
  .userpage-wrap .userpage-head .user-icon {
    width: 80px;
    height: 80px;
  }
  .userpage-body .userpage-section {
    padding: 10px 8px;
  }
}

/* 実績カード RPG風 */
.ph-stats { display: flex; gap: 10px; margin: 16px 0; }
.ph-stat-card {
  flex: 1;
  position: relative;
  padding: 18px 8px 14px;
  text-align: center;
  border-radius: 4px;
  background: linear-gradient(160deg, #1a1030 0%, #0d0820 100%);
  border: 1px solid #6b4f00;
  box-shadow:
    0 0 0 1px #2a1a00,
    inset 0 0 20px rgba(0,0,0,.6),
    0 4px 16px rgba(0,0,0,.5);
  color: #f0d080;
  overflow: hidden;
}
.ph-stat-card::after {
  content: '';
  position: absolute; inset: 2px;
  border: 1px solid rgba(180,130,20,.25);
  border-radius: 3px;
  pointer-events: none;
}
.ph-stat-corner {
  position: absolute; width: 8px; height: 8px;
  border-color: #d4a017; border-style: solid;
}
.ph-stat-corner--tl { top: 4px; left: 4px;  border-width: 2px 0 0 2px; }
.ph-stat-corner--tr { top: 4px; right: 4px; border-width: 2px 2px 0 0; }
.ph-stat-corner--bl { bottom: 4px; left: 4px;  border-width: 0 0 2px 2px; }
.ph-stat-corner--br { bottom: 4px; right: 4px; border-width: 0 2px 2px 0; }
.ph-stat-stamp  { border-color: #4a6fa0; box-shadow: 0 0 0 1px #0a1a30, inset 0 0 20px rgba(0,0,0,.6), 0 4px 16px rgba(0,0,0,.5), 0 0 12px rgba(80,130,220,.2); }
.ph-stat-stamp  .ph-stat-corner { border-color: #6899d4; }
.ph-stat-stamp  .ph-stat-icon { color: #7ab4f0; text-shadow: 0 0 10px rgba(100,160,255,.8); }
.ph-stat-review { border-color: #5a3a80; box-shadow: 0 0 0 1px #1a0830, inset 0 0 20px rgba(0,0,0,.6), 0 4px 16px rgba(0,0,0,.5), 0 0 12px rgba(140,80,220,.2); }
.ph-stat-review .ph-stat-corner { border-color: #a070e0; }
.ph-stat-review .ph-stat-icon { color: #c090ff; text-shadow: 0 0 10px rgba(160,100,255,.8); }
.ph-stat-like   { border-color: #802040; box-shadow: 0 0 0 1px #300010, inset 0 0 20px rgba(0,0,0,.6), 0 4px 16px rgba(0,0,0,.5), 0 0 12px rgba(220,60,80,.2); }
.ph-stat-like   .ph-stat-corner { border-color: #e05070; }
.ph-stat-like   .ph-stat-icon { color: #ff7090; text-shadow: 0 0 10px rgba(255,80,100,.8); }
.ph-stat-icon { font-size: 1.5em; margin-bottom: 8px; }
.ph-stat-num {
  font-size: 2em; font-weight: bold; line-height: 1;
  color: #ffe080;
  text-shadow: 0 0 8px rgba(255,200,50,.6), 0 1px 0 #000;
  margin-bottom: 6px;
  letter-spacing: .03em;
}
.ph-stat-label {
  color: #c0a050;
  letter-spacing: .05em;
  text-shadow: 0 1px 2px #000;
}
