/* ========================================
   base / reset
   文書全体の初期化
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  margin: 0;
  background: #ffffff;
  color: #222222;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

/* ========================================
   basic elements
   基本要素の初期化
======================================== */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

/* ========================================
   page frame
   共通外枠（header / main / footer）
======================================== */
header,
footer {
  min-height: 1px;
}

main {
  width: 100%;
  max-width: 690px;
  margin: 0 auto;
  padding: 16px;
}

.page-scroll-footer {
  padding: 20px 0 6px;
  text-align: center;
  color: #666666;
}

.page-scroll-footer p {
  font-size: 11px;
  line-height: 1.7;
}

.page-scroll-footer p + p {
  margin-top: 2px;
}

/* ========================================
   global navigation / footer
   全ページ共通メニュー
======================================== */
.page-inline-header {
  min-width: 0;
}

.site-global-nav {
  min-width: 0;
  overflow-x: auto;
  color: #555555;
  font-size: clamp(9.5px, 2.6vw, 11.5px);
  line-height: 1.5;
}

.site-global-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 100%;
  white-space: nowrap;
}

.site-global-nav {
  scrollbar-width: none;
}

.site-global-nav::-webkit-scrollbar {
  display: none;
}

.site-global-nav li {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.site-global-nav li + li::before {
  content: "|";
  margin: 0 0.62em;
  color: #aaaaaa;
  font-weight: 400;
}

.site-global-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 0;
  border-radius: 4px;
}

.site-global-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-global-nav a:focus-visible {
  outline: 2px solid #222222;
  outline-offset: 2px;
}

.site-global-nav a[aria-current="page"] {
  color: #222222;
  font-weight: 700;
}

.site-header-menu {
  padding: 3px 4px 5px;
}

.page-scroll-footer .site-footer-menu {
  margin-bottom: 5px;
}

.page-scroll-footer .site-copyright {
  font-size: 11px;
  line-height: 1.7;
}

/* ========================================
   section flow
   main 配下の section 縦積み
======================================== */
main > section + section {
  margin-top: 20px;
}

/* ========================================
   transport core
   transport ボタン列の共通核
======================================== */
.top-player-transport,
.player-transport {
  display: flex;
}

.transport-button-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.transport-button-icon {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ========================================
   progress core
   進行表示バー一式の共通核
======================================== */
.top-player-progress-bar,
.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #ddd;
  overflow: hidden;
}

.top-player-progress-fill,
.progress-fill {
  height: 100%;
  background: #333;
}

.top-player-progress-time,
.progress-time {
  margin-top: 4px;
  font-size: 12px;
  text-align: right;
}

/* ========================================
   artwork core
   アートワーク画像と履歴サムネの共通核
======================================== */
.artwork-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-item {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.history-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: #efefef;
}

.history-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 26px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #222222;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  pointer-events: none;
}
