
/* ===== Design Tokens ===== */
:root {
  --color-bg: #fdf9fa;
  --color-text: #5d5a5c;
  --color-accent-pink: #fb909e;
  --color-accent-blue: #9edaff;
  --color-accent-orange: #f4ba97;
  --color-accent-green: #95de8c;
  --color-border: #d9d9d9;
  --font: "Noto Sans JP", sans-serif;
  --font-sp-size: 16px;
  --font-pc-size: 20px;
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  background: var(--color-bg);
  font-family: var(--font);
  color: var(--color-text);
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
}

/* ===== Page wrapper ===== */
.page-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(253, 249, 250, 0.5), rgba(253, 249, 250, 0.5)),
    url("/summarize/image/bg_paper_tex.jpg") repeat;
}

/* ========================================
   SP HERO
======================================== */
.hero-sp {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hero-sp__bg {
position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-sp__bg img {
width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-sp__parts {
position: relative; /* absoluteをやめる */
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  padding: 20px 0;
}
.hero-sp__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  position: relative;
}
.hero-sp__title img {
  z-index: 2;
}
.hero-sp__title img:nth-child(1) {
  filter: drop-shadow(0 0 7px #245c84);
}
.hero-sp__title img:nth-child(3) {
  padding-top: 10px;
}
.sp-white-bg {
  background-color: white;
  width: min(335px, 90%);
  height: 116px;
  border-radius: 70px;
  opacity: 0.65;
  filter: blur(38px);
  position: absolute;
  z-index: 1;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-sp__book {
  display: flex;
  flex-direction: row;
  align-items: center;
  p {
    font-weight: 500;
    filter: drop-shadow(2px 2px rgba(0, 0, 0, 0.1));
    font-size: clamp(12px, 4cqw, 20px);
  }
  img {
    height: clamp(140px, 25vw, 280px);
    filter: drop-shadow(-3px 5px 6px #c0c2c8);
  }
}
.hero-sp__copy {
  p {
    text-align: center;
    font-weight: 500;
    font-size: clamp(12px, 5cqw, 20px);
  }
  span {
    color: #fb909e;
  }
}

/* Mini nav cards */
.hero-sp__cards {
  position: relative; /* absoluteをやめる */
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  padding: 5px 8px;
 
  background: linear-gradient(transparent, var(--color-bg) 60%); /* 自然なフェード */
}
.hero-sp__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 13px 6px;
  width: calc(33.333% - 8px);
  min-width: 0;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid white;
  border-radius: 20px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}
.hero-sp__card-label {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: clamp(10px, 3vw, 12px);
  font-weight: 500;
}
.hero-sp__card-label img {
  width: 20px;
  height: 20px;
}
.hero-sp__card-desc {
  font-size: clamp(10px, 2.2cqi, 15px);
  font-weight: 400;
  text-align: center;
}
.hero-sp__card-btn {
  width: 100px;
  max-width: 100px;
  padding: 8px;
  border: 2px solid var(--color-text);
  border-radius: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.btn-color--listening {
  background: var(--color-accent-blue);
}
.btn-color--read {
  background: var(--color-accent-orange);
}
.btn-color--picture {
  background: var(--color-accent-green);
}

/* PC hero: hidden on SP */
.hero-pc {
  display: none;
}

.break-pc{
  display: none;
}

/* ========================================
   MAIN CONTENT (shared SP/PC)
======================================== */
.main-content {
  width: 100%;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* PC nav cards: hidden on SP */
.pc-cards {
  display: none;
}

/* Intro text */
.intro {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  font-size: var(--font-sp-size);
  font-weight: 400;
  line-height: 25px;
}

/* PC divider: hidden on SP */
.pc-divider {
  display: none;
}

/* ===== Section ===== */
.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 24px 24px;
}

.section__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.section__title-img {
  max-width: 100%;
}

.section__desc {
  width: 100%;
  font-size: var(--font-sp-size);
  font-weight: 400;
  line-height: 25px;
}

.section__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 382 / 215;
  border-radius: 20px;
  overflow: hidden;
}
.section__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section__img-overlay {
  position: absolute;
  inset: 0;
}

.section__note {
  width: 100%;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Large CTA buttons */
.btn-l {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 300px;
  padding: 16px;
  border: 2px solid white;
  border-radius: 30px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  font-size: 20px;
  font-weight: 700;
  color: white;
  cursor: pointer;
}
.btn-l img {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
}
.btn-l--listening {
  background: var(--color-accent-blue);
}
.btn-l--read {
  background: var(--color-accent-orange);
}
.btn-l--picture {
  background: var(--color-accent-green);
}

/* ===== Footer ===== */
.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 24px;
}
.footer__logos {
  width: 100%;
  background: white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 24px;
}
.footer__logo-mirai {
  width: 154px;
  height: 40px;
  object-fit: contain;
}
.footer__logo-seikyobookstore {
  width: 160px;
  height: 40px;
  object-fit: contain;
}
.footer__copyright {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

/* ===== Scroll-to-top ===== */
.scroll-top {
  opacity: 0;
  pointer-events: none;
  position: fixed;

  bottom: 24px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  z-index: 100;
  transition:
    opacity 0.3s,
    transform 0.2s ease;

  &.visible {
    opacity: 1;
    pointer-events: auto;
  }
}

.scroll-top img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

/* ===== Hover Effects ===== */
.hero-sp__card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.hero-sp__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.hero-sp__card-btn {
  transition: opacity 0.2s ease;
}
.hero-sp__card-btn:hover {
  opacity: 0.8;
}

.btn-l {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}
.btn-l:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

.btn-m {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}
.btn-m:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

.back-link {
  transition: opacity 0.2s ease;
}
.back-link:hover {
  opacity: 0.6;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

.img-modal__close {
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.img-modal__close:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

.img-modal__download {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}
.img-modal__download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

/* ========================================
   PC BREAKPOINT (≥800px)
======================================== */
@media (min-width: 800px) {
  /* Swap heroes */
  .hero-sp {
    display: none;
  }
  .hero-pc {
    display: block;
    position: relative;
    width: 100%;
    height: 615px;
    overflow: hidden;
  }

  .hero-pc__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    & :after {
      width: 100%;
      height: 200px;
      content: "";
      position: absolute;
      bottom: 0;
      background: linear-gradient(transparent, white);
    }
  }
  .hero-pc__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero-pc__parts {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    height: 615px;
    justify-content: space-around;
  }
  .hero-pc__title {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 21px;
    position: relative;

    img {
      z-index: 2;
    }
  }
  .hero-pc__title img:nth-child(1) {
    height: 68px;
    filter: drop-shadow(0 0 7px #245c84);
  }
  .hero-pc__title img:nth-child(2) {
    height: 87px;
  }
  .hero-pc__title img:nth-child(3) {
    height: 19px;
  }
  .sp-white-bg {
    width: 529px;
    height: 184px;
  }

  .hero-pc__wrap {
    display: flex;
    flex-direction: row;
    gap: 45px;
  }

  .hero-pc__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    > p {
      &:nth-child(1) {
        font-weight: 500;
        font-size: 24px;
        line-height: 1.5;
        filter: drop-shadow(2px 2px rgba(0, 0, 0, 0.1));
      }
    }
  }
  .hero-pc__copy__bg {
    width: 450px;
    height: 155px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 2px white;
    display: grid;
    place-items: center;
    text-align: center;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.2));
    p {
      text-align: center;
      font-weight: 500;
      font-size: 24px;
      line-height: 1.8;
    }
    span {
      color: #fb909e;
    }
  }
.hero-sp__book img{
   height:280px;
}

  .scroll-top {
    display: none;
  }

.break-pc{
  display: block;
}

  /* Main content area: 800px centered */
  .main-content {
    max-width: 800px;
    padding-top: 30px;
  }

  /* PC nav cards */
  .pc-cards {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 139px;
    padding: 0;
  }
  .pc-card {
    width: 240px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    border-radius: 16px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 13px 10px;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }
  .pc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }
  .pc-card__title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .pc-card__label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
  }
  .pc-card__label-row img {
    width: 24px;
    height: 24px;
  }
  .pc-card__name {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
  }
  .pc-card__subtitle {
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
  }
  .pc-card__btn {
    width: 160px;
    padding: 8px;
    border: 2px solid var(--color-text);
    border-radius: 30px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
  }

  /* Intro PC */
  .intro {
    font-size: var(--font-pc-size);
    font-weight: 500;
    line-height: 32px;
    text-align: center;
    padding: 56px 24px 24px;
  }

  /* PC divider */
  .pc-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
  }
  .pc-divider::after {
    content: "";
    width: 1px;
    height: 40px;
    background: var(--color-border);
  }

  /* Section PC overrides */
  .section {
    padding: 48px 24px;
  }
  .section__desc {
    font-size: var(--font-pc-size);
    font-weight: 500;
    line-height: 32px;
    text-align: center;
  }
  .section__img-wrap {
    width: 480px;
    height: 270px;
    aspect-ratio: unset;
  }
  .section__note {
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    text-align: center;
  }

  /* Footer PC */
  .footer {
    max-width: 800px;
  }
  .footer__logos {
    flex-direction: row;
    justify-content: center;
    padding: 0;
    gap: 40px;
  }
  .footer__logo-mirai {
    height: 80px;
    width: 154px;
  }
  .footer__logo-seikyobookstore {
    height: 80px;
    width: 160px;
  }
}

/* ========================================
   SUB-PAGE COMMON
======================================== */

/* Page wrapper for sub-pages */
.page-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(253, 249, 250, 0.5), rgba(253, 249, 250, 0.5)),
    url("/summarize/image/bg_paper_tex.jpg") repeat;
}

/* ===== Mini Title Bar ===== */
.mini-title {
  width: 100%;
  height: 100px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.mini-title-bg img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: center top;
}
.mini-title-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, white);
}
.mini-title-bg-sp {
  display: block;
}
.mini-title-bg-pc {
  display: none;
}
.mini-title-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 60px;
  display: flex;
  align-items: center;
}
.mini-title-logo img {
  height: 27px;
  width: auto;
}

/* ===== Read Content Area ===== */
.read-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  gap: 32px;
  padding: 32px 24px 24px;
}

.read-content__intro {
  width: 100%;
  font-size: var(--font-sp-size);
  font-weight: 400;
  line-height: 25px;
}

/* ===== Chapter Block ===== */
.chapter-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chapter-heading {
  font-family: "Klee One", var(--font);
  font-size: clamp(20px, 6cqi, 26px);
  font-weight: 600;
  line-height: 30px;
  letter-spacing: normal;
  color: var(--color-text);
}

/* ===== Accordion ===== */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.accordion-item {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
}

.accordion-item__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  user-select: none;
  margin: 0 16px;
}
.accordion-item.is-open .accordion-item__header {
  border-bottom: #5d5a5c solid 1px;
}

.accordion-item__bar {
  width: 4px;
  height: 24px;
  background: var(--color-accent-orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.accordion-item__label {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.8px;
}

.accordion-item__toggle {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/summarize/image/text-acc-plus.svg");
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.accordion-item__toggle::before {
  content: "";
}
.accordion-item.is-open .accordion-item__toggle {
  background-image: url("/summarize/image/text-acc-minus.svg");
}

.accordion-item__body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  /* padding: 16px 0 16px 0; */
  /* font-size: 14px;
  font-weight: 400;
  line-height: 22px; */
  opacity: 0;
  transition:
    opacity 0.4s ease,
    grid-template-rows 0.5s ease;
}
.accordion-item__body-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #5d5a5c;
  margin: 0 16px 0 32px;
}
.accordion-item__body-inner > a {
  display: block;
  padding: 16px 0;
  font-size: var(--font-sp-size);
  font-weight: 400;
  line-height: 22px;
}
.accordion-item__body-inner > a:hover {
  opacity: 0.8;
}
.accordion-item.is-open .accordion-item__body {
  opacity: 1;
  grid-template-rows: 1fr;
}
.accordion-item.is-open {
  padding-bottom: 20px;
}

/* ===== Medium CTA Buttons ===== */
.btn-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn-m {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  border: 2px solid white;
  border-radius: 30px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  font-size: 16px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  text-align: center;
}
.btn-m img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.btn-m--listening {
  background: var(--color-accent-blue);
}
.btn-m--read {
  background: var(--color-accent-orange);
}
.btn-m--picture {
  background: var(--color-accent-green);
}

/* ===== Back Link ===== */
.back-link {
  font-size: 16px;
  font-weight: 400;
  text-decoration: underline;
  color: var(--color-text);
}

/* ========================================
   SUB-PAGE PC BREAKPOINT (≥800px)
======================================== */
@media (min-width: 800px) {
  .mini-title {
    height: 160px;
  }

  .mini-title-bg-sp {
    display: none;
  }

  .mini-title-bg-pc {
    display: block;
  }
  .mini-title-bg-pc img {
    height: 160px;
  }

  .read-content {
    max-width: 800px;
    padding: 48px 24px 24px;
    gap: 40px;
  }

  .read-content__intro {
    font-size: 16px;
    font-weight: 500;
    line-height: 32px;
    text-align: center;
  }

  .chapter-heading {
    font-size: 26px;
  }

  .btn-m {
    font-size: 18px;
    padding: 16px;
  }
}

/* ========================================
   DOWNLOAD-IMAGE PAGE
======================================== */

.himekuri-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  gap: 32px;
  padding: 32px 24px 24px;
}

.himekuri-content__intro {
  width: 100%;
  font-size: var(--font-sp-size);
  font-weight: 400;
  line-height: 25px;
}

.himekuri-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.himekuri-grid__item {
  /* aspect-ratio: 1 / 1; */
  /* border-radius: 8px; */
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.himekuri-grid__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.himekuri-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Image Modal / Lightbox ===== */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.img-modal.is-open {
  display: flex;
}

.img-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.img-modal__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 16px;
  max-width: 95vw;
  max-height: 95vh;
}

.img-modal__img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
}

.img-modal__close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 36px;
  height: 36px;
  background: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.img-modal__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-accent-green);
  border: 2px solid white;
  border-radius: 30px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  font-size: 18px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  text-decoration: none;
}

@media (min-width: 800px) {
  .himekuri-content {
    max-width: 800px;
    padding: 48px 24px 24px;
    gap: 40px;
  }

  .himekuri-content__intro {
    font-size: 16px;
    font-weight: 500;
    line-height: 32px;
    text-align: center;
  }

  .himekuri-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .img-modal__img {
    max-height: 82vh;
  }
}

/* ========================================
   LISTENING CARD COMPONENT
======================================== */

/* ===== Listening Content Area ===== */
.listening-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  gap: 32px;
  padding: 32px 24px 24px;
}

.listening-content__intro {
  width: 100%;
  font-size: var(--font-sp-size);
  font-weight: 400;
  line-height: 25px;
}

/* ===== Listening Card (chapter block) ===== */
.listening-card {
  width: 100%;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.listening-card__invisible {
  position: relative;
}
.listening-card__invisible::after {
  content:'';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75%;
  background: linear-gradient( to bottom, transparent 0%, 
     rgba(253, 249, 250, 0.85) 40%, rgba(253, 249, 250, 1) 100%);
  pointer-events: none;
  z-index:1;
}
  
.listening-card__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listening-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.listening-card__h-line {
  width: 4px;
  align-self: stretch;
  background: var(--color-accent-blue);
  border-radius: 2px;
  flex-shrink: 0;
}

.listening-card__title-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.listening-card__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.8px;
}

.listening-card__subtitle {
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0.6px;
}

.listening-card__divider {
  height: 1px;
  background: var(--color-text);
  width: 100%;
}

/* ===== Listening Card Body ===== */
.listening-card__body {
  background: white;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listening-card__body__invisible{
  position: relative;
}

.listening-card__body__invisible::after{
  content:'';
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: default;
}

.listening-card__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listening-card__item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.listening-card__item-title {
  flex: 1;
  font-size: var(--font-sp-size);
  font-weight: 400;
  line-height: 20px;
}

.listening-card__item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.listening-card__item-duration {
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  padding-right: 8px;
}

.listening-card__item-icon {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
  flex-shrink: 0;
}

.listening-card__item-divider {
  height: 1px;
  background: var(--color-text);
  width: 100%;
}

/* ========================================
   LISTENING PC BREAKPOINT (≥800px)
======================================== */
@media (min-width: 800px) {
  .listening-content {
    max-width: 800px;
    padding: 48px 24px 24px;
    gap: 40px;
  }

  .listening-content__intro {
    font-size: var(--font-pc-size);
    font-weight: 500;
    line-height: 32px;
    text-align: center;
  }
}
/* ========================================
   AUDIO PLAYER — モーダル版
======================================== */
/* ---- 常駐ミニFABボタン（画面右下固定） ---- */
.player-fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 150;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent-blue);
  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.player-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.player-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 再生中パルスアニメ */
.player-fab.is-playing {
  animation: fab-pulse 2s ease-in-out infinite;
}
@keyframes fab-pulse {
  0%,
  100% {
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.25),
      0 0 0 0 rgba(158, 218, 255, 0.6);
  }
  50% {
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.25),
      0 0 0 10px rgba(158, 218, 255, 0);
  }
}

/* ---- モーダルオーバーレイ ---- */
.player-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.player-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---- モーダル本体（ボトムシート風） ---- */
.player-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 20px 24px 36px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.player-modal-overlay.is-open .player-modal {
  transform: translateY(0);
}

/* ドラッグハンドル（装飾のみ） */
.player-modal__handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 0 auto -8px;
}

/* 閉じるボタン */
.player-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.player-modal__close:hover {
  background: #e0e0e0;
  transform: scale(1.1);
}

/* 曲名エリア */
.player-modal__title-area {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 40px;
}
.player-modal__label {
  font-size: 11px;
  font-weight: 500;
  color: #aaa;
  letter-spacing: 0.5px;
}
.player-modal__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* シークバー */
.player-modal__seek-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.player-modal__seek {
  width: 100%;
  height: 6px;
  accent-color: var(--color-accent-blue);
  cursor: pointer;
}
.player-modal__time-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #aaa;
}

/* コントロールボタン */
.player-modal__controls {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.player-modal__btn {
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  background: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.player-modal__btn:hover {
  background: #f5f5f5;
  transform: scale(1.05);
}
.player-modal__btn:active {
  transform: scale(0.93);
}
.player-modal__play-pause {
  width: 60px;
  height: 60px;
  font-size: 24px;
  background: var(--color-accent-blue);
  border-color: white;
  box-shadow: 0 4px 12px rgba(158, 218, 255, 0.5);
}
.player-modal__play-pause:hover {
  background: #87cff5;
}
.player-modal__btn .material-symbols-rounded {
  font-size: 24px;
}
.player-modal__play-pause .material-symbols-rounded {
  font-size: 30px;
}
/* 再生速度コントロール */
.player-modal__speed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.player-modal__speed-label {
  font-size: 11px;
  font-weight: 500;
  color: #aaa;
  letter-spacing: 0.5px;
}
.player-modal__speed-btns {
  display: flex;
  gap: 6px;
}
.player-modal__speed-btn {
  padding: 6px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  background: white;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  font-family: var(--font);
}
.player-modal__speed-btn:hover {
  background: #f0f0f0;
}
.player-modal__speed-btn.is-active {
  background: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
  color: white;
}
.listening-card__play-btn:focus:not(:focus-visible),
.player-modal__btn:focus:not(:focus-visible),
.player-modal__speed-btn:focus:not(:focus-visible),
.player-fab:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================
   LISTENING PC BREAKPOINT (≥800px)
======================================== */
@media (min-width: 800px) {
  .listening-content {
    max-width: 800px;
    padding: 48px 24px 24px;
    gap: 40px;
  }

  .listening-content__intro {
    font-size: 16px;
    font-weight: 500;
    line-height: 32px;
    text-align: center;
  }

  .player-fab {
    bottom: 32px;
    right: 32px;
  }
  .player-modal {
    border-radius: 24px;
    margin-bottom: 32px;
    padding: 24px 32px 32px;
  }
  .player-modal-overlay {
    align-items: flex-end;
  }
.listening-card__play-btn:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}
}



