﻿.operation-main {
  padding: 30px 20px;
  text-align: center;
}

h2 {
  font-size: 28px;
  color: #3f3f3f;
  font-weight: bold;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
}

.under-img {
  margin: 15px auto 0;
  max-width: 100%;
  height: auto;
}

h3 {
  font-size: 20px;
  color: #3f3f3f;
}

.page-note {
  width: min(920px, calc(100% - 32px));
  margin: 42px auto 0;
  color: #3f3f3f;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.8 !important;
  text-align: center;
}

.page-note a {
  color: #008fd3;
  font-weight: 900;
}

.main-title {
  font-size: 48px;
  font-weight: bold;
  color: #5d7ca3;
  border-bottom: 4px solid #46d4ff;
  display: inline-block;
  margin-bottom: 40px;
  padding-bottom: 10px;
}

.operation-block p,
.note-description {
  display: block !important;
  color: #3f3f3f;
  font-size: 28px;
  line-height: 1.8;
  font-weight: 700;
  margin: 0 0 18px;
  text-align: center;
  text-shadow: none;
}
.operation-block p:last-child,
.note-description:last-child {
  margin-bottom: 80px;
}
.note-label {
  display: inline-block;
  margin-top: 32px;
  margin-bottom: 18px;
}
.notes_img {
  display: block;
  margin: 16px auto 28px;
  max-width: min(520px, 90vw);
  height: auto;
}
.title-explanation {
  margin-bottom: 56px;
}

.operation-block,
.content-card,
.comment-box {
  content-visibility: auto;
  contain-intrinsic-size: 520px;
}

.score-section {
  overflow: hidden;
}
.score-lead {
  margin-bottom: 28px !important;
}
.score-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 auto 34px;
}
.score-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: #3f3f3f;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  overflow: hidden;
  font-size: 20px;
  font-weight: 700;
}
.score-table caption {
  caption-side: top;
  padding: 0 0 12px;
  color: #0086b7;
  font-size: 24px;
  font-weight: 900;
  text-align: left;
}
.score-table th,
.score-table td {
  padding: 14px 16px;
  border: 1px solid rgba(0, 148, 216, 0.18);
  text-align: center;
  white-space: nowrap;
}
.score-table th {
  color: #ffffff;
  background: linear-gradient(135deg, #00a7e8, #00d2d8);
}
.score-table tbody tr:nth-child(even) {
  background: rgba(0, 180, 220, 0.08);
}
.score-rank-table {
  min-width: 360px;
}
@media (max-width: 700px) {
  .score-table {
    min-width: 560px;
    font-size: 16px;
  }
  .score-table caption {
    font-size: 20px;
  }
  .score-table th,
  .score-table td {
    padding: 12px 10px;
  }
}

#notes-section,
#score-section {
  scroll-margin-top: 150px;
}

/* 設定各種: タップエフェクト4枚表示 */
.tap-effect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 760px;
  margin: 24px auto 34px;
}

.tap-effect-image-box {
  display: block !important;
  margin: 0 !important;
  padding: 18px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0, 80, 120, 0.16);
  box-sizing: border-box;
}

.tap-effect-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .tap-effect-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}
.rhythm-options-section h2 {
  color: #449434 !important;
  font-size: 36px !important;
  line-height: 1.25;
  margin-top: 42px;
  margin-bottom: 24px;
}

.clear-reward-heading {
  color: #0098d8 !important;
  font-size: 40px !important;
  line-height: 1.25;
  margin: 34px 0 22px;
  font-weight: 900;
  text-align: center;
}

.clear-reward-heading::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: #41d4ff;
}

@media (max-width: 640px) {
  .clear-reward-heading {
    font-size: 30px !important;
  }
}
/* 各種設定: カテゴリ別トグル */
.rhythm-option-toggle {
  width: min(900px, calc(100% - 48px));
  margin: 18px auto 28px;
  padding: 0;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(70, 212, 255, 0.32);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 148, 216, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
  overflow: hidden;
}

.rhythm-option-toggle summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  background: #13a1ff;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0, 98, 150, 0.22);
}

.rhythm-option-toggle summary::-webkit-details-marker {
  display: none;
}

.rhythm-option-toggle summary::after {
  content: "▲";
  float: right;
  font-size: 16px;
  line-height: 32px;
  opacity: 0.92;
}

.rhythm-option-toggle:not([open]) summary::after {
  content: "▼";
}

.rhythm-option-toggle-content {
  padding: 28px;
}

.rhythm-option-toggle-content h2:first-child {
  margin-top: 0;
}

@media (max-width: 640px) {
  .rhythm-option-toggle {
    width: min(100%, calc(100% - 24px));
    margin-bottom: 20px;
  }

  .rhythm-option-toggle summary {
    padding: 16px 18px;
    font-size: 21px;
  }

  .rhythm-option-toggle summary::after {
    font-size: 14px;
    line-height: 28px;
  }

  .rhythm-option-toggle-content {
    padding: 20px 16px;
  }
}
/* rhythm game mobile layout */
@media (max-width: 760px) {
  .title-explanation {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.18 !important;
    margin-bottom: 30px !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  h1,
  .operation-block h1,
  .content-card h1 {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.25 !important;
  }

  .note-label,
  .color-blue,
  .color-green,
  .color-red,
  .color-yellow {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.25 !important;
  }

  .operation-block,
  .content-card,
  .comment-box {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    padding: 24px 14px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .operation-block p,
  .note-description {
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-bottom: 14px !important;
  }

  .content-image,
  .notes_img,
  .under-img,
  .tap-effect-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .image-box,
  .tap-effect-image-box {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    margin: 16px auto 24px !important;
    box-sizing: border-box !important;
  }

  .tap-effect-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .clear-reward-heading {
    font-size: clamp(22px, 6.5vw, 30px) !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 420px) {
  .operation-block,
  .content-card,
  .comment-box {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    padding: 22px 10px !important;
  }

  .image-box,
  .tap-effect-image-box {
    padding: 8px !important;
  }
}

@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  .operation-block,
  .content-card,
  .comment-box,
  .rhythm-option-toggle,
  .tap-effect-image-box {
    box-shadow: 0 6px 16px rgba(0, 148, 216, 0.10) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .fade-in-up.is-show {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

