:root {
  /* ===== Brand Colors ===== */
  --color-red: #ff0029;
  /* 鮮やかな赤 */
  --color-blue: #005bac;
  /* 青 */
  --color-yellow: #f5d800;
  /* 明るい黄色 */

  /* ===== Neutral / Gray Scale ===== */
  --color-black1: #222222;
  /* 黒1*/
  --color-black2: #333333;
  /* 黒2 */
  --color-white: white;
  /* 白 */
}

body {
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Meiryo", Verdana, "Roboto",
    sans-serif,
    "Helvetica Neue", Helvetica,
    Arial;
  overflow-x: hidden;
}


.movie-box {
  margin-bottom:20px ;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style-type: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

p,
li {
  color: var(--color-black1);
}

.info-separator {
  display: block;
  border: 0;
  height: 1px;
  background-color: var(--color-black2);
  margin: 15px auto;
  width: 100%;
}


/* 共通セクションスタイル */
.section {
  padding: 4rem 0;
  margin-bottom: 40px;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  width: 95%;
  margin: 30px auto;
  display: block;
  max-width: 680px;
  position: relative;
  z-index: 995;
}

.h2_img {
  height: 55px;
  display: block;
  margin: auto;
}

/* ヘッダー */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  /* サイトの最大幅を設定 */
  margin: 0 auto;
  position: absolute;
}

html {
  scroll-behavior: smooth;
}

.book-covers-section {
  padding: 0;
}

/* 右上に固定配置（必要に応じて位置調整） */
.global-nav {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
}

/* ハンバーガー本体 */
.hamburger-menu {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background-color: unset;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.hamburger-menu span {
  width: 60px;
  height: 6px;
  border-radius: 4px;
  background: var(--color-black2);
  display: block;
  transition:
    transform 0.35s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.25s ease,
    background-color 0.3s ease;
  transform-origin: center;
}

.hamburger-menu.is-open span:nth-child(1) {
  transform: translateY(20px) rotate(45deg);
}

.hamburger-menu.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.is-open span:nth-child(3) {
  transform: translateY(-20px) rotate(-45deg);
}

/* スライドパネル */
.menu-panel {
  position: fixed;
  top: 10px;
  left: -45px;
  width: 340px;
  padding: 70px 20px 20px 55px;
  border: 4px solid var(--color-white);
  background: var(--color-yellow);
  border-radius: 15px;
  overflow: auto;
  z-index: 999;
  transform: translateX(-120%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease,
    visibility 0s 0.5s;
}

.menu-panel img {
  max-width: 100%;
  height: 30px;
}

/* 開いている状態 */
.menu-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease,
    visibility 0s;
}

.read {
  margin: 10px auto;
  max-width: 420px;
  width: 80%;
}

/* アコーディオン ========================= */
.acd-header {
  width: 100%;
  height: 100px;
  text-align: center;
  padding: 10px 15px;
  margin: 0 auto;
  background: var(--color-blue);
  border: 2px solid var(--color-white);
  border-radius: 10px;
  font-size: 1.25rem;
  line-height: 1.4;
  cursor: pointer;
  position: relative;
  transition: background-color .2s ease;
}

.acd-header:hover {
  background: color-mix(in srgb, var(--color-blue) 80%, white 20%);
}


.acd-header img {
  margin: auto;
  width: auto;
  height: 100%;
}

.acd-body {
  height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  padding: 0 20px;
  background: var(--color-white);
  border-radius: 10px;
  font-weight: 500;
  transition:
    height .25s ease,
    opacity .12s linear,
    visibility 0s .25s;
  will-change: height, opacity;
}

.acd-item.is-open .acd-body {
  opacity: 1;
  visibility: visible;
  transition:
    height .25s ease,
    opacity .12s linear,
    visibility 0s 0s;
  margin: 10px 0 0 0;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 1.125rem;
  line-height: 1.75;
  display: grid;
  gap: 20px;
  text-align: justify;
}

.img-swap {
  position: relative;
  display: inline-block;
}

.img-swap img {
  display: block;
}

.img-swap .hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .15s ease;
}

.img-swap:hover .hover {
  opacity: 1;
}


/* スライダー
------------------------------------- */

#start_list {
  margin-top: -5rem;
}

.start_top,
.slider {
  overflow: hidden;
}

.start_top {
  margin: 30px auto 30px;
}

.topKvSlider {
  position: relative;
  overflow: hidden;
}

.start_top,
.slider li {
  height: auto;
  border-radius: 20px;
}

.start_top,
.start_list_series {
  overflow: hidden;
}


.slick-initialized .slick-slide {
  margin: 25px 25px 0 25px;
  width: 620px;
}


.slide_new {
  position: absolute;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.6);
  width: 100%;
  display: flex;
  align-items: center;
}

.top_slider .background_l {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 500px;
  background: var(--color-black2);
  z-index: 998;
}

.top_slider .background_r {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 500px;
  background: var(--color-black2);
  z-index: 998;
}

.slick-dots {
  padding: 5px;
}

.slick-dots li {
  width: 15px;
  height: 15px;
  margin: 10px;
}

.start_list_box li button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0);
}

.slick-dots li.slick-active button {
  background-color: var(--color-yellow);
}

.slick-list {
  z-index: 40;
}

.start_list_box ul {
  justify-content: center;
  display: flex;
}

.slick-arrow {
  top: 48%;
  width: 15px;
  height: auto;
  position: absolute;
  z-index: 1000;
  cursor: pointer;
}



.slick-prev {
  left: calc(50% - (min(700px, 100vw) / 2) - 0px);
  transform: translateX(50%);
}


.slick-next {
  right: calc(50% - (min(700px, 100vw) / 2) - -15px);
  transform: translateX(50%);
}

.slick-slide img {
  display: block;
  transition: opacity .2s ease;
  /* なめらかに */
}

.slick-slide:hover img,
.slick-slide:focus-within img {
  /* キーボード操作対応 */
  opacity: .8;
  /* 薄さは0.6〜0.9で調整 */
}




/* 画像エリア：とにかく横幅を使う */
.point-media {
  position: relative;
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 1 / 0.594;
  margin: 50px auto 0;
  overflow: visible;
  border-radius: 15px;
  border: 1px solid var(--color-black1);
  box-sizing: border-box;
}

/* ページ画像：はみ出しなく全体にフィット */
.book-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.book-page.active {
  opacity: 1;
  z-index: 1;
  border-radius: 15px;
}

/* 1. ボタン本体の基本設定とテキストの非表示 */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;

  line-height: 1;
  color: var(--color-white);
  /* 矢印の線色 */
  background: var(--color-blue);

  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  left: auto;
  right: auto;
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* 2. ホバー時 */
.nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
  filter: brightness(1.1);
}

/* 3. 左右のボタン配置 */
.prev-btn {
  left: -32px;
}

.next-btn {
  right: -32px;
}


/* 4. 矢印（擬似要素）の共通スタイル */
.nav-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-top-right-radius: 2px;
  /* 線の先端を丸く見せる */
}

.nav-btn.next-btn::after {
  transform: translate(-50%, -50%) rotate(45deg);
  left: 40%;
}

.nav-btn.prev-btn::after {
  transform: translate(-50%, -50%) rotate(-135deg);
  left: 60%;
}




/* リスト */
.menu-panel ul {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.menu-panel a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--color-black1);
  font-weight: 600;
}

/* 画像のフェード用トランジション */
.menu-panel a img {
  display: block;
  transition: transform .25s ease, opacity .25s ease;
  will-change: transform, opacity;
  /* 多用しない前提で */
}

/* ホバー/キーボードフォーカス時 */
.menu-panel a:hover img,
.menu-panel a:focus-visible img {
  opacity: .78;
  /* 0.6〜0.9で調整 */
  transform: scale(1.05);
  /* 1.03〜1.08が無難 */
}





/* アニメ苦手設定の配慮 */
@media (prefers-reduced-motion: reduce) {
  .menu-panel {
    transition: none;
  }

  .hamburger-menu span {
    transition: none;
  }
}


/* トップ画像セクション */

.hero-image {
  display: flex;
  margin: auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image img {
  width: 140%;
  max-width: 1400px;
}


/* 画像（中央配置） */
.banner-image {
  max-width: 600px;
  height: auto;
  display: block;
  z-index: 1;
  width: 95%;
}


/* セクション1: 書影 */
.book-cover-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  text-align: center;
}

.book-item {
  max-width: 240px;
  border-radius: 8px;
  /* 任意：見栄え */
}

.book-item img {
  display: block;
  margin: auto;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center center;
}

/* ホバー/フォーカスで薄く＆拡大 */
.book-item:hover img,
.book-item:focus-within img {
  opacity: .8;
  /* 0.6〜0.9で調整 */
  transform: scale(1.05);
  /* 1.03〜1.08が無難 */
}





.book-info-sab-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: auto;
}

.book-sab-area {
  display: flow;
  width: 100%;
  max-width: 200px;
  margin: auto;
}

.cover-sab {
  width: 100%;
  max-width: 200px;
}

.book-sab-box {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.button-detail {
  width: 150px;
  height: 30px;
  background: var(--color-blue);
  color: var(--color-white);
  border: 2px solid var(--color-white);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  text-decoration: none;
  margin: auto;
  transition: background-color 0.25s ease;
}

.button-detail:hover {
  background-color:
    color-mix(in srgb, var(--color-blue, #223171) 80%, white 20%);
}

.button-detail-sab {
  margin: auto 20px;
}

.title {
  margin: auto;
  width: 80%;
  max-width: 540px;
}

.about-section {
  background-color: var(--color-yellow);
  text-align: center;
  margin: auto;
}

.title img {
  margin: auto;
  width: 80%;
  max-width: 540px;
}

.about-section p {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
}


/* セクション2: 書籍の特徴 */

.features-section {
  position: relative;
  text-align: center;
  margin: auto;
}

/* セクションタイトル */
.features-section h2 {
  color: var(--color-blue);
  font-size: 2rem;
  margin-bottom: 3rem;
}

/* リード文 */
.lead {
  max-width: 940px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-black2);
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 700;
}

.feature-cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.feature-card {
  display: grid;
  position: relative;
  width: 1080px;
  max-width: 95%;
  color: var(--color-black1);
  padding: 1rem 3rem;
  box-sizing: border-box;
  background: url(../img/yellow_bg.png) no-repeat center top;
  background-size: 1050px auto;
}


.feature-card h3 {
  color: var(--color-blue);
  text-align: center;
  margin-bottom: 5px;
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 800;
  font-feature-settings: "palt" 1;
}



/* 本文（白・両端揃え） */
.feature-card p {
  font-size: 1.125rem;
  text-align: center;
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
  color: var(--color-black1)
}


.feature-card {
  grid-template-columns: 1fr 2.5fr 1fr;
  grid-template-areas: "imgL text imgR";
}

.feature-img--left {
  grid-area: imgL;
  margin: auto;
}

.feature-text {
  grid-area: text;
  margin: auto;
}

.feature-img--right {
  grid-area: imgR;
  margin: auto;
}

/* イラスト配置 */
.feature-illustrations {
  position: relative;
}

.illu {
  position: absolute;
  max-width: 180px;
  height: auto;
  z-index: 0;
  /* コマ撮り風に変更（4コマでガクガク） */
  animation: tiltHead 5s steps(4, end) infinite;
  transform-origin: 50% 60%;
  /* ちょい下を中心にすると“首”っぽく見える */
}

/* 2つ目だけタイミングずらす */
.illu:nth-of-type(2) {
  animation-delay: 0.3s;
}

.pen1 {
  top: -20rem;
  left: 0rem;
}

.pen2 {
  bottom: -2rem;
  right: 0rem;
}

.illu img {
  max-width: 180px;
}

.illu1 {
  top: -40rem;
  right: 0rem;
}

.illu2 {
  bottom: -2rem;
  left: 0rem;
}





/* 角度小さめ・カクカク */
@keyframes tiltHead {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(3deg);
  }

  50% {
    transform: rotate(-2deg);
  }

  75% {
    transform: rotate(3deg);
  }

  100% {
    transform: rotate(0deg);
  }
}




/* セクション3: ポイント */
.points-section {
  text-align: center;
  padding: 3rem 0;
}

.point-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

/* 1カード */
.point-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mh {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  text-align: left;
}

.mh-r {
  flex-direction: row-reverse;
}

.mh-img {
  width: 90px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.mh-txt {
  min-width: 0;
}

.mh-sub {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: var(--color-black2);
  font-weight: 500;
}

.mh-ttl {
  margin: 0;
  color: var(--color-blue);
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-feature-settings: "palt" 1;
}

ruby rt {
  font-size: 0.75rem;
  color: currentColor;
}



/* ===== 外側カルーセル ===== */
.slider {
  --peek: 8vw;
  /* 両端の“見切れ”量（調整点） */
  --gap: 16px;
  /* スライド間の余白 */
  position: relative;
  margin: 0 auto;
}

.viewport {
  overflow: hidden;
  /* ここで左右を切る */
  padding: 0 var(--peek);
  /* 見切れ用の余白を内側に確保 */
  scroll-snap-type: x mandatory;
  /* スワイプでカチッと止まる */
}

.track {
  display: flex;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.slide {
  flex: 0 0 calc(100% - 2*var(--peek));
  /* 表示幅＝ビューポート幅からpeek×2を引く */
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
}

.slide img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inline-size: 44px;
  block-size: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.nav:hover {
  background: rgba(0, 0, 0, .55);
}

.prev {
  left: 6px;
}

.next {
  right: 6px;
}






/* 説明文 */
.point-description {
  margin: 1rem;
  color: var(--color-black1);
  line-height: 1.5;
  font-size: 1rem;
  font-weight: 600;
}

/* セクション4: ムービー */
.movie-box {
  width: 100%;
  max-width: 920px;
  aspect-ratio: 16/9;
  margin: auto auto 20px auto;
}

.movie-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* 余白対策 */
}



/* セクション4: 全巻リスト */

.sales-links-sab {
  margin-top: 0px;
}

.book-title {
  color: var(--color-black1);
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 800;
}

.book-text {
  font-size: 1rem;
  color: var(--color-black2);
  margin-top: 5px;
  font-weight: 500;
  letter-spacing: -0.5px;
  font-feature-settings: "palt" 1;
}

.book-title-sab {
  color: var(--color-black1);
  font-size: 1.5rem;
}

.book-entry {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 20px;
  max-width: 920px;
  margin: 0 auto 30px;
  border-radius: 20px;
  background-color: var(--color-yellow);
}

.book-cover-area {
  text-align: justify;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.book-cover-img {
  border: 1px solid var(--color-black1);
  transition: opacity 0.3s ease;
}

.book-cover-btn-area {
  gap: 5px;
  display: flex;
  max-width: 920px;
  margin: 0 auto 30px;
  border-radius: 20px;
  flex-direction: column;
}

.list-book-cover {
  width: 230px;
  height: auto;
  margin-bottom: 10px;
  border: 1px solid var(--color-black1, #222);
  transition: opacity 0.3s ease;
}

/* ホバー時：少し薄く（80%の不透明度） */
.book-cover-img:hover,
.list-book-cover:hover {
  opacity: 0.7;
}

.upcoming-card_last {
  display: unset;
}

.book-hajimete {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: auto;
  width: 100%;
}

.book-hajimete-area {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  /* padding: 20px; */
  max-width: 920px;
}

.book-info-area {
  flex: 1;
}

.sales-links {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.sales-link {
  font-weight: 500;
  line-height: 1.125;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  border: 1px solid var(--color-black1, #222);
  width: 200px;
  height: 40px;
  color: var(--color-black1, #222);
  background-color: var(--color-white, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  transition: opacity .15s ease;
}

/* ホバー時 */
.sales-link:hover {
  opacity: 0.8;
}

.sales-link img {
  height: 36px;
}

.upcoming-section {
  position: relative;
  padding: 4rem 1rem 0rem;
  text-align: center;
}

/* カードレイアウト：PCは2列、2行目は中央揃え */
.upcoming-cards-container {
  display: flex;
  gap: 24px;
  max-width: 750px;
  margin: 2rem auto 1rem;
  position: relative;
  flex-wrap: wrap;
  z-index: 2;
}

.upcoming-card {
  background: var(--color-white, #fff);
  color: var(--color-black2, #333);
  border: 1px solid var(--color-black1, #222);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  max-width: 360px;
  margin: auto;
  width: 85%;
}

.upcoming-card.center {
  grid-column: 1 / -1;
  place-self: center;
  /* 中央寄せ */
  max-width: 520px;
}

.upcoming-card_last {
  display: flex;
  margin: auto;
  gap: 20px;
  align-items: center;
}

.upcoming_img {
  width: 160px;
  justify-content: center;
}

.upcoming_img img {
  width: 100%;
}


.dora_link {
  width: 95%;
  margin: 0 auto;
}


.dora_link img {
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
  opacity: 1;
  transform: scale(1);
  transition:
    filter 0.2s ease,
    background-color 0.35s ease,
    color 0.35s ease;
}

/* ホバー時：全体を薄く＋拡大 */
.dora_link img:hover,
.dora_link img:focus-visible {
  opacity: 0.8;
  animation: purchase-bounce1 0.45s ease-out forwards;
}



/* 注釈 */
.note {
  font-size: 0.625rem;
  color: var(--color-black2);
  margin: 0.5rem auto 1.5rem;
  letter-spacing: -1.25px;
}


.sales-links-sab a {
  width: 195px;
}


/* 追従するボタン（固定表示） */
.js-float-main {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 表示状態 */
.js-float-main.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-button {
  display: block;
  padding: 15px;
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
  color: var(--color-white);
}

.to-top-button {
  width: 100px;
  height: 80px;
  transition:
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.2s ease,
    background-color 0.35s ease,
    color 0.35s ease;
}

.to-top-button:hover {
  transform: scale(1.1);
  filter: brightness(1.05);
}

.purchase-button {
  width: 120px;
  height: 120px;
  /* 正円にするため高さも指定 */
  background: var(--color-yellow);
  /* 黄色い丸 */
  position: relative;
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* 画像を上下左右中央に */
  font-size: 1.8rem;
  line-height: 1.25;
  border: 3px solid #fff;
  /* 白フチ */
  border-radius: 50%;
  /* 丸 */
  cursor: pointer;
  overflow: hidden;
  transform: scale(1);
  transition:
    filter 0.2s ease,
    background-color 0.35s ease,
    color 0.35s ease;
}

/* 中の画像をきれいに収める */
.purchase-button img {
  display: block;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

/* ホバー時：丸を大きく（＋色変えたくなったらここで） */
.purchase-button:hover,
.purchase-button:focus-visible {
  animation: purchase-bounce2 0.45s ease-out forwards;
}

@keyframes purchase-bounce1 {
  0% {transform: scale(1);}
  30% {
    transform: scale(1.05);
  }
  65% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}



@keyframes purchase-bounce2 {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.18);
  }
  65% {
    transform: scale(0.85);
  }
  100% {
    transform: scale(1);
  }
}


/* 全体のレイアウト */
.social-share-buttons {
  text-align: center;
  padding: 10px 0;
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* アイコン横並び */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* 丸いアイコン共通設定 */
.share-button img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  /* 丸くする */
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* ホバーで少し薄く */
.share-button:hover img {
  opacity: 0.7;
}

/* テキスト部分 */
.share-text {
  font-size: 0.825rem;
  color: var(--color-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* 「シェア」アイコン（小さめ） */
.share-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}


/* フッター */
.site-footer {
  padding: 20px;
  text-align: center;
}


.decor-band {
  position: relative;
  height: 100px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.decor-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  animation: scroll-left 100s linear infinite;
}

.decor-track img {
  height: 100px;
  width: auto;
  max-width: fit-content;
}

.top-band {
  height: 10px;
}

.top-band img {
  height: 20px;
}



#index-footer {
  background: var(--color-white);
  padding: 60px 0px 30px 0px;
  text-align: center;
  display: flex;
  flex-flow: column;
  gap: 5px;
}

.infoLINK {
  color: #5d5d5d;
  text-align: center;
  text-decoration: underline;
  font-size: 0.75rem;
}


#shogakukan {
  padding: 10px;
}

#shogakukan a {
  color: #5d5d5d;
  padding: 4px 6px;
  font-size: 0.825rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  border: 1px solid #5d5d5d;
}

.copy {
  color: #5d5d5d;
  font-size: 0.625rem;
  line-height: 1.5;
  font-family: 'Noto Sans JP';
}

.js-scroll {
  opacity: 0;
  transition: opacity 0.8s, transform 0.8s;
}


/* --- 初期位置の定義 --- */
.js-scroll[data-animation="up"] {
  transform: translateY(30px);
}

/* --- 表示時の状態 (アニメーション完了) --- */
.js-scroll.is-active {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- メイン画像用の特別なアニメーション --- */
.js-scroll[data-animation="zoom"] {
  transform: scale(0.95);
}

.js-scroll[data-animation="zoom"].is-active {
  opacity: 1;
  transform: scale(1);
  /* 重厚感を出すため、時間を長く、緩急をつける */
  transition-duration: 1.5s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.illustbox {
  max-width: 1440px;
  margin: auto;
}


/* 横方向スクロールアニメーション */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* 全体
	--------------------------------- */
.PC {
  display: block;
}

.SP {
  display: none;
}

@media screen and (min-width: 767px) and (max-width: 900px) {


.pen1,.pen2,.illu1,.illu2 {
  display: none;
}

}


/* =======================================
   レスポンシブ対応 (Max-width: 767px)
   ======================================= */
@media (max-width: 767px) {

  .mh {
    margin-bottom: unset;
  }

  .mh-img {
    width: 80px;
  }

  .decor-band {
    height: 80px;
  }

  .decor-track img {
    height: 70px;
  }

  .top-band img {
    height: 20px;
  }

  /* --- 共通設定 --- */
  .section {
    padding: 20px 10px;
    margin-bottom: 10px;
  }

  .section h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
    /* タイトルを小さく */
  }

  .logo {
    margin: 1rem;
  }

  .mh-ttl {
    font-size: 1.75rem;
  }

  .h2_img {
    height: 40px;
  }

  .lead {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
  }

  .sales-links {
    gap: 5px;
  }

  .book-text {
    font-size: 0.6875rem;
  }

  #start_list {
    margin-top: -3.5rem;
  }


  .menu-panel {
    left: -60px;
    width: 310px;
    padding: 40px 20px 20px 55px;
  }

  .book-cover-btn-area {
    flex-flow: nowrap;
    width: 280px;
    margin: 0 auto;
  }

  .acd {
    width: 95%;
    margin: auto;
  }

  .start_list_box li button {
    width: 12px;
    height: 12px;
  }

  .point-media {
    border-radius: 5px;
  }

  /* --- セクション 1: 書影 --- */
  .read {
    width: 60%;
    margin-bottom: 5px;
  }

  .hamburger-menu {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
  }

  .hamburger-menu span {
    width: 40px;
    height: 4px;
  }

  .hamburger-menu.is-open span:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
  }

  .hamburger-menu.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.is-open span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
  }

  .menu-panel img {
    height: 25px;
  }


  .book-cover-list {
    gap: 20px;
  }

  .book-item {
    max-width: 200px;
    width: 45%;
  }



  /* --- セクション 2: 書籍の特徴 --- */


  .button-purchase {
    width: 100%;
  }


  .upcoming-card {
    width: 95%;
    max-width: unset;
  }

  .feature-card {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "text text"
      "imgL imgR";
    max-width: 100%;
    padding: 1rem 2rem;
    align-self: center;
    width: 100%;
    background-size: 1050px 100%;
    gap: 10px;
  }

  .feature-text {
    grid-area: text;
  }

  .feature-img--left {
    grid-area: imgL;
  }

  .feature-img--right {
    grid-area: imgR;
  }



  .feature-cards-container {
    flex-direction: column;
    /* 縦並びにする */
    gap: 15px;
  }

  .feature-illustrations {
    display: flex;
    justify-content: space-around;
  }

  .illu1,
  .illu2 {
    position: static;
    display: block;
    margin: 1rem auto;
  }

  .pen1,
  .pen2 {
    position: static;
    display: block;
    margin: 1rem auto;
  }


  /* --- セクション 3: ポイント --- */
  .point-item {
    flex-direction: column;
    /* 縦並びにする */
    text-align: center;
    gap: 20px;
  }

  .point-media {
    gap: 5px;
    flex: auto;
  }

  .point-description {
    font-size: 0.75rem;
  }

  .prev-btn {
    left: -30px;
  }

  .next-btn {
    right: -30px;
  }


  .nav-btn {
    font-size: 0.75rem;
    width: 40px;
    height: 40px;
  }

  /* --- セクション 4: 全巻リスト --- */
  .book-entry {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    max-width: 100%;
    text-align: center;
    padding: 20px 0;
    border-radius: 10px;
  }

  .book-cover-area {
    flex: none;
    width: 100%;
    margin: auto;
  }

  .list-book-cover {
    margin: auto;
    width: 180px;
  }

  .book-sab-box {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .illustbox {
    display: flex;
    justify-content: center;
  }

  .book-title {
    font-size: 1rem;
  }

  .sales-link {
    width: 45%;
    font-size: 0.75rem;
    border-radius: 5px;
  }

  .sales-link img {
    height: 28px;
  }

  .illu {
    max-width: 150px;
  }

  .series-badge {
    height: 80px;
    margin-top: -20px;
  }

  .series-hex {
    padding: 12px 24px;
  }

  .js-float-main {
    position: fixed;
    right: 0px;
    bottom: 0px;
  }

  .title {
    font-size: 1rem;
  }

  .upcoming-cards-container {
    gap: 15px;
  }

  .purchase-button {
    position: relative;
    width: 90px;
    height: 90px;
    margin-top: 0px;
  }

  .upcoming-card_last {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .upcoming_img {
    width: 110px;
  }

  .to-top-button {
    width: 80px;
    height: 65px;
  }

  .mh-sub {
    font-size: 0.875rem;
  }

  .dora_link {
    width: 95%;
  }

  .top-band {
    height: 10px;
  }

  .book-page,
  .book-page.active {
    border-radius: 5px;
  }

  .about-section p {
    font-size: 0.75rem;
  }

  .feature-card p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .feature-card h3 {
    font-size: 1.5rem;
  }

  .book-hajimete-area {
    flex-direction: column;
    gap: 10px;
  }

  .acd-header {
    height: 70px;
  }

  .book-sab-box {
    flex-direction: column;
  }

  .cover-sab {
    max-width: 120px;
  }

  /* 既存PCレイアウトそのまま */
  .book-cover-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    text-align: center;
  }

  .book-item {
    max-width: 240px;
    border-radius: 8px;
  }

  .book-item img {
    display: block;
    margin: auto;
    transition: transform .25s ease, opacity .25s ease;
    transform-origin: center center;
  }

  /* ホバー/フォーカスで薄く＆拡大（PC想定） */
  .book-item:hover img,
  .book-item:focus-within img {
    opacity: .8;
    transform: scale(1.05);
  }


  #book-covers {
    overflow: hidden;
    /* はみ出しを隠す */
  }

  .book-cover-list {
    --item-width: 40vw;
    --item-gap: 16px;
    --shift: calc(var(--item-width) * 5 + var(--item-gap) * 4);

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--item-gap);

    animation: book-scroll 16s linear infinite;
    will-change: transform;
  }

  .book-item {
    flex: 0 0 var(--item-width);
    /* 幅を固定 */
    max-width: none;
  }

  .book-item img {
    width: 100%;
    height: auto;
    display: block;
  }

  .book-item:hover img,
  .book-item:focus-within img {
    opacity: 1;
    transform: none;
  }

  @keyframes book-scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      /* ちょうど1セット分だけ左へ */
      transform: translateX(calc(-1 * var(--shift)));
    }
  }

  .sales-links-sab a {
    width: 49%;
  }

  .slick-dots li {
    margin: 5px;
  }

  .button-detail {
    font-size: 1rem;
  }

  /* 全体
	--------------------------------- */
  .PC {
    display: none;
  }

  .SP {
    display: block;
  }

}