@charset "UTF-8";
/* English muscle-health page (/en/muscle-health/) — overrides on top of muscle-health.css */

/* Section headings ("Aerobic Exercise", "Anaerobic Exercise") centered */
.p-muscle-health01-hd .c-h1,
.p-muscle-health03-hd .c-h1,
.p-muscle-health05-hd .c-h1 {
  text-align: center;
}

/* Mechanism / Benefit / Target Consumers labels in brand green */
.c-flex-dl h3.c-h3 {
  color: hsl(146, 76%, 18%);
  margin-block: 1.25rem 0.35rem;
}

/* Keep every content image's aspect ratio (ignore the HTML height attribute) */
.p-muscle-health01 img,
.p-muscle-health02 img,
.p-muscle-health03 img,
.p-muscle-health04 img,
.p-muscle-health05 img {
  height: auto;
}

/* Landscape charts & photos: wider column, keep aspect ratio */
.c-flex-img img {
  width: 100%;
  height: auto;
}

@media screen and (min-width: 768px) {
  .c-flex-img {
    width: 52%;
  }
}

/* ── Energy Metabolism & Performance ───────────────────────────── */
.p-muscle-health05 {
  margin-block-start: clamp(5rem, 3.57rem + 7.14vw, 10rem);
}

.p-muscle-health05-hd .c-h1 {
  margin-block: 0 clamp(2.5rem, 1.79rem + 3.57vw, 5rem);
}

.p-mh-energy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p-mh-energy-item {
  position: relative;
  display: block;
  cursor: pointer;
}

.p-mh-energy-item img {
  display: block;
  width: 100%;
  height: auto;
}

.p-mh-energy-hoverItem {
  position: absolute;
  inset: 0;
  background: hsl(146deg, 76%, 18%, 92%);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  transition: opacity 0.3s ease;
}

.p-mh-energy-hoverItem .c-h3 {
  width: min(24rem, 100%);
  color: #fff;
  text-align: center;
  margin-block: 0 0.9em;
}

.p-mh-energy-hoverItem .c-txt {
  width: min(24rem, 100%);
  font-size: 0.8125rem;
  line-height: 1.75;
}

.p-mh-energy-hoverItem .c-btn-sm {
  color: #fff;
  border-color: #fff;
  margin-block-start: 1em;
}

.p-mh-energy-item.is-open .p-mh-energy-hoverItem {
  opacity: 1;
  pointer-events: auto;
}

.p-mh-energy-close {
  position: absolute;
  inset: 1rem 1rem auto auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

@media screen and (max-width: 767px) {
  .p-mh-energy-list {
    grid-template-columns: 1fr;
  }
}


/* 2026-10-13: 英語の研究チャート（枠付きカード画像）も繁体字と同様に本文幅の中に収める。
   このファイルの .c-flex-img { width: 52% } より後に置いて上書きする。 */
@media screen and (min-width: 768px) {
  .p-muscle-health01 .c-flex .c-flex-img.p-mh-chart,
  .p-muscle-health03 .c-flex .c-flex-img.p-mh-chart {
    width: 50%;
    margin-inline: 0;
  }
}


/* No.208: SP でカードの説明文が入りきらない場合は、テキストだけをスクロールさせる。
   カード（オーバーレイ）自体は固定し、閉じるボタンは常に右上に表示したままにする。 */
@media screen and (max-width: 767px) {
  .p-ha-wellness-overlay,
  .p-ha-wellness-hoverItem,
  .p-mh-energy-overlay,
  .p-mh-energy-hoverItem {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    padding: 3.25rem 1.5rem 1.5rem;
  }

  .p-ha-wellness-desc,
  .p-ha-wellness-hoverItem > .c-txt,
  .p-mh-energy-desc,
  .p-mh-energy-hoverItem > .c-txt {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .p-ha-wellness-close,
  .p-mh-energy-close {
    z-index: 2;
  }
}
