body {
  font-family: "Segoe UI", sans-serif;
  background: #fafafa;
  padding: 24px 20px 40px;
  color: #333;
  max-width: 1120px;
  margin: 0 auto;
  position:relative;
}

.page-title {
  position: relative;
  text-align: center;
  margin: 8px 0 28px;
  padding: 4px 0 0;
  isolation: isolate;
}

.title-content {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.title-decor {
  position: absolute;
  top: 50%;
  width: 104px;
  height: 104px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.95;
  z-index: 0;
  overflow: visible;

  transition: all 0.3s ease;
}

.title-decor-left {
  left: 18%;
  transform: translateY(-50%) rotate(-11deg);
}

.title-decor-right {
  right: 18%;
  transform: translateY(-50%) rotate(9deg);
}

.decor-shape {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(181,124,255,.22));
  animation: floatDecor 6s ease-in-out infinite;
  transform-origin: center center;
}

.decor-triangle {
  stroke: #c79cff;
  fill: none;
  opacity: 0.55;
  animation-duration: 6.4s;
  animation-delay: -1s;
  transform: rotate(-12deg);
  transform-origin: center;
}

.decor-circle {
  stroke: #d9b8ff;
  fill: none;
  opacity: 0.45;
  animation-duration: 5.4s;
  animation-delay: -0.6s;
  stroke-width: 1.8;
}

.decor-diamond {
  stroke: #e6ccff;
  fill: none;
  opacity: 0.40;
  animation-duration: 6.8s;
  animation-delay: -1.4s;
  transform: rotate(16deg);
  transform-origin: center;
}

.decor-plus {
  stroke: #b57cff;
  stroke-width: 2.8;
  opacity: 0.50;
  animation-duration: 5.8s;
  animation-delay: -2s;
  transform: scale(.82);
  transform-origin: center;
}

@keyframes floatDecor {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(1.4deg);
  }
}

@media (max-width: 768px) {
  .title-decor {
    width: 72px;
    height: 72px;
    opacity: 0.8;
  }

  .title-decor-left {
    left: 2%;
  }

  .title-decor-right {
    right: 2%;
  }

  .decor-shape {
    stroke-width: 2;
  }
}
.page-title h1 {
  font-family: "M PLUS Rounded 1c", "Zen Maru Gothic", "Segoe UI", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 900;
  margin: 0 0 2px;
  line-height: 1.12;
  letter-spacing: 0.1em;

  color: #ffffff;
  background: linear-gradient(
   135deg,
   #ffffff 0%,
   #f4ddff 20%,
   #d9b8ff 55%,
   #b57cff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 0 8px rgba(255,255,255,.9),
    0 0 18px rgba(191,139,255,.25);

  -webkit-text-stroke: 0.5px #b387de;
}

.small-no{
    font-size:0.72em;
    display:inline-block;
    transform:translateY(-0.05em);
}

.page-title .subtitle{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
}

.page-title .subtitle::before,
.page-title .subtitle::after{
    content:"";
    width:70px;
    height:2px;
    border-radius:999px;
    background:linear-gradient(
        to right,
        transparent,
        #d9b8ff,
        transparent
    );
    opacity:.55;
}

#search {
  display: block;
  width: 100%;
  max-width: 650px;
  box-sizing: border-box;

  padding: 14px 52px 14px 18px;

  border: 1px solid #ddd6fe;
  border-radius: 14px;

  font-size: 1rem;

  margin: 0 auto 18px;

  background: #ffffff;

  box-shadow:
    0 6px 18px rgba(181,124,255,.10);

  transition:
    .25s ease;
}

#search:focus {
  outline: none;

  border-color: #b57cff;

  box-shadow:
    0 0 0 4px rgba(181,124,255,.18),
    0 10px 24px rgba(181,124,255,.18);
}

#search::placeholder{
    color:#9ca3af;
    transition:.25s;
}

#search:focus::placeholder{
    color:#c4b5fd;
}

.filter-area {
  background: #ffffff;
  border: 1px solid #ece4ff;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 22px;
  box-shadow:
    0 6px 18px rgba(181,124,255,.08);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-title{
  font-size:1.05rem;
  font-weight:800;
  color:#8b5cf6;
  margin-bottom:6px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-options label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  background:#faf7ff;
  border:1px solid #e7d9ff;
  border-radius:12px;
  cursor:pointer;
  transition:.2s;
}

.filter-options input[type="checkbox"]{
  accent-color:#8b5cf6;
  width:18px;
  height:18px;
  cursor:pointer;
}

.filter-options label:hover{
  background:#f6f1ff;
  border-color:#c4b5fd;
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(181,124,255,.10);
}

.filter-section select{
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e6d7ff;
  border-radius: 12px;
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  transition: .2s;
}

.filter-section select:hover {
  border-color: #b57cff;
}

.filter-section select:focus{
  outline: none;
  border-color: #9b6cff;
  box-shadow: 0 0 0 3px rgba(181,124,255,.18);
}

#song-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 0px;
}

.song-card {
  background:#ffffff;
  border:1px solid #efe7ff;
  border-radius:20px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  box-shadow:
      0 6px 18px rgba(181,124,255,.08);
  transition:
      transform .22s ease,
      box-shadow .22s ease,
      border-color .22s ease;
}

.song-card:hover{
  transform:translateY(-6px);
  border-color:#d8c0ff;
  box-shadow:
      0 14px 34px rgba(181,124,255,.16);
}

.song-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist {
  color: #5b556d;
  font-size: 1rem;
  margin: 0;
}

.live-date {
  color: #7b728d;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f3f4f6;
  color: #374151;
}

.badge-first{
    background:#ede9fe;
    color:#6d28d9;
}

.badge-full{
    background:#ede9fe;
    color:#6d28d9;
}

.badge-original{
    background:#f5f3ff;
    color:#7c3aed;
}

.card-actions{
    display:flex;
    gap:8px;
    margin-top:6px;
}

.card-button,
.live-link {
  flex: 1;
  text-align: center;
  border-radius: 12px;
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background-color .2s ease,
    transform .15s ease,
    box-shadow .2s ease;
}

.card-button{
    background:#f5efff;
    border:1px solid #e0ceff;
    color:#7c3aed;
    cursor:pointer;
}

.card-button:hover{
    background:#efe6ff;
    transform:translateY(-2px);
    box-shadow:
        0 6px 18px rgba(181,124,255,.18);
}

.live-link{
    background:linear-gradient(
        135deg,
        #9b6cff,
        #8b5cf6
    );
    color:#fff;
}

.live-link:hover{
    background:#8b5cf6;
    transform:translateY(-2px);
    box-shadow:
        0 6px 18px rgba(181,124,255,.18);
}

.thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
  transition:
    transform .25s ease;
  cursor:pointer;
}

.thumbnail-link{
    display:block;
    overflow:hidden;
    border-radius:16px;
}

.song-card:hover .thumbnail{

    transform:scale(1.02);

}

.result-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
  flex:1;
}

#result-count{
  font-size:1.05rem;
  font-weight:800;
  color:#6d28d9;
}

.sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sort-row label {
  font-weight: 600;
  color: #444;
}

.sort-row select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e6d7ff;
  border-radius: 12px;
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  transition: .2s;
}

.sort-row select:hover {
  border-color: #b57cff;
}

.sort-row select:focus {
  outline: none;
  border-color: #9b6cff;
  box-shadow: 0 0 0 3px rgba(181,124,255,.18);
}

body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(32, 18, 71, 0.45);
  backdrop-filter: blur(6px);
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  width: min(700px, 100%);
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overflow-x: hidden;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(87, 63, 140, 0.18);
  display: flex;
  flex-direction: column;
}

.modal-header{
    position:sticky;
    top:0;

    display:flex;
    justify-content:flex-end;

    padding:18px 24px 8px;

    background:#fff;

    z-index:20;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.modal-subtitle {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.modal-close {
  border: none;
  background: #f4f1ff;
  color: #4b3c86;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding:8px 24px 24px;
  display: grid;
  gap: 20px;
}

.modal-thumbnail-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
}

.modal-thumbnail {
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
    display:block;
    cursor:pointer;
    transition:
        transform .25s ease,
        filter .25s ease;
}

#modal-thumbnail-link{
    display:block;
    overflow:hidden;
    border-radius:18px;
}

#modal-thumbnail-link:hover .modal-thumbnail{
    transform:scale(1.03);
    filter:brightness(.94);
}

#modal-thumbnail-link{
    display:block;
    border-radius:18px;
    overflow:hidden;
}

.thumbnail-link:hover .thumbnail,
#modal-thumbnail-link:hover .modal-thumbnail{

    transform:scale(1.03);

    filter:brightness(.95);

}

.modal-info-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.modal-info-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #f8f2ff;
  border-radius: 18px;
}

.modal-info-label {
  font-size: 0.88rem;
  color: #6b7280;
  font-weight: 700;
}

.modal-info-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.5;
  word-break: break-word;
}

.modal-section {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.modal-section-title {
  font-size: 0.95rem;
  color: #4b5563;
  font-weight: 700;
}

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

.modal-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 12px;
  align-items:flex-start;
}

.modal-info-row .modal-info-label {
  min-width:120px;
  flex-shrink:0;
  white-space:nowrap;
}

.modal-info-row .modal-info-value{
  flex:1;
  text-align:left;
  white-space:normal;
  word-break:break-word;
}

.modal-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background:#ede9fe;
  color:#6d28d9;
  font-weight: 700;
  font-size: 0.95rem;
}

.modal-badge--active {
  background:#ede9fe;
  color:#6d28d9;
}

.hidden {
  display: none;
}

.modal-footer {
  padding:20px 24px 28px;
}

.modal-action-button {
  display: inline-flex;
  width: 100%;
  box-sizing:border-box;
  justify-content: center;
  padding: 15px 18px;
  border-radius: 16px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.modal-action-button:hover{
  background:#6d28d9;
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(124,58,237,.28);
}

@media (max-width: 560px) {
  .modal-content {
    border-radius: 18px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

.modal-content{
    scrollbar-width:thin;
    scrollbar-color:#d8c3ff transparent;
}

.modal-content::-webkit-scrollbar{
    width:8px;
}

.modal-content::-webkit-scrollbar-track{
    margin:18px 0;
    background:transparent;
}

.modal-content::-webkit-scrollbar-thumb{
    background:#d8c3ff;
    border-radius:999px;
}

.search-wrapper{
    position:relative;
    max-width:650px;
    margin:0 auto 18px;
}

.search-wrapper::after{
    content:"";

    position:absolute;

    right:18px;
    top:50%;

    width:20px;
    height:20px;

    transform:translateY(-50%);

    background-repeat:no-repeat;
    background-size:contain;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c4b5fd' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");

    pointer-events:none;

    opacity:.9;

    transition:.25s ease;
}

.search-wrapper:focus-within::after{
    opacity:1;
    transform:translateY(-50%) scale(1.08);
}

/* フィルター開閉ボタン（PCでは非表示） */
.filter-toggle{
    display:none;
}

#filter-content{
  display: contents;
}

/* ==========================================
   Responsive（768px以下）
========================================== */

@media (max-width:768px){

  body{
    padding: 12px;
  }


  /* ==========================================
   上部固定エリア
========================================== */

 .sticky-search-area{
    position: sticky;
    top: 0;
    z-index: 100;

    background:#fafafa;

    padding-top:12px;
    padding-bottom:12px;

  }
  /* ---------- タイトル ---------- */

  .page-title{
    margin-bottom:20px;
  }

  .title-decor{
    display:none;
  }

  .page-title h1{
    font-size:2.7rem;
  }

  .page-title .subtitle::before,
  .page-title .subtitle::after{
    width:40px;
  }

  /* ---------- 検索 ---------- */

  .search-wrapper{
    margin-bottom:16px;
  }

  #search{
    max-width:100%;
    margin-bottom:0;
    padding:14px 48px 14px 16px;
  }

  /* ---------- フィルター ---------- */
  .filter-toggle{

    display:flex;
    align-items:center;
    justify-content:space-between;

    width:100%;


    padding:12px 18px;

    background:#fff;
    border:none;
    box-sizing:border-box;

    font-family:inherit;
    font-size:1rem;
    font-weight:700;
    color:#7b2ff7;

    cursor:pointer;
}

  .filter-toggle:hover{

    color:#6d28d9;

  }

.filter-toggle:focus-visible{
    outline:none;
}

#filter-toggle-icon{

    display:inline-block;

    font-size:.9rem;

    transition:transform .25s ease;

}

.filter-toggle-text{

    display:flex;

    align-items:center;

    gap:10px;

}

.filter-icon{

    font-size:1rem;

}

  #filter-content{

    display:block;

    max-height:0;

    opacity:0;

    overflow:hidden;

    padding:0 18px;

    transition:
      max-height .35s ease,
      opacity .25s ease,
      padding .25s ease;

}

 #filter-content.open{

    max-height:700px;

    opacity:1;

    padding:0 18px 18px;

}

  .filter-area{

    flex-direction:column;

    gap:0;

    padding:0;

    overflow:hidden;

    border:1px solid #ddd6fe;
    border-radius:14px;

    background:#fff;

    box-shadow:
      0 4px 14px rgba(181,124,255,.08);
    margin-bottom:10px;

}

  .filter-section{
    margin-top:14px;
    width:100%;
    margin-top:22px;
    margin-bottom:0;

}
  .filter-section:last-child{
    margin-bottom:0;
  }

  .filter-options{
    flex-direction:column;
  }

  .filter-options label{
    width:100%;
    box-sizing:border-box;
  }

  .filter-section select{
    width:100%;
  }

  .result-area{
    min-width:auto;
  }

  .sort-row{
    flex-direction:column;
    align-items:stretch;
  }

  .sort-row select{
    width:100%;
  }

  /* ---------- カード ---------- */

  #song-list{
  width: 100%;
  grid-template-columns: 1fr;
  gap: 18px;
  box-sizing: border-box;
 }

  .song-card{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px;
 }

 .card-actions{
  gap:12px;
 }
  .card-button,
  .live-link{

    height:46px;

  }

  /* ---------- モーダル ---------- */

  .modal-overlay{

    padding:12px;

  }

  .modal-content{

    max-height:95vh;

    border-radius:18px;

  }

  .modal-header{

    position: sticky;

    top: 0;

    z-index: 10;

    background: rgba(255,255,255,.75);

    backdrop-filter: blur(8px);

}

  .modal-body{

    padding:8px 16px 20px;

  }

  .modal-footer{

    padding:18px 16px 20px;

  }

  .modal-info-row{

    flex-direction:column;

    gap:4px;

  }

  .modal-info-row .modal-info-label{

    min-width:auto;

  }

  #song-list{
  width:100%;
  max-width:100%;
  }

 .song-card{
  width:100%;
  max-width:100%;
  min-width:0;
  }

 .thumbnail{
  width:100%;
  max-width:100%;
  }
}

/* ==========================================
   上に戻るボタン
========================================== */

.back-to-top{

  position: fixed;

  right: max(20px, calc((100vw - 1120px) / 2 + 20px));
  bottom: 20px;

  width: 52px;
  height: 52px;

  border: none;
  border-radius: 50%;

  background: #8b5cf6;
  color: #fff;

  font-size: 1.4rem;
  font-weight: bold;

  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);

  box-shadow:
    0 8px 20px rgba(139,92,246,.25);

  transition:
    opacity .25s ease,
    transform .25s ease,
    background .2s ease,
    box-shadow .2s ease;

  z-index: 999;
}

.back-to-top:hover{

  background:#7c3aed;

  transform:translateY(-3px);

  box-shadow:
    0 12px 28px rgba(139,92,246,.35);

}

.back-to-top.show{

  opacity: 1;

  visibility: visible;

  pointer-events: auto;

  transform: translateY(0);

}