:root {
  /* =========================
     テーマ：デフォルト
  ========================= */
  /* Brand / Accent */
  --color-brand: #02b9a5;
  --color-brand-soft: #ecfff3;
  --color-brand-border: #bdebcf;
  --color-accent: #00b7c2;
  --color-accent-text: #1b6b3a;
  /* Page / Surface */
  --color-page-bg: #f6f6f6;
  --color-surface: #ffffff;
  --color-surface-soft: #f2f2f2;
  --color-surface-accent: #f4fffc;
  --color-surface-danger: #fff0f0;
  --color-surface-media: #eaeaea;
  /* Text */
  --color-text: #222;
  --color-text-sub: #333;
  --color-text-muted: #666;
  --color-text-description: #555;
  --color-text-inverse: #ffffff;
  /* Link */
  --color-link: #5ea999;
  --color-link-hover: #4d8f81;
  /* Border */
  --color-border: #ddd;
  --color-border-soft: #d9d9d9;
  --color-border-light: #eee;
  --color-border-accent: #d7efe8;
  /* Button */
  --color-button-gray-bg: #e5e7eb;
  --color-button-gray-text: #6b7280;
  /* Status */
  --color-danger: #b00020;
  /* Overlay */
  --color-overlay: rgba(0, 0, 0, 0.42);
  --color-transparent: transparent;
  /* Shadow */
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-card-soft: 0 4px 14px rgba(0, 0, 0, 0.04);
  --shadow-card-strong: 0 4px 14px rgba(0, 0, 0, 0.241);
  --shadow-modal: 0 10px 32px rgba(0, 0, 0, 0.22);
  /* Radius */
  --radius-card: 16px;
  --radius-button: 999px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-page-bg);
  color: var(--color-text);
}
/*タイトル表示*/
.header {
  flex-shrink: 0;
  margin-bottom: 14px;
      text-align: center;
}
main{
  width: min(100%, 820px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0px;
}
#logoImg{
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}
.header h1{
    margin: 0;
    color: var(--color-brand);
}
.header div{
    padding: 2rem;
    max-width: 720px;

}
.header .primary-button{
    padding: 0.6rem;
    max-width: 75%;
    margin: 2rem auto 0;
}
section{
    padding: 1rem;
}
.card-wrap{
    flex-shrink: 0;
    margin: 0 0 12px;
    padding: 14px 16px;
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.card-wrap h2 {
  flex-shrink: 0;
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 800;
}
.ruby-h rt {
  color: var(--color-accent);
  padding-bottom: 0.3rem;
  letter-spacing: 0.18rem;
}


/* =========================
   共通 - パーツ
========================= */
h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
}
.description {
  margin: 10px 0 0;
  color: var(--color-text-description);
  line-height: 1.7;
}
.selected-area,
.task-card {
  flex-shrink: 0;
  margin: 0 0 14px;
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.primary-button,
.secondary-button,
.gray-button {
  display:block;
  text-decoration:none;
  text-align:center;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-button);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.primary-button {
  border: none;
  background: var(--color-brand);
  color: var(--color-text-inverse);
}
.secondary-button {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}
.gray-button {
  border: 1px solid var(--color-border);
  background: var(--color-button-gray-bg);
  color: var(--color-button-gray-text);
}
.gray-button:active {
  transform: scale(0.98);
}
.gray-button:disabled {
  opacity: 0.7;
}
.no-margin-button {
  margin-top: 0;
}
.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.compact-button {
  margin-top: 0;
  border-radius: 14px;
}
.accordion-button {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.accordion-content {
  margin-top: 12px;
}
.check-control-area {
  margin: 0 0 14px;
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.check-list {
  display: grid;
  gap: 10px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  cursor: pointer;
}
.check-item input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.check-item-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.bottom-action-area {
  margin: 14px 0 20px;
  padding: 10px 16px 16px 16px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.group-label {
  margin: 0 0 8px;
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.task-help-button {
  flex-shrink: 0;
  padding: 5px 8px;
  border: none;
  border-radius: 999px;
  background: #eeeeee;
  color: var(--color-text-sub);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.task-help-button:active {
  transform: scale(0.98);
}


/* =========================
   タスクリンク集
========================= */

.task-list,
.tver-list {
  display: grid;
  gap: 10px;
  margin-top: 1rem;
}

.movie-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1rem;
}

/* 期間限定・デイリータスク */

.task-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  background: var(--color-surface);
}

.task-link-card-main {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 4px;
  color: var(--color-text);
  text-decoration: none;
}

.task-link-card-main:active {
  opacity: 0.65;
}

.task-link-card-title {
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* TVer */
.tver-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  background: var(--color-surface);
}

.tver-link-card-main {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 4px;
  color: var(--color-text);
  text-decoration: none;
}

.tver-link-card-main:active {
  opacity: 0.65;
}

.tver-link-card-title-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tver-link-card-title {
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.member-hearts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
  line-height: 1;
}

.member-heart {
  font-size: 14px;
  line-height: 1;
}

.member-heart.is-shinozuka {
  text-shadow:
    0 0 1px #999,
    0 0 2px rgba(0, 0, 0, 0.35);
}

.member-all-label {
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.task-link-card-button,
.tver-link-card-button {
  display: grid;
  width: 28px;
  height: 28px;
  font-size: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-text-inverse);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}


.task-link-card-button:active,
.tver-link-card-button:active {
  transform: scale(0.94);
}
/* YouTube再生リスト */

.youtube-link-card {
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
}

.youtube-link-card:active {
  transform: scale(0.98);
}

.youtube-link-card-image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface-media);
}

.youtube-link-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-link-card-image.is-fallback {
  object-fit: contain;
  padding: 14px;
}

.youtube-link-card-title {
  margin: 0;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.link-empty-message,
.link-error-message {
  margin: 0;
  padding: 10px 0 2px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.link-error-message {
  color: var(--color-danger);
}

.member-heart.is-shinozuka {
  text-shadow:
    0 0 1px #999,
    0 0 2px rgba(0, 0, 0, 0.35);
}

.member-all-label {
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

@media (min-width: 600px) {
  .movie-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================
   目次・上に戻る
========================= */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

.link-page-toc {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border-light);
  backdrop-filter: blur(2px);
}
.link-page-toc a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-button);
  background: var(--color-surface);
  color: var(--color-accent-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.link-page-toc a:active {
  transform: scale(0.97);
  background: var(--color-brand-soft);
}

.back-to-top-button {
  position: fixed;
  right: max(16px, calc((100vw - 720px) / 2 + 16px));
  bottom: 18px;
  z-index: 900;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: var(--color-brand);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-card-strong);
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.back-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-button:active {
  transform: scale(0.94);
}

.back-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-button:active {
  transform: scale(0.94);
}