/* =========================================================
   PRIMA GAKKI 80th Anniversary
   Shared styles (PC-first)
   ========================================================= */


/* =========================================
   Hero image (PC & SP)
   ========================================= */

.title_80th {
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

/* Logo overlay */
.title_80th_logo {
  position: absolute;
  right: 24px;
  bottom: 20px;
  width: 140px;
  height: auto;
}

@media screen and (max-width: 600px) {

  .title_80th_bg {
    height: 260px;
    object-position: 65% center;  
  }

  .title_80th_logo {
    width: 110px;
    right: 16px;
    bottom: 16px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .title_80th_bg,
  .title_80th_bg_flbag {
    height: 360px;
    object-position: center;
  }
}


/* =========================================================
   Greeting section (2 columns on desktop)
   ========================================================= */

.box_note {
  display: grid;
  grid-template-columns: 340px 360px;
  gap: 20px;
  margin: 20px 0 20px 20px;
  padding: 0;
}

.box_note_left {
  text-align: left;
}

.box_history_right {
  text-align: right;
}


/* =========================================================
   Index grid (used on the top page)
   ========================================================= */

.box_index {
  display: grid;
  grid-template-columns: repeat(4, 172px);
  gap: 12px;
  margin: 20px 0 0 0;
  padding: 0;
}

.box_index_left {
  min-width: 0;
}

.box_index_left > a {
  display: block;
}

.box_index_left img {
  width: 172px;
  height: auto;
  display: block;
}


/* =========================================================
   Photo caption overlay (generic)
   ========================================================= */

.pic.mjns {
  position: relative;
  margin: 0 0 22px;
  width: 360px;
  max-width: 100%;
  display: inline-block;
}

.pic.mjns img {
  display: block;
  width: 100%;
  height: auto;
}

.pic.mjns p {
  position: absolute;
  right: 6px;
  bottom: 4px;
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  font-feature-settings: "palt";
  text-align: right;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.65);
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cap-softbg p {
  padding: 1px 6px;
  background: rgba(0,0,0,.14);
  border-radius: 3px;
}


/* =========================================================
   Spec list
   ========================================================= */

.desc .spec-list {
  margin: 6px 0 0;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}

.desc .spec-row {
  padding: 8px 0;
  border-bottom: 1px solid #e6e6e6;
  font-size: 12.5px;
  line-height: 1.7;
}

@media screen and (max-width: 768px) {
  .desc .spec-row {
    padding: 7px 0;
    font-size: 13px;
  }
}

@media screen and (max-width: 900px) {
  .desc .spec-row {
    padding: 12px 0;
    font-size: 13px;
    line-height: 1.9;
  }
}

@media screen and (max-width: 600px) {
  .desc .spec-row {
    padding: 14px 0;
    line-height: 1.95;
  }
}


/* =========================================================
   Space before accessories heading
   ========================================================= */

.desc .spec-list {
  margin-bottom: 20px;
}

@media screen and (max-width: 600px) {
  .desc .spec-list {
    margin-bottom: 46px;
  }
}

/* Accessories: slightly softer lines */
.desc .spec-list--accessories {
  border-top-color: #ededed;
}
.desc .spec-list--accessories .spec-row {
  border-bottom-color: #ededed;
}
.desc .spec-list .spec-row:last-child {
  border-bottom: none;
}


/* =========================================================
   Mobile adjustments (<= 600px)
   ========================================================= */

@media screen and (max-width: 600px) {

  /* Hero */
  .title_image {
    width: 100%;
    height: auto;
    margin: 8px 0 10px;
  }

  .title_80th_bg {
    height: 260px;
  }

  .title_80th_logo {
    top: 14px;
    left: 12px;
    height: 28px;
  }

  /* Label (top page only) */
  .title_80th_label {
    top: 58px;
    left: 12px;
    padding: 6px 12px 4px;
    max-width: calc(100% - 24px);
  }

  .title_80th_label .jp { font-size: 12px; }
  .title_80th_label .en { font-size: 9px; }

  .title_80th_label p {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Greeting: 2 columns -> 1 column */
  .box_note {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 16px 0 18px;
    padding: 0;
  }

  .box_note_left,
  .box_history_right {
    min-width: 0;
  }

  .box_note_left {
    line-height: 1.9;
  }

  .box_history_right {
    text-align: left;
  }

  .box_history_right img {
    width: 100%;
  }

  /* Index grid: 4 columns -> 2 columns */
  .box_index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    width: 100%;
    max-width: 100%;
  }

  .box_index_left img {
    width: 100%;
  }

  /* Caption overlay */
  .pic.mjns p {
    right: 8px;
    bottom: 8px;
    padding: 6px 9px 4px;
  }
}