@charset "UTF-8";
/* ============================================================
   newton-digital.scss
   ============================================================
   目次
   Variables
   Reset
   Layout
   Button
   Header
   Breadcrumb
   Footer
   Heading
   Card
   Box
   List
   Pagination
   Article
   FAQ / Accordion
   Newton AI
   Top Page
   Slider / Tab
   Article Viewer
   Error
   Utility
   ============================================================ */
/* ============================================================
   Variables
   ============================================================ */
:root {
  --red-primary: #EA1815;
  --red-newton: #FA1D19;
  --gray-dark: #18181B;
  --gray-line: #1E2939;
  --gray-pale: #F1F4F7;
  --gray-pale-line: #E5E7EB;
  --gray: #A7B1B8;
  --white: #FFFFFF;
  --black: #000000;
  --black-text: #333;
  --font-en: "Anton";
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--black);
  color: var(--black-text);
  font-family: "Noto Sans JP", sans-serif;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

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

/* ============================================================
   Layout
   ============================================================ */
.wrapper {
  overflow: clip;
}

.inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 24px);
}

.site-main {
  background: var(--black);
}

.site-main.bg-white {
  background: var(--white);
}

.site-main .inner {
  padding-top: 24px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 24px);
}

section {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(40px, 8vw, 80px);
}

/* ============================================================
   Button
   ============================================================ */
/* -- ボタンラッパー -- */
.btn-area {
  text-align: center;
}

/* -- プライマリ / セカンダリ -- */
.btn-primary,
.btn-secondary {
  position: relative;
  display: inline-flex;
  padding: 12px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 50px;
  background: var(--red-primary, #EA1815);
  line-height: 1;
  color: var(--white);
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--red-primary);
}
.btn-primary svg,
.btn-secondary svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}
.btn-primary:hover,
.btn-secondary:hover {
  background: #fff;
  color: var(--red-primary);
}
.btn-primary:hover svg,
.btn-secondary:hover svg {
  fill: var(--red-primary);
}
.btn-primary:has(img),
.btn-secondary:has(img) {
  padding-left: 32px;
}
.btn-primary img,
.btn-secondary img {
  width: 16px;
  height: 16px;
}

.btn-secondary {
  background: var(--gray-dark);
  border: 1px solid var(--gray);
}
.btn-secondary:hover {
  border: 1px solid var(--gray-dark);
  color: var(--gray-dark);
}
.btn-secondary:hover svg {
  fill: var(--gray-dark);
}

/* -- スクエアボタン -- */
.btn-square {
  min-width: 200px;
  border-radius: 8px;
  padding: 16px;
}
.btn-square:has(svg, img) {
  padding-left: 32px;
}
.btn-square svg, .btn-square img {
  position: absolute;
  top: calc(50% - 8px);
  left: 16px;
  width: 16px;
  height: 16px;
  object-fit: contain;
  aspect-ratio: 1;
}

/* ============================================================
   Header
   ============================================================ */
/* -- ハンバーガーボタン -- */
.humberger {
  display: block;
  height: 48px;
  margin-left: auto;
  position: relative;
  z-index: 12;
  width: 48px;
  border: none;
  background-color: transparent;
}
.humberger:hover {
  cursor: pointer;
}

.humberger.-active {
  position: fixed;
  right: 16px;
  top: 16px;
}

.humberger.-active .humberger__line {
  background-color: transparent;
}

.humberger.-active .humberger__line::before {
  top: 0;
  transform: rotate(45deg);
}

.humberger.-active .humberger__line::after {
  top: 0;
  transform: rotate(-45deg);
}

.humberger.-active .humberger__text::before {
  content: "閉じる";
}

.humberger__line {
  display: block;
  height: 2px;
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  background-color: var(--gray-pale);
  transition: 0.4s;
}

.humberger__line::before,
.humberger__line::after {
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  width: 100%;
  background-color: var(--gray-pale);
  transition: inherit;
}

.humberger__line::before {
  top: -6px;
}

.humberger__line::after {
  top: 6px;
}

.humberger__text {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.humberger__text::before {
  content: "メニュー";
  text-align: center;
  color: var(--gray-pale);
  font-size: 10px;
  font-weight: 900;
}

/* -- ヘッダー共通 -- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* pc */
@media (min-width: 768px) {
  .header.is-fixed {
    height: calc(var(--header-height) - 41px);
  }
  .header.is-fixed .header-top {
    position: relative;
    z-index: 10;
  }
  .header.is-fixed .header__submenu {
    animation: submenuFadeout 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s both;
  }
}
@keyframes submenuFadeout {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}
/* sp */
@media (max-width: 767px) {
  .header {
    /* JS で --header-height をセットする */
    top: calc(var(--header-height, 0px) * -1);
    transition: top 0s;
  }
  .header.is-fixed {
    top: 0;
    animation: headerSlideDown 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
  .header.is-fixed .header__submenu {
    animation: headerSlideDown 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s both;
  }
}
@keyframes headerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* -- ユーティリティエリア -- */
.header__utility-area {
  border-bottom: 1px solid var(--gray-dark-line, #1E2939);
  background: var(--gray-dark, #18181B);
  padding: 8px 0;
}

.header__utility-area .inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(4px, 0.5vw, 24px);
}

.header__utility-area .header__description {
  color: var(--white);
  font-size: clamp(0.625rem, 1.4vw, 0.875rem);
  flex-shrink: 0;
  width: fit-content;
  text-align: right;
  white-space: nowrap;
  letter-spacing: -0.05em;
}

.header__newtonai-form {
  width: 40%;
}

.header__utility-area .ai-form__input-wrap {
  height: auto;
  padding: 4px 4px 4px 0;
  background: var(--white);
  gap: 8px;
  border-radius: 8px;
}
.header__utility-area .ai-form__input-wrap .logo-ai {
  background: var(--red-primary);
  align-self: stretch;
  padding: 6px 8px 0 8px;
  margin: -5px 0 -5px -2px;
  border-radius: 8px 0 0 8px;
}
.header__utility-area .ai-form__input-wrap .logo-ai svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}
.header__utility-area .ai-form__input-wrap .ai-form__input::placeholder {
  color: var(--black-text);
}
.header__utility-area .ai-form__input-wrap .ai-form__submit {
  width: 24px;
  height: 24px;
  rotate: 90deg;
}

.header__utility-area a {
  flex-shrink: 0;
  color: #FFF;
  font-size: clamp(0.625rem, 1.4vw, 0.875rem);
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: -0.1em;
}

.header__utility-area a.about-btn {
  text-decoration: underline;
}
.header__utility-area a.about-btn:hover {
  text-decoration: none;
}

.header__utility-area .member-btn,
.header__utility-area .login-btn {
  flex-shrink: 0;
  display: flex;
  padding: 4px;
  justify-content: center;
  align-items: center;
  gap: 2px;
  border-radius: 4px;
  border: 1px solid #000;
  background: var(--red-primary, #EA1815);
}
.header__utility-area .member-btn svg,
.header__utility-area .login-btn svg {
  display: none;
  width: 16px;
  height: 16px;
  fill: #FFF;
}
.header__utility-area .member-btn:hover,
.header__utility-area .login-btn:hover {
  background: #fff;
  color: var(--red-primary);
  border-color: var(--red-primary);
  text-decoration: none;
}
.header__utility-area .member-btn:hover svg,
.header__utility-area .login-btn:hover svg {
  fill: var(--red-primary);
}

.header__utility-area .login-btn {
  background: var(--white);
  color: var(--red-primary);
}
.header__utility-area .login-btn svg {
  fill: var(--red-primary);
}
.header__utility-area .login-btn:hover {
  background: var(--gray-dark);
  color: var(--white);
}
.header__utility-area .login-btn:hover svg {
  fill: var(--red-primary);
}

.header__utility-area .about-btn svg {
  display: none;
  fill: #FFF;
}

.header__utility-area .ai-btn {
  display: none;
  position: absolute;
  z-index: 10;
  top: 12px;
  right: 160px;
  width: fit-content;
  height: 24px;
  padding: 0 8px 8px 8px;
  border-radius: 50px;
  border: 1px solid var(--red-primary, #EA1815);
  background: linear-gradient(0deg, #18181B 0%, #43434C 100%);
}

/* -- メインメニュー・サブメニュー -- */
.header__main-menu {
  background: var(--black);
  border-bottom: 1px solid var(--gray-dark-line, #1E2939);
}
.header__main-menu .header__logo-area img {
  height: clamp(24px, 3vw, 40px);
  width: auto;
}

.header__submenu {
  background: var(--gray-dark);
  border-bottom: 1px solid var(--red-primary, #EA1815);
}

/*.header__submenu .header__inner {
  overflow-x: scroll;
}
 */
.header__submenu ul {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.header__submenu li {
  /*width: 100%;*/
  flex-grow: 1;
}

.header__submenu a {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--white);
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}
.header__submenu a:hover {
  background: var(--red-primary, #EA1815);
}

/* -- ユーティリティエリア SP -- */
@media (max-width: 800px) {
  .header__utility-area {
    display: contents;
    height: 0;
    width: 0;
  }
  .header__utility-area .ai-btn {
    display: block;
  }
  .header__utility-area .member-btn,
  .header__utility-area .login-btn,
  .header__utility-area .about-btn {
    position: absolute;
    z-index: 10;
    top: 12px;
    right: 60px;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    text-indent: -9999px;
    font-size: 0;
  }
  .header__utility-area .member-btn svg,
  .header__utility-area .login-btn svg,
  .header__utility-area .about-btn svg {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .header__utility-area .member-btn {
    right: 92px;
  }
  .header__utility-area .about-btn {
    right: 124px;
    border: 1px solid var(--gray);
  }
  .header__utility-area .inner {
    display: contents;
  }
  .header__utility-area .header__description {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--gray-dark-line, #1E2939);
  }
  .header__utility-area .ai-form__input-wrap {
    display: none;
  }
}
/* -- サブメニュー SP -- */
@media (max-width: 640px) {
  .header__submenu {
    position: relative;
  }
  .header__submenu::before, .header__submenu::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 24px;
    height: 100%;
    color: var(--red-primary);
    background: var(--gray-dark) url(../images/icon/icon-arrow-angle.svg) no-repeat center;
  }
  .header__submenu::after {
    left: auto;
    right: 0;
    rotate: 180deg;
  }
  .header__submenu .header__inner {
    overflow-x: scroll;
  }
  .header__submenu ul {
    width: auto;
    padding: 0 32px;
    flex-wrap: nowrap;
  }
}
/* -- ナビゲーション共通 -- */
.header__inner {
  position: relative;
  max-width: 100%;
  padding: 0 4px;
  display: flex;
  align-items: center;
}

.header__nav-area {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 10;
  height: 100dvh;
  width: 100%;
  max-width: 480px;
  visibility: hidden;
  padding-top: 60px;
  background-color: var(--gray-dark);
  transition: 0.4s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.header__nav-area.-active {
  right: 0;
  visibility: visible;
}

.global-navigation {
  padding: 24px;
}

.global-navigation__list {
  list-style: none;
}

.global-navigation__list > li {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-line);
}
.global-navigation__list > li:hover::after {
  display: none;
}

.global-navigation__list > li + li:has(.js-sp-accordion-trigger) {
  padding-right: 16px;
}

.global-navigation__link {
  color: var(--white);
  transition: color 0.4s;
}

.global-navigation__link.-accordion {
  position: relative;
  background: none;
  border: none;
  appearance: none;
  width: 100%;
  padding: 0;
  text-align: left;
  font-size: 1rem;
}

.global-navigation__link.-accordion::after {
  content: "";
  display: block;
  height: 12px;
  position: absolute;
  top: 50%;
  right: 5px;
  width: 2px;
  background-color: #ed3242;
  transform: translateY(-50%);
  transition: transform 0.4s;
}

.global-navigation__link.-accordion::before {
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  top: 50%;
  right: 0;
  width: 12px;
  background-color: #ed3242;
  transform: translateY(-50%);
}

.global-navigation__link.-active::after {
  transform: translateY(-50%) rotate(-90deg);
}

.global-navigation__link.btn-primary {
  height: unset;
}

.global-navigation__list > li + li:has(.btn-primary) {
  display: flex;
  align-items: center;
}
.global-navigation__list > li + li:has(.btn-primary):hover::after {
  display: none;
}

.accordion {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: 0.4s;
}

.accordion.-active {
  height: auto;
  padding-top: 30px;
  visibility: visible;
}

.accordion__link {
  display: block;
  padding: 8px 0;
  color: var(--white);
}
.accordion__link:hover {
  text-decoration: underline;
}

/* -- ナビゲーション PC (801px以上) -- */
@media (min-width: 801px) {
  .humberger {
    display: none;
  }
  .header {
    width: 100%;
  }
  .header__inner {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    gap: clamp(16px, 2vw, 40px);
    background: var(--black);
  }
  .header__nav-area {
    position: static;
    left: auto;
    width: auto;
    height: auto;
    max-width: none;
    visibility: visible;
    padding-top: 0;
    background-color: transparent;
    transition: none;
    overflow-y: visible;
  }
  .header__nav-area.-active {
    left: auto;
    visibility: visible;
  }
  .global-navigation {
    padding: 0;
    height: 100%;
  }
  .global-navigation__list {
    display: flex;
    gap: clamp(16px, 2vw, 40px);
    height: 100%;
  }
  .global-navigation__list > li {
    padding: 0;
    border-bottom: none;
  }
  .global-navigation__list > li:hover::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    display: block;
    background: var(--red-primary);
  }
  .global-navigation__list > li + li {
    margin-top: 0;
  }
  .global-navigation__link {
    font-size: 1rem;
    display: grid;
    place-items: center;
    gap: 4px;
    height: 100%;
    color: var(--white);
    transition: color 0.4s;
    padding: 12px 0;
  }
  .global-navigation__link:hover {
    cursor: pointer;
  }
  .global-navigation__list > li {
    position: relative;
  }
  .global-navigation__link.-accordion {
    position: relative;
  }
  .global-navigation__link.-accordion::after {
    right: -10px;
  }
  .global-navigation__link.-accordion::before {
    right: -15px;
  }
  .accordion {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background-color: var(--gray-dark);
    box-shadow: 0 2px 8px rgb(0, 0, 0);
    padding: 16px;
    height: auto !important;
    padding-top: 16px !important;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    border-radius: 8px;
  }
  .accordion.-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding-top: 15px !important;
  }
}
/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  background: var(--gray-dark);
  border-bottom: 1px solid var(--gray-line);
  font-size: 0.75rem;
  color: var(--gray-pale);
}
.breadcrumb a:not(.bc-home):hover {
  text-decoration: underline;
}

.breadcrumb .inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.breadcrumb a {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a::after {
  content: "";
  margin: 0 4px;
  display: block;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--gray-pale);
  border-right: 1px solid var(--gray-pale);
  rotate: 45deg;
}

.bc-home svg {
  width: 16px;
  height: 16px;
  fill: var(--gray-pale);
  display: block;
}

.bc-home:hover svg {
  fill: var(--red-primary);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
}

.footer-logo-bar {
  background: var(--gray-dark);
  border-bottom: 1px solid var(--gray-line);
  width: 100%;
  padding: 8px 0;
  display: flex;
  justify-content: center;
}

.footer-cols {
  width: min(1200px, 100%);
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 150px;
}

.footer-col-ttl {
  font-family: var(--font-en), sans-serif;
  font-size: 1rem;
  color: var(--white);
}

.footer-col-ttl-sub {
  font-size: 0.875rem;
  color: var(--white);
}

.footer-col hr {
  border: none;
  border-top: 1px solid var(--red-primary);
}

.footer-link {
  font-size: 0.875rem;
  color: var(--gray-pale);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.footer-link.footer-link-indent {
  padding-left: 16px;
}

.footer-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--white);
}

.footer-sns-bar {
  background: var(--gray-dark);
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  padding: 8px 16px;
  width: min(1200px, 100% - 48px);
  display: flex;
  justify-content: center;
}

.footer-sns {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-sns img {
  opacity: 0.8;
  transition: opacity 0.2s;
  display: block;
}

.footer-sns img:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 0.6875rem;
  color: var(--gray-pale);
  letter-spacing: -0.3px;
  text-align: center;
  padding: 0 16px;
}

@media (max-width: 800px) {
  .footer-cols {
    flex-wrap: wrap;
  }
  .footer-col {
    width: calc(50% - 12px);
    min-width: unset;
  }
}
/* ============================================================
   Heading
   ============================================================ */
/* -- カテゴリタイトル -- */
.cat-title {
  background: var(--gray-dark);
  border: 1px solid var(--gray-line);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  align-items: center;
  gap: 4px 16px;
  flex-wrap: wrap;
  box-shadow: 0 1px 0 0 var(--red-primary);
}

.cat-title-jp {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}
.cat-title-jp::after {
  content: "";
  display: block;
  width: 1px;
  height: 20px;
  background: var(--gray);
  rotate: 20deg;
}

.cat-title-en {
  font-family: "Anton", sans-serif;
  font-size: 1.125rem;
  color: var(--gray);
  line-height: 1;
}

.cat-summary {
  color: #fff;
}

/* -- セクション見出し -- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 8px;
}
.section-head .btn-primary {
  background: var(--white);
  border-color: var(--red-primary);
  color: var(--red-primary);
}
.section-head .btn-primary svg {
  fill: var(--red-primary);
}
.section-head .btn-primary:hover {
  background: var(--red-primary);
  color: var(--white);
}
.section-head .btn-primary:hover svg {
  fill: var(--white);
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title__line {
  display: block;
  width: 80px;
  height: 3px;
  background: var(--red-primary);
  border: none;
}

.section-title__jp {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--black-text);
  line-height: 1.3;
}

.section-head + .section-summary {
  margin-top: -16px;
  font-size: 0.875rem;
}

@media (max-width: 800px) {
  .section-head .btn-primary {
    width: 40px;
    height: 40px;
    padding: 0;
    text-indent: -9999px;
  }
  .section-head .btn-primary svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
  }
}
@media (max-width: 640px) {
  .section-head + .section-summary {
    margin-top: -16px;
  }
}
/* -- 記事内見出し（L字ライン） -- */
.title-angleline,
.richtext h2,
.article-body h2 {
  position: relative;
  padding: clamp(16px, 2vw, 24px) 0 0 clamp(16px, 2vw, 24px);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--black-text);
  line-height: 1.3;
}
.title-angleline::before, .title-angleline::after,
.richtext h2::before,
.richtext h2::after,
.article-body h2::before,
.article-body h2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 40px;
  background: var(--red-primary);
}
.title-angleline::after,
.richtext h2::after,
.article-body h2::after {
  top: 4px;
  rotate: -90deg;
  transform-origin: top left;
}

/* -- 記事内見出し（上ライン） -- */
.title-topline,
.richtext h3,
.article-body h3 {
  position: relative;
  padding-top: 16px;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--black-text);
  line-height: 1.3;
}
.title-topline::before,
.richtext h3::before,
.article-body h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--red-primary);
}

/* -- 記事内見出し（アイコン付き） -- */
.title-icon {
  display: flex;
  align-items: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}
.title-icon .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red-primary);
  margin-right: 16px;
}
.title-icon .icon svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

/* -- カテゴリタイトルバー（ビューア用） -- */
.category-title {
  background: var(--gray-dark);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.category-title__name {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.8;
  white-space: nowrap;
}

.category-title__sep {
  color: var(--gray);
  font-size: 1rem;
  flex-shrink: 0;
}

.category-title__issue {
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 400;
  color: var(--gray);
  white-space: nowrap;
}

/* ============================================================
   Card
   ============================================================ */
/* -- グリッドレイアウト -- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

.card-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 800px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
  }
  .card-grid .card:not(:first-child) {
    flex-direction: row;
    align-items: center;
  }
  .card-grid .card:not(:first-child) .card-thumb {
    max-width: 50%;
    flex-shrink: 0;
  }
  .card-grid .card:not(:first-child) .card-summary {
    display: none;
  }
  .card-grid-2col .card:not(:first-child) {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-grid-2col .card:not(:first-child) .card-thumb {
    max-width: unset;
  }
}
/* -- カード基本 -- */
.card {
  position: relative;
  color: var(--white);
  background: var(--gray-dark);
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--red-primary);
  text-decoration: underline;
}
.card:hover .card-thumb img {
  opacity: 1;
}

.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px 12px 12px 0;
  overflow: hidden;
}
.card-thumb:not(:has(.card-cat)) {
  border-radius: 12px;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  display: block;
}

.card-thumb.card-thumb-book img {
  object-fit: contain;
}

.card-cat {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--gray-dark);
  max-width: 90%;
  max-height: calc(1em + 8px);
  padding: 8px 12px 0 0;
  border-top-right-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.card-cat::before, .card-cat::after {
  content: "";
  position: absolute;
  block-size: 16px;
  aspect-ratio: 1;
  mask-image: radial-gradient(circle at 100% 100%, transparent 16px, black 17px);
  background-color: inherit;
}
.card-cat::before {
  inset-block-end: 0;
  inset-inline-start: 100%;
  bottom: 0;
  rotate: 270deg;
}
.card-cat::after {
  inset-block-start: -16px;
  inset-inline-start: 0;
  rotate: 270deg;
}

.card-title {
  position: relative;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

.card-summary {
  font-size: 0.875rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -- 白背景バリアント -- */
.card-white {
  color: var(--black-text);
  background: var(--white);
  border-color: var(--gray-pale-line);
}
.card-white .card-thumb {
  background: var(--gray-dark);
}
.card-white .card-cat {
  background: var(--white);
  color: var(--red-primary);
}
.card-white .card-cat::before, .card-white .card-cat::after {
  background-color: inherit;
}

/* -- 動画カードバリアント -- */
.card.card-movie .card-title {
  padding-right: 44px;
  min-height: 40px;
  -webkit-line-clamp: 4;
  white-space: wrap;
}
.card.card-movie .card-title::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: block;
  width: 40px;
  height: 40px;
  background: url(../images/icon/icon-movie.svg) no-repeat center center/contain;
}

@media (max-width: 640px) {
  .card.card-movie .card-title {
    padding-right: 28px;
  }
  .card.card-movie .card-title::before {
    width: 24px;
    height: 24px;
  }
}
/* -- Newton Special カード -- */
.card.card-newtonspecial:hover {
  border-color: var(--gray-line);
  text-decoration: none;
}
.card.card-newtonspecial .card-newtonspecial__btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}
.card.card-newtonspecial .card-newtonspecial__btns .btn-secondary {
  padding: 16px;
  border-color: #505C64;
}
.card.card-newtonspecial .card-newtonspecial__btns [class*=btn-] {
  font-size: clamp(0.875rem, 1.6vw, 1rem);
}

@media (max-width: 800px) {
  .card-newtonspecial__btns [class*=btn-] {
    min-width: unset;
  }
}
/* -- Newton+ グリッド -- */
.card-grid-newtonplus {
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.card-grid-newtonplus .card {
  position: relative;
  padding: 0;
  border-color: var(--gray-line);
  background: transparent;
  border: none;
}
.card-grid-newtonplus .card:first-of-type, .card-grid-newtonplus .card:nth-of-type(3n + 1) {
  grid-column: span 2;
}
.card-grid-newtonplus .card:first-of-type .card-thumb, .card-grid-newtonplus .card:nth-of-type(3n + 1) .card-thumb {
  position: relative;
}
.card-grid-newtonplus .card:first-of-type .card-thumb::before, .card-grid-newtonplus .card:nth-of-type(3n + 1) .card-thumb::before {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
}
.card-grid-newtonplus .card:first-of-type .card-title, .card-grid-newtonplus .card:nth-of-type(3n + 1) .card-title {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 0;
  padding: 0 24px;
  width: 100%;
}
.card-grid-newtonplus .card .card-thumb {
  aspect-ratio: 16/9;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .card-grid.card-grid-newtonplus {
    gap: 40px 24px;
  }
  .card-grid.card-grid-newtonplus .card:not(:first-child) {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-grid.card-grid-newtonplus .card:not(:first-child) .card-thumb {
    max-width: unset;
  }
}
/* -- カテゴリカード -- */
.card-category {
  gap: 16px !important;
}
.card-category .title-link {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--red-primary, #EA1815);
}
.card-category .title-link a {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-black, #333);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 130%;
}
.card-category .title-link a .icon {
  display: flex;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  aspect-ratio: 1/1;
  border-radius: 50px;
  border: 1px solid var(--red-primary);
}
.card-category .title-link a .icon svg {
  width: 20px;
  height: 20px;
  fill: var(--red-primary);
}
.card-category .title-link a:hover {
  color: var(--red-primary);
}
.card-category .title-link a:hover .icon {
  background: var(--red-primary);
}
.card-category .title-link a:hover .icon svg {
  fill: var(--white);
}
.card-category .link-list {
  border-top: 1px solid var(--gray-pale-line);
  border-bottom: 1px solid var(--gray-pale-line);
}
.card-category .link-item {
  padding: 16px 16px 16px 0;
  border-color: var(--gray-pale-line);
  font-weight: bold;
}
.card-category .link-item a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-category-top .card-thumb {
  margin-bottom: 16px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: var(--gray-dark);
}
.card-category-top .card-title {
  position: relative;
  padding-right: 16px;
  line-height: 1.3;
}
.card-category-top .card-title::before {
  position: absolute;
  top: 50%;
  right: 0;
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-top: 1px solid var(--black-text);
  border-right: 1px solid var(--black-text);
  transform: rotate(45deg) translateY(-50%);
}
.card-category-top .card-summary {
  margin-top: 8px;
}

.card-category-top:hover .card-thumb img {
  opacity: 1;
}

.card-category-top:hover .card-title {
  text-decoration: underline;
}

/* -- 会員ステータスバッジ -- */
.card.status-member .card-title,
.card.status-member-paid .card-title {
  padding-right: 32px;
}

.card-category-top.card-status-member .card-title,
.card-category-top.card-status-member-paid .card-title,
.link-item.status-member-paid,
.link-item.status-member {
  padding-right: 40px;
}

.card.card-movie.status-member .card-title,
.card.card-movie.status-member-paid .card-title {
  padding-right: 64px;
}

.card.status-member .card-title::after,
.card.status-member-paid .card-title::after,
.card.card-movie.status-member .card-title::after,
.card.card-movie.status-member-paid .card-title::after,
.card-category-top.card-status-member .card-title::after,
.card-category-top.card-status-member-paid .card-title::after,
.link-item.status-member::after,
.link-item.status-member-paid::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: url(../images/icon/icon-lock-silver.svg) no-repeat center center/contain;
}

.card.status-member-paid .card-title::after,
.card.card-movie.status-member-paid .card-title::after,
.card-category-top.card-status-member-paid .card-title::after,
.link-item.status-member-paid::after {
  background: url(../images/icon/icon-lock-gold.svg) no-repeat center center/contain;
}

.card.card-movie.status-member .card-title::after,
.card.card-movie.status-member-paid .card-title::after {
  right: 40px;
}

.card-category-top.card-status-member .card-title::after,
.card-category-top.card-status-member-paid .card-title::after,
.link-item.status-member::after,
.link-item.status-member-paid::after {
  right: 8px;
}

@media (max-width: 640px) {
  .card.status-member .card-title::after,
  .card.status-member-paid .card-title::after,
  .card.card-movie.status-member .card-title::after,
  .card.card-movie.status-member-paid .card-title::after,
  .card-category-top.card-status-member .card-title::after,
  .card-category-top.card-status-member-paid .card-title::after,
  .link-item.status-member::after,
  .link-item.status-member-paid::after {
    width: 24px;
    height: 24px;
  }
  .card.status-member .card-title,
  .card.status-member-paid .card-title {
    padding-right: 24px;
  }
  .card-category-top.card-status-member .card-title,
  .card-category-top.card-status-member-paid .card-title,
  .link-item.status-member-paid,
  .link-item.status-member {
    padding-right: 32px;
  }
  .card.card-movie.status-member .card-title,
  .card.card-movie.status-member-paid .card-title {
    padding-right: 44px;
  }
  .card.card-movie.status-member .card-title::after,
  .card.card-movie.status-member-paid .card-title::after {
    right: 24px;
  }
}
/* -- 書籍カード -- */
.book-grid {
  display: flex;
  gap: 24px;
}

.book-card {
  width: 100%;
  background: var(--gray-dark);
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  color: var(--white);
}

.book-card__img {
  height: 200px;
  width: 100%;
  object-fit: contain;
}

.book-card__info {
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.6;
}

.book-card__vol {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
}

.book-card__feature {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-pale);
}

.book-card__meta {
  font-size: 0.75rem;
  color: var(--gray);
}

.book-card .btn-square {
  padding: 16px 32px 16px 16px;
  min-width: unset;
  width: 100%;
}

.book-card .btn-square svg {
  left: auto;
  right: 16px;
  fill: none;
  stroke: var(--white);
  width: 16px;
  height: 16px;
}

.book-card .btn-square:hover svg {
  stroke: var(--red-primary);
}

@media (max-width: 800px) {
  .book-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .book-grid {
    grid-template-columns: repeat(4, 1fr);
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    overflow-x: auto;
  }
  .book-card {
    width: 250px;
  }
}
/* -- 関連サイトカード -- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--gray-pale-line);
}
.related-card:hover {
  border-color: var(--red-primary);
}
.related-card:hover .related-card__name {
  color: var(--red-primary);
}
.related-card:hover .related-card__name svg {
  stroke: var(--red-primary);
}

.related-card-img-area {
  display: grid;
  place-items: center;
  height: 100px;
}
.related-card-img-area img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin: 0 auto;
}

.related-card__name {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 700;
  color: var(--black-text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.related-card__name svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--black-text);
}

.related-card__desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .related-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }
  .related-card__desc {
    display: none;
  }
}
/* ============================================================
   Box
   ============================================================ */
/* -- ダーク / ライトボックス -- */
.box-dark,
.box-light {
  background: var(--gray-dark);
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--white);
}
.box-dark [class*=title-],
.box-light [class*=title-] {
  color: var(--white);
}
.box-dark p,
.box-light p {
  line-height: 1.8;
}
.box-dark .box-dark-summary,
.box-light .box-dark-summary {
  margin-top: -12px;
  color: var(--gray);
}

.box-light {
  background: var(--white);
  border: 1px solid var(--gray-pale-line);
  color: var(--text-black);
}
.box-light [class*=title-] {
  color: var(--text-black);
}
.box-light .link-list .link-item {
  color: var(--text-black);
  font-size: 1rem;
}
.box-light .link-list .link-item::before {
  margin-right: 4px;
  border-color: var(--text-black);
}

/* ============================================================
   List
   ============================================================ */
/* -- リンクリスト -- */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.link-item {
  position: relative;
  padding: 8px 0;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  border-bottom: 1px solid var(--gray-line);
  transition: color 0.2s;
}
.link-item::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--gray-pale-line);
  border-right: 1px solid var(--gray-pale-line);
  transform: rotate(45deg) translateY(-50%);
}

.link-item:last-child {
  border-bottom: none;
}

.link-item:hover {
  color: var(--gray-pale);
  text-decoration: underline;
}

/* -- サークルリスト -- */
.circle-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.circle-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.circle-list li::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 4px solid var(--red-primary);
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

a.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px;
  background: var(--gray-dark);
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
a.page-btn:first-of-type svg {
  rotate: 180deg;
}
a.page-btn svg {
  stroke: var(--white);
  fill: transparent;
}

a.page-btn:hover {
  background: var(--red-primary);
}

a.page-btn.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
}

/* -- 白背景バリアント -- */
.pagination-white a.page-btn {
  background: var(--white);
  border-color: var(--gray-dark);
  color: var(--gray-dark);
}
.pagination-white a.page-btn svg {
  stroke: var(--gray-dark);
}
.pagination-white a.page-btn:hover,
.pagination-white a.page-btn.active {
  background: var(--gray-dark);
  color: var(--white) !important;
}
.pagination-white a.page-btn:hover svg,
.pagination-white a.page-btn.active svg {
  stroke: var(--white);
}

/* ============================================================
   Article
   ============================================================ */
/* -- 記事ラッパー -- */
.article-wrap {
  background: var(--white);
  padding-bottom: 40px;
}

.article-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* -- 記事ヘッダー -- */
.article-header {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-title-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  order: 2;
}

.article-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--black-text);
  line-height: 1.3;
  text-align: center;
  order: 1;
}

.article-meta-row {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--gray-line);
  order: 3;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.875rem;
  line-height: 1;
  padding-top: 16px;
}

[class*=article-meta__] {
  min-height: 24px;
  display: flex;
  align-items: center;
}

.article-meta__cat {
  position: relative;
  font-weight: 700;
  color: var(--red-primary);
}
.article-meta__cat::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--red-primary);
}

.article-meta__date,
.article-meta__author {
  font-weight: 400;
  color: var(--black-text);
}

.article-meta__status,
.article-meta__status-paid {
  display: flex;
  padding: 3px 4px 4px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--gray, #A7B1B8);
  line-height: 1;
}

.article-meta__status-paid {
  border: 1px solid var(--yellow, #EEB700);
}

.article-summary {
  order: 2;
}

.article-sns {
  padding: 8px;
  background: var(--gray-pale);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  font-size: 0.875rem;
  line-height: 1;
}
.article-sns a {
  padding-right: 0 !important;
}
.article-sns a::after {
  display: none !important;
}

.article-sns-item,
.article-sns-item.--bookmark button {
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-sns-item:not(.--bookmark) {
  padding-right: 16px;
  border-right: 1px solid var(--gray);
}

.article-sns-item.--bookmark button {
  padding: 0;
  text-decoration: none !important;
  gap: 4px;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  font-weight: normal;
  color: var(--black-text);
}
.article-sns-item.--bookmark button:hover {
  color: var(--red-primary);
}
.article-sns-item.--bookmark button:hover path {
  fill: var(--red-primary);
}

.article-sns-item span {
  display: contents;
}

.article-sns img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

@media (max-width: 480px) {
  .article-sns-item span {
    display: none;
  }
}
.article-hero {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 1200/630;
  overflow: hidden;
  order: 1;
}
.article-hero:has(iframe) {
  aspect-ratio: 16/9;
}
.article-hero:has(iframe) iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -- 記事本文 -- */
.article-body {
  width: min(800px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.125rem;
}

.article-body p {
  color: var(--black-text);
  line-height: 1.5;
}

.article-body a:not(.btn-primary, .btn-secondary, .tag) {
  width: fit-content;
  text-decoration: underline;
}
.article-body a:not(.btn-primary, .btn-secondary, .tag):hover {
  text-decoration: none;
  color: var(--red-primary);
}

.article-body a[target=_blank],
.article-body a[href$=".pdf"] {
  position: relative;
  display: inline-block;
  padding-right: 24px;
}
.article-body a[target=_blank]::after,
.article-body a[href$=".pdf"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  width: 16px;
  height: 16px;
  background: url(../images/icon/icon-open.svg) no-repeat center center;
  background-size: contain;
  transform: translateY(-50%);
}
.article-body a[target=_blank]:hover::after,
.article-body a[href$=".pdf"]:hover::after {
  background-image: url(../images/icon/icon-open-red.svg);
}

.article-body a[href$=".pdf"]::after {
  background-image: url(../images/icon/icon-pdf.svg);
}
.article-body a[href$=".pdf"]:hover::after {
  background-image: url(../images/icon/icon-pdf-red.svg);
}

.article-body a[target=_blank]:has(img) {
  width: fit-content;
  display: block;
  margin: 0 auto;
  padding-right: 0;
}
.article-body a[target=_blank]:has(img)::after {
  display: none;
}

/* -- リスト -- */
.article-body ul,
.article-body ol {
  font-size: 1.125rem;
  color: var(--black-text);
  line-height: 1.8;
  padding-left: 1.8em;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body ul li + li,
.article-body ol li + li {
  margin-top: 4px;
}

.article-body dt {
  font-weight: bold;
  border-left: 4px solid gray;
  margin-bottom: 16px;
  padding-left: 8px;
  line-height: 1.3;
}

.article-body dd {
  padding-left: 12px;
  margin-bottom: 8px;
  line-height: 1.8;
}

/* -- 引用 -- */
.article-body blockquote {
  border-left: 3px solid var(--red-primary);
  padding: 16px 0 16px 24px;
  font-size: 1.125rem;
  color: var(--black-text);
  line-height: 1.8;
}

/* -- メディア -- */
.article-image-area,
.article-movie-area,
.image-caption,
.article-body figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.image-caption,
.article-body figure {
  width: fit-content;
  margin: 0 auto;
}

.article-image-area img,
.image-caption img,
.article-body .richtext img {
  /*object-fit: contain;
  width: 100%;
  height: 100%;*/
  max-height: 800px;
  display: block;
  margin: 0 auto;
}

.article-image-caption,
.image-caption figcaption,
.article-body figcaption {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--black-text);
  line-height: 1.3;
}

.article-body figcaption h3 {
  margin-bottom: 8px;
}
.article-body figcaption h3::before {
  display: none;
}
.article-body figcaption p {
  margin-bottom: 16px;
}
.article-body figcaption li {
  font-size: 0.875rem;
  text-align: left;
}

.caption-text {
  font-size: 0.875rem;
  color: var(--black-text);
  line-height: 1.3;
}

.article-movie-area iframe,
.article-body iframe {
  aspect-ratio: 16/9;
  object-fit: contain;
  width: 100%;
  height: 100%;
}

/* -- テーブル -- */
.article-body table {
  width: 100%;
  border-collapse: collapse;
}

.article-body table th {
  background: var(--gray-pale);
  font-weight: 700;
  color: var(--black);
  padding: 8px;
  border-bottom: 1px solid var(--gray);
  border-right: 1px solid var(--gray);
  line-height: 1.5;
  text-align: center;
  font-size: clamp(0.875rem, 1.4vw, 1rem);
}

.article-body table th:last-child {
  border-right: none;
}

.article-body table td {
  font-weight: 400;
  color: var(--black);
  padding: 8px;
  border-bottom: 1px solid var(--gray);
  border-right: 1px solid var(--gray);
  line-height: 1.5;
  font-size: clamp(0.875rem, 1.4vw, 1rem);
}

.article-body table td:last-child {
  border-right: none;
}

.article-body table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 800px) {
  .table-wrapper {
    overflow-x: auto;
  }
  .table-wrapper .article-body table {
    width: auto;
  }
}
/* -- 外枠：幅を親の内寸に固定する役 -- */
.table-scroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  margin-inline: auto;
}

/* -- 内側：スクロールする役 -- */
.table-scroll__viewport {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* -- テーブル本体 -- */
.table-fixcol {
  width: 100%;
  min-width: 720px;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}
.table-fixcol a {
  text-decoration: underline;
}
.table-fixcol a:hover {
  text-decoration: none;
  color: var(--red-primary);
}
.table-fixcol .btn-primary {
  text-decoration: none;
  min-width: unset;
}

.table-fixcol th,
.table-fixcol td {
  padding: 12px 10px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  vertical-align: middle;
  background: #fff;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.table-fixcol thead th {
  background: var(--gray-dark);
  color: #fff;
  font-weight: 700;
  border-top: 1px solid var(--gray-line);
  border-right-color: var(--gray-line);
  border-bottom-color: var(--gray-line);
}

.table-fixcol th:not(:first-child),
.table-fixcol td:not(:first-child) {
  white-space: nowrap;
}

.table-fixcol th:first-child,
.table-fixcol td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 120px;
  min-width: 120px;
  text-align: left;
  font-weight: 700;
  white-space: normal;
  background: #f7f9fa;
  border-left: 1px solid #ddd;
  box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.2);
}

.table-fixcol thead th:first-child {
  z-index: 3;
  background: var(--gray-dark);
  border-left-color: #2c3e50;
}

.table-fixcol tbody tr:nth-child(even) td:not(:first-child) {
  background: #fafbfc;
}

/* -- 書籍情報ブロック -- */
.book-info {
  background: var(--gray-pale);
  border: 1px solid var(--gray-pale-line);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.book-info__img-wrap {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.book-info__img {
  width: 100%;
  max-width: 152px;
  height: auto;
  display: block;
}

.book-info__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-info__issue {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--black-text);
  line-height: 1.3;
}

.book-info__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--black-text);
  line-height: 1.3;
}

.book-info__meta {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--black-text);
  line-height: 1.3;
}

.book-info__btns {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.book-info__btns .btn-primary, .book-info__btns .btn-secondary {
  display: inline-flex !important;
  padding-right: 16px !important;
}
.book-info__btns .btn-primary::after, .book-info__btns .btn-secondary::after {
  display: none;
}

@media (max-width: 800px) {
  .book-info {
    align-items: flex-start;
  }
  .book-info__body {
    gap: 0;
  }
  .book-info__img-wrap {
    width: 100px;
    align-items: flex-start;
    height: auto;
  }
  .book-card__img {
    height: auto;
  }
  .book-info__btns {
    flex-direction: column;
    align-items: center;
  }
  .book-info__btns .btn-square {
    width: 100%;
    min-width: unset;
    padding: 8px 8px 8px 24px !important;
    font-size: 0.875rem;
  }
  .book-info__btns .btn-square svg {
    left: 8px;
  }
}
/* -- ログインゲート -- */
.article-login {
  border-top: 1px solid var(--gray-pale-line);
  border-bottom: 1px solid var(--gray-pale-line);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.article-login__text {
  font-size: 1.125rem;
  color: var(--black-text);
  line-height: 1.8;
  text-align: center;
}

.article-login__btns {
  display: flex;
  gap: 8px;
}

@media (max-width: 800px) {
  .article-login__btns {
    flex-direction: column;
  }
}
/* -- タグ -- */
.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-tags__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

a.tag {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--gray-line);
  color: var(--black-text);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  transition: border-color 0.2s;
  text-decoration: none;
}

a.tag:hover {
  background-color: var(--gray-dark);
  color: var(--white);
}

/* -- 著者プロフィール -- */
.writer-box {
  border: 1px solid var(--gray-pale-line);
  border-radius: 8px;
  padding: 16px;
  min-height: 133px;
  display: flex;
  align-items: center;
}

.writer-box__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--black-text);
}

.writer-box__name {
  font-weight: 700;
  line-height: 1.3;
}

.writer-box__bio {
  font-weight: 400;
  line-height: 1.8;
}

/* -- 関連記事セクション -- */
.related-section {
  background: var(--white);
  padding: 24px 0;
  margin-bottom: 0;
}

.related-section + .related-section {
  padding-top: 0;
}

/* ============================================================
   FAQ / Accordion
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
}

.faq-item {
  background: var(--gray-dark);
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover {
  border-color: var(--red-primary);
}

.faq-item:focus-within {
  border-color: var(--red-primary);
  outline: none;
}

.faq-trigger {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  transition: background 0.15s;
}

.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-trigger:focus {
  outline: none;
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--red-primary);
  outline-offset: -2px;
  border-radius: 12px;
}

.faq-trigger__question {
  flex: 1;
  min-width: 0;
}

.faq-trigger__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-trigger__icon svg {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--gray);
}

.faq-trigger[aria-expanded=true] .faq-trigger__icon svg {
  transform: rotate(-90deg);
  color: var(--white);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-panel[hidden] {
  display: grid;
}

.faq-panel[aria-hidden=true] {
  grid-template-rows: 0fr;
}

.faq-panel[aria-hidden=false] {
  grid-template-rows: 1fr;
}

.faq-panel__inner {
  overflow: hidden;
}

.faq-panel__body {
  padding: 0 24px 24px;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.8;
}
.faq-panel__body a {
  text-decoration: underline;
}
.faq-panel__body a:hover {
  text-decoration: none;
}

.faq-panel__divider {
  display: block;
  height: 1px;
  background: var(--gray-line);
  margin: 0 24px 24px;
  opacity: 0;
  transition: opacity 0.2s 0s;
}

.faq-panel[aria-hidden=false] .faq-panel__divider {
  opacity: 1;
  transition: opacity 0.2s 0.15s;
}

@media (max-width: 800px) {
  .faq-heading__text {
    font-size: 1.5rem;
  }
  .faq-trigger {
    font-size: 16px;
  }
  .faq-panel__body {
    font-size: 16px;
  }
}
/* ============================================================
   Newton AI
   ============================================================ */
/* -- ページレイアウト -- */
.page-layout {
  display: flex;
  align-items: stretch;
  /*min-height: calc(100vh - 33px);*/
  height: calc(100dvh - 187px);
  min-height: auto;
  position: relative;
}

/* -- サイドバー -- */
.sidebar {
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  width: 320px;
  height: 100%;
  overflow-y: auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--white);
}

/* -- 新規チャットボタン -- */
.btn-new-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: var(--red-primary);
  color: var(--white);
  border: 1px solid var(--red-primary);
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  transition: opacity 0.2s;
  flex-shrink: 0;
  cursor: pointer;
}

.btn-new-chat:hover {
  background: #fff;
  color: var(--red-primary);
}
.btn-new-chat:hover svg path {
  stroke: var(--red-primary);
}

.btn-new-chat svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* -- チャット履歴 -- */
.sidebar-history {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-history__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black-text);
  line-height: 1.3;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-item {
  font-size: 16px;
  font-weight: 400;
  color: var(--black-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.history-item:hover,
.history-item.active {
  background: var(--gray-pale);
}

/* -- メインエリア -- */
.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  /*align-items: center;*/
  justify-content: center;
  padding: 40px;
  gap: 40px;
  /*min-height: 600px;*/
  border-left: 1px solid var(--gray);
}

/* -- AI 見出し -- */
.ai-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ai-heading__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--red-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.ai-heading__icon img {
  width: 40px;
  height: 40px;
  display: block;
}

.ai-heading__text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black-text);
  line-height: 1.3;
  white-space: nowrap;
}

/* -- AI 入力フォーム -- */
.ai-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.ai-form__input-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(800px, 100%);
  /*height: 72px;*/
  height: auto;
  padding: 16px;
  background: var(--gray-pale);
  border: 1px solid var(--gray-pale-line);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.composer {
  margin: 0 auto;
  width: min(800px, 100%);
}

.ai-form__input-wrap:focus-within {
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(234, 24, 21, 0.12);
}

.ai-form__input-wrap form {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.ai-form__input {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--black-text);
  line-height: 1;
  height: auto;
  background: none;
}

.ai-form__input::placeholder {
  color: var(--gray);
}

.ai-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--red-primary);
  border: 1px solid var(--red-primary);
  border-radius: 50%;
  flex-shrink: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}

.ai-form__submit:hover {
  background: #fff;
  color: var(--red-primary);
}
.ai-form__submit:hover svg path {
  stroke: var(--red-primary);
}

.ai-form__submit:hover svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ai-form__submit:focus-visible {
  outline: 2px solid var(--red-primary);
  outline-offset: 2px;
}

.ai-form__submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ai-form__submit svg {
  width: 16px;
  height: 16px;
}

.ai-form__note {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--black-text);
  line-height: 1.3;
  text-align: center;
}

/* -- Newton AI SP -- */
@media (max-width: 800px) {
  .page-layout {
    flex-direction: column;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    z-index: 200;
    width: min(300px, 85vw);
    border-right: 1px solid var(--gray-line);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 49;
  }
  .sidebar-overlay.open {
    display: block;
  }
  .sp-sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gray-pale);
    border-bottom: 1px solid var(--gray-pale-line);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--black-text);
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
  }
  .sp-sidebar-toggle svg {
    width: 16px;
    height: 16px;
  }
  .main-area {
    padding: 8px 16px;
    height: 100%;
    /*min-height: calc(100vh - 90px);*/
    justify-content: flex-start;
    border: none;
  }
  .ai-heading {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .ai-heading__text {
    font-size: 1.125rem;
    white-space: normal;
    text-align: center;
  }
  .ai-form__input-wrap {
    height: auto;
    min-height: 72px;
  }
}
@media (min-width: 801px) {
  .sp-sidebar-toggle {
    display: none;
  }
  .sidebar-overlay {
    display: none !important;
  }
}
/* ============================================================
   Top Page
   ============================================================ */
/* -- 共通 -- */
.site-top {
  background: var(--white);
}
.site-top section {
  margin-bottom: 0;
}

.top-information-bar,
.top-banner {
  background: var(--gray-dark);
}
.top-information-bar .inner,
.top-banner .inner {
  padding: 16px;
}

.top-information-bar .top-information-bar-contents {
  display: flex;
  align-items: center;
  border-radius: 50px;
  background: var(--white);
}
.top-information-bar .top-information-bar-title {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  flex-shrink: 0;
  gap: 10px;
  color: var(--red-primary, #EA1815);
  border-right: 1px solid var(--red-primary, #EA1815);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.top-information-bar .top-information-bar-text {
  display: flex;
  padding: 8px 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 0.875rem;
}
.top-information-bar .top-information-bar-text p a {
  text-decoration: underline;
}
.top-information-bar .top-information-bar-text p a:hover {
  text-decoration: none;
}

.top-banner .inner {
  align-items: center;
}

/* -- ヒーロースライダー -- */
.top-hero {
  background: var(--gray-dark);
}

.top-hero .inner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0;
}

.top-hero-main {
  width: 100%;
  max-width: 1168px;
}

#hero-slider {
  width: 100%;
  height: calc(100% - 34px);
  max-height: 540px;
}

#hero-slider .swiper-slide {
  position: relative;
  overflow: hidden;
}
#hero-slider .swiper-slide:hover .hero-slide_title {
  text-decoration: underline;
}

.hero-slide_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/9;
}

.hero-slide_body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 40px;
  padding-top: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
  color: var(--white);
}

.hero-slide_badges {
  display: flex;
  align-items: stretch;
  margin-bottom: 4px;
}

.hero-slide_badge-news {
  background: var(--red-primary);
  color: var(--white);
  font-family: var(--font-en), sans-serif;
  font-size: 1.125rem;
  line-height: 1;
  padding: 4px 24px;
  white-space: nowrap;
}

.hero-slide_badge-cat {
  background: var(--gray-dark);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 24px;
  white-space: nowrap;
}

.hero-slide_title {
  display: block;
  max-width: 600px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tap-slide__summary {
  display: block;
  max-width: 600px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tap-slide__summary:hover {
  text-decoration: underline;
}

#hero-slider .swiper-button-prev,
#hero-slider .swiper-button-next {
  width: 40px;
  height: 40px;
  top: calc(50% - 28px);
  margin-top: 0;
  background: var(--gray-dark);
  border-radius: 0;
}

#hero-slider .swiper-button-prev {
  left: 0;
}

#hero-slider .swiper-button-next {
  right: 0;
}

#hero-slider .swiper-button-prev::after,
#hero-slider .swiper-button-next::after {
  font-size: 0.6875rem;
  font-weight: 900;
  color: var(--white);
}

#hero-slider .swiper-button-prev:hover,
#hero-slider .swiper-button-next:hover {
  opacity: 0.8;
}

@media (max-width: 800px) {
  .top-hero-main {
    width: 100%;
  }
  #hero-slider {
    height: 60vh;
    min-height: 320px;
  }
  .hero-slide_body {
    padding: 160px 24px 24px;
  }
  .hero-slide_title {
    font-size: 1.125rem;
    max-width: 100%;
  }
  .hero-slide_badge-news,
  .hero-slide_badge-cat {
    font-size: 0.875rem;
    padding: 4px 14px;
  }
}
/* -- ヒーローピックアップ -- */
.top-hero-pickup {
  display: flex;
  padding: 16px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: var(--red-primary, #EA1815);
}
.top-hero-pickup .box-dark {
  position: relative;
  padding: 48px 16px 16px;
  height: 100%;
}
.top-hero-pickup .card-title::before {
  border-color: var(--gray-pale-line);
}
.top-hero-pickup .top-hero-pickup-label {
  position: absolute;
  top: -1px;
  left: 50%;
  translate: -50% 0;
  background: var(--red-primary);
  max-width: 90%;
  padding: 8px 40px;
  border-radius: 0 0 16px 16px;
  color: #FFF;
  text-align: center;
  font-family: var(--font-en), sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1;
}
.top-hero-pickup .top-hero-pickup-label::before, .top-hero-pickup .top-hero-pickup-label::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -15px;
  block-size: 16px;
  aspect-ratio: 1;
  mask-image: radial-gradient(circle at 100% 100%, transparent 16px, black 17px);
  background-color: inherit;
}
.top-hero-pickup .top-hero-pickup-label::before {
  rotate: 90deg;
}
.top-hero-pickup .top-hero-pickup-label::after {
  left: auto;
  right: -15px;
}
.top-hero-pickup .link-list {
  border-color: var(--gray-line);
}
.top-hero-pickup .link-item {
  font-size: 1rem;
  border-color: var(--gray-line);
}

@media (max-width: 800px) {
  .top-hero .inner {
    flex-direction: column;
  }
  .top-hero-pickup .card-category-top {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .top-hero-pickup .card-category-top .card-thumb {
    width: 50%;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .top-hero-pickup .card-category-top .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
}
/* -- AI セクション -- */
.top-ai {
  background: url(../images/bg-n-black.png) no-repeat center center/contain, linear-gradient(90deg, #18181B 0%, #3C3C3C 50.48%, #18181B 100%);
}
.top-ai .inner {
  gap: 24px;
  align-items: center;
  text-align: center;
  color: var(--white);
}
.top-ai .section-head {
  justify-content: center;
  color: var(--white);
}
.top-ai .ai-form__note {
  color: var(--gray);
}
.top-ai .top-ai-btns {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(4px, 1.6vw, 16px);
  justify-content: center;
  align-items: center;
}
.top-ai .top-ai-btns .btn-secondary {
  border-color: var(--gray-line);
}

/* -- news -- */
.top-news {
  border-top: 1px solid var(--gray-pale-line);
}

/* -- エディターズピック -- */
.top-editors-pick,
.top-tag {
  background: var(--red-primary);
}
.top-editors-pick .section-head,
.top-editors-pick .article-tags,
.top-tag .section-head,
.top-tag .article-tags {
  justify-content: center;
}
.top-editors-pick .section-head,
.top-tag .section-head {
  align-items: center;
  gap: 16px;
  color: var(--white);
}
.top-editors-pick .section-head h2,
.top-tag .section-head h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.top-editors-pick .section-head span,
.top-tag .section-head span {
  position: relative;
  color: var(--gray-pale);
  font-family: var(--font-en), serif;
}
.top-editors-pick .section-head span::after,
.top-tag .section-head span::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 0.2em;
  width: 2px;
  height: 1em;
  background: var(--white);
  rotate: 15deg;
}

@media (max-width: 640px) {
  .top-editors-pick .section-head h2,
  .top-tag .section-head h2 {
    flex-direction: column;
    gap: 2px;
  }
  .top-editors-pick .section-head h2 span,
  .top-tag .section-head h2 span {
    margin-left: 0;
    font-size: 1.125rem;
  }
  .top-editors-pick .section-head::after,
  .top-tag .section-head span::after {
    display: none;
  }
}
.top-editors-pick .inner {
  position: relative;
}
.top-editors-pick .inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url(../images/bg-n-black.png) no-repeat top right/contain;
}
.top-editors-pick .section-head {
  position: relative;
}
.top-editors-pick .card-grid {
  position: relative;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px;
}
.top-editors-pick .title-link a {
  color: var(--white);
}
.top-editors-pick .title-link a span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
.top-editors-pick .card-title {
  white-space: normal;
}

@media (max-width: 640px) {
  .top-editors-pick .inner::before {
    right: 2.5%;
    width: 95%;
    background-position: center center;
    background-size: cover;
  }
  .top-editors-pick .card-grid {
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    overflow-x: auto;
    gap: 8px;
  }
  .top-editors-pick .box-dark {
    width: 320px;
  }
}
/* -- Newton Magazine -- */
.top-newton-magazine {
  background: var(--white);
}
.top-newton-magazine .card-grid {
  grid-template-columns: repeat(4, 1fr);
}
.top-newton-magazine .card-thumb {
  max-height: 200px;
  aspect-ratio: 1/1;
  background: var(--white);
}
.top-newton-magazine .card-thumb img {
  opacity: 1;
}

@media (max-width: 640px) {
  .top-newton-magazine .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .top-newton-magazine .card-grid .card:not(:first-child) {
    flex-direction: column;
  }
  .top-newton-magazine .card-grid .card:not(:first-child) .card-thumb {
    max-width: 100%;
  }
}
/* -- Newton Special -- */
.top-newton-special {
  background: var(--gray-pale);
}
.top-newton-special .card-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 640px) {
  .top-newton-special .card-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .top-newton-special .card-grid .card:nth-of-type(n+3) {
    display: none;
  }
  .top-newton-special .card-grid .card:not(:first-child) {
    flex-direction: column;
  }
  .top-newton-special .card-grid .card:not(:first-child) .card-thumb {
    max-width: 100%;
  }
}
/* -- Newton / Newton+ 紹介 -- */
.top-motion {
  gap: 0;
  padding-bottom: 24px;
}
.top-motion .inner {
  position: relative;
  padding-top: 80px;
}
.top-motion .inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../images/bg-n-red.png) no-repeat top left/contain;
}
.top-motion .top-motion-main {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.top-motion .top-motion-main .btn-area {
  text-align: right;
}

.top-motion-thumb,
.top-motion-text {
  width: 100%;
}

.top-motion-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.top-motion-logo {
  color: var(--red-primary, #EA1815);
  font-family: var(--font-en), serif;
  font-size: 4rem;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
}

.top-motion-sub {
  border-top: 1px solid var(--gray-pale-line);
}
.top-motion-sub .inner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.top-motion-sub .inner::before {
  display: none;
}
.top-motion-sub .top-motion-sub-item {
  width: 50%;
  display: flex;
  flex-shrink: 0;
  padding: 24px;
  align-items: center;
  gap: 24px;
  border: 2px solid var(--red-primary, #EA1815);
}
.top-motion-sub .top-motion-sub-item .top-motion-logo {
  margin-top: 0;
}
.top-motion-sub .top-motion-sub-item:hover {
  background: var(--red-primary, #EA1815);
  color: var(--white);
}
.top-motion-sub .top-motion-sub-item:hover .top-motion-logo {
  color: var(--white);
}
.top-motion-sub .top-motion-logo {
  font-size: clamp(0.875rem, 1vw, 1.5rem);
}
.top-motion-sub .top-motion-thumb {
  width: 70%;
  flex-shrink: 0;
}
.top-motion-sub .top-motion-text p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: bold;
}

@media (max-width: 640px) {
  .top-motion .top-motion-main {
    flex-direction: column;
  }
  .top-motion .inner::before {
    width: 200px;
    height: 300px;
  }
  .top-motion-logo {
    margin-top: 16px;
  }
  .top-motion-sub .inner {
    flex-direction: column;
    gap: 8px;
  }
  .top-motion-sub .top-motion-sub-item {
    width: 100%;
    padding: 16px;
  }
  .top-motion-sub .top-motion-thumb {
    width: 50%;
  }
  .top-motion-sub .top-motion-text p {
    -webkit-line-clamp: 2;
  }
  .top-motion-sub .top-motion-text {
    gap: 8px;
  }
}
/* -- カテゴリ -- */
.top-category {
  background: var(--gray-pale);
}

.top-category .swiper-slide {
  height: auto;
}
.top-category .swiper-slide .box-light {
  height: 100%;
}

/* -- 書籍 -- */
.top-book {
  background: #000;
}
.top-book .title-topline {
  color: var(--white);
}
.top-book .section-summary {
  color: var(--white);
}

/* -- 動画 -- */
.top-movie {
  background: var(--gray-pale);
}

@media (max-width: 640px) {
  .top-movie .card-grid {
    display: flex;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    overflow-x: auto;
  }
  .top-movie .card-grid .card {
    width: 320px;
    flex-shrink: 0;
  }
  .top-movie .card-grid .card:not(:first-child) {
    flex-direction: column;
    align-items: flex-start;
  }
  .top-movie .card-grid .card:not(:first-child) .card-thumb {
    max-width: unset;
  }
}
/* ============================================================
   Slider / Tab
   ============================================================ */
/* -- ヒーロースライダー コントロールバー -- */
.hero-control {
  background: var(--gray-dark);
  border: 1px solid var(--tap-line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
  width: 100%;
}

.swiper-pagination {
  position: static;
}

#tap-pagination {
  display: flex;
  gap: 4px;
  align-items: center;
}

#hero-slider .swiper-pagination-bullet {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-pale);
  opacity: 1;
  transition: background 0.3s;
}

#hero-slider .swiper-pagination-bullet-active {
  background: var(--red-primary);
}

#tap-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 18px;
  height: 18px;
  background: var(--red-primary);
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.tap-play-btn__bar {
  display: block;
  width: 2px;
  height: 8px;
  background: #D9D9D9;
}

.tap-play-btn__triangle {
  display: none;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #D9D9D9;
}

#tap-play-btn.is-paused .tap-play-btn__bar {
  display: none;
}

#tap-play-btn.is-paused .tap-play-btn__triangle {
  display: block;
}

.swiper-pagination-bullet {
  width: 40px;
  height: 4px;
  background: var(--gray);
  border-radius: 0;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--red-primary);
}

/* -- カテゴリスライダータブ -- */
.sliderTab {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 16px;
  padding: 0;
  background: var(--white);
  border-radius: 8px;
}

.sliderTab .swiper-slide {
  padding: 0 11px;
  width: auto;
}

.sliderTab .swiper-slide a {
  display: block;
  color: var(--black-text);
  letter-spacing: 0.05em;
  transition: 0.25s;
}

.sliderTab .swiper-slide.on .slide__nav {
  background: var(--red-primary);
  color: var(--white);
}

.sliderTab .slide__nav {
  padding: 15px 10px 12px 10px;
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1;
  color: #333;
  transition: 0.25s;
}

.sliderTab .sliderTab__next,
.sliderTab .sliderTab__prev {
  position: absolute;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 40px;
  height: 100%;
  transition: 0.25s;
}

.sliderTab .sliderTab__next.swiper-button-disabled,
.sliderTab .sliderTab__prev.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

.sliderTab .sliderTab__next span,
.sliderTab .sliderTab__prev span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.sliderTab .sliderTab__next svg,
.sliderTab .sliderTab__prev svg {
  width: 20px;
  height: 20px;
}
.sliderTab .sliderTab__next svg path,
.sliderTab .sliderTab__prev svg path {
  fill: var(--white);
}

.sliderTab .sliderTab__next {
  justify-content: center;
  right: 0;
  background: var(--red-primary);
}

.sliderTab .sliderTab__next span {
  justify-content: center;
}

.sliderTab .sliderTab__prev {
  justify-content: center;
  left: 0;
  background: var(--red-primary);
}

.sliderTab .sliderTab__prev span {
  justify-content: center;
}

.sliderContent {
  width: 100%;
}

/* -- カテゴリスライダー PC (641px以上) -- */
@media (min-width: 641px) {
  .sliderTab {
    display: none;
  }
  .sliderContent {
    overflow: visible;
  }
  .sliderContent .swiper-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    transform: none !important;
    width: 100%;
    transition: none !important;
    gap: 24px 1%;
  }
  .sliderContent .swiper-slide {
    width: 49% !important;
  }
  .sliderContent .swiper-slide:nth-of-type(n + 5) {
    width: 32% !important;
  }
}
/* ============================================================
   Article Viewer
   ============================================================ */
/* -- レイアウト -- */
.viewer-layout {
  display: flex;
  align-items: stretch;
  height: calc(100vh - 160px);
}

/* -- サイドバー -- */
.viewer-sidebar {
  width: 320px;
  flex-shrink: 0;
  border-right: 1px solid var(--gray-line);
  /*position: sticky;*/
  top: 0;
  height: auto;
  overflow-y: auto;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.viewer-sidebar.disabled a.toc-item, .viewer-sidebar.disabled button.thumb-item {
  pointer-events: none;
}

/* -- 目次 / 画像一覧 タブ -- */
.viewer-tabs {
  display: flex;
  gap: 16px;
}
.viewer-tabs .btn-secondary {
  min-width: unset;
  width: 100%;
}
.viewer-tabs .btn-secondary.is-active, .viewer-tabs .btn-secondary:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: var(--white);
  cursor: pointer;
}

/* -- 目次パネル -- */
.toc-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toc-panel.is-hidden {
  display: none;
}

.toc-item {
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.toc-item:hover {
  color: var(--red-primary);
}

.toc-item.is-active {
  color: var(--red-primary);
  font-weight: 700;
}

/* -- 画像一覧パネル -- */
.thumbnail-panel {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.thumbnail-panel .thumb-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  background: none;
  border: none;
}
.thumbnail-panel .thumb-item.is-active .thumb-item__img, .thumbnail-panel .thumb-item:hover .thumb-item__img {
  border: 1px solid var(--red-primary);
}
.thumbnail-panel .thumb-item__img {
  width: 100%;
  aspect-ratio: 794/420;
  object-fit: cover;
  display: block;
  border: 1px solid var(--black);
  transition: border-color 0.2s;
}
.thumbnail-panel .thumb-item__label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--white);
  text-align: center;
  line-height: 1;
}

.thumbnail-panel.is-visible {
  display: grid;
}

/* -- メインエリア -- */
.viewer-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
}

.viewer-main .article-login__text {
  color: var(--white);
}

.viewer-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--gray-dark);
}

.viewer-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

/* -- コントローラー -- */
.viewer-controller {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.viewer-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gray-dark);
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  color: var(--white);
  font-size: 16px;
  transition: border-color 0.2s, opacity 0.2s;
  flex-shrink: 0;
}

.ctrl-btn:hover {
  border-color: var(--gray);
}

.ctrl-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ctrl-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.viewer-page-count {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  min-width: 49px;
  text-align: center;
}

.ctrl-sep {
  width: 1px;
  height: 24px;
  background: var(--gray-line);
  flex-shrink: 0;
}

.viewer-magnifier {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-read-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  background: var(--gray-dark);
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.viewer-read-btn:hover {
  border-color: var(--white);
  background: #222;
}

.viewer-read-btn[hidden] {
  display: none;
}

/* -- カテゴリタイトルバー（ビューア） -- */
.category-title-viewer .category-title__text {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
}

/* -- ビューア SP -- */
@media (max-width: 800px) {
  .category-title-viewer {
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    gap: 16px;
  }
  .category-title-viewer .category-title__text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
  }
  .category-title-viewer .category-title__name {
    white-space: unset;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .category-title-viewer .category-title__sep {
    display: none;
  }
  .viewer-layout {
    flex-direction: column;
    height: auto;
  }
  .viewer-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--gray-line);
    padding: 20px 16px;
  }
  .viewer-img-wrap {
    height: calc(100dvh - 240px) !important;
  }
  .viewer-read-btn {
    position: static;
    transform: none;
    margin: 8px auto 0;
  }
  .viewer-controller {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 16px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .viewer-img-wrap {
    height: calc(100dvh - 70px) !important;
  }
}
/* -- サイドバートグル（SP のみ表示） -- */
.viewer-sidebar-toggle {
  display: none;
}

@media (max-width: 800px) {
  .viewer-sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 12px;
    background: var(--red-primary);
    cursor: pointer;
    border: none;
  }
  .viewer-sidebar-toggle path {
    stroke: var(--white);
  }
  .viewer-sidebar-toggle[aria-expanded=true] {
    background: var(--red-primary, #EA1815);
    border-color: var(--red-primary, #EA1815);
  }
  .viewer-sidebar {
    position: fixed !important;
    top: 0;
    left: -100%;
    height: 100dvh;
    width: min(300px, 85vw);
    z-index: 200;
    background: var(--gray-dark, #18181B);
    border-right: 1px solid var(--gray-line, #1E2939);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: min(300px, 85vw) !important;
  }
  .viewer-sidebar.open {
    left: 0;
  }
  .viewer-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 199;
  }
  .viewer-sidebar-overlay.open {
    display: block;
  }
}
@media (min-width: 801px) {
  .viewer-sidebar-overlay {
    display: none !important;
  }
}
/* ============================================================
   Magazine
   ============================================================ */
.card-grid.card-newton-magazine {
  grid-template-columns: repeat(4, 1fr);
}
.card-grid.card-newton-magazine .card-thumb {
  max-height: 200px;
  aspect-ratio: 1/1;
}
.card-grid.card-newton-magazine .card-thumb img {
  opacity: 1;
}

@media (max-width: 640px) {
  .card-grid.card-newton-magazine {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid.card-newton-magazine .card:not(:first-child) {
    flex-direction: column;
  }
  .card-grid.card-newton-magazine .card:not(:first-child) .card-thumb {
    max-width: 100%;
  }
}
/* ============================================================
   MyPage
   ============================================================ */
.card-wrap {
  position: relative;
}

.card-wrap.is-checked .card {
  outline: 2px solid #d33;
  outline-offset: 2px;
  border-radius: 8px;
}

.card-check {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.card-check__input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.card-check__box {
  display: block;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #888;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: background-color 0.15s, border-color 0.15s;
}

.card-check__input:focus-visible + .card-check__box {
  outline: 2px solid #1769ff;
  outline-offset: 2px;
}

.card-check__input:checked + .card-check__box {
  background: #d33;
  border-color: #d33;
}

.card-check__input:checked + .card-check__box::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 10px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* 追従バー */
#delete-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

#delete-bar.is-visible {
  transform: translateY(0);
}

#delete-bar .delete-bar__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#delete-bar .delete-bar__count {
  color: #fff;
  font-size: 14px;
}

#delete-bar .delete-bar__count strong {
  font-size: 18px;
  margin-right: 2px;
}

#delete-bar .delete-bar__btn {
  background: #d33;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}

#delete-bar .delete-bar__btn:hover {
  background: #b71c1c;
}

#delete-bar .delete-bar__btn:disabled {
  background: #777;
  cursor: not-allowed;
}

/* 確認ダイアログ */
#delete-dialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#delete-dialog[hidden] {
  display: none;
}

#delete-dialog .delete-dialog__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

#delete-dialog .delete-dialog__panel {
  position: relative;
  background: #fff;
  border-radius: 10px;
  max-width: 420px;
  width: 100%;
  padding: 28px 24px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

#delete-dialog .delete-dialog__title {
  font-size: 18px;
  margin: 0 0 12px;
}

#delete-dialog .delete-dialog__text {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
}

#delete-dialog .delete-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

#delete-dialog .delete-dialog__btn {
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

#delete-dialog .delete-dialog__btn--cancel {
  background: #e0e0e0;
  color: #333;
}

#delete-dialog .delete-dialog__btn--cancel:hover {
  background: #d0d0d0;
}

#delete-dialog .delete-dialog__btn--ok {
  background: #d33;
  color: #fff;
}

#delete-dialog .delete-dialog__btn--ok:hover {
  background: #b71c1c;
}

#delete-dialog .delete-dialog__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================================
   Error
   ============================================================ */
.error-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.error-code {
  font-family: "Anton", sans-serif;
  font-size: 80px;
  color: var(--gray);
  line-height: 1;
  letter-spacing: 0;
}

.error-message {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray);
  line-height: 1.3;
  text-align: center;
}

/* ============================================================
   Utility
   ============================================================ */
.font-color-white {
  color: var(--white);
}

.font-xl {
  font-size: 1.25rem;
}

.ta-center {
  text-align: center;
}

/* 確認ダイアログ */
#member-regist-announcement-dialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#member-regist-announcement-dialog[hidden] {
  display: none;
}

#member-regist-announcement-dialog .member-regist-announcement-dialog__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

#member-regist-announcement-dialog .member-regist-announcement-dialog__panel {
  position: relative;
  background: #fff;
  border-radius: 10px;
  max-width: 420px;
  width: 100%;
  padding: 28px 24px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

#member-regist-announcement-dialog .member-regist-announcement-dialog__title {
  font-size: 18px;
  margin: 0 0 12px;
}

#member-regist-announcement-dialog .member-regist-announcement-dialog__text {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
}

#member-regist-announcement-dialog .member-regist-announcement-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

#member-regist-announcement-dialog .member-regist-announcement-dialog__btn {
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

#member-regist-announcement-dialog .member-regist-announcement-dialog__btn--cancel {
  background: #e0e0e0;
  color: #333;
}

#member-regist-announcement-dialog .member-regist-announcement-dialog__btn--cancel:hover {
  background: #d0d0d0;
}

#member-regist-announcement-dialog .member-regist-announcement-dialog__btn--ok {
  background: #d33;
  color: #fff;
}

#member-regist-announcement-dialog .member-regist-announcement-dialog__btn--ok:hover {
  background: #b71c1c;
}

#member-regist-announcement-dialog .member-regist-announcement-dialog__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* copy guard */
.hero-slide_img,
.card-thumb img,
.top-motion img,
.article-hero img,
.book-info__img,
.book-card__img,
.related-card-img-area img,
.article-image-area img,
.image-caption img,
.article-body .richtext img,
.viewer-img,
.thumbnail-panel .thumb-item__img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/*# sourceMappingURL=newton-digital.css.map */