/* =========================================================
   PianoLesson88 (v25 page CSS)
   - For .pl88-* blocks (issue cards + backnumber list)
   ========================================================= */

/* =========================================================
   Design tokens (page-local)
   ========================================================= */

:root {
  --pl88-gold: #886c4c;
  --pl88-accent: #e4c1b5;
  --pl88-soft: #fbf8f1;
}


/* ====================================
   Title Visual (used across profile pages)
   ==================================== */

.title_image {
  width: 740px;
  height: 270px;
  margin: 10px 0 0 0;
}

.title_pl88 {
  position: relative;
  overflow: hidden;
}

.title_pl88_bg {
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.title_pl88_logo {
  position: absolute;
  top: 18px;
  left: 22px;
  height: 60px;
}

.title_pl88_label {
  position: absolute;
  top: 80px;
  left: 22px;
  padding: 8px 16px 6px;
  background: rgba(143, 101, 87, 0.5);
  color: #fff;
  line-height: 1.6;
  font-family: "montserrat", "source-han-sans-japanese", sans-serif;
  border-radius: 3px;
}

.title_pl88_label .jp {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.title_pl88_label .en {
  margin: 0;
  font-size: 10px;
  opacity: 0.9;
}


/* =========================================================
   Global text rhythm (page)
   ========================================================= */

.detail,
.detail p,
.pl88-note,
.pl88-card__body p {
  line-height: 1.85;
  overflow-wrap: anywhere;
}


/* =========================================================
   Intro
   ========================================================= */

.pl88-intro {
  margin-bottom: 24px;
}


/* =========================================================
   Section headings: box_mds + description (page pattern)
   ========================================================= */

.box_mds + .detail,
.box_mds + .pl88-note {
  margin-top: 4px;
}

.pl88-intro + .box_mds,
.detail + .box_mds,
.pl88-issue + .box_mds,
.pl88-backnums .box_mds {
  margin-top: 40px;
}


/* =========================================================
   Issue blocks
   ========================================================= */

.pl88-issue {
  margin: 18px 0 28px;
  display: grid;
  gap: 12px;
}

/* Head label (unified) */
.pl88-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 2px;
  background: var(--pl88-gold);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.pl88-head i {
  margin-top: 2px;
  color: #fff;
}

/* Card (base) */
.pl88-card {
  display: block;
  padding: 0;
}

.pl88-card__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.pl88-card__body p {
  margin: 0;
}

/* Card (with media: PC two columns) */
@media (min-width: 769px) {
  .pl88-card.has-media {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
    align-items: start;
  }

  /* Card without media (PC: readable line length) */
  .pl88-card:not(.has-media) {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Featured / wide card (e.g., CTA block) */
.pl88-card--wide {
  background: var(--pl88-soft);
  padding: 14px 16px;
  border-radius: 2px;
}

@media (min-width: 769px) {
  .pl88-card--wide {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}


/* =========================================================
   Narrow text container (PC)
   ========================================================= */

@media (min-width: 769px) {
  .pl88-narrow {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* =========================================================
 CTA button
 ========================================================= */

 .pl88-btn {
    display: block;
    width: fit-content;
    margin: 12px auto 0;
    padding: 10px 20px;
    background: #243447;
    color: #fff;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 2px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .pl88-btn:hover {
    background: #2f4259;
    border-color: var(--pl88-gold);
    text-decoration: none;
  }


/* =========================================================
   Backnumbers
   ========================================================= */

.pl88-backnums {
  margin-top: 34px;
}

.pl88-note {
  margin: 6px 0 0;
  padding: 0 6px 14px;
  color: var(--prm-text);
}

.pl88-bn-wrap {
  width: 100%;
}

/* Base: PC uses CSS columns 3 */
.pl88-bn {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 3;
  column-gap: 18px;
}

.pl88-bn li {
  break-inside: avoid;
  padding: 6px 0;
  line-height: 1.9;
}

.pl88-bn a {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 2px 0;
  text-decoration: none;
}

.pl88-bn a:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

/* Disabled rows (no PDF) */
.pl88-bn .is-disabled {
  color: var(--prm-subtext);
}

.pl88-bn .is-disabled i {
  opacity: 0.7;
}


/* =========================================================
   iPad / Tablet adjustments (includes iPad mini)
   - Text breathing space
   - Backnumbers: 2 columns baseline
   ========================================================= */

@media (min-width: 601px) and (max-width: 1024px) {

  /* iPad mini text breathing space */
  .pl88-narrow,
  .pl88-card__body,
  .detail,
  .pl88-note {
    padding: 8px 18px;
  }

  /* Backnumbers baseline: 2 columns */
  .pl88-bn {
    column-count: 2;
  }

  .pl88-bn-wrap {
    max-width: none;
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* iPad mini portrait fix (Safari columns can collapse)
   - Force 2 columns with grid
*/
@media (min-width: 601px) and (max-width: 820px) {
  .pl88-bn {
    column-count: initial;
    column-gap: initial;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 18px;
  }

  .pl88-bn a {
    white-space: nowrap;
  }
}


/* =========================================================
   Desktop wrap (optional constraint)
   ========================================================= */

@media (min-width: 1025px) {
  .pl88-bn-wrap {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* =========================================================
   Mobile adjustments (phones)
   ========================================================= */

@media (max-width: 600px) {

  main > section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .box_mds {
    margin-bottom: 18px;
  }

  .detail {
    padding-left: 14px;
    padding-right: 14px;
  }

  .pl88-card__media {
    margin-bottom: 4px;
  }

  .pl88-card__body {
    margin-top: 12px;
  }

  /* Backnumbers: 1 column */
  .pl88-bn {
    display: block;
    column-count: 1;
    column-gap: 0;
  }

  .pl88-bn-wrap {
    max-width: 270px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
  }
}