/* ============================================================
 * rinka-records.css — りんか実績（/rinka-records/）2026-09-27
 * テンプレート: templates/fansite-rinka-records.php ／ 動き: assets/js/rinka-records.js
 * 色は りんかワールド刷新2026（rinka-world-2026.css の --rw26-*）・遊び方診断（.rwp）と同じパステル。
 * スマホ縦持ち最優先。押せる所は 44px 以上。絵文字は使わない（assets/img/find/*.webp）。
 * ========================================================== */

.rrc {
	--rrc-ink: #4a3540;
	--rrc-sub: #76606c;
	--rrc-rose: #e0588f;
	--rrc-rose-ink: #b83a72;
	--rrc-lav: #b9a3ff;
	--rrc-line: #f4d9e6;
	--rrc-soft: #fff5f9;
	--rrc-card: #fff;
	--rrc-grad: linear-gradient(120deg, #ff8fbf, #c9a2ff 55%, #8fd6ff);
	--rrc-shadow: 0 10px 28px -14px rgba(184, 58, 114, .32);
	--rrc-tap: 44px;
	max-width: 760px;
	margin: 6px auto 30px;
	color: var(--rrc-ink);
	font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
	-webkit-tap-highlight-color: transparent;
}
.rrc *, .rrc *::before, .rrc *::after { box-sizing: border-box; }
.rrc p { margin: 0; }
.rrc-ico { width: 28px; height: 28px; flex: none; object-fit: contain; vertical-align: middle; }

/* ---------- 見出し・区切り ---------- */
.rrc-h {
	display: flex; align-items: center; gap: 8px;
	margin: 0 0 12px; font-size: 1.12rem; font-weight: 900; letter-spacing: .03em; line-height: 1.4;
	color: var(--rrc-ink);
}
.rrc-h .rrc-ico { width: 32px; height: 32px; }
.rrc-sec { margin-top: 26px; }
.rrc-sec__lead { margin: -4px 0 12px !important; font-size: .86rem; color: var(--rrc-sub); }
.rrc-empty { padding: 16px; border-radius: 18px; background: var(--rrc-soft); color: var(--rrc-sub); font-size: .9rem; line-height: 1.7; text-align: center; }
.rrc-loading { padding: 30px 0; text-align: center; color: var(--rrc-sub); }

/* ---------- この端末の記録だよ ---------- */
.rrc-note {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px; margin-bottom: 16px;
	border-radius: 18px; background: #f5f0ff; border: 1px solid #e5dcff;
}
.rrc-note .rrc-ico { width: 36px; height: 36px; }
.rrc-note__txt { font-size: .86rem; line-height: 1.65; color: var(--rrc-ink); }
.rrc-note__link {
	display: inline-flex; align-items: center; min-height: var(--rrc-tap); padding: 0 4px;
	font-weight: 800; color: var(--rrc-rose-ink); text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- まとめ（上の4つ） ---------- */
.rrc-sum {
	padding: 18px 14px 16px;
	border-radius: 30px;
	background:
		radial-gradient(90% 70% at 100% 0%, rgba(201, 162, 255, .22), transparent 60%),
		radial-gradient(80% 70% at 0% 100%, rgba(255, 143, 191, .18), transparent 60%),
		#fff;
	border: 1px solid var(--rrc-line);
	box-shadow: 0 12px 32px -12px rgba(184, 58, 114, .25);
}
.rrc-sum__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rrc-sum__tile {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 8px; align-items: center;
	padding: 12px; border-radius: 20px; background: rgba(255, 255, 255, .85);
	border: 1px solid var(--rrc-line); min-width: 0;
}
.rrc-sum__ico { width: 34px; height: 34px; grid-row: 1; }
.rrc-sum__label { grid-row: 1; font-size: .8rem; font-weight: 800; color: var(--rrc-sub); line-height: 1.3; }
.rrc-sum__val { grid-column: 1 / -1; margin-top: 6px; font-size: .95rem; color: var(--rrc-ink); line-height: 1.2; }
.rrc-sum__val b { font-size: 1.7rem; font-weight: 900; letter-spacing: .01em; background: var(--rrc-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rrc-sum__val small { font-size: .85rem; color: var(--rrc-sub); font-weight: 700; }
.rrc-sum__val .rrc-unit { margin-left: 2px; font-size: .85rem; font-weight: 800; color: var(--rrc-sub); }
.rrc-sum__sub { grid-column: 1 / -1; margin-top: 4px; font-size: .74rem; color: var(--rrc-sub); line-height: 1.4; }
.rrc-sum__sub b { color: var(--rrc-rose-ink); font-weight: 900; }
.rrc-sum__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px !important; }
.rrc-chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px 4px 6px;
	border-radius: 999px; background: var(--rrc-soft); border: 1px solid var(--rrc-line);
	font-size: .82rem; font-weight: 700; color: var(--rrc-sub);
}
.rrc-chip b { color: var(--rrc-rose-ink); font-weight: 900; }
.rrc-chip__ico { width: 24px; height: 24px; flex: none; object-fit: contain; }

/* ---------- ボタン ---------- */
.rrc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 48px; padding: 8px 18px;
	border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 800; font-size: .95rem; line-height: 1.25;
	text-decoration: none !important; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.rrc-btn:focus-visible, .rrc-tab:focus-visible, .rrc-note__link:focus-visible { outline: 3px solid #9b7bff; outline-offset: 2px; }
.rrc-btn--main { color: #fff !important; background: var(--rrc-grad); box-shadow: 0 5px 0 #d777a6, 0 10px 22px -10px rgba(184, 58, 114, .5); text-shadow: 0 1px 1px rgba(160, 40, 100, .35); }
.rrc-btn--main:active { transform: translateY(3px); box-shadow: 0 2px 0 #d777a6; }
.rrc-btn--ghost { color: var(--rrc-rose-ink) !important; background: #fff; border-color: #f6c1d7; box-shadow: 0 4px 0 #f6dbe7; }
.rrc-btn--ghost:active { transform: translateY(2px); box-shadow: 0 2px 0 #f6dbe7; }
.rrc-btn__ico { width: 26px; height: 26px; flex: none; object-fit: contain; }
.rrc-btn__arrow { font-size: 1.2em; line-height: 1; }
.rrc-btn small { font-weight: 700; opacity: .8; }
.rrc-more { display: flex; width: 100%; margin-top: 12px; }
.rrc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rrc-links .rrc-btn { flex: 1 1 160px; }

/* ---------- ゲームの記録（カード型） ---------- */
.rrc-games { display: grid; grid-template-columns: 1fr; gap: 12px; }
.rrc-game {
	display: flex; flex-direction: column; gap: 10px;
	padding: 14px; border-radius: 24px;
	background: var(--rrc-card); border: 1px solid var(--rrc-line); box-shadow: var(--rrc-shadow);
	min-width: 0;
}
.rrc-game.is-new { background: linear-gradient(170deg, #fff, #fbf7ff); box-shadow: none; border-style: dashed; border-color: #e3d6f7; }
.rrc-game__head { display: flex; align-items: center; gap: 10px; }
.rrc-game__ico { width: 44px; height: 44px; flex: none; object-fit: contain; }
.rrc-game__name { margin: 0; font-size: 1.02rem; font-weight: 900; line-height: 1.35; color: var(--rrc-ink); }
.rrc-game__tag { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #efe8ff; color: #6d58b8; font-size: .72rem; font-weight: 800; }
.rrc-game__empty { font-size: .9rem; color: var(--rrc-sub); }
.rrc-game .rrc-btn { align-self: stretch; }
.rrc-game__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: .8rem; color: var(--rrc-sub); font-weight: 700; }
.rrc-game__title b { font-size: .95rem; font-weight: 900; color: var(--rrc-rose-ink); }
.rrc-game__daily {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
	padding: 8px 12px; border-radius: 14px; background: #f0fbf7; color: #2f6d5c; font-size: .82rem;
}
.rrc-game__daily-l { font-weight: 800; margin-right: 4px; }
.rrc-game__daily b { font-weight: 900; font-size: .95rem; }
.rrc-dot { display: inline-block; width: 4px; height: 4px; margin: 0 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.rrc-game__note { font-size: .74rem; color: var(--rrc-sub); line-height: 1.6; }

/* 称号・勲章・GAMEカードのメーター */
.rrc-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.rrc-meter {
	display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 6px; row-gap: 4px;
	padding: 8px 10px; border-radius: 16px; background: var(--rrc-soft); min-width: 0;
}
.rrc-meter__ico { width: 26px; height: 26px; object-fit: contain; grid-row: 1 / 3; }
.rrc-meter__l { font-size: .72rem; font-weight: 800; color: var(--rrc-sub); line-height: 1.2; }
.rrc-meter__v { font-size: .8rem; line-height: 1.1; }
.rrc-meter__v b { font-size: 1.15rem; font-weight: 900; color: var(--rrc-rose-ink); }
.rrc-meter__v small { color: var(--rrc-sub); font-weight: 700; }
.rrc-meter__bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 99px; background: #f6dbe7; overflow: hidden; }
.rrc-meter__bar i { display: block; height: 100%; border-radius: inherit; background: var(--rrc-grad); }

/* 自己ベストなどの表 */
.rrc-rows { margin: 0; display: grid; gap: 0; border-top: 1px dashed var(--rrc-line); }
.rrc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 2px; border-bottom: 1px dashed var(--rrc-line); }
.rrc-row dt { font-size: .84rem; color: var(--rrc-sub); font-weight: 700; }
.rrc-row dd { margin: 0; font-size: .98rem; font-weight: 900; color: var(--rrc-ink); text-align: right; font-variant-numeric: tabular-nums; }

/* ランキングの案内 */
.rrc-rank {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	margin-top: 12px; padding: 12px 14px; border-radius: 20px; background: #fff8e6; border: 1px solid #f7e2a6;
}
.rrc-rank__ico { width: 36px; height: 36px; flex: none; object-fit: contain; }
.rrc-rank__txt { flex: 1 1 200px; font-size: .84rem; line-height: 1.6; color: #6b5420; }

/* 総合ポイント（rank_data が読めた時） */
.rrc-rank { margin: 0 0 12px; }
.rrc-rank__body { flex: 1 1 200px; min-width: 0; }
.rrc-rank__h { font-size: .8rem; font-weight: 800; color: #6b5420; }
.rrc-rank__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 2px !important; color: #6b5420; }
.rrc-rank__big > b { font-size: 1.7rem; font-weight: 900; color: #b0741a; line-height: 1.1; }
.rrc-rank__big .rrc-unit { font-size: .85rem; font-weight: 800; }
.rrc-rank__pos { font-size: .85rem; font-weight: 800; }
.rrc-rank__pos b, .rrc-rank__sub b { color: var(--rrc-rose-ink); font-size: 1.05rem; }
.rrc-rank__sub { margin-top: 2px !important; font-size: .8rem; color: #6b5420; }

/* ゲームごとの ランキングの順位 */
.rrc-grk { padding: 10px 12px; border-radius: 16px; background: #fff8e6; border: 1px solid #f7e2a6; }
.rrc-grk__h { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 900; color: #6b5420; }
.rrc-grk__list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.rrc-grk__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding-top: 6px; border-top: 1px dashed #f1dca0; font-size: .8rem; color: #6b5420; }
.rrc-grk__item:first-child { border-top: 0; padding-top: 0; }
.rrc-grk__label { flex: 1 1 100%; font-weight: 800; color: var(--rrc-ink); }
.rrc-grk__places { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.rrc-grk__p b, .rrc-grk__best b { font-weight: 900; color: var(--rrc-rose-ink); font-size: .95rem; }
.rrc-grk__best { margin-left: auto; }

/* ---------- 実績の一覧 ---------- */
.rrc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 12px; border-radius: 999px; background: var(--rrc-soft); border: 1px solid var(--rrc-line); }
.rrc-tab {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--rrc-tap);
	border: 0; border-radius: 999px; background: transparent; cursor: pointer;
	font: inherit; font-weight: 800; font-size: .92rem; color: var(--rrc-sub);
}
.rrc-tab b { padding: 1px 8px; border-radius: 999px; background: #fff; font-size: .8rem; color: var(--rrc-rose-ink); }
.rrc-tab.is-on { background: #fff; color: var(--rrc-rose-ink); box-shadow: 0 3px 10px -4px rgba(184, 58, 114, .35); }
.rrc-tab.is-on b { background: var(--rrc-soft); }
.rrc-ach { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.rrc-ach__item {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 10px 12px; border-radius: 18px; background: #faf7f9; border: 1px solid #efe4ea; min-width: 0;
}
.rrc-ach__item.is-on { background: #fff; border-color: var(--rrc-line); box-shadow: 0 6px 16px -12px rgba(184, 58, 114, .4); }
.rrc-ach__ico { width: 34px; height: 34px; flex: none; object-fit: contain; }
.rrc-ach__item:not(.is-on) .rrc-ach__ico { opacity: .55; filter: grayscale(.4); }
.rrc-ach__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rrc-ach__t { font-size: .92rem; font-weight: 900; line-height: 1.35; color: var(--rrc-ink); }
.rrc-ach__d { font-size: .78rem; line-height: 1.5; color: var(--rrc-sub); }
.rrc-ach__when { margin-top: 2px; font-size: .74rem; font-weight: 800; color: var(--rrc-rose-ink); }
.rrc-ach__prog { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .74rem; color: var(--rrc-sub); }
.rrc-ach__bar { flex: 1; height: 6px; border-radius: 99px; background: #eee3ea; overflow: hidden; }
.rrc-ach__bar i { display: block; height: 100%; background: var(--rrc-grad); }
.rrc-ach__rar {
	flex: none; align-self: center; min-width: 40px; padding: 3px 8px; border-radius: 999px; text-align: center;
	font-size: .72rem; font-weight: 900; letter-spacing: .04em; background: #eee; color: #6b6b6b;
}
.rrc-r-r .rrc-ach__rar { background: #e3f1ff; color: #2c6aa6; }
.rrc-r-sr .rrc-ach__rar { background: #efe6ff; color: #6a4bc0; }
.rrc-r-ssr .rrc-ach__rar { background: linear-gradient(120deg, #ffe7a3, #ffc4de); color: #8a4a12; }
.rrc-r-inf .rrc-ach__rar { background: var(--rrc-grad); color: #fff; font-size: .9rem; }

/* ---------- カード（レア度ごと） ---------- */
.rrc-rar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.rrc-rar__item {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	padding: 10px 6px; border-radius: 18px; background: #fff; border: 1px solid var(--rrc-line); box-shadow: 0 6px 16px -12px rgba(184, 58, 114, .4);
}
.rrc-rar__badge { width: 40px; height: 40px; object-fit: contain; }
.rrc-rar__name { font-size: .72rem; font-weight: 900; letter-spacing: .05em; color: var(--rrc-sub); }
.rrc-rar__n { font-size: 1.3rem; font-weight: 900; color: var(--rrc-rose-ink); line-height: 1.1; }

/* ---------- 年表 ---------- */
.rrc-tl { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.rrc-tl::before { content: ''; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(#ffc1dc, #d9c8ff); }
.rrc-tl__month {
	position: relative; display: inline-flex; margin: 10px 0 6px 38px; padding: 3px 12px; border-radius: 999px;
	background: var(--rrc-grad); color: #fff; font-size: .8rem; font-weight: 900; letter-spacing: .04em;
}
.rrc-tl__item { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.rrc-tl__ico { position: relative; z-index: 1; width: 36px; height: 36px; flex: none; object-fit: contain; padding: 3px; border-radius: 50%; background: #fff; border: 2px solid #fbe0ec; }
.rrc-tl__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 6px 12px; border-radius: 14px; background: #fff; border: 1px solid #f3e6ee; }
.rrc-tl__k { font-size: .7rem; font-weight: 800; color: var(--rrc-rose-ink); letter-spacing: .02em; }
.rrc-tl__t small { font-weight: 600; color: var(--rrc-sub); }
.rrc-tl__t { font-size: .88rem; font-weight: 700; line-height: 1.5; color: var(--rrc-ink); overflow-wrap: anywhere; }
.rrc-tl__d { font-size: .72rem; color: var(--rrc-sub); font-variant-numeric: tabular-nums; }

/* ---------- 広い画面 ---------- */
@media (min-width: 640px) {
	.rrc-sum { padding: 22px 20px 20px; }
	.rrc-sum__grid { grid-template-columns: repeat(4, 1fr); }
	.rrc-games { grid-template-columns: 1fr 1fr; }
	.rrc-ach { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.rrc-btn { transition: none; }
}

/* 見出しの下の説明（テンプレートで data-i18n-en つきで出している） */
.rrc-page > .rrc-lead { max-width: 36em; margin: -4px auto 14px; padding: 0 16px; text-align: center; }

/* さいきん手に入れたカード（入手順＝はじめて入手した時刻＋保管した並び） */
.rrc-sub { margin: 16px 0 8px; font-size: .92rem; font-weight: 900; color: var(--rrc-ink); }
.rrc-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rrc-recent__item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 14px; background: #fff; border: 1px solid #f3e6ee; }
.rrc-recent__badge { width: 30px; height: 30px; flex: none; object-fit: contain; }
.rrc-recent__r { flex: none; min-width: 30px; font-size: .7rem; font-weight: 900; color: var(--rrc-sub); text-align: center; }
.rrc-recent__t { flex: 1; min-width: 0; font-size: .86rem; font-weight: 700; color: var(--rrc-ink); overflow-wrap: anywhere; }
.rrc-recent__d { flex: none; font-size: .72rem; color: var(--rrc-sub); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) {
	.rrc-links .rrc-btn { flex: 1 1 100%; }
}
