/* aparise 版の差分だけ。ベースは tcgpro.co.jp の tokens/style/blog-parts/media.css */
:root { --ap-accent: #ea5405; --ap-line: #06c755; --ap-line-dark: #05a647; }

/* ヘッダーのロゴ: アパリセのロゴ＋「ポケカせどり / MEDIA」 */
.ap-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #0f0f0f; }
.ap-logo__img { height: 30px; width: auto; display: block; }
.ap-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.ap-logo__name { font-weight: 900; font-size: 18px; letter-spacing: .02em; }
.ap-logo__sub { font-size: 9px; letter-spacing: .28em; margin-top: 2px; }
@media (max-width: 767px) {
  .ap-logo__img { height: 24px; }
  .ap-logo__name { font-size: 15px; }
}
.header__nav-link.is-current { color: var(--ap-accent); }
.header__nav-link.ap-nav-line { background: var(--ap-line); color: #fff !important; border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.header__nav-link.ap-nav-line:hover { background: var(--ap-line-dark); }

/* カテゴリー見出し */
.ap-cat-head { padding: 8px 0 24px; }
.ap-cat-head__title { font-size: 26px; font-weight: 900; margin: 8px 0 6px; }
.ap-cat-head__desc { color: #555; font-size: 14px; margin: 0; }

/* トップの紹介と監修者への導線 */
.ap-home-intro { display: grid; gap: 24px; margin: 12px 0 32px; padding: 12px 0 28px; border-bottom: 1px solid #e5e5e5; }
.ap-home-intro__title { margin: 0; color: #171717; font-size: clamp(24px, 3vw, 32px); line-height: 1.55; font-weight: 700; }
.ap-home-supervisor { display: flex; align-items: center; gap: 16px; color: #171717; text-decoration: none; }
.ap-home-supervisor__photo { display: block; flex: none; width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.ap-home-supervisor__body { display: grid; gap: 3px; min-width: 0; }
.ap-home-supervisor__label { font-size: 11px; color: #666; }
.ap-home-supervisor__name { font-size: 20px; line-height: 1.4; font-weight: 700; }
.ap-home-supervisor__role { font-size: 12px; line-height: 1.6; color: #555; }
.ap-home-supervisor__link { margin-top: 4px; font-size: 12px; color: var(--ap-accent); text-decoration: underline; text-underline-offset: 3px; }
.ap-home-supervisor:hover .ap-home-supervisor__link { color: #a83b00; }
.ap-home-supervisor:focus-visible { outline: 2px solid var(--ap-accent); outline-offset: 6px; }
.media-home .media-pickup-head__title { font-size: 24px; line-height: 1.5; }
@media (min-width: 960px) {
  .ap-home-intro { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 40px; }
}
@media (max-width: 600px) {
  .ap-home-intro { gap: 20px; margin-top: 4px; padding-bottom: 24px; }
  .ap-home-intro__break { display: none; }
  .ap-home-supervisor { gap: 12px; }
  .ap-home-supervisor__photo { width: 72px; height: 80px; }
}

/* カバー画像がない記事のスタンプ */
.media-cover__stamp { text-transform: none; }

/* LINE 導線(本文内) */
.ap-line { margin: 36px 0; padding: 22px 20px; border: 2px solid var(--ap-line); border-radius: 12px; background: #f3fcf6; text-align: center; }
.article__body .ap-line p { margin: 0; }
.ap-line__label { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--ap-line); border-radius: 999px; padding: 2px 12px; margin-bottom: 10px; }
.article__body .ap-line .ap-line__title, .ap-line__title { font-size: 18px; font-weight: 700; line-height: 1.5; margin: 0 0 8px; }
.article__body .ap-line .ap-line__text, .ap-line__text { font-size: 14px; color: #444; line-height: 1.7; margin: 0 0 16px; }
.ap-line__btn { display: inline-block; width: 100%; max-width: 360px; background: var(--ap-line); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none !important; padding: 14px 20px; border-radius: 999px; box-shadow: 0 3px 0 var(--ap-line-dark); transition: transform .08s, box-shadow .08s; }
.ap-line__btn:hover { background: var(--ap-line-dark); }
.ap-line__btn:active { transform: translateY(3px); box-shadow: none; }
.article__body .ap-line .ap-line__note, .ap-line__note { font-size: 12px; color: #777; margin: 14px 0 0; }

/* SP 下部固定ボタン */
.ap-line-fixed { display: none; }
@media (max-width: 767px) {
  .ap-line-fixed { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid #e5e5e5; transform: translateY(110%); transition: transform .25s; }
  .ap-line-fixed.is-show { transform: none; }
  .ap-line-fixed a { display: block; text-align: center; background: var(--ap-line); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; padding: 12px; border-radius: 999px; }
  body.has-line-fixed { padding-bottom: 72px; }
}

.ap-404 { text-align: center; padding: 60px 0 20px; }
.ap-404__title { font-size: 24px; margin-bottom: 12px; }


/* /media/kanshu/ 編集・監修者 */
.ap-kanshu__reading { font-size: .8em; font-weight: 400; color: #666; }
.ap-kanshu h2 { margin: 56px 0 20px; font-size: 24px; line-height: 1.5; letter-spacing: .02em; }
.ap-kanshu h2 + .ap-kanshu__photos { margin-top: 0; }
.ap-kanshu__facts { margin-bottom: 28px; }
.ap-kanshu__facts table { width: 100%; border-collapse: collapse; }
.ap-kanshu__facts th, .ap-kanshu__facts td { padding: .7em .8em; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; font-size: .95em; }
.ap-kanshu__facts th { width: 40%; background: #fafafa; font-weight: 700; }
@media (max-width: 600px) { .ap-kanshu__facts th { width: 45%; } }
.ap-kanshu__facts--timeline th { width: 28%; white-space: nowrap; }
.ap-kanshu .ap-kanshu__paragraph { margin: 0 0 1.25em; line-height: 1.9; }

.ap-kanshu__hero { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: center; margin: 24px 0; padding-bottom: 24px; border-bottom: 1px solid #e5e5e5; }
.ap-kanshu__portrait { display: block; width: 240px; height: 240px; object-fit: cover; border-radius: 8px; }
.ap-kanshu__kicker { color: var(--ap-accent); font-size: 13px; font-weight: 700; }
.ap-kanshu__name { margin: 6px 0 0; font-size: 36px; font-weight: 700; line-height: 1.3; }
.ap-kanshu__identity .ap-kanshu__reading { margin: 4px 0 16px; font-size: 13px; }
.ap-kanshu__role { margin: 0; font-size: 15px; line-height: 1.8; }
.ap-kanshu__role a { color: inherit; text-decoration: underline; }
.ap-kanshu__specialty { margin: 10px 0 0; font-size: 14px; color: #555; }
.ap-kanshu__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0 32px; }
.ap-kanshu__photos--collection { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.ap-kanshu__photos figure { margin: 0; min-width: 0; }
.ap-kanshu__photos a { display: block; }
.ap-kanshu__photos img { display: block; width: 100%; height: auto; border-radius: 4px; }
.ap-kanshu__photos figcaption { margin-top: 8px; color: #666; font-size: 12px; line-height: 1.6; }
@media (max-width: 600px) {
  .ap-kanshu h2 { margin-top: 40px; margin-bottom: 18px; font-size: 22px; }
  .ap-kanshu__hero { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; margin-top: 20px; align-items: start; }
  .ap-kanshu__portrait { width: 150px; height: 190px; object-position: 65% center; }
  .ap-kanshu__name { font-size: 28px; }
  .ap-kanshu__kicker { font-size: 11px; }
  .ap-kanshu__identity .ap-kanshu__reading { margin-bottom: 10px; font-size: 11px; }
  .ap-kanshu__role { font-size: 12px; line-height: 1.7; }
  .ap-kanshu__specialty { font-size: 12px; line-height: 1.6; }
  .ap-kanshu__photos, .ap-kanshu__photos--collection { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 359px) {
  .ap-kanshu__hero { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .ap-kanshu__portrait { width: 120px; height: 170px; }
  .ap-kanshu__name { font-size: 24px; }
}
