/* ============================================================
   ASU Publishing — main.css
   ============================================================ */

/* ── ページフェードイン ────────────────────────────────────── */
.js-loaded body { opacity: 0; }
.js-loaded body.page-loaded { opacity: 1; transition: opacity 0.4s ease; }

:root {
  --red:        #e8111b;
  --red-dark:   #c00d16;
  --red-pale:   #fff0f0;
  --red-border: #ffc5c7;
  --ink:        #1a1a1a;
  --ink-mid:    #555;
  --ink-light:  #999;
  --bg:         #fff;
  --bg-soft:    #f8f8f8;
  --border:     #e4e4e4;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── ナビゲーション ─────────────────────────── */
nav#site-nav {
  position: fixed !important; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--red);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
body { padding-top: 68px; }
body.admin-bar { padding-top: 68px; }
.admin-bar nav#site-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar nav#site-nav { top: 46px; }
  body.admin-bar { padding-top: 68px; }
}

.nav-logo {
  font-size: 17px; font-weight: 700;
  letter-spacing: 0.04em; color: #fff;
  text-decoration: none; white-space: nowrap;
  flex-shrink: 0;
}

.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; flex-shrink: 0; }
.nav-links li { list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 700;
  color: #fff; text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 0.75; }
.nav-links a.nav-contact {
  font-size: 13px; font-weight: 700;
  padding: 8px 18px; border: 2px solid #fff; border-radius: 4px;
  color: var(--red); background: #fff;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-links a.nav-contact:hover { background: transparent; color: #fff; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sp-menu {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0;
  background: var(--red);
  padding: 8px 0 16px; z-index: 99;
  border-top: 1px solid rgba(255,255,255,0.15);
}
/* 管理バーが表示されている場合（ログイン中）のオフセット */
.admin-bar .sp-menu { top: calc(68px + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .sp-menu { top: calc(68px + 46px); }
}
.sp-menu.open { display: block; }
.sp-menu a {
  display: block; padding: 14px 24px;
  font-size: 14px; font-weight: 700; color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sp-menu a:last-child { border-bottom: none; }
.sp-menu a.nav-contact {
  margin: 12px 24px 0; padding: 12px 20px;
  background: #fff; color: var(--red);
  border-radius: 4px; text-align: center; border-bottom: none;
}

/* ── ページヘッダー ─────────────────────────── */
.page-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 32px 40px;
}
.page-header-inner { max-width: 1080px; margin: 0 auto; }
.page-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--red);
  margin-bottom: 10px;
}
.page-title { font-size: 26px; font-weight: 700; color: var(--ink); }

/* ── ヒーロー ───────────────────────────────── */
.hero {
  padding: 80px 40px 72px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--red);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 52px; font-weight: 700;
  line-height: 1.2; color: var(--ink);
  margin-bottom: 24px; letter-spacing: -0.01em;
}
.hero-desc {
  font-size: 16px; line-height: 1.9;
  color: var(--ink-mid); margin-bottom: 32px;
}
.hero-tagline {
  font-size: 14px; color: var(--ink-light);
  padding-top: 24px; border-top: 1px solid var(--border);
}

/* 書店様カード */
.bookstore-card {
  background: var(--red-pale);
  border-radius: 6px;
  padding: 32px 32px 28px;
}
.bookstore-card-head {
  font-size: 20px; font-weight: 700;
  color: var(--red); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.bookstore-card-head::before {
  content: "";
  width: 5px; height: 22px;
  background: var(--red); border-radius: 3px;
}
.bookstore-body {
  font-size: 20px; font-weight: 700;
  color: var(--ink); margin-bottom: 20px; line-height: 1.6;
}
.bookstore-fax-wrap {
  background: #fff; border-radius: 4px;
  padding: 16px 20px; margin-bottom: 22px;
}
.bookstore-fax-label { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.bookstore-fax { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: 0.03em; }
.bookstore-fax-sub { font-size: 12px; color: var(--ink-light); margin-top: 4px; }
.bookstore-dl-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700;
  padding: 14px 0; background: var(--red); color: #fff;
  border-radius: 4px; text-decoration: none;
  border: 2px solid var(--red);
  transition: background 0.2s, color 0.2s; width: 100%;
}
.bookstore-dl-btn:hover { background: transparent; color: var(--red); }
.bookstore-more {
  display: block; text-align: center;
  margin-top: 12px; font-size: 14px; font-weight: 500;
  color: var(--red); text-decoration: none;
}

/* 読者様バー */
.reader-bar { background: var(--red); }
.reader-bar-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 28px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.reader-bar-text { font-size: 20px; font-weight: 700; color: #fff; }
.reader-bar-sub { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.9); margin-top: 4px; }
.reader-bar-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
  padding: 12px 28px;
  border: 2px solid #fff; border-radius: 8px;
  color: var(--red); background: #fff;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.reader-bar-btn:hover { background: transparent; color: #fff; }

/* ── スライダー ─────────────────────────────── */
.slider-section {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 48px 40px;
}
.slider-inner { max-width: 1080px; margin: 0 auto; }
.slider-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
}
.slider-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.slider-more { font-size: 14px; color: var(--red); text-decoration: none; }
.slider-more:hover { text-decoration: underline; }
.slider-wrap { position: relative; overflow: hidden; }
.slider-body { display: flex; transition: transform 0.5s ease; }
.slide-panel {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 64px; align-items: center;
  flex: 0 0 100%;
}
.slide-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--red); margin-bottom: 12px;
}
.slide-title {
  font-size: 22px; font-weight: 700; color: var(--ink);
  line-height: 1.5; margin-bottom: 10px;
}
.slide-author { font-size: 13px; color: var(--ink-light); margin-bottom: 6px; }
.slide-price { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.slide-desc { font-size: 14px; line-height: 1.85; color: var(--ink-mid); }
.slide-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--red);
  text-decoration: none; margin-bottom: 0;
}
.slide-link:hover { text-decoration: underline; color: var(--red); }
.slide-cover {
  width: 180px; height: 254px;
  border-radius: 4px; overflow: hidden;
  box-shadow: 4px 8px 20px rgba(0,0,0,0.16);
  background: #e8e8e8;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.slide-cover img { width: 100%; height: 100%; object-fit: cover; }
.slider-dots { display: flex; gap: 8px; margin-top: 28px; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; padding: 0;
  cursor: pointer; transition: background 0.2s;
}
.slider-dot.active { background: var(--red); }

/* ── Information（お知らせ）セクション ──────── */
.news-section { max-width: 1080px; margin: 0 auto; padding: 64px 40px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 32px;
}
.section-title { font-size: 24px; font-weight: 700; color: var(--ink); }
.section-more { font-size: 14px; color: var(--red); text-decoration: none; }
.section-more:hover { text-decoration: underline; }

.news-list { list-style: none; }
.news-item {
  display: grid;
  grid-template-columns: 120px 90px 1fr;
  align-items: center; gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--ink);
  cursor: pointer; transition: background 0.1s;
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-item:hover .news-title { color: var(--red); }
.news-date { font-size: 14px; color: var(--ink-light); white-space: nowrap; }
.news-cat {
  font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: 4px;
  white-space: nowrap; text-align: center;
}
.news-cat.info    { background: var(--red-pale); color: var(--red); }
.news-cat.book    { background: var(--red-pale); color: var(--red); }
.news-cat.bookstore { background: #f0f4ff; color: #1a56c8; }
.news-cat.reader    { background: #f0faf5; color: #1a7a50; }
.news-title { font-size: 16px; line-height: 1.6; transition: color 0.15s; }

/* ── About セクション ───────────────────────── */
.about-section { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.about-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 64px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.about-title { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.about-text { font-size: 15px; line-height: 1.95; color: var(--ink-mid); }
.info-table { background: #fff; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.info-row {
  display: grid; grid-template-columns: 100px 1fr;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  font-size: 15px; align-items: start;
}
.info-row:last-child { border-bottom: none; }
.info-key { font-size: 13px; color: var(--ink-light); padding-top: 2px; }
.info-val { color: var(--ink); line-height: 1.7; }

/* ── CTA ────────────────────────────────────── */
.cta-section { padding: 64px 40px; text-align: center; background: var(--bg-soft); }
.cta-title { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.cta-sub { font-size: 15px; color: var(--ink-light); margin-bottom: 28px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700;
  padding: 16px 48px; background: var(--red); color: #fff;
  border: 2px solid var(--red);
  border-radius: 4px; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.cta-btn:hover { background: transparent; color: var(--red); }

/* ── フッター ───────────────────────────────── */
footer {
  padding: 28px 40px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
}
.footer-logo { font-size: 14px; font-weight: 700; color: var(--ink-mid); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--ink-light); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 12px; color: #ccc; }

/* ── 書籍一覧 ───────────────────────────────── */
.main { max-width: 1080px; margin: 0 auto; padding: 64px 40px; }
.books-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 40px; }
.book-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; width: calc((100% - 80px) / 3); min-width: 220px; }
.book-card:hover .book-title { color: var(--red); }
.book-card:hover .book-cover { box-shadow: 4px 8px 28px rgba(0,0,0,0.2); transform: translateY(-2px); }
.book-cover {
  width: 100%; aspect-ratio: 3/4; object-fit: contain;
  border-radius: 4px; box-shadow: 2px 6px 20px rgba(0,0,0,0.14);
  margin-bottom: 20px; background: #f5f5f5;
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}
.book-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--red); margin-bottom: 10px; }
.book-title { font-size: 15px; font-weight: 700; line-height: 1.55; margin-bottom: 8px; transition: color 0.15s; }
.book-sub { font-size: 13px; color: var(--ink-light); line-height: 1.65; margin-bottom: 14px; }
.book-meta { font-size: 12px; color: var(--ink-mid); line-height: 1.9; margin-bottom: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.book-links { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.book-link {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; text-decoration: none;
  padding: 10px 14px; border-radius: 4px; text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}
.book-link:hover { text-decoration: none; }
/* 書籍の詳細（赤ボタン） */
.book-link.primary { background: var(--red); color: #fff; border: 2px solid var(--red); transition: background 0.2s, color 0.2s; }
.book-link.primary:hover { background: transparent; color: var(--red); }
/* サポートページ・注文書（アウトラインボタン） */
.book-link.secondary {
  background: #fff; color: var(--ink-mid);
  border: 1.5px solid var(--border);
  font-weight: 500; font-size: 12px;
}
.book-link.secondary:hover { border-color: var(--ink-mid); color: var(--ink); }

/* ── 書籍詳細 ───────────────────────────────── */
.breadcrumb { max-width: 1080px; margin: 0 auto; padding: 16px 40px; font-size: 12px; color: var(--ink-light); }
.breadcrumb a { color: var(--ink-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 6px; }

.book-main {
  max-width: 1080px; margin: 0 auto;
  padding: 48px 40px 80px;
  display: grid; grid-template-columns: 240px 1fr; gap: 72px; align-items: start;
}
.book-cover-sticky { position: sticky; top: 80px; }
.book-cover-wrap img {
  width: 100%; border-radius: 4px;
  box-shadow: 6px 12px 32px rgba(0,0,0,0.18);
}
.book-cover-links { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.book-cover-link {
  display: block; text-align: center; padding: 11px 14px;
  font-size: 13px; font-weight: 700; border-radius: 4px;
  text-decoration: none; transition: opacity 0.15s;
}
.book-cover-link:hover { opacity: 0.85; }
.book-cover-link.primary { background: var(--red); color: #fff; }
.book-cover-link.secondary { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--border); }

.book-info {}
.book-info .book-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--red); margin-bottom: 14px;
}
.book-info .book-title {
  font-size: 26px; font-weight: 700; line-height: 1.45;
  color: var(--ink); margin-bottom: 14px;
}
.book-subtitle {
  font-size: 15px; color: var(--ink-mid);
  margin-bottom: 32px; line-height: 1.65;
  padding-bottom: 32px; border-bottom: 1px solid var(--border);
}

.book-meta-table { width: 100%; border-collapse: collapse; margin-bottom: 36px; }
.book-meta-table tr { border-bottom: 1px solid var(--border); }
.book-meta-table tr:first-child { border-top: 1px solid var(--border); }
.book-meta-table th {
  width: 110px; padding: 13px 16px;
  font-size: 13px; font-weight: 700; color: var(--ink-mid);
  text-align: left; background: var(--bg-soft); white-space: nowrap;
}
.book-meta-table td { padding: 13px 16px; font-size: 14px; color: var(--ink); }

.book-section-title {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin-bottom: 18px; padding-left: 14px;
  border-left: 3px solid var(--red);
}
.buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 40px; }
.buy-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 10px; font-size: 13px; font-weight: 700;
  border-radius: 4px; text-decoration: none;
  border: 1.5px solid var(--border); color: var(--ink); background: #fff;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.buy-btn:hover { border-color: var(--ink); background: var(--bg-soft); color: var(--ink); }
.book-desc {
  font-size: 15px; line-height: 2; color: var(--ink-mid);
  margin-bottom: 40px; white-space: pre-wrap;
}
.book-gallery { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.book-gallery img { width: 100%; border-radius: 4px; border: 1px solid var(--border); }

.support-notice {
  background: var(--red-pale);
  border-radius: 8px;
  padding: 28px 32px;
  margin-top: 8px;
}
.support-notice-title {
  font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px;
}
.support-notice p { font-size: 14px; color: var(--ink-mid); margin-bottom: 20px; line-height: 1.8; }
.support-notice a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700;
  padding: 14px 32px;
  background: var(--red); color: #fff;
  border: 2px solid var(--red);
  border-radius: 4px; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.support-notice a:hover { background: transparent; color: var(--red) !important; text-decoration: none; }

/* ── プライバシーポリシー ────────────────────── */
.policy-main { max-width: 800px; }
.policy-intro {
  font-size: 15px; line-height: 1.95; color: var(--ink-mid);
  margin-bottom: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.policy-section { margin-bottom: 48px; }
.policy-section-title {
  font-size: 18px; font-weight: 700; color: var(--ink);
  margin-bottom: 16px; padding-left: 14px;
  border-left: 3px solid var(--red);
}
.policy-section-body { font-size: 15px; line-height: 1.95; color: var(--ink-mid); }
.policy-section-body a { color: var(--red); text-decoration: none; }
.policy-section-body a:hover { text-decoration: underline; }

/* ── フィルター（お知らせ一覧）──────────────── */
.filter-bar { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 20px; font-size: 13px; font-weight: 700;
  border-radius: 100px; border: 1.5px solid var(--border);
  background: #fff; color: var(--ink-light); cursor: pointer;
  transition: all 0.15s; font-family: "Noto Sans JP", sans-serif;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.news-empty { padding: 48px 0; text-align: center; font-size: 14px; color: var(--ink-light); display: none; }
.news-item.hidden { display: none; }

/* ── ページネーション ────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; border: 1px solid var(--border);
  font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--ink); background: #fff; transition: all 0.15s;
  font-family: "Noto Sans JP", sans-serif; text-decoration: none;
}
.page-btn:hover { border-color: var(--ink); color: var(--ink); }
.page-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ── お知らせ詳細 ────────────────────────────── */
.news-single { max-width: 780px; margin: 0 auto; padding: 60px 40px; }
.news-single-header { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.news-single-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.news-single-date { font-size: 13px; color: var(--ink-light); }
.news-single-title { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.news-single-body { font-size: 15px; line-height: 2; color: var(--ink-mid); }
.news-single-body p { margin-bottom: 1.6em; }
.news-single-body h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 2em 0 0.8em; padding-left: 12px; border-left: 3px solid var(--red); }
.news-single-body h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 1.6em 0 0.6em; }
.news-single-body img { max-width: 100%; border-radius: 4px; margin: 1.5em 0; }
.news-single-body a { color: var(--red); text-decoration: underline; }
.news-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 48px; font-size: 14px; font-weight: 700; color: var(--ink-mid); text-decoration: none; }
.news-back:hover { color: var(--ink); }

/* ── サポートページ ──────────────────────────── */
.support-intro { font-size: 16px; color: var(--ink-mid); line-height: 1.9; margin-bottom: 48px; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px; }
.support-card {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px; background: var(--bg-soft); border-radius: 8px;
  text-decoration: none; color: var(--ink);
  transition: box-shadow 0.2s;
}
.support-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.support-cover { width: 90px; flex-shrink: 0; }
.support-cover img { width: 100%; border-radius: 3px; box-shadow: 2px 4px 10px rgba(0,0,0,0.12); }
.support-body { flex: 1; }
.support-isbn { font-size: 11px; letter-spacing: 0.06em; color: var(--ink-light); margin-bottom: 8px; }
.support-title { font-size: 15px; font-weight: 700; line-height: 1.55; margin-bottom: 16px; }
.support-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  padding: 9px 18px; border-radius: 4px;
  background: var(--red); color: #fff; text-decoration: none;
  border: 2px solid var(--red);
  transition: background 0.2s, color 0.2s;
}
.support-btn:hover { background: transparent; color: var(--red); }

/* ── サポート詳細 ────────────────────────────── */
.support-main { max-width: 860px; margin: 0 auto; padding: 48px 40px; }
.support-book-header { display: flex; gap: 28px; align-items: flex-start; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--border); }
.support-book-cover { width: 100px; flex-shrink: 0; }
.support-book-cover img { width: 100%; border-radius: 3px; box-shadow: 2px 4px 12px rgba(0,0,0,.14); }
.support-book-isbn { font-size: 11px; letter-spacing: .06em; color: var(--ink-light); margin-bottom: 6px; }
.support-book-title { font-size: 18px; font-weight: 700; line-height: 1.5; color: var(--ink); margin-bottom: 10px; }
.support-book-link { font-size: 13px; color: var(--red); text-decoration: none; }
.support-book-link:hover { text-decoration: underline; }
.support-intro {
  background: var(--red-pale);
  border-radius: 8px; padding: 20px 24px; margin-bottom: 40px;
  font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.9;
}
.toc { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 20px 24px; margin-bottom: 48px; }
.toc-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-light); margin-bottom: 8px; }
.toc ul { list-style: none; display: flex; flex-direction: column; }
.toc li { border-bottom: 1px solid var(--border); }
.toc li:first-child { border-top: 1px solid var(--border); }
.toc a {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 8px; font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.toc a::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.toc a:hover { color: var(--red); padding-left: 14px; }
/* リンクカード（外部リンク用） */
.link-card-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.link-card {
  display: flex; align-items: stretch;
  border: 1px solid var(--border); border-radius: 8px;
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.link-card:hover { border-color: #bbb; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.link-card-thumb { width: 140px; flex-shrink: 0; overflow: hidden; }
.link-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-card-body { padding: 16px 44px 16px 20px; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.link-card-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.link-card-url {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--ink-light);
}
.link-card-url::before {
  content: ""; display: inline-block;
  width: 12px; height: 12px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 3H3a1 1 0 00-1 1v9a1 1 0 001 1h9a1 1 0 001-1v-3M10 2h4m0 0v4m0-4L7 9' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
}
/* 追加の情報 */
.addinfo-item { background: var(--bg-soft); border-radius: 6px; padding: 20px 24px; margin-bottom: 20px; }
.addinfo-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--red); margin-bottom: 6px; }
.addinfo-heading { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.support-section { margin-bottom: 56px; }
.section-title { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 20px; padding-left: 14px; border-left: 3px solid var(--red); }
.section-body { font-size: 15px; color: var(--ink-mid); line-height: 1.9; }
.section-body a { color: var(--red); text-decoration: none; }
.section-body a:hover { text-decoration: underline; }
.dl-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 12px 24px; background: var(--red); color: #fff; border: 2px solid var(--red); border-radius: 4px; text-decoration: none; margin-top: 16px; transition: background 0.2s, color 0.2s; }
.dl-btn:hover { background: transparent; color: var(--red); }
.site-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 12px 24px; border: 1.5px solid var(--border); color: var(--ink); border-radius: 4px; text-decoration: none; margin-top: 16px; transition: border-color .15s; }
.site-btn:hover { border-color: var(--ink); }
.link-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.link-list a { font-size: 14px; color: var(--red); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-list a::before { content: "→"; font-size: 12px; }
.link-list a:hover { text-decoration: underline; }
.errata-box { background: var(--bg-soft); border-radius: 6px; padding: 20px 24px; font-size: 14px; color: var(--ink-mid); line-height: 1.9; margin-top: 12px; }
.errata-box a { color: var(--red); text-decoration: none; }
.errata-box a:hover { text-decoration: underline; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; display: flex; gap: 10px; }
.faq-q::before { content: "Q"; color: var(--red); flex-shrink: 0; }
.faq-a { font-size: 14px; color: var(--ink-mid); line-height: 1.8; padding-left: 22px; }
.faq-a a { color: var(--red); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* ── 注文について ────────────────────────────── */
.chumon-wrap { max-width: 780px; margin: 0 auto; padding: 60px 40px; }
.chumon-wrap h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 2em 0 1em; padding-left: 14px; border-left: 3px solid var(--red); }
.chumon-wrap h2:first-of-type { margin-top: 0; }
.chumon-wrap p { font-size: 15px; line-height: 2; color: var(--ink-mid); margin-bottom: 1.4em; }
.chumon-wrap table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.chumon-wrap th { background: var(--bg-soft); padding: 14px 16px; font-weight: 700; color: var(--ink); text-align: left; border: 1px solid var(--border); white-space: nowrap; }
.chumon-wrap td { padding: 14px 16px; color: var(--ink-mid); border: 1px solid var(--border); line-height: 1.7; }
.order-dl-wrap { background: var(--red-pale); border-radius: 8px; padding: 28px 32px; margin: 2em 0; }
.order-dl-wrap p { font-size: 15px; color: var(--ink); margin-bottom: 16px; font-weight: 700; }
.order-dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: var(--red); color: #fff;
  border: 2px solid var(--red);
  border-radius: 4px; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.order-dl-btn:hover { background: transparent; color: var(--red); }

/* ── 会社概要 ────────────────────────────────── */
.kaisya-wrap { max-width: 780px; margin: 0 auto; padding: 60px 40px; }
.kaisya-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.kaisya-table tr { border-bottom: 1px solid var(--border); }
.kaisya-table tr:first-child { border-top: 1px solid var(--border); }
.kaisya-table th { width: 160px; padding: 22px 16px; font-weight: 700; color: var(--ink); text-align: left; background: var(--bg-soft); vertical-align: top; }
.kaisya-table td { padding: 22px 16px; color: var(--ink-mid); line-height: 1.8; }

/* ── 固定ページ共通 ──────────────────────────── */
.page-content { max-width: 780px; margin: 0 auto; padding: 60px 40px; font-size: 15px; line-height: 2; color: var(--ink-mid); }
.page-content h1, .page-content h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 2em 0 0.8em; padding-left: 14px; border-left: 3px solid var(--red); }
.page-content h1:first-child { margin-top: 0; }
.page-content p { margin-bottom: 1.4em; }
.page-content a { color: var(--red); text-decoration: underline; }

/* ── フェードアニメーション ─────────────────── */
.fade-up { opacity: 1; transform: translateY(0); }
.fade-up.animate { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.animate.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.08s; }
.fade-up.d2 { transition-delay: 0.16s; }
.fade-up.d3 { transition-delay: 0.24s; }

/* ── お問い合わせページ ─────────────────────── */
.contact-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 40px 72px;
}
.contact-lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-mid);
  margin-bottom: 28px;
}
.contact-notice,
.page-content .contact-notice {
  background: var(--red-pale);
  border-radius: 8px;
  padding: 18px 24px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 48px;
}
.contact-notice p,
.page-content .contact-notice p { margin-bottom: 0; font-size: 13.5px; line-height: 1.8; }
.contact-notice strong,
.page-content .contact-notice strong { color: var(--ink); }

/* CF7 フォームスタイル */
.contact-form-wrap .wpcf7-form { display: flex; flex-direction: column; gap: 24px; }

.contact-form-wrap label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.contact-form-wrap .wpcf7-form-control-wrap { display: block; }

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.contact-form-wrap input[type="text"]:focus,
.contact-form-wrap input[type="email"]:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232,17,27,0.08);
}
.contact-form-wrap textarea { min-height: 160px; resize: vertical; }

/* ラジオボタン（お問い合わせ種別） */
.contact-form-wrap .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; }
.contact-form-wrap .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}
.contact-form-wrap .wpcf7-list-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}

/* 送信ボタン */
.contact-form-wrap input[type="submit"],
.contact-form-wrap .wpcf7-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  margin-top: 8px;
}
.contact-form-wrap input[type="submit"]:hover,
.contact-form-wrap .wpcf7-submit:hover { background: transparent; color: var(--red); }
.contact-form-wrap input[type="submit"]:active { transform: scale(0.99); }

/* バリデーションエラー */
.contact-form-wrap .wpcf7-not-valid-tip {
  display: block;
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
}
.contact-form-wrap .wpcf7-not-valid {
  border-color: var(--red) !important;
}
.contact-form-wrap .wpcf7-response-output {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  border: 1.5px solid var(--border);
}
.contact-form-wrap .wpcf7-mail-sent-ok {
  background: #f0faf4;
  border-color: #5cb87a;
  color: #2d6a3f;
}
.contact-form-wrap .wpcf7-validation-errors,
.contact-form-wrap .wpcf7-mail-sent-ng {
  background: var(--red-pale);
  border-color: var(--red-border);
  color: #c00;
}

.contact-mail-fallback {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-mail-fallback p {
  font-size: 13.5px;
  color: var(--ink-light);
  margin-bottom: 14px;
}
.contact-mail-btn,
.page-content .contact-mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.contact-mail-btn:hover,
.page-content .contact-mail-btn:hover { border-color: var(--red); color: var(--red); }

/* ── レスポンシブ ────────────────────────────── */
@media (max-width: 1024px) {
  nav#site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 36px 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 30px; }
  .hero-desc { font-size: 14px; }
  .bookstore-fax { font-size: 20px; }

  .reader-bar-inner { flex-direction: column; padding: 24px 20px; align-items: flex-start; gap: 16px; }
  .reader-bar-btn { width: 100%; justify-content: center; }

  .slider-section { padding: 36px 20px; }
  .slide-panel { grid-template-columns: 160px 1fr; gap: 32px; align-items: center; }
  .slide-cover { width: 160px; height: 226px; order: -1; }
  .slide-info { order: 0; }
  .slide-desc { display: none; }
  .slide-title { font-size: 18px; }

  .news-section { padding: 36px 20px; }
  .news-item { display: block; padding: 14px 0; }
  .news-date { display: inline; font-size: 12px; }
  .news-cat { display: inline-block; margin-left: 10px; }
  .news-title { display: block; font-size: 14px; margin-top: 6px; }

  .about-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px; }
  .info-row { grid-template-columns: 1fr; gap: 2px; padding: 14px 16px; }
  .info-key { font-size: 11px; }
  .info-val { font-size: 14px; }

  .cta-section { padding: 40px 20px; }
  .cta-btn { padding: 14px 24px; font-size: 14px; width: 100%; justify-content: center; }

  footer { flex-direction: column; gap: 14px; text-align: center; padding: 24px 20px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .main { padding: 40px 12px; }
  .books-grid { gap: 24px; }
  .book-card { width: calc((100% - 24px) / 2); }

  .book-main { grid-template-columns: 200px 1fr; gap: 32px; padding: 32px 20px; }
  .book-cover-sticky { position: static; }
  .book-cover-wrap img { max-width: 200px; }
  .book-cover-links { width: 100%; margin-top: 12px; }
  .book-info .book-title { font-size: 22px; }
  .buy-grid { grid-template-columns: repeat(2, 1fr); }
}


@media (max-width: 768px) {
  .page-header { padding: 32px 20px; }
  .page-title { font-size: 22px; }

  .book-main { grid-template-columns: 1fr; gap: 24px; }
  .book-cover-sticky { display: flex; flex-direction: column; align-items: center; }
  .book-cover-wrap img { max-width: 180px; }
  .book-cover-links { width: 100%; }

  .news-single { padding: 40px 20px; }
  .news-single-title { font-size: 20px; }

  .support-grid { grid-template-columns: 1fr; }
  .support-card { flex-direction: column; }
  .support-cover { width: 80px; }
  .support-detail, .chumon-wrap, .kaisya-wrap, .page-content { padding: 40px 20px; }
  .contact-main { padding: 36px 20px 56px; }

  .breadcrumb { padding: 14px 20px; }

  .slider-inner { overflow: hidden; }
}

/* ═══════════════════════════════════════════════════════
   Gutenberg カスタムブロックスタイル
═══════════════════════════════════════════════════════ */

/* イントロボックス（core/group） */
.wp-block-group.is-style-intro-box {
  background: var(--red-pale);
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-mid);
}
.wp-block-group.is-style-intro-box p { margin-bottom: 1em; }
.wp-block-group.is-style-intro-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  padding: 0;
  border: none;
}
.wp-block-group.is-style-intro-box .wp-block-buttons { margin-top: 16px; }

/* ダウンロードボタン（core/button） */
.wp-block-button.is-style-download .wp-block-button__link {
  background: var(--ink);
  color: #fff;
  border: none !important;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wp-block-button.is-style-download .wp-block-button__link::before {
  content: "↓";
  font-weight: 700;
}
.wp-block-button.is-style-download .wp-block-button__link:hover {
  background: transparent !important;
  color: var(--ink) !important;
  border: 2px solid var(--ink) !important;
}

/* 情報テーブル（core/table） */
.wp-block-table.is-style-info-table { margin-bottom: 32px; }
.wp-block-table.is-style-info-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.wp-block-table.is-style-info-table tr {
  border-bottom: 1px solid var(--border);
}
.wp-block-table.is-style-info-table tr:first-child {
  border-top: 1px solid var(--border);
}
.wp-block-table.is-style-info-table th,
.wp-block-table.is-style-info-table td:first-child {
  width: 160px;
  padding: 20px 16px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  background: var(--bg-soft);
  vertical-align: top;
  white-space: nowrap;
}
.wp-block-table.is-style-info-table td {
  padding: 20px 16px;
  color: var(--ink-mid);
  line-height: 1.8;
}

/* 書籍スペック表 */
.wp-block-table.is-style-book-spec { margin-bottom: 24px; }
.wp-block-table.is-style-book-spec table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.wp-block-table.is-style-book-spec tr {
  border-bottom: 1px solid var(--border);
}
.wp-block-table.is-style-book-spec tr:first-child {
  border-top: 1px solid var(--border);
}
.wp-block-table.is-style-book-spec th,
.wp-block-table.is-style-book-spec td:first-child {
  width: 80px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-mid);
  text-align: left;
  background: var(--bg-soft);
  vertical-align: top;
  white-space: nowrap;
}
.wp-block-table.is-style-book-spec td {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.7;
}

/* 標準目次ブロック（core/table-of-contents） */
.page-content .wp-block-table-of-contents {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 40px !important;
}
.page-content .wp-block-table-of-contents ol,
.page-content .wp-block-table-of-contents ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page-content .wp-block-table-of-contents li { margin: 0 !important; }
.page-content .wp-block-table-of-contents a {
  color: var(--ink) !important;
  text-decoration: none !important;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-content .wp-block-table-of-contents a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.page-content .wp-block-table-of-contents a:hover { color: var(--red) !important; }

/* 目次（手動パターン） */
.asu-toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 28px;
  margin-bottom: 40px !important;
}
.asu-toc-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: 0.04em;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: none !important;
  cursor: pointer;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.asu-toc-title::after {
  content: "▲  閉じる";
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-light);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.asu-toc.closed .asu-toc-title { margin-bottom: 0 !important; }
.asu-toc.closed .asu-toc-title::after { content: "▼  開く"; }
.asu-toc.closed .wp-block-list { display: none !important; }
.asu-toc .wp-block-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.asu-toc .wp-block-list li { margin: 0 !important; }
.asu-toc .wp-block-list a {
  color: var(--ink) !important;
  text-decoration: none !important;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.asu-toc .wp-block-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.asu-toc .wp-block-list a:hover { color: var(--red) !important; }

/* 外部リンクカード */
.asu-link-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.asu-link-card:hover {
  border-color: #bbb;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.asu-link-card-title { margin: 0 0 4px !important; font-size: 14px !important; font-weight: 700 !important; }
.asu-link-card-title a {
  color: var(--ink) !important;
  text-decoration: none !important;
}
.asu-link-card-title a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
}
.asu-link-card-title a:hover { color: var(--red) !important; }
.asu-link-card-title a::after {
  content: "↗";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  font-size: 11px;
  color: var(--ink-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  vertical-align: middle;
  flex-shrink: 0;
}
.asu-link-card-url { display: none !important; }

/* FAQアイテム */
.asu-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 0 !important;
}
.asu-faq-item:first-of-type { border-top: 1px solid var(--border); }
.asu-faq-q {
  font-weight: 700 !important;
  color: var(--ink) !important;
  margin-bottom: 8px !important;
  display: flex !important;
  gap: 8px;
  font-size: 15px !important;
}
.asu-faq-q::before { content: "Q"; color: var(--red); flex-shrink: 0; }
.asu-faq-a {
  color: var(--ink) !important;
  line-height: 1.8 !important;
  padding-left: 20px;
  margin-bottom: 0 !important;
  font-size: 15px !important;
}
.asu-faq-a::before { content: "A　"; color: var(--ink-light); }

/* page-content 内 Gutenberg デフォルトブロック調整 */
/* h2：大見出し（赤い縦ボーダー） */
.page-content h2.wp-block-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 2.4em 0 0.8em;
  padding-left: 14px;
  border-left: 3px solid var(--red);
  line-height: 1.5;
}
/* h3：中見出し（グレー下線） */
.page-content h3.wp-block-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 1.8em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
/* h4：小見出し（細字） */
.page-content h4.wp-block-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 1.4em 0 0.4em;
  line-height: 1.5;
}
.page-content .wp-block-heading:first-child { margin-top: 0; }
.page-content .wp-block-list { padding-left: 1.5em; margin-bottom: 1.4em; }
.page-content .wp-block-list li { margin-bottom: 0.4em; }
.page-content .wp-block-separator { border-color: var(--border); margin: 32px 0; }
.page-content .wp-block-buttons { margin: 16px 0; }
.wp-block-button__link,
.wp-element-button {
  border-radius: 6px !important;
}
.page-content .wp-block-button__link {
  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 6px !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}
.page-content .wp-block-button__link:hover {
  background: transparent !important;
  color: var(--red) !important;
}
.page-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.page-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--red);
  color: #fff;
}
/* イントロボックス内のボタンは枠なし・塗りつぶし */
.is-style-intro-box .wp-block-button .wp-block-button__link {
  background: var(--red) !important;
  color: #fff !important;
  border: 2px solid var(--red) !important;
  transition: background 0.2s, color 0.2s !important;
}
.is-style-intro-box .wp-block-button .wp-block-button__link:hover {
  background: transparent !important;
  color: var(--red) !important;
}

/* 追加情報アイテム */
.asu-addinfo-item {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px !important;
}
.asu-addinfo-date {
  font-size: 12px !important;
  color: var(--ink-light) !important;
  margin-bottom: 6px !important;
  font-weight: 500;
}
.asu-addinfo-item h3.wp-block-heading {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: none !important;
}
.asu-addinfo-item p { margin-bottom: 12px !important; font-size: 14px !important; }
.asu-addinfo-item .wp-block-buttons { margin: 8px 0 0 !important; }

/* アイキャッチ画像（固定ページ上部） */
.page-eyecatch {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 40px 0;
}
.page-eyecatch-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
@media (max-width: 768px) {
  .page-eyecatch { padding: 24px 20px 0; }
}

/* サポートヒーロー（書影＋紹介文） */
.support-hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 40px 0;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.support-hero-cover {
  flex: 0 0 auto;
}
.support-hero-cover img {
  width: 160px;
  height: auto;
  border-radius: 4px;
  box-shadow: 4px 8px 24px rgba(0,0,0,0.18);
  display: block;
}
.support-hero-body {
  flex: 1;
  background: var(--red-pale);
  border-radius: 8px;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.support-hero-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}
.support-hero-btn {
  display: inline-block;
  align-self: flex-start;
  background: var(--red);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border: 2px solid var(--red);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.support-hero-btn:hover {
  background: transparent;
  color: var(--red) !important;
}
@media (max-width: 768px) {
  .support-hero { flex-direction: column; align-items: center; padding: 24px 20px 0; gap: 20px; }
  .support-hero-cover img { width: 120px; }
}

/* 書影（書籍CPTから自動取得） */
.page-book-cover {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 40px 0;
  display: flex;
  justify-content: center;
}
.page-book-cover-img {
  width: 180px;
  height: auto;
  border-radius: 4px;
  box-shadow: 4px 8px 24px rgba(0,0,0,0.18);
  display: block;
}
@media (max-width: 768px) {
  .page-book-cover { padding: 24px 20px 0; }
  .page-book-cover-img { width: 140px; }
}

/* ── エディター内スタイル ─────────────────────────────────────────── */
.editor-styles-wrapper a {
  color: var(--red);
  text-decoration: underline;
}
.editor-styles-wrapper .wp-block-button__link,
.editor-styles-wrapper .wp-element-button,
.editor-styles-wrapper .wp-block-button__link:hover {
  text-decoration: none;
  border-radius: 6px !important;
}
.editor-styles-wrapper .wp-block-button__link.has-brand-red-background-color,
.editor-styles-wrapper .wp-block-button__link.has-brand-red-background-color:hover {
  background-color: #e8111b !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
}
/* エディター内ダウンロードボタン */
.editor-styles-wrapper .wp-block-button.is-style-download .wp-block-button__link {
  background: #1a1a1a !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* カラーパレット用クラス */
.has-brand-red-color         { color: #e8111b !important; }
.has-brand-red-background-color { background-color: #e8111b !important; }
.wp-block-button__link.has-brand-red-background-color {
  border: 2px solid var(--red) !important;
  transition: background 0.2s, color 0.2s !important;
}
.wp-block-button__link.has-brand-red-background-color:hover {
  background-color: transparent !important;
  color: var(--red) !important;
}
.has-brand-red-dark-color    { color: #c00d16 !important; }
.has-ink-color               { color: #1a1a1a !important; }
.has-ink-mid-color           { color: #555555 !important; }
.has-ink-light-color         { color: #999999 !important; }
.has-white-color             { color: #ffffff !important; }
.has-white-background-color  { background-color: #ffffff !important; }

/* OGPリンクカード（サムネ付き） */
.asu-rich-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--ink) !important;
  transition: box-shadow .2s;
  margin-bottom: 16px;
}
.asu-rich-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.asu-rich-card-thumb {
  flex: 0 0 160px;
  width: 160px;
  background: var(--bg-soft);
  overflow: hidden;
}
.asu-rich-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.asu-rich-card-thumb--empty {
  background: var(--bg-soft);
}
.asu-rich-card-body {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.asu-rich-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.asu-rich-card-desc {
  display: none;
}
.asu-rich-card-url {
  font-size: 12px;
  color: var(--ink-light);
  margin-top: auto;
}
.asu-rich-card-url::before {
  content: "🔗 ";
}
@media (max-width: 768px) {
  .asu-rich-card-thumb { flex: 0 0 120px; width: 120px; height: auto; align-self: stretch; }
}
