
/* =========================================================
   基本設定
========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro",
    "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-weight: 500;
  color: #333;
  margin: 0;
  padding-bottom: 40px;
  min-height: 100vh;
  background-color: #fff7fd;
  background-image:
    linear-gradient(58deg, #ffebfa 26%, transparent 26.5%),
    linear-gradient(-58deg, #ffebfa 26%, transparent 26.5%),
    linear-gradient(58deg, transparent 73.5%, #ffebfa 74%),
    linear-gradient(-58deg, transparent 73.5%, #ffebfa 74%);
  background-size: 52px 80px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-attachment: fixed;
}

/* =========================================================
   ヘッダー
========================================================= */
header {
  background: linear-gradient(135deg, #fb76b8 0%, #ff8fc7 50%, #ff9ecd 100%);
  color: #fff;
  padding: 16px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

header h1 {
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(180, 60, 120, 0.2);
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn,
.x-share-btn {
  width: 110px;
  min-width: 110px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn:active,
.x-share-btn:active {
  transform: scale(0.95);
}

.btn.danger {
  background: #ff5570;
  color: #fff;
  box-shadow: 0 2px 5px rgba(200, 40, 80, 0.25);
}

.btn.danger:hover {
  background: #ff4261;
}

.btn.save {
  background: #fff;
  color: #e85b9d;
  box-shadow: 0 2px 5px rgba(180, 70, 130, 0.2);
}

.btn.save:hover {
  background: #fff5fa;
}

.x-share-btn {
  gap: 7px;
  background: #000;
  color: #fff;
  transition: transform 0.15s, background 0.15s;
}

.x-share-btn:hover {
  background: #222;
  transform: scale(0.97);
}

.x-share-btn:active {
  transform: scale(0.94);
}

.x-share-btn svg {
  flex-shrink: 0;
}

/* =========================================================
   タブ
========================================================= */
.tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #f0dce8;
  position: sticky;
  top: var(--header-height, 110px);
  z-index: 90;
  box-shadow: 0 2px 5px rgba(180, 100, 140, 0.08);
}

.tab {
  flex: 1;
  min-width: 0;
  padding: 10px 4px 8px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.tab:hover {
  background: #fff7fb;
  color: #e88bb5;
}

.tab.active {
  color: #f06aa9;
  background: #fff;
  border-bottom: 3px solid #fb76b8;
}

/* =========================================================
   所持率・表示ボタン行
========================================================= */
.stats-row {
  position: sticky;
  top: var(--tabs-bottom, 110px);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #f0e2ea;
}

.stats {
  text-align: right;
  padding: 10px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #777;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #f0e2ea;
  letter-spacing: 0.02em;
}

.stats-row .stats {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 120px);
  margin-left: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  white-space: nowrap;
}

.stats span {
  color: #e65b9c;
  font-weight: 700;
}

/* =========================================================
   表示設定ボタン
========================================================= */
.settings-toggle {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  min-width: 108px;
  height: 34px;
  margin-left: 8px;
  padding: 6px 26px;
  border: 2px solid #f783b6;
  border-radius: 9px;
  background: #fff;
  color: #e65b9c;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(200, 90, 140, 0.16);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}

.settings-toggle-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: max-content;
  margin: 0;
  padding: 0;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.settings-toggle-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.settings-toggle-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.settings-toggle[aria-expanded="true"] .settings-toggle-icon svg {
  transform: rotate(180deg);
}

.settings-toggle[aria-expanded="true"] {
  background: #f783b6;
  color: #fff;
}

.settings-toggle[aria-expanded="false"] {
  background: #fff;
  color: #e65b9c;
}

.settings-toggle[aria-expanded="true"]:hover {
  background: #e965a3;
}

.settings-toggle[aria-expanded="false"]:hover {
  background: #fff5fa;
}

.settings-toggle:active {
  transform: scale(0.96);
}

/* =========================================================
   設定メニュー
========================================================= */
.settings-panel {
  position: absolute;
  z-index: 94;
  top: auto;
  left: 10px;
  right: 10px;
  width: min(980px, calc(100% - 20px));
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #f4b6d2;
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 20px rgba(150, 70, 115, 0.22);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 260ms ease,
    opacity 220ms ease,
    visibility 260ms;
}

.settings-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.settings-panel[hidden] {
  display: none !important;
}

/* 表示メニュー：スクロール中も画面内に固定 */
.settings-panel:not([hidden]) {
  position: fixed;
  top: calc(var(--tabs-bottom, 110px) + 48px);
  left: 10px;
  right: 10px;
  z-index: 200;
  max-height: calc(100vh - var(--tabs-bottom, 110px) - 58px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.settings-group + .settings-group {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed #f3c5da;
}

.settings-group h2 {
  margin: 0 0 8px;
  color: #d94f93;
  font-size: 0.92rem;
  font-weight: 800;
}

.settings-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.settings-options-two {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.settings-options-two .choice-btn {
  width: 100px;
}

.choice-btn {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid #f2a7c9;
  border-radius: 999px;
  background: #fff0f7;
  color: #c45a89;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.15s;
}

.choice-btn:hover {
  background: #ffe2ef;
}

.choice-btn[aria-pressed="true"] {
  border-color: #e85d9e;
  background: #e85d9e;
  color: #fff;
  box-shadow: 0 2px 5px rgba(200, 90, 140, 0.2);
}

/* =========================================================
   カード一覧
========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 24px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.card-item {
  position: relative;
  aspect-ratio: 59 / 86;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  user-select: none;
  background: #2a2a2a;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.card-item:active {
  transform: scale(0.95);
}

.card-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: none !important;
}

.card-item img.rotate-90 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 145.76%;
  height: auto;
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}

.card-item.unowned img {
  filter: grayscale(100%) brightness(0.7);
}

.card-item.unowned.unowned-color img {
  filter: none;
}

/* 所持数バッジ */
.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 33px;
  height: 33px;
  background: #ff4757;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 16.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 10;
  line-height: 1;
}

.badge.hidden {
  display: none;
}

.badge.badge-zero {
  background: #1689ff;
}

/* =========================================================
   PC
========================================================= */
@media (min-width: 769px) {
  .card-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

/* =========================================================
   タブレット
========================================================= */
@media (min-width: 601px) and (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 9px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* =========================================================
   スマホ
========================================================= */
@media (max-width: 600px) {
  header {
    padding: 13px 10px 12px;
  }

  header h1 {
    font-size: 1.08rem;
    margin-bottom: 10px;
  }

  .actions {
    gap: 6px;
  }

  .btn,
  .x-share-btn {
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  .tabs {
    top: var(--header-height, 105px);
  }

  .tab {
    padding: 9px 2px 7px;
    font-size: 0.82rem;
  }

  .stats-row {
    gap: 7px;
    padding: 8px 6px;
  }

  .settings-toggle {
    width: 96px;
    min-width: 96px;
    height: 38px;
    margin-left: 5px;
    padding: 6px 30px;
  }

  .stats-row .stats {
    font-size: 0.75rem;
    padding: 0;
  }

  .settings-panel {
    left: 6px;
    right: 6px;
    width: calc(100% - 12px);
    padding: 12px 10px;
    border-radius: 0 0 14px 14px;
  }

  .settings-panel:not([hidden]) {
    left: 8px;
    right: 8px;
    max-height: calc(100dvh - var(--tabs-bottom, 110px) - 58px);
  }

  .settings-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  .settings-options-two .choice-btn {
    width: 92px;
  }

  .choice-btn {
    min-height: 36px;
    padding: 6px 2px;
    font-size: 0.72rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 8px 20px;
  }

  .card-grid.expanded {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .card-item {
    border-radius: 5px;
  }

  .badge {
    top: 2px;
    right: 2px;
    min-width: 27px;
    height: 27px;
    font-size: 15px;
    border-radius: 13.5px;
    padding: 0 5px;
  }
}

/* =========================================================
   小さいスマホ
========================================================= */
@media (max-width: 400px) {
  .actions {
    gap: 5px;
  }

  .btn,
  .x-share-btn {
    padding: 7px 9px;
    font-size: 0.74rem;
  }

  .settings-options-two .choice-btn {
    width: 82px;
  }

  .settings-toggle {
    width: 96px;
    min-width: 96px;
    height: 38px;
    margin-left: 5px;
    padding: 6px 28px;
  }

  .settings-toggle-icon {
    right: 6px;
  }

  .card-grid {
    gap: 6px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .card-grid.expanded {
    gap: 3px;
    padding-left: 3px;
    padding-right: 3px;
  }
}

/* =========================================================
   保存中などの状態
========================================================= */
.is-saving {
  opacity: 0.65;
  pointer-events: none;
}

/* =========================================================
   アニメーションを減らす設定の端末への配慮
========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   フッター・著作権表記
========================================================= */
.site-footer {
  margin-top: 20px;
  padding: 22px 16px 26px;
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid #f0dce8;
  color: #888;
  font-size: 0.72rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
  text-align: center;
}

.site-footer-copyright {
  margin-bottom: 12px;
  color: #777;
  font-size: 0.7rem;
}

.site-footer-notice {
  max-width: 800px;
  margin: 0 auto 12px;
  text-align: left;
}

.site-footer-notice p + p {
  margin-top: 6px;
}

.site-footer-link {
  display: inline-block;
  color: #d94f93;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-link:hover {
  color: #b83276;
}

@media (max-width: 600px) {
  .site-footer {
    padding: 18px 12px 22px;
    font-size: 0.68rem;
  }

  .site-footer-copyright {
    font-size: 0.66rem;
  }
}

/* =========================================================
   ハンバーガーメニュー
========================================================= */
#navArea {
  --menu-pink: #e85b9d;
  --menu-dark: #b83e78;
  --menu-text: #493743;
  --menu-bg: #fff7fc;
}

/* 右上の丸いボタン */
#navArea .toggle_btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1202;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--menu-pink);
  box-shadow: 0 3px 10px rgba(120, 40, 85, 0.24);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

#navArea .toggle_btn:hover {
  background: var(--menu-dark);
  box-shadow: 0 4px 14px rgba(120, 40, 85, 0.32);
}

#navArea .toggle_btn:active {
  transform: scale(0.94);
}

#navArea .toggle_btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ハンバーガーの3本線 */
#navArea .toggle_btn span {
  position: absolute;
  left: 12px;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 3px;
  background: #fff;
  transition:
    transform 0.35s ease,
    opacity 0.2s ease,
    top 0.35s ease;
}

#navArea .toggle_btn span:nth-child(1) {
  top: 14px;
}

#navArea .toggle_btn span:nth-child(2) {
  top: 21px;
}

#navArea .toggle_btn span:nth-child(3) {
  top: 28px;
}

/* 開いたときは×に変形 */
#navArea.open .toggle_btn span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

#navArea.open .toggle_btn span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#navArea.open .toggle_btn span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* 背景マスク */
#navArea #menuMask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(50, 31, 44, 0.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

#navArea.open #menuMask {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
}

/* 右側からスライドするメニュー */
#navArea #siteMenu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1201;
  width: min(310px, 84vw);
  height: 100vh;
  height: 100dvh;
  padding: 84px 24px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--menu-bg);
  box-shadow: -8px 0 28px rgba(70, 30, 55, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.4s ease,
    visibility 0.4s ease;
}

#navArea.open #siteMenu {
  transform: translateX(0);
  visibility: visible;
}

/* メニュー見出し */
#navArea .menu-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 2px solid #f6c8df;
  color: var(--menu-dark);
}

#navArea .menu-heading-icon {
  margin-bottom: 2px;
  font-size: 24px;
  line-height: 1;
}

#navArea .menu-heading-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

#navArea .menu-heading small {
  color: #a77b94;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* メニュー一覧 */
#navArea #siteMenu ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

#navArea #siteMenu li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #f1dce8;
}

/* リンクとSVG矢印 */
#navArea #siteMenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 4px;
  color: var(--menu-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

#navArea #siteMenu .menu-arrow {
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  color: var(--menu-pink);
  overflow: visible;
  transition: transform 0.2s ease;
}

#navArea #siteMenu a:hover {
  padding-left: 10px;
  color: var(--menu-dark);
}

#navArea #siteMenu a:hover .menu-arrow {
  transform: translateX(3px);
}

#navArea #siteMenu a:focus-visible {
  outline: 2px solid var(--menu-pink);
  outline-offset: -2px;
  border-radius: 5px;
}

/* =========================================================
   案内セクション
========================================================= */
#siteInformation {
  max-width: 960px;
  margin: 28px auto 0;
  padding: 0 16px;
  scroll-margin-top: 24px;
}

#siteInformation .info-section {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid #f3c7dd;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 12px rgba(180, 100, 140, 0.08);
  scroll-margin-top: 24px;
}

#siteInformation .info-section h2 {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f5d6e6;
  color: #d94f93;
  font-size: 1.05rem;
  font-weight: 800;
}

#siteInformation .info-section p,
#siteInformation .info-section li {
  color: #665762;
  font-size: 0.88rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

#siteInformation .info-section p + p {
  margin-top: 8px;
}

#siteInformation .info-section ol {
  padding-left: 1.5em;
}

#siteInformation .info-section li + li {
  margin-top: 5px;
}

/* ページ上部への移動先 */
#pageTop {
  scroll-margin-top: 0;
}

/* スマートフォン */
@media (max-width: 600px) {
  #navArea .toggle_btn {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }

  #navArea .toggle_btn span {
    left: 10px;
    width: 18px;
  }

  #navArea .toggle_btn span:nth-child(1) {
    top: 12px;
  }

  #navArea .toggle_btn span:nth-child(2) {
    top: 19px;
  }

  #navArea .toggle_btn span:nth-child(3) {
    top: 26px;
  }

  #navArea #siteMenu {
    width: min(280px, 84vw);
    padding: 76px 20px 24px;
  }

  #navArea .menu-heading {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  #navArea #siteMenu a {
    min-height: 50px;
    font-size: 14px;
  }

  #siteInformation {
    margin-top: 20px;
    padding: 0 10px;
  }

  #siteInformation .info-section {
    margin-top: 14px;
    padding: 17px 15px;
    border-radius: 12px;
  }

  #siteInformation .info-section h2 {
    font-size: 0.98rem;
  }

  #siteInformation .info-section p,
  #siteInformation .info-section li {
    font-size: 0.82rem;
  }
}

/* =========================================================
   メニュー・中央ウィンドウ
========================================================= */

#navArea {
  --menu-pink: #ed76ad;
  --menu-deep-pink: #d94f93;
  --menu-light-pink: #fff0f7;
  --menu-purple: #a887cf;
  --menu-text: #655064;
}

/* ハンバーガーボタン */
#navArea .toggle_btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1202;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #f69ac7, #df63a2);
  box-shadow: 0 3px 12px rgba(211, 89, 151, .3);
  cursor: pointer;
  transition: background .25s ease, transform .2s ease;
}

#navArea .toggle_btn:hover {
  background: linear-gradient(145deg, #f5add0, #d94f93);
}

#navArea .toggle_btn:active {
  transform: scale(.94);
}

#navArea .toggle_btn span {
  position: absolute;
  left: 12px;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 3px;
  background: #fff;
  transition: transform .35s ease, opacity .25s ease;
}

#navArea .toggle_btn span:nth-child(1) { top: 14px; }
#navArea .toggle_btn span:nth-child(2) { top: 21px; }
#navArea .toggle_btn span:nth-child(3) { top: 28px; }

#navArea.open .toggle_btn span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

#navArea.open .toggle_btn span:nth-child(2) {
  opacity: 0;
}

#navArea.open .toggle_btn span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* メニューの背景 */
#navArea #menuMask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(76, 48, 72, .4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

#navArea.open #menuMask {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
}

/* 右側のスライドメニュー */
#navArea #siteMenu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1201;
  width: min(320px, 84vw);
  height: 100vh;
  height: 100dvh;
  padding: 82px 22px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 100% 0%, #ffe0ef 0, transparent 38%),
    linear-gradient(160deg, #fffaff, #fff2f8);
  box-shadow: -8px 0 28px rgba(120, 56, 94, .18);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .35s ease, visibility .35s ease;
}

#navArea.open #siteMenu {
  transform: translateX(0);
  visibility: visible;
}

/* メニュー見出し */
#navArea .menu-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 22px;
  padding: 0 0 18px;
  border-bottom: 2px dotted #efb3d1;
}

#navArea .menu-heading-title {
  color: var(--menu-deep-pink);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .12em;
  text-shadow: 1px 2px 0 #ffe0ef;
}

#navArea .menu-heading-subtitle {
  color: #9a6aa2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

#navArea .menu-heading-decoration {
  color: #e994c0;
  font-size: 15px;
  letter-spacing: .2em;
}

/* メニュー項目 */
#navArea #siteMenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#navArea #siteMenu li + li {
  border-top: 1px solid #f5dce9;
}

#navArea #siteMenu .menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 14px 5px;
  border: 0;
  background: transparent;
  color: var(--menu-text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, padding-left .2s ease;
}

#navArea #siteMenu .menu-arrow {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  color: var(--menu-pink);
  transition: transform .2s ease;
}

#navArea #siteMenu .menu-link:hover {
  padding-left: 11px;
  color: var(--menu-deep-pink);
}

#navArea #siteMenu .menu-link:hover .menu-arrow {
  transform: translateX(3px);
}

#navArea .toggle_btn:focus-visible,
#navArea #siteMenu .menu-link:focus-visible {
  outline: 3px solid #f2a0c6;
  outline-offset: 3px;
}

/* =========================================================
   中央に表示するウィンドウ
========================================================= */

.info-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(75, 48, 73, .42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.info-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.info-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: min(680px, 82vh);
  max-height: min(680px, 82dvh);
  overflow: hidden;
  border: 2px solid #f2bdd7;
  border-radius: 22px;
  background: linear-gradient(150deg, #fffaff, #fff3f9);
  box-shadow:
    0 16px 50px rgba(92, 45, 79, .22),
    0 0 0 5px rgba(255, 255, 255, .55);
  transform: translateY(12px) scale(.97);
  transition: transform .25s ease;
}

.info-modal-overlay.is-visible .info-modal {
  transform: translateY(0) scale(1);
}

/* ウィンドウの上部 */
.info-modal-header {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 17px 56px 15px 22px;
  border-bottom: 1px solid #f4d4e4;
  background: linear-gradient(110deg, #ffe5f1, #f9e9ff);
}

.info-modal-title {
  color: #d94f93;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.5;
}

.info-modal-title::before {
  content: "♡ ";
  color: #e994c0;
}

/* 閉じるボタン */
.info-modal-close {
  position: absolute;
  top: 12px;
  right: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #f0c3da;
  border-radius: 50%;
  background: #fff;
  color: #d94f93;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.info-modal-close:hover {
  background: #ffe2f0;
  transform: rotate(90deg);
}

/* 内容エリア */
.info-modal-content {
  min-height: 0;
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #e994c0 #fff0f7;
  color: #655064;
  font-size: 14px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

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

.info-modal-content::-webkit-scrollbar-track {
  margin: 8px 0;
  border: 2px solid #fff3f9;
  border-radius: 10px;
  background: #fff0f7;
}

.info-modal-content::-webkit-scrollbar-thumb {
  border: 2px solid #fff0f7;
  border-radius: 10px;
  background: linear-gradient(#f5b5d5, #dc7db2);
}

.info-modal-content::-webkit-scrollbar-thumb:hover {
  background: #d96da6;
}

.info-modal-content p + p {
  margin-top: 12px;
}

.info-modal-content ul,
.info-modal-content ol {
  padding-left: 1.5em;
}

.info-modal-content li + li {
  margin-top: 7px;
}

.info-modal-content .update-date {
  display: inline-block;
  margin-bottom: 6px;
  color: #b080b9;
  font-size: 12px;
  font-weight: 700;
}

.info-modal-content .update-item {
  margin-bottom: 17px;
  padding: 13px 15px;
  border: 1px solid #f4d3e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, .8);
}

.info-modal-content .update-item strong {
  display: block;
  margin-bottom: 4px;
  color: #d94f93;
}

.info-modal-content .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 12px;
  padding: 10px 17px;
  border: 1px solid #edb3d1;
  border-radius: 999px;
  background: #fff;
  color: #d94f93;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.info-modal-content .contact-link:hover {
  background: #ffe5f1;
  transform: translateY(-1px);
}

.info-modal-content .notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff0f7;
  color: #a34d7e;
  font-size: 13px;
  font-weight: 700;
}

/* スマートフォン */
@media (max-width: 600px) {
  #navArea .toggle_btn {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }

  #navArea .toggle_btn span {
    left: 10px;
    width: 18px;
  }

  #navArea .toggle_btn span:nth-child(1) { top: 12px; }
  #navArea .toggle_btn span:nth-child(2) { top: 19px; }
  #navArea .toggle_btn span:nth-child(3) { top: 26px; }

  #navArea #siteMenu {
    width: min(290px, 84vw);
    padding: 74px 20px 24px;
  }

  #navArea .menu-heading-title {
    font-size: 24px;
  }

  .info-modal-overlay {
    padding: 20px 16px;
  }

  .info-modal {
    width: 100%;
    max-height: 76vh;
    max-height: 76dvh;
    border-radius: 19px;
  }

  .info-modal-header {
    min-height: 58px;
    padding: 14px 52px 13px 17px;
  }

  .info-modal-title {
    font-size: 17px;
  }

  .info-modal-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
  }

  .info-modal-content {
    padding: 17px 16px;
    font-size: 13px;
  }

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

/* 動きを控える設定が有効な場合 */
@media (prefers-reduced-motion: reduce) {
  #navArea *,
  .info-modal-overlay,
  .info-modal,
  .info-modal * {
    transition-duration: .01ms !important;
  }
}