/* 招待コード掲示板（デザイン案A：ポイシャカラー）。元: template/messageboard-top-mock.html */
:root {
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "Yu Gothic", sans-serif;
  --bg: #fffbf6;
  --surface: #ffffff;
  --text: #1f1f21;
  --muted: #5c6462;
  --brand: #31635d;
  --accent: #7bc5c1;
  --accent-deep: #2f9e98;
  --pink: #f3a7ac;
  --line: #e4ddd4;
  --hero: #7bc5c1;
  --hero-text: #1f1f21;
  --btn: #31635d;
  --btn-text: #fff;
  --btn2: #fff;
  --btn2-text: #31635d;
  --ng: #b42318;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(49, 99, 93, 0.08);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 132px; }
@media (min-width: 768px) { html { scroll-padding-top: 84px; } }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand); }
img { max-width: 100%; vertical-align: bottom; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
.preview-note {
  margin: 0;
  padding: 8px 12px;
  background: #fff3cd;
  color: #8a5a00;
  font-size: 12px;
  text-align: center;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "logo menu" "search search";
  gap: 10px;
  align-items: center;
}
.logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  min-width: 0;
}
.logo img { height: 54px; width: auto; flex-shrink: 0; }
.logo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search { grid-area: search; display: flex; width: 100%; min-width: 0; margin: 0; }
.search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-btn {
  grid-area: menu;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: background .2s ease, transform .2s ease;
}
.menu-btn:hover { background: var(--bg); }
.menu-btn:active { transform: scale(.96); }
.menu-btn i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .28s ease, opacity .2s ease;
}
.menu-btn.is-open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open i:nth-child(2) { opacity: 0; }
.menu-btn.is-open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.pc-nav { display: none; gap: 16px; font-size: 14px; }
.pc-nav a { text-decoration: none; color: var(--text); transition: color .2s ease; }
.pc-nav a:hover { color: var(--accent-deep); }
.nav-dd { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.nav-dd-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-dd-btn::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s ease;
}
.nav-dd-btn:hover { background: var(--bg); }
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: -12px;
  z-index: 70;
  width: 240px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .12);
  display: grid;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease .2s, transform .2s ease .2s, visibility 0s linear .4s;
}
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-dd.open .nav-dd-panel,
.nav-dd:not(.is-closing):hover .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.nav-dd.open .nav-dd-btn::before,
.nav-dd:not(.is-closing):hover .nav-dd-btn::before { transform: translateY(2px) rotate(-135deg); }
.pc-nav .nav-dd-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.pc-nav .nav-dd-panel a:hover,
.pc-nav .nav-dd-panel a:focus-visible { background: var(--bg); }
.nav-dd-panel img { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; }
.pc-nav .nav-dd-panel .nav-dd-all {
  justify-content: center;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  font-size: 13px;
  color: var(--accent-deep);
}
@media (min-width: 768px) {
  .menu-btn { display: none; }
  .header-inner {
    max-width: 1200px;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo search nav";
    gap: 60px;
  }
  .pc-nav { display: flex; flex-wrap: wrap; grid-area: nav; justify-content: flex-end; align-items: center; }
  .logo img { height: 66px; }
  .search { max-width: 480px; justify-self: end; }
}
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.drawer.open { opacity: 1; visibility: visible; pointer-events: auto; }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100%;
  background: var(--surface);
  padding: 20px;
  overflow: auto;
  transform: translateX(100%);
  transition: transform .32s ease;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.drawer-hd strong { font-size: 15px; }
.drawer-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.drawer-close:hover { background: var(--bg); }
.drawer-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: padding-left .2s ease;
}
.drawer-panel a:hover { padding-left: 6px; }
.drawer-panel a img { width: 28px; height: 28px; border-radius: 6px; }

/* ---------- 共通 ---------- */
.crumb { max-width: 760px; margin: 0 auto; padding: 10px 16px 0; font-size: 12px; color: var(--muted); }
.crumb-wide { max-width: 1200px; }
.hero { background: var(--hero); color: var(--hero-text); }
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent);
}
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; margin-bottom: 8px; opacity: .9; }
.hero h1 { margin: 0 0 10px; font-size: clamp(20px, 5.2vw, 32px); line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.hero p { margin: 0; font-size: 15px; word-break: keep-all; overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.hero-actions .btn { min-height: 44px; min-width: 44%; flex: 1 1 160px; }
.hero-actions .btn-ghost { background: #fff; color: var(--btn); border-color: var(--btn); }
.br-sp { display: none; }
.top-main { max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; }
section { margin: 28px 0; }
@media (max-width: 767px) {
  .br-sp { display: block; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; min-width: 0; flex: none; }
  .kicker { display: none; }
  .hero-inner { padding: 12px 16px 14px; }
  .hero h1 { font-size: 1.2rem; margin-bottom: 6px; }
  .hero p { font-size: 13px; }
  .crumb { padding-top: 6px; }
  .top-main { padding-top: 4px; padding-bottom: 40px; }
  section { margin: 16px 0; }
}
@media (min-width: 1024px) {
  .is-top .crumb, .hero-inner, .top-main { max-width: 960px; }
}
h2 {
  position: relative;
  margin: 0 0 14px;
  padding: 2px 0 10px 16px;
  font-size: 1.2rem;
  letter-spacing: .02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.45;
  border-bottom: 1px solid var(--line);
}
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 12px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--brand));
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.poisha-box h2 { border-bottom: 0; padding-bottom: 2px; }
.poisha-box h2::before { bottom: 4px; }
.poisha-box h2::after { display: none; }
.info-box h2, .official-box h2, .side-box h2 { padding: 0 0 0 14px; border-bottom: 0; letter-spacing: 0; }
.info-box h2::before, .official-box h2::before, .side-box h2::before {
  top: .5em;
  bottom: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.info-box h2::after, .official-box h2::after, .side-box h2::after { display: none; }
.lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- TOP: 掲示板カード ---------- */
.cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(49, 99, 93, 0.12); }
.card.own { border-width: 2px; border-color: var(--accent); }
@media (min-width: 640px) { .card.own { grid-column: 1 / -1; } }
.card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.card-head img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card-head h3 { margin: 0 0 2px; }
.card-head > div { min-width: 0; }
.card-title { color: var(--text); text-decoration: none; }
.card-title:hover { color: var(--accent-deep); }
.tag {
  display: inline-block;
  font-size: 11px;
  background: #e8f6f4;
  color: var(--brand);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 8px;
  white-space: nowrap;
}
.perk { margin: 0 0 8px; font-size: 14px; word-break: keep-all; overflow-wrap: anywhere; }
.checked { margin: 0 0 12px; font-size: 12px; color: var(--muted); word-break: keep-all; }
.card-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 767px) { .card-btns { grid-template-columns: 1fr; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-ghost { background: var(--btn2); color: var(--btn2-text); border-color: var(--brand); }

/* ---------- 使い方 ---------- */
.howto { display: grid; gap: 16px; }
@media (min-width: 640px) { .howto { grid-template-columns: 1fr 1fr; } }
.howto-visual { display: block; width: 100%; height: auto; border-radius: 12px; margin: 0 0 10px; background: #fff; }
.howto-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.howto-steps li {
  margin: 0;
  background: var(--bg);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.howto-steps b {
  display: inline-flex;
  width: 1.4em;
  height: 1.4em;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--brand);
  background: var(--surface);
  border-radius: 50%;
}
@media (min-width: 640px) {
  .howto-steps { grid-template-columns: 1fr 1fr 1fr; font-size: 13px; }
  .howto-steps li { flex-direction: column; text-align: center; padding: 8px 6px; }
}

/* ---------- ポイシャ案内 ---------- */
.poisha-box {
  background: #31635d;
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.poisha-box a { color: #fff; }
.poisha-box .lead { color: rgba(255, 255, 255, .88); }
.poisha-box .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.poisha-links, .poisha-board-link { text-align: center; margin: 12px 0 0; }
.appbtn { display: flex; gap: 10px; justify-content: center; margin: 12px 0; }
.appbtn img { height: 44px; width: auto; }

/* ---------- FAQ・関連記事 ---------- */
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 8px 0;
}
details summary { cursor: pointer; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.45; }
details p {
  margin: 10px 0 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.howto-list { margin: 0 0 12px; padding-left: 1.4em; font-size: 14px; }
.howto-list li { margin: 4px 0; }
.articles { display: grid; gap: 10px; }
.article {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease;
}
.article:hover { transform: translateY(-1px); }
.article span { display: block; font-size: 12px; color: var(--muted); }

/* ---------- 各掲示板 ---------- */
.board-layout { max-width: 1200px; margin: 0 auto; padding: 8px 16px 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .board-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }
.board-main { min-width: 0; }
.board-side { display: grid; gap: 12px; }
.svc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.svc-head img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.svc-head h1 { margin: 0; font-size: clamp(20px, 5vw, 28px); line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.info-box, .official-box, .form-card, .post-done {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 16px;
  box-shadow: var(--shadow);
}
.official-box { border-width: 2px; border-color: var(--accent); }
.official-box h2, .info-box h2 { font-size: 1rem; margin-bottom: 8px; }
.info-dl { margin: 0 0 8px; display: grid; gap: 6px; font-size: 14px; }
.info-dl div { word-break: keep-all; overflow-wrap: anywhere; }
.info-dl dt { font-size: 12px; color: var(--muted); display: inline; }
.info-dl dd { display: inline; margin: 0; }
.info-note { margin: 0; font-size: 12px; color: var(--muted); }
.board-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.board-cta .btn { min-height: 44px; }
@media (min-width: 768px) { .board-cta { justify-content: center; } }
@media (max-width: 767px) {
  .board-cta { flex-direction: column; }
  .board-cta .btn { width: 100%; }
}
.sort-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.sort-tabs a {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.sort-tabs a.on { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.code-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin: 10px 0;
  box-shadow: var(--shadow);
}
.code-card.is-new { border-color: var(--accent); border-width: 2px; }
.code-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.code-name { font-weight: 700; }
.code-value { font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; margin: 8px 0; word-break: break-all; }
.code-comment { margin: 0 0 8px; font-size: 14px; word-break: keep-all; overflow-wrap: anywhere; }
.code-meta { font-size: 12px; color: var(--muted); margin: 0; }
.code-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; width: 100%; margin-top: 10px; }
.code-actions, .code-more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.code-more { margin-left: auto; }
.code-more .btn { font-size: 12px; padding: 6px 10px; }
.helpful-btn.on { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.empty-note { padding: 20px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 16px 0 0; }
.pager a, .pager span {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
}
.pager span { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.list-break { margin: 24px 0; }

/* コピー後・投稿後の案内 */
.next-steps {
  display: none;
  margin-top: 12px;
  padding: 12px;
  background: #fff;
  border: 1px dashed var(--accent);
  border-radius: 10px;
  font-size: 14px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.next-steps.show { display: block; }
.next-steps p { margin: 0 0 6px; }
.next-steps ol { margin: 8px 0; padding-left: 1.2em; font-size: 13px; }
.poisha-nudge { margin-top: 10px; padding: 10px 12px; background: #e8f6f4; border-radius: 10px; }
.poisha-nudge strong { display: block; margin-bottom: 4px; }
.poisha-nudge p { margin: 0; }
.post-done { border-color: var(--accent); }
.post-done p { margin: 0 0 8px; }

/* 編集 */
.edit-fields { margin-top: 10px; }
.edit-fields label { display: block; font-size: 12px; font-weight: 700; margin: 8px 0 4px; }
.edit-fields input, .edit-fields textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.edit-fields textarea { min-height: 80px; resize: vertical; }
.edit-actions { display: flex; gap: 8px; justify-content: flex-end; margin: 10px 0 0; }
.code-card.is-editing .code-comment, .code-card.is-editing .code-value { display: none; }

/* ---------- 掲載フォーム ---------- */
.form-rules { margin: 0 0 8px; padding-left: 1.2em; font-size: 13px; color: var(--muted); }
.form-rules li { margin: 2px 0; }
.post-form label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 4px; }
.post-form .opt, .post-form .req { font-size: 11px; font-weight: 400; margin-left: 6px; color: var(--muted); }
.post-form .req { color: var(--ng); }
.post-form input, .post-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
.post-form textarea { min-height: 90px; resize: vertical; }
.post-form input:focus, .post-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.post-form input:-webkit-autofill, .post-form textarea:-webkit-autofill, .search input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}
.post-form .count { margin: 4px 0 0; text-align: right; font-size: 12px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; justify-content: flex-end; margin: 14px 0 0; }
.form-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.dup-note {
  display: none;
  margin: 8px 0 0;
  padding: 10px 12px;
  background: #fff6f6;
  border: 1px solid #e8b4b4;
  border-radius: 10px;
  font-size: 14px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.dup-note.show { display: block; }

/* ---------- サイドバー ---------- */
@media (max-width: 899px) { .board-side { order: 2; } }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.side-box h2 { font-size: .95rem; margin-bottom: 8px; }
.side-box .appbtn img { height: 40px; }
.side-list a {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 24px 8px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  border-radius: 8px;
  transition: background .25s ease, padding-left .25s ease, color .25s ease;
  animation: sideIn .45s ease both;
}
.side-list a:nth-child(2) { animation-delay: .05s; }
.side-list a:nth-child(3) { animation-delay: .1s; }
.side-list a:nth-child(4) { animation-delay: .15s; }
.side-list a:nth-child(5) { animation-delay: .2s; }
.side-list a:nth-child(6) { animation-delay: .25s; }
@keyframes sideIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.side-list a::after {
  content: "›";
  position: absolute;
  right: 6px;
  top: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--accent-deep);
  opacity: 0;
  transform: translate(-6px, -50%);
  transition: opacity .25s ease, transform .25s ease;
}
.side-list a:hover, .side-list a:focus-visible { background: var(--bg); padding-left: 8px; color: var(--accent-deep); }
.side-list a:hover::after, .side-list a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.side-list img { width: 28px; height: 28px; border-radius: 6px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.side-list a:hover img, .side-list a:focus-visible img { transform: scale(1.12) rotate(-6deg); }
.side-list .side-all { color: var(--accent-deep); font-size: 13px; border-bottom: 0; }

/* ---------- 広告（コード一覧・コピー・掲載操作とは離す） ---------- */
.ad { margin: 24px 0; text-align: center; min-height: 100px; }
.ad-label { display: block; font-size: 11px; color: var(--muted); text-align: left; margin-bottom: 4px; }

/* ---------- 通報ダイアログ・トースト ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.open { display: flex; }
.modal-panel { background: #fff; color: var(--text); border-radius: 16px; padding: 20px; width: min(380px, 100%); }
.modal-panel p { margin: 0 0 6px; }
.modal-panel .radio { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 6px 0; }
.modal-panel textarea {
  width: 100%;
  margin-top: 8px;
  font: inherit;
  font-size: 16px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 64px;
}
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0 !important; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(80px);
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
  z-index: 95;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- フッター ---------- */
.site-footer { background: #1f1f21; color: #fff; padding: 32px 16px 40px; text-align: center; }
.site-footer a { color: #fff; }
.sns { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: 16px 0; list-style: none; padding: 0; }
.sns img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 50%; }
.sns-text {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.sns-side { gap: 10px; margin: 0; }
.sns-side img, .sns-side .sns-text { width: 32px; height: 32px; border: 1px solid var(--line); }
.footer-links { font-size: 13px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.footer-links a { white-space: nowrap; }
.copy { font-size: 12px; opacity: .8; margin-top: 16px; }

/* ---------- 利用規約 ---------- */
.terms-title { margin: 16px 0 12px; font-size: clamp(20px, 5vw, 26px); line-height: 1.4; }
.terms section { margin: 24px 0; }
.terms h2 { font-size: 1.05rem; }
.terms ol { margin: 0; padding-left: 1.6em; font-size: 14px; }
/* 長い条文は通常の折り返し（keep-all だと文中で不自然に改行する） */
.terms li, .terms p, .terms .lead { word-break: normal; overflow-wrap: anywhere; line-break: strict; }
.terms li { margin: 6px 0; }
.terms p { font-size: 14px; }
.terms-date { margin-top: 32px; color: var(--muted); text-align: right; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
