@charset "UTF-8";
/* ============================================================
   AVNOTA — スタイルシート
   ブランド: 紺のノート地 + 付箋の黄色
   ============================================================ */

:root {
  --bg:        #0e1320;
  --bg-2:      #141b2d;
  --bg-3:      #1b2438;
  --line:      #26314b;
  --text:      #e8ecf5;
  --text-dim:  #9aa6c0;
  --text-mute: #6b7893;
  --accent:    #f5c518;   /* 付箋の黄色 */
  --accent-2:  #ffd84d;
  --danger:    #ff5a6a;
  --good:      #3ddc97;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 6px 24px rgba(0,0,0,.35);
  --max:       1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,19,32,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__bar {
  max-width: var(--max); margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 9px; flex: none; }
.logo:hover { color: inherit; }
.logo__mark { display: flex; }
.logo__text {
  font-size: 21px; font-weight: 800; letter-spacing: .04em; line-height: 1;
}
.logo__text em { font-style: normal; color: var(--accent); }

.search { flex: 1; display: flex; min-width: 0; }
.search input {
  flex: 1; min-width: 0;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 999px 0 0 999px; border-right: 0;
  padding: 9px 16px; color: var(--text); font-size: 14px; outline: none;
}
.search input::placeholder { color: var(--text-mute); }
.search input:focus { border-color: var(--accent); }
.search button {
  background: var(--bg-3); border: 1px solid var(--line); border-left: 0;
  border-radius: 0 999px 999px 0; padding: 0 16px;
  color: var(--text-dim); cursor: pointer; display: flex; align-items: center;
}
.search button:hover { color: var(--accent); }

.langswitch { position: relative; flex: none; }
.langswitch__btn {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; color: var(--text-dim); font-size: 13px; cursor: pointer;
  white-space: nowrap;
}
.langswitch__btn:hover { color: var(--accent); border-color: var(--accent); }
.langswitch__list {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 6px;
  display: none; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 2px;
  max-height: 60vh; overflow: auto;
}
.langswitch.is-open .langswitch__list { display: grid; }
.langswitch__list a {
  display: block; padding: 7px 12px; border-radius: 6px;
  font-size: 13px; color: var(--text-dim); white-space: nowrap;
}
.langswitch__list a:hover { background: var(--bg-3); color: var(--text); }
.langswitch__list a.is-active { color: var(--accent); font-weight: 700; }

.nav { border-top: 1px solid var(--line); overflow-x: auto; }
.nav ul {
  max-width: var(--max); margin: 0 auto; padding: 0 16px;
  display: flex; gap: 4px; list-style: none;
}
.nav a {
  display: block; padding: 11px 13px; font-size: 14px; color: var(--text-dim);
  white-space: nowrap; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

/* ---------- レイアウト ---------- */
.main { max-width: var(--max); margin: 0 auto; padding: 24px 16px 64px; }

.section { margin-top: 40px; }
.section--accent {
  background: linear-gradient(180deg, rgba(245,197,24,.07), rgba(245,197,24,0));
  border: 1px solid rgba(245,197,24,.18);
  border-radius: var(--radius-lg);
  padding: 20px; margin-left: -4px; margin-right: -4px;
}
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.section__head h2 { font-size: 19px; margin: 0; letter-spacing: .02em; }
.section__more { font-size: 13px; color: var(--text-dim); flex: none; }
.section__count { font-size: 13px; color: var(--text-mute); }
.section__lead { color: var(--text-dim); font-size: 14px; margin: -4px 0 14px; }

/* ---------- ヒーロー ---------- */
.hero {
  background:
    radial-gradient(900px 300px at 15% -20%, rgba(245,197,24,.16), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 26px;
}
.hero__eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .18em; margin: 0 0 8px; font-weight: 700; }
.hero__title { font-size: 30px; margin: 0 0 10px; line-height: 1.35; }
.hero__lead { color: var(--text-dim); margin: 0; max-width: 46em; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 26px; list-style: none;
  margin: 22px 0 0; padding: 0;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats b { font-size: 22px; color: var(--accent); line-height: 1.2; }
.hero__stats span { font-size: 12px; color: var(--text-mute); }
.hero__stats--doc { margin-top: 28px; }

/* ---------- ページ見出し ---------- */
.pagehead { margin-bottom: 20px; }
.pagehead h1 { font-size: 25px; margin: 0 0 6px; }
.pagehead__lead { color: var(--text-dim); margin: 0 0 4px; }
.pagehead__count { color: var(--text-mute); font-size: 13px; margin: 0; }
.pagehead--center { text-align: center; padding: 60px 0; }
.pagehead--center h1 { font-size: 56px; color: var(--accent); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 12px; color: var(--text-mute); margin-bottom: 16px;
}
.breadcrumb em { font-style: normal; color: var(--text-dim); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a {
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--text-dim);
}
.tabs a:hover { border-color: var(--accent); color: var(--accent); }
.tabs a.is-active { background: var(--accent); border-color: var(--accent); color: #141b2d; font-weight: 700; }

/* ---------- 作品カード ---------- */
.grid {
  display: grid; gap: 18px 14px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
/* グリッドの列は既定で「中身の最小幅」まで広がってしまう。
   価格などの折り返さない要素があると列がはみ出すため、min-width を 0 にする */
.card, .card__body, .card__foot { min-width: 0; }
.card__link { display: block; }
.card__thumb {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-3); aspect-ratio: 5 / 7;
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__thumb img { transform: scale(1.05); }
.card__rank {
  position: absolute; left: 0; top: 0;
  min-width: 30px; height: 30px; padding: 0 7px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  background: var(--bg-2); color: var(--text-dim);
  border-bottom-right-radius: var(--radius);
}
.card__rank.rank-1 { background: var(--accent); color: #141b2d; }
.card__rank.rank-2 { background: #c9d3e6; color: #141b2d; }
.card__rank.rank-3 { background: #cd8b52; color: #fff; }
.card__badges { position: absolute; right: 6px; top: 6px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.badge {
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 7px; border-radius: 4px; background: var(--bg-2); color: var(--text-dim);
}
.badge--sale { background: var(--danger); color: #fff; }
.badge--new  { background: var(--accent); color: #141b2d; }
.badge--vr   { background: #6c5ce7; color: #fff; }
.badge--excl { background: var(--good); color: #0e1320; }

.card__body { padding: 9px 2px 0; }
.card__code { font-size: 11px; color: var(--text-mute); margin: 0 0 2px; letter-spacing: .04em; }
.card__title {
  font-size: 13.5px; margin: 0 0 4px; line-height: 1.5; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card__title { color: var(--accent); }
.card__cast {
  font-size: 12px; color: var(--text-dim); margin: 0 0 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* カードの下部は、幅の狭いカードで評価と価格が重ならないよう縦に積む */
.card__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.card__rating { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-dim); }
.card__rating b { color: var(--accent); font-size: 12px; }
.card__price { font-size: 12.5px; white-space: nowrap; }
.card__price del { color: var(--text-mute); font-size: 11px; margin-right: 5px; }
.card__price ins { text-decoration: none; color: var(--text); font-weight: 700; }

/* 星（★ を2枚重ね、上の層の幅で評価を表す） */
.stars {
  position: relative; display: inline-block; white-space: nowrap;
  font-size: 12px; line-height: 1; letter-spacing: 1px; vertical-align: -1px;
}
.stars i { font-style: normal; }
.stars__off { color: var(--line); }
.stars__on {
  position: absolute; left: 0; top: 0; overflow: hidden;
  color: var(--accent); white-space: nowrap;
}

/* ---------- 詳細 ---------- */
.detail { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.detail__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-3); }
.detail__badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 5px; }
.detail__code { font-size: 12px; color: var(--text-mute); letter-spacing: .06em; margin: 0 0 6px; }
.detail__title { font-size: 24px; line-height: 1.45; margin: 0 0 12px; }
.detail__rating { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 13px; }
.detail__rating b { color: var(--accent); font-size: 18px; }
.detail__rating a { color: var(--text-dim); text-decoration: underline; }
.detail__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.detail__price del { color: var(--text-mute); }
.detail__price ins { text-decoration: none; font-size: 27px; font-weight: 800; color: var(--text); }
.detail__off { background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 4px; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 14px;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #141b2d; }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #141b2d; }
.btn--block { display: block; width: 100%; text-align: center; border: 0; cursor: pointer; font-size: 15px; }

.spec { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 13.5px; }
.spec th, .spec td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 7.5em; color: var(--text-mute); font-weight: 500; }
.spec--inline { margin-top: 14px; }

.tag {
  display: inline-block; margin: 0 5px 5px 0; padding: 3px 10px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; color: var(--text-dim);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag--person { background: rgba(245,197,24,.1); border-color: rgba(245,197,24,.3); color: var(--accent); }

.prose { color: var(--text-dim); max-width: 60em; }
.prose h2 { color: var(--text); font-size: 17px; margin: 30px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

.doc { margin-top: 6px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 18px; }
.steps li {
  counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--accent); color: #141b2d;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.steps b { display: block; color: var(--text); }
.steps span { font-size: 14px; }

/* ---------- レビュー ---------- */
.reviews { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.reviews__summary { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.reviews__score { text-align: center; margin-bottom: 14px; }
.reviews__score b { display: block; font-size: 38px; color: var(--accent); line-height: 1.1; }
.reviews__score span { display: block; font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.reviews__score .stars { margin: 4px auto 0; }
.reviews__dist { list-style: none; margin: 0; padding: 0; }
.reviews__dist li { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 12px; }
.reviews__star { width: 26px; color: var(--text-mute); flex: none; }
.reviews__bar { flex: 1; height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.reviews__bar i { display: block; height: 100%; background: var(--accent); }
.reviews__num { width: 22px; text-align: right; color: var(--text-mute); flex: none; }

.review { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; flex-wrap: wrap; }
.review__title { font-size: 15px; margin: 0; }
.review__meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-mute); margin: 0 0 8px; flex-wrap: wrap; }
.review__author { color: var(--text-dim); }
.review__untranslated { border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 11px; }
.review__body { margin: 0 0 8px; color: var(--text-dim); font-size: 14px; }
.review__helpful { margin: 0; font-size: 12px; color: var(--text-mute); }

/* ---------- チップ・人物 ---------- */
.chiplist { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text-dim);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip small { color: var(--text-mute); font-size: 11px; }
.chip--person { background: rgba(245,197,24,.08); border-color: rgba(245,197,24,.28); color: var(--accent); }
.chiplist--lg .chip { padding: 10px 19px; font-size: 14px; }

.people { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; padding: 0; margin: 0; }
.people--grid { gap: 20px 14px; }
.people li { width: 96px; }
.people a { display: block; text-align: center; }
.people img { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 7px; background: var(--bg-3); }
.people__name { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people__roman { display: block; font-size: 10px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people__count { display: block; font-size: 11px; color: var(--text-mute); }

.makers { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.makers a {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.makers a:hover { border-color: var(--accent); }
.makers__prefix { font-weight: 800; color: var(--accent); font-size: 13px; letter-spacing: .06em; flex: none; }
.makers__name { flex: 1; font-size: 14px; }
.makers__count { font-size: 11px; color: var(--text-mute); flex: none; }

/* ---------- プロフィール ---------- */
.profile { display: flex; gap: 22px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.profile__photo { width: 108px; height: 108px; border-radius: 50%; flex: none; background: var(--bg-3); }
.profile__body { flex: 1; min-width: 0; }
.profile__body h1 { margin: 0 0 2px; font-size: 23px; }
.profile__roman { margin: 0 0 10px; color: var(--text-mute); font-size: 12px; letter-spacing: .06em; }
.profile__text { color: var(--text-dim); margin: 0 0 8px; font-size: 14px; }

/* ---------- おすすめの根拠 ---------- */
.reason {
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px;
}
.reason__label { margin: 0 0 10px; font-size: 12px; color: var(--text-mute); letter-spacing: .08em; }
.reason__note { margin: 12px 0 0; font-size: 12px; color: var(--text-mute); }
.reason__note a { color: var(--text-dim); text-decoration: underline; }

/* ---------- ページャ ---------- */
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 13px; color: var(--text-dim);
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .is-current { background: var(--accent); border-color: var(--accent); color: #141b2d; font-weight: 700; }
.pager__gap { border: 0; }

.empty { color: var(--text-mute); text-align: center; padding: 40px 0; }

/* ---------- フッター ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 60px; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 36px 16px 28px; }
.footer__brand { margin-bottom: 26px; }
.footer__brand p { color: var(--text-mute); font-size: 13px; margin: 8px 0 0; max-width: 40em; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-bottom: 26px; }
.footer__cols h3 { font-size: 13px; color: var(--text); margin: 0 0 10px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; }
.footer__cols li { margin-bottom: 6px; }
.footer__cols a { font-size: 13px; color: var(--text-dim); }
.footer__note { border-top: 1px solid var(--line); padding-top: 18px; }
.footer__note p { font-size: 12px; color: var(--text-mute); margin: 0 0 8px; }
.badge-18 {
  display: inline-block; border: 1px solid var(--danger); color: var(--danger) !important;
  border-radius: 4px; padding: 3px 10px; font-weight: 700;
}
.footer__copy { color: var(--text-mute); }

/* ---------- 年齢確認 ---------- */
body.is-plain { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.agegate { width: 100%; max-width: 480px; }
.agegate__box {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 28px; text-align: center; box-shadow: var(--shadow);
}
.agegate__logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.agegate__badge {
  display: inline-block; border: 2px solid var(--danger); color: var(--danger);
  border-radius: 50%; width: 52px; height: 52px; line-height: 48px;
  font-weight: 800; margin: 0 auto 14px; font-size: 16px;
}
.agegate h1 { font-size: 20px; margin: 0 0 12px; }
.agegate__lead { color: var(--text-dim); font-size: 14px; margin: 0 0 6px; }
.agegate__note { color: var(--text-mute); font-size: 12px; margin: 0 0 22px; }
.agegate__exit { margin: 14px 0 0; }
.agegate__exit a { color: var(--text-mute); font-size: 13px; text-decoration: underline; }
.agegate__langs {
  list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center;
  padding: 20px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line);
}
.agegate__langs a { font-size: 11.5px; color: var(--text-mute); }
.agegate__langs a.is-active { color: var(--accent); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .detail  { grid-template-columns: 1fr; }
  .detail__media { max-width: 300px; }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header__bar { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; width: 100%; flex-basis: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 10px; }
  .hero { padding: 26px 20px; }
  .hero__title { font-size: 23px; }
  .hero__stats { gap: 18px; }
  .profile { flex-direction: column; align-items: center; text-align: center; }
  .section--accent { padding: 16px 14px; }
}
