:root {
  --primary: #f4570f;
  --primary-dark: #d84806;
  --primary-soft: #fff1e9;
  --ink: #12232e;
  --muted: #63757f;
  --line: #e4eaee;
  --bg: #f6f8f9;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 38, 50, .05), 0 10px 28px rgba(16, 38, 50, .06);
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
}
.logo { display: flex; align-items: center; gap: 7px; font-weight: 800; }
.logo-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 3px 6px;
  border-radius: 6px;
  letter-spacing: .04em;
}
.logo-text { font-size: 16px; letter-spacing: -.01em; }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-nav .nav-link { display: none; font-size: 13px; color: var(--muted); padding: 8px 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: #f3f6f7; }
.btn--sm { padding: 9px 14px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0e2a3b 0%, #14384c 55%, #1b4a62 100%);
  color: #fff;
  padding: 26px 0 28px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 87, 15, .5), transparent 68%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-art {
  display: none;
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 54px;
  line-height: 1;
  gap: 10px;
  opacity: .16;
  filter: grayscale(.2);
  letter-spacing: 4px;
  pointer-events: none;
  user-select: none;
}
.hero-kicker {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #ffd9c6;
  border: 1px solid rgba(255, 217, 198, .45);
  border-radius: 999px;
  padding: 3px 10px;
}
.hero h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.hero-count {
  font-size: 34px;
  color: #ff8a4f;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero h1 br + * { display: block; }

.hero-search {
  margin-top: 18px;
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  display: grid;
  gap: 8px;
  box-shadow: 0 14px 30px rgba(4, 18, 26, .28);
}
.field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.field > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  padding-left: 8px;
}
.field select,
.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfcfc;
  border-radius: 9px;
  padding: 10px 10px;
  font-size: 14px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2363757f' d='M6 8 .7 2.3 2.1.9 6 4.9 9.9.9l1.4 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.field input:focus,
.field select:focus { outline: 2px solid rgba(244, 87, 15, .35); outline-offset: 1px; background: #fff; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11.5px;
  color: #cfe0e8;
}
.hero-stats li::before { content: "✓"; color: #ff8a4f; margin-right: 4px; font-weight: 700; }

/* ---------- layout ---------- */
.page { padding: 20px 0 28px; }
.page-grid { display: grid; gap: 20px; }
main { min-width: 0; }

.section { margin-bottom: 22px; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.section__head h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.section__head h2 small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
}
.section__more { font-size: 12px; color: var(--primary); font-weight: 700; white-space: nowrap; }

/* ---------- area ---------- */
.region {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.region > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.region > summary::-webkit-details-marker { display: none; }
.region > summary::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.region[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.region > summary em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.region__body { padding: 2px 12px 14px; }
.pref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
}
.pref-grid a {
  display: block;
  text-align: center;
  font-size: 13px;
  padding: 9px 4px;
  border-radius: 9px;
  background: #f4f7f8;
  border: 1px solid transparent;
  transition: .15s ease;
}
.pref-grid a:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.pref-grid a b { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }
.pref-grid a:hover b { color: var(--primary-dark); }

/* ---------- sports ---------- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.sport-group + .sport-group { margin-top: 12px; }
.sport-group h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: .02em;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f7f8;
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.2;
  transition: .15s ease;
}
.chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.chip__icon { font-size: 14px; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 12px; }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__main { display: flex; gap: 12px; padding: 10px; }
.card__thumb {
  position: relative;
  flex: 0 0 104px;
  height: 96px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 38px;
  background: linear-gradient(150deg, hsl(var(--h, 20) 85% 92%), hsl(var(--h, 20) 70% 82%));
}
.card__thumb span { filter: saturate(.95); }
.card__badge {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(18, 35, 46, .72);
  border-radius: 999px;
  padding: 2px 7px;
}
.card__thumb-text {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  color: #12232e;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__body { min-width: 0; flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; padding-right: 32px; }
.tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  line-height: 1.5;
}
.tag--plain { background: #eef3f5; color: #45606d; }
.tag--sample { background: #ffe8a3; color: #7a4300; font-weight: 800; }
.card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.card__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
}
.card__meta li { display: inline-flex; gap: 3px; }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.card__members { color: var(--primary-dark); font-weight: 700; }
.fav {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: #b9c6cd;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 2;
}
.fav[aria-pressed="true"] { color: #fff; background: var(--primary); border-color: var(--primary); }

/* ---------- recommendation shelves (YouTube style) ---------- */
.rec { margin-bottom: 26px; }
.shelf__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.shelf__head h2 {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -.01em;
}
.ai-pill {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.6;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff8a4f);
  border-radius: 5px;
  padding: 1px 6px;
}
.shelf__sub { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.shelf__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.shelf__refresh {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  white-space: nowrap;
}
.shelf__refresh:active { transform: translateY(1px); }
.shelf__arrows { display: none; gap: 4px; }
.shelf__arrows button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.shelf__arrows button:hover { color: var(--ink); border-color: #cfd8dd; }

.shelf__track {
  display: block;
  transition: opacity .18s ease;
}

.yt { width: 100%; min-width: 0; margin-bottom: 22px; }
.yt__hit { display: block; text-decoration: none; }
.yt__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 62px;
  overflow: hidden;
  background: linear-gradient(150deg, hsl(var(--h, 20) 85% 92%), hsl(var(--h, 20) 72% 84%));
  transition: border-radius .18s ease;
}
.yt__hit:hover .yt__thumb { border-radius: 5px; }
.yt__sport {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(18, 35, 46, .7);
  border-radius: 999px;
  padding: 3px 9px;
}
.yt__fee {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #12232e;
  background: rgba(255, 255, 255, .92);
  border-radius: 5px;
  padding: 2px 7px;
}
.yt__thumb-text {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 80px);
  font-size: 11px;
  font-weight: 800;
  color: #12232e;
  background: rgba(255, 255, 255, .92);
  border-radius: 5px;
  padding: 2px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yt__body { display: flex; gap: 10px; padding: 10px 2px 0; }
.yt__avatar {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: #eef3f5;
}
.yt__text { min-width: 0; }
.yt__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt__meta { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
.yt__reason {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 6px;
  padding: 1px 7px;
  text-decoration: none;
}
.rec-note { margin: 10px 0 0; font-size: 10.5px; color: #8b9aa3; }

/* mobile: YouTube-app style vertical feed */
.rec-chips {
  display: flex;
  gap: 8px;
  position: sticky;
  top: 58px;
  z-index: 40;
  margin: 0 -16px 12px;
  padding: 8px 16px;
  overflow-x: auto;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
  scrollbar-width: none;
  transition: box-shadow .2s ease;
}
.rec-chips::-webkit-scrollbar { display: none; }
.rec-chips button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.rec-chips button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.feed-more {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
#rec-shelf2 { display: none; }

@media (min-width: 720px) {
  .rec-chips,
  .feed-more,
  #rec-shelf2 { display: none; }
  #rec-shelf2 { display: block; margin-top: 20px; }
  .shelf__track {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 2px 0 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    scrollbar-width: none;
  }
  .shelf__track::-webkit-scrollbar { display: none; }
  .yt { flex: 0 0 44%; width: auto; max-width: 270px; margin-bottom: 0; scroll-snap-align: start; }
  .yt__thumb { aspect-ratio: 16 / 10; border-radius: 12px; font-size: 52px; }
  .yt__body { padding: 8px 2px 0; gap: 8px; }
  .yt__avatar { flex-basis: 30px; height: 30px; font-size: 15px; }
  .yt__title { font-size: 13px; }
  .yt__meta { font-size: 11px; }
}

/* ---------- aside ---------- */
aside { min-width: 0; align-self: start; }
.aside-stack { display: grid; gap: 12px; }
.cta-card {
  border-radius: var(--radius);
  padding: 16px;
  color: #fff;
  background: linear-gradient(140deg, #f4570f, #ff7a3d);
  box-shadow: 0 10px 24px rgba(244, 87, 15, .25);
}
.cta-card h3 { font-size: 15px; margin-bottom: 4px; }
.cta-card p { margin: 0 0 12px; font-size: 12px; color: #ffe7db; }
.cta-card .btn { background: #fff; color: var(--primary-dark); width: 100%; }
.cta-card .btn:hover { background: #fff6f1; }

.side-list { margin: 0; padding: 0; list-style: none; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 2px;
  font-size: 13px;
}
.side-list a:hover { color: var(--primary-dark); }
.side-list .rank {
  flex: 0 0 20px;
  height: 20px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  background: #eef3f5;
  color: #45606d;
}
.side-list li:nth-child(1) .rank { background: #ffe6d6; color: #c2410c; }
.side-list li:nth-child(2) .rank { background: #ffeede; color: #c2410c; }
.side-list li:nth-child(3) .rank { background: #fff4e5; color: #c2410c; }
.side-list .count { margin-left: auto; font-size: 11px; color: var(--muted); }

.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.box h3 { font-size: 13px; margin-bottom: 8px; }
.box textarea {
  width: 100%;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  font: inherit;
  font-size: 13px;
  resize: vertical;
  background: #fbfcfc;
}

/* ---------- list page ---------- */
.page-title { padding: 18px 0 12px; }
.page-title h1 { font-size: 20px; font-weight: 800; }
.page-title p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.crumbs {
  font-size: 11.5px;
  color: var(--muted);
  padding: 12px 0 0;
}
.crumbs a:hover { text-decoration: underline; }

.filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
}
.result-bar strong { color: var(--primary-dark); font-size: 16px; }
.result-bar select {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px 9px;
  font: inherit;
  font-size: 12.5px;
}
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.active-filters:empty { display: none; }
.active-filters span {
  font-size: 11px;
  background: #eef3f5;
  border-radius: 999px;
  padding: 4px 10px;
  color: #45606d;
}
.empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 34px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.pager a,
.pager span {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}
.pager [aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }

/* ---------- detail ---------- */
.detail-head { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; }
.detail-head .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.detail-head h1 { font-size: 21px; font-weight: 800; }
.detail-head .place { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.detail-hero {
  height: 160px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 72px;
  background: linear-gradient(150deg, hsl(var(--h, 20) 85% 92%), hsl(var(--h, 20) 70% 82%));
  margin-bottom: 14px;
}
.detail-body { display: grid; gap: 14px; }
.prose { font-size: 14px; }
.prose p { margin: 0 0 10px; }
.prose h2 { font-size: 15px; margin: 16px 0 6px; }
.prose ul { margin: 0 0 10px; padding-left: 1.2em; }
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.spec th,
.spec td {
  text-align: left;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec th { width: 34%; color: var(--muted); font-weight: 600; }
.spec a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.spec a:hover { color: var(--primary); }
.contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.contact__type {
  font-size: 11px;
  font-weight: 700;
  color: #45606d;
  background: #eef3f5;
  border-radius: 5px;
  padding: 1px 6px;
}
.spec-empty { color: var(--muted); font-size: 12.5px; }
.sample-value { color: var(--muted); }
.sample-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #efc96b;
  border-radius: 10px;
  background: #fff8e1;
  color: #6b4a00;
  font-size: 12.5px;
  line-height: 1.7;
}
.sns-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.sns-link:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); }
.sns-link svg { width: 13px; height: 13px; flex: none; }
.sns-link__handle { font-weight: 400; color: var(--muted); }
.join-card { position: sticky; top: 74px; }
.join-card .note { font-size: 11px; color: var(--muted); margin: 8px 0 12px; }

/* ---------- footer ---------- */
.site-footer {
  background: #0e2a3b;
  color: #cfe0e8;
  padding: 24px 0 30px;
  margin-top: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0; font-size: 11px; color: #8fa9b6; }

/* ---------- hamburger / drawer ---------- */
.menu-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  margin-left: -6px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink);
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(10, 30, 42, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(78vw, 300px);
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 10px 40px rgba(10, 30, 42, .25);
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .24s ease, visibility .24s ease;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.drawer__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.drawer__list li { border-bottom: 1px solid var(--line); }
.drawer__list a { display: block; padding: 13px 4px; font-size: 14px; font-weight: 600; }
.drawer__list a:hover { color: var(--primary); }
.drawer__cta { margin-top: 16px; }
body.menu-open { overflow: hidden; }

@media (max-width: 719px) {
  .menu-btn { display: flex; }
  /* おすすめは画像左・テキスト右の行カードに */
  .yt { margin-bottom: 10px; }
  .yt__hit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .yt__hit:hover .yt__thumb { border-radius: 10px; }
  .yt__thumb {
    flex: 0 0 112px;
    width: 112px;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    font-size: 34px;
  }
  .yt__sport { left: 6px; top: 6px; font-size: 9.5px; padding: 2px 7px; }
  .yt__fee { right: 6px; bottom: 6px; font-size: 9.5px; padding: 1px 6px; }
  .yt__thumb-text {
    left: auto;
    right: 6px;
    top: 6px;
    bottom: auto;
    max-width: 58%;
    font-size: 9.5px;
    padding: 1px 6px;
  }
  .yt__body { display: block; flex: 1; min-width: 0; padding: 0; }
  .yt__avatar { display: none; }
  .yt__title { font-size: 14px; }
  .yt__reason { font-size: 9.5px; }
  .card__thumb { flex-basis: 88px; height: 82px; font-size: 32px; }
}

@media (max-width: 379px) {
  .header-inner { gap: 6px; }
  .header-nav .btn--sm { padding: 0 12px; font-size: 12.5px; }
}

/* ---------- responsive ---------- */
@media (min-width: 560px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 26px; }
}

@media (min-width: 720px) {
  .drawer,
  .drawer-overlay { display: none; }
  .hero { padding: 38px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero-count { font-size: 44px; }
  .hero-search { grid-template-columns: 1fr 1fr 1.3fr auto; align-items: end; padding: 12px; gap: 10px; }
  .hero-search .btn { height: 44px; padding: 0 22px; }
  .header-nav .nav-link { display: inline-block; }
  .section__head h2 { font-size: 19px; }
  .card__thumb { flex-basis: 116px; height: 104px; }
  .filters { grid-template-columns: 1fr 1fr 1.4fr auto; align-items: end; }
  .filter-row { display: contents; }
  .page-title h1 { font-size: 24px; }
  .shelf__arrows { display: flex; }
  .shelf__track { margin: 0; padding-left: 0; padding-right: 0; scroll-padding-left: 0; }
}

@media (min-width: 900px) {
  .page { padding: 26px 0 36px; }  .page-grid { grid-template-columns: minmax(0, 1fr) 292px; gap: 26px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .detail-body { max-width: 820px; margin: 0 auto; }
  .detail-hero { height: 220px; font-size: 96px; }
  .hero h1 { font-size: 32px; }
  .hero-count { font-size: 48px; }
  .hero-art { display: flex; }
  .yt { flex-basis: 31%; }
  .site-footer { padding: 30px 0 36px; }
}

/* ---------- 通報・法務ページ ---------- */
.report-link { margin: 12px 0 0; font-size: 12px; }
.report-link a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.report-link a:hover { color: var(--primary-dark); }

.legal { max-width: 840px; padding: 22px 24px 26px; }
.legal h2 { font-size: 15.5px; margin: 26px 0 8px; }
.legal h2:first-of-type { margin-top: 4px; }
.legal p,
.legal li { font-size: 13.5px; line-height: 1.9; }
.legal ul { padding-left: 1.3em; }
.legal a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 13px; }
.legal-table th,
.legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg); font-weight: 600; white-space: nowrap; }
.legal-note { color: var(--muted); font-size: 12px !important; }
@media (max-width: 640px) {
  .legal { padding: 16px; }
  .legal-table { font-size: 12px; }
  .legal-table th { white-space: normal; }
}
