/* ============================================================
   レモンチ公式サイト / 2D版 共通スタイル
   v001の読みやすい構造を正本にし、ドット装飾は accents.css に分離。
   ============================================================ */

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../fonts/mplus-rounded-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../fonts/mplus-rounded-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../fonts/mplus-rounded-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --yellow: #ffd83d;
  --yellow-soft: #fffdf5;
  --ink: #22303a;
  --ink-soft: #4a5a66;
  --paper: #fffdf5;
  --paper-alt: #fdf9ec;
  --white: #ffffff;
  --accent: #1d7a4d;
  --accent-dark: #155c3a;
  --red: #c03935;
  --sky: #7ec8e3;
  --sky-dark: #4a9dbf;
  --line: #e5e2d8;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(34, 48, 58, 0.08);
  --content-width: 1040px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.9;
}

h1,
h2,
h3,
p,
figure,
table {
  margin: 0;
}

h1,
h2,
h3,
strong,
th {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
}

h1,
h2,
h3 {
  font-weight: 900;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

img,
video {
  filter: none;
}

a {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ---------- ヘッダー / ナビ ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(34, 48, 58, 0.07);
}

.site-header__inner {
  width: min(100%, var(--content-width));
  min-height: 102px;
  margin: 0 auto;
  padding: 6px 92px 7px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-header__brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  color: var(--ink);
  text-decoration: none;
}

.site-header__logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.site-header__title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.site-header__title small {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

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

.site-nav-toggle {
  display: none;
}

.site-nav a {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 120ms steps(1, end), border-color 120ms steps(1, end), color 120ms steps(1, end);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--accent);
  background: #f3fbf6;
  color: var(--accent-dark);
}

.site-nav a[aria-current="location"] {
  border-color: var(--accent-dark);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(29, 122, 77, 0.28);
}

.site-nav a[aria-current="location"]:hover,
.site-nav a[aria-current="location"]:focus-visible {
  border-color: var(--accent-dark);
  background: #f3c92d;
  color: var(--ink);
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 16px 64px;
  background: var(--paper);
}

.hero__inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: 40px;
}

.hero__copy {
  min-width: 0;
  max-width: 600px;
}

/* v2では追加された英字のアイブロウを表示しない。 */
.hero__eyebrow {
  display: none;
}

.hero h1 {
  color: var(--ink);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.35;
}

.hero h1 span {
  color: var(--accent-dark);
}

.hero h1 .nowrap {
  color: inherit;
}

.nowrap {
  white-space: nowrap;
}

.hero p {
  max-width: 42ch;
  margin-top: 14px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.75;
}

.hero__cta {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: var(--shadow);
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--accent-dark);
  color: var(--white);
  outline-color: var(--ink);
}

.hero__sns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.sns-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}

.sns-btn__mark {
  font-size: 20px;
  line-height: 1;
}

.sns-btn--x {
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
}

.sns-btn--x:hover,
.sns-btn--x:focus-visible {
  background: var(--yellow-soft);
  color: var(--ink);
  outline-color: var(--ink);
}

.sns-btn--podcast {
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
}

.sns-btn--podcast:hover,
.sns-btn--podcast:focus-visible {
  background: var(--yellow-soft);
  color: var(--ink);
  outline-color: var(--ink);
}

.hero__img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero__sprite-panel {
  width: min(100%, 280px);
  justify-self: center;
  text-align: center;
}

.hero__sprite-viewport {
  width: 220px;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
}

.hero__sprite {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  image-rendering: pixelated;
}

.hero__sprite-caption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 64px 16px;
  background: var(--paper);
}

.section:nth-of-type(even) {
  background-color: var(--paper-alt);
}

.section__inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.35;
}

/* アイコンがないフォールバックDOMでは細い黄色マーカーを残す。 */
.section__title::before {
  width: 12px;
  height: 36px;
  flex: 0 0 12px;
  border-radius: 6px;
  background: var(--yellow);
  content: "";
}

.section__title:has(> img, > .section__icon, > .section__title-icon)::before {
  display: none;
}

.section__title > img,
.section__title > .section__icon,
.section__title > .section__title-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  object-fit: contain;
}

.section__lead {
  max-width: 68ch;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
}

/* 旧v1.1の窓ラッパーは、最終DOMへ移行する間も面を作らない。 */
.rpg-window,
.status-screen,
.quest-board,
.theater-window,
.shop-window {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.rpg-window__bar,
.status-screen__bar,
.quest-board__header,
.theater-window__sign,
.shop-window__header {
  display: none;
}

/* ---------- ニュース ---------- */
.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.news-item time {
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
  white-space: nowrap;
}

.news-item .tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
}

.news-item h3 {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
}

.news-item p {
  grid-column: 1 / -1;
  max-width: 68ch;
  color: #4a5a66;
  font-size: 17px;
  line-height: 1.75;
}

.news-item a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  grid-column: 1 / -1;
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}

/* ---------- TOPICS ---------- */
.section--topics[hidden],
.topics__pager[hidden] {
  display: none;
}

.topics-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.topics-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.topics-card__media {
  min-width: 0;
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  background: var(--paper-alt);
}

.topics-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper-alt);
}

.topics-card__body {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 8px;
}

.topics-card__category {
  align-self: flex-start;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.topics-card h3 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.45;
}

.topics-card__summary {
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.topics-card__link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  margin: 0 18px 16px;
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
}

.topics-card__link:hover,
.topics-card__link:focus-visible {
  color: var(--accent);
}

.topics__pager {
  display: none;
}

/* ---------- プロフィール ---------- */
.profile {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 28px;
}

.profile__portrait {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile__img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile__table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-spacing: 0;
  border-collapse: separate;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile__table th,
.profile__table td {
  padding: 16px 20px;
  border-bottom: 1px solid #eeeadd;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
  vertical-align: top;
}

.profile__table th {
  width: 9em;
  background: var(--yellow-soft);
  font-weight: 900;
  white-space: nowrap;
}

.profile__table td {
  font-weight: 700;
}

.profile__table tr:last-child th,
.profile__table tr:last-child td {
  border-bottom: 0;
}

.profile__table small {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- イベント ---------- */
.event-banner {
  margin-bottom: 22px;
}

.event-banner a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.event-banner img {
  width: 100%;
  height: auto;
  border: 0;
  filter: none;
}

.event-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.event-news-list > .event-card:only-child {
  grid-column: 1 / -1;
  width: calc((100% - 22px) / 2);
  justify-self: center;
}

.event-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.event-card > img {
  width: 100%;
  height: auto;
  border: 0;
  filter: none;
}

.event-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.event-card .status {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
}

.event-card h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
}

.event-card .period {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.6;
}

.event-card p {
  max-width: 68ch;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.8;
}

.event-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ---------- どうが ---------- */
.video-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.video-grid__pager {
  display: none;
}

.video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.video-card video {
  width: 100%;
  height: auto;
  border: 0;
  background: var(--paper);
  filter: none;
}

.video-card__body {
  padding: 16px 18px 20px;
}

.video-card h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.5;
}

.video-card p {
  max-width: 68ch;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

/* ---------- グッズ ---------- */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.goods-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.goods-card figure {
  min-width: 0;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: hidden;
  background: var(--white);
}

.goods-card figure > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.goods-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 18px;
}

.goods-card h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}

.goods-card .price {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  color: var(--red);
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}

.goods-card .price__icon {
  display: none;
}

.goods-card .price__amount {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

.goods-card .price small {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- ボタン ---------- */
.btn {
  min-height: 52px;
  display: grid;
  place-items: center;
  margin-top: auto;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-dark);
  color: var(--white);
  outline-color: var(--ink);
}

.btn--wide {
  width: min(100%, 460px);
  margin: 28px auto 0;
}

.btn--ghost {
  border: 1px solid var(--accent);
  background: var(--white);
  color: var(--accent-dark);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--yellow-soft);
  color: var(--accent-dark);
}

.goods-card .btn {
  height: 44px;
  min-height: 44px;
  padding: 8px 14px;
  background: #3b9361;
  font-size: 16px;
  box-shadow: none;
}

.goods-card .btn:hover,
.goods-card .btn:focus-visible {
  background: var(--accent-dark);
}

/* ---------- フッター ---------- */
.site-footer {
  padding: 40px 16px 60px;
  background: var(--ink);
  color: var(--white);
}

.site-footer__inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.site-footer p {
  max-width: 100%; /* eRCC調整(2026-09) */
  color: var(--white);
  font-size: 18px;
  line-height: 1.7;
}

.site-footer strong {
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.site-footer a {
  color: var(--yellow);
  font-size: 18px;
  font-weight: 700;
}

/* ---------- 画面幅 ---------- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
    gap: 28px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .profile {
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  }

  .goods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 0;
  }

  /* ナビが2段以上になるSPでは固定せず、本文との重なりを防ぐ。 */
  .site-header {
    position: static;
  }

  .site-header__inner {
    min-height: 0;
    padding: 10px 92px 12px 12px;
  }

  .site-header__brand {
    align-self: flex-start;
  }

  .site-nav-toggle {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: calc(max(12px, env(safe-area-inset-right)) + 80px);
    z-index: 140;
    width: 48px;
    height: 48px;
    min-height: 48px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 8px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 3px 3px 0 var(--accent-dark);
    color: var(--ink);
    cursor: pointer;
  }

  .site-nav-toggle[aria-expanded="true"] {
    background: var(--yellow);
  }

  .site-nav-toggle__bar {
    width: 24px;
    height: 3px;
    display: block;
    background: currentColor;
  }

  .site-nav {
    position: fixed;
    top: calc(max(12px, env(safe-area-inset-top)) + 58px);
    right: calc(max(12px, env(safe-area-inset-right)) + 80px);
    z-index: 139;
    width: min(244px, calc(100vw - 104px));
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 6px 6px 0 rgba(21, 92, 58, 0.2), var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero__inner,
  .profile {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero__sprite-viewport {
    width: 180px;
  }

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .section__title {
    font-size: 28px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .news-item h3,
  .news-item p,
  .news-item a {
    grid-column: 1;
  }

  .topics-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 0 14px;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    scrollbar-color: var(--accent-dark) var(--line);
  }

  .topics-card {
    width: 82vw;
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }

  .topics__pager {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
  }

  .topics__dots {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
  }

  .topics__dot {
    width: 10px;
    height: 10px;
    display: block;
    padding: 0;
    border: 2px solid var(--accent-dark);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .topics__dot.is-active {
    background: var(--accent-dark);
  }

  .topics__pager-text {
    min-width: 0;
  }

  .profile__portrait {
    max-width: 360px;
    margin: 0 auto;
  }

  .profile__table th,
  .profile__table td {
    padding: 12px;
  }

  .event-card__body {
    padding: 20px 16px;
  }

  .event-card .btn {
    width: 100%;
  }

  .event-news-list {
    grid-template-columns: 1fr;
  }

  .event-news-list > .event-card:only-child {
    grid-column: auto;
    width: 100%;
  }

  .video-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 0 14px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    scrollbar-color: var(--accent-dark) var(--line);
  }

  .video-card {
    width: 82vw;
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }

  .video-grid__pager {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
  }

  .video-grid__dots {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
  }

  .video-grid__dot {
    width: 10px;
    height: 10px;
    display: block;
    border: 2px solid var(--accent-dark);
    border-radius: 50%;
    background: transparent;
  }

  .video-grid__dot.is-active {
    background: var(--accent-dark);
  }

  .video-grid__pager-text {
    min-width: 0;
  }

  .goods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .goods-card__body {
    padding-right: 12px;
    padding-left: 12px;
  }

}

@media (max-width: 480px) {
  .site-header__title small {
    max-width: 250px;
  }

  .site-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-nav.is-open {
    grid-template-columns: 1fr;
  }

  .site-nav a {
    min-height: 48px;
    padding: 6px 4px;
    font-size: 16px;
    white-space: normal;
  }

  .hero__sns {
    align-items: stretch;
    flex-direction: column;
  }

  .sns-btn {
    justify-content: center;
  }

  .goods-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .goods-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
