/* 読みもの部屋（/stories/）だけの見た目。共通は v2.css */
.v-kv--stories { height: 80vh; height: 80svh; min-height: 480px; }
.v-kv--stories .v-kv__img { object-position: 50% 40%; }
@media (max-width: 767px) { .v-kv--stories { height: min(78svh, 125vw); min-height: 420px; } }

/* ---------- さがす ---------- */
.s-search { max-width: 720px; margin: 0 auto; }
.s-search__input {
  width: 100%; min-height: 56px; padding: 12px 22px; border-radius: 999px;
  border: 1.5px solid var(--v-line); background: var(--v-card); color: var(--v-ink);
  font: 700 1.05rem var(--v-sans); box-shadow: var(--v-shadow); -webkit-appearance: none; appearance: none;
}
.s-search__input:focus { outline: 2px solid var(--v-honey); outline-offset: 2px; }
.s-count { margin: 22px 0 12px; font-size: .88rem; font-weight: 700; color: var(--v-ink2); }

/* ---------- 記事カード（新着・検索・マガジン） ---------- */
.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; }
@media (min-width: 768px) { .s-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; } }
@media (min-width: 1100px) { .s-grid { grid-template-columns: repeat(4, 1fr); } }
.s-art .v-card__img .v-tag { font-size: .66rem; }
.s-art__title {
  font-size: .9rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.v-rail .s-art__title { -webkit-line-clamp: 2; line-clamp: 2; font-size: .98rem; }
.s-art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .75rem; }
.s-art__meta .v-tag { position: static; font-size: .62rem; }
.s-tag--member { background: var(--v-ink2); color: #fffdf8; }
.s-price { background: rgba(46, 39, 33, .08); color: var(--v-ink); }

/* ---------- 本棚 ---------- */
.s-fallback { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; }
.s-fallback a { text-decoration: underline !important; }
.s-shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 14px; }
@media (min-width: 768px) { .s-shelf { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; } }
@media (min-width: 1100px) { .s-shelf { grid-template-columns: repeat(4, 1fr); } }
.s-mag { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.s-mag .v-card__img { aspect-ratio: 16 / 9; }
.s-mag:hover .v-card__img img { transform: scale(1.05); }
.s-mag:focus-visible { outline: 2px solid var(--v-honey); outline-offset: 4px; border-radius: var(--v-r); }
.s-mag__name {
  margin-top: 10px; font-weight: 700; font-size: .95rem; line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.s-mag__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: .78rem; color: var(--v-ink2); }
.s-mag__meta .v-tag { font-size: .62rem; }

/* ---------- マガジンの記事の画面 ---------- */
.s-maghead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 30px; }
.s-maghead > * { min-width: 0; } /* 1行の説明（nowrap）でページが横に広がらないように */
@media (min-width: 900px) { .s-maghead { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; } }
.s-maghead__img { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--v-r); background: var(--v-paper2); box-shadow: var(--v-shadow); }
.s-maghead__img img { width: 100%; height: 100%; object-fit: cover; }
.s-maghead__title { font-size: clamp(1.3rem, 5vw, 1.9rem); line-height: 1.4; }
.s-maghead__desc { margin-top: 6px; font-size: .9rem; color: var(--v-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-maghead__count { margin-top: 4px; font-size: .82rem; font-weight: 700; color: var(--v-ink2); }
.s-maghead .v-btns { margin-top: 16px; }
.s-more { margin-top: 30px; }

/* ---------- 参加しているマガジン ---------- */
.s-joined { display: flex; flex-wrap: wrap; gap: 8px; }
.s-joined a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  background: var(--v-paper2); font-size: .82rem; font-weight: 700;
}
.s-joined a:hover { background: var(--v-line); }
