/* ==========================================================================
   メンバー詳細ページ — design/Member-*.dc.html
   6ページ共通。差分は写真とヒーローの覆い（O.S / I.H のみ例外）。
   ========================================================================== */

/* --- ヒーロー ------------------------------------------------------------ */
.mb-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--h-header-pc));
  min-height: 600px;
  max-height: 1040px;
  background: var(--c-navy);
  overflow: hidden;
}
/* .mb-hero__img は components.css の .fill-photo を併用 */

/* 覆い：左→右のグラデーション + 下端の縦グラデーション */
.mb-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right,
      rgba(16,28,76,.84) 0%, rgba(16,28,76,.74) 28%, rgba(16,28,76,.6) 44%,
      rgba(16,28,76,.18) 49%, rgba(16,28,76,0) 52%),
    linear-gradient(to top, rgba(16,28,76,.3) 0%, rgba(16,28,76,0) 30%);
}

/* 左右反転（右端から左方向へ。コピーも右下・右揃え）。I.H と I.K の2名。
   ※ 02_pages.md は「I.H のみ」と記載しているが、design/Member-IK.dc.html も
      同じ反転指定を持つ。設計ファイルの実値に合わせている。 */
.mb-hero--flip .mb-hero__scrim {
  background:
    linear-gradient(to left,
      rgba(16,28,76,.84) 0%, rgba(16,28,76,.74) 28%, rgba(16,28,76,.6) 44%,
      rgba(16,28,76,.18) 49%, rgba(16,28,76,0) 52%),
    linear-gradient(to top, rgba(16,28,76,.3) 0%, rgba(16,28,76,0) 30%);
}

.mb-hero__copy {
  position: absolute;
  left: clamp(24px, 5vw, 100px);
  bottom: clamp(56px, 8vw, 110px);
  /* design は min(540px,40vw) だったが、それだと E.H の1行目（552px）と
     N.K の2行目（577px）が枠に収まらず3行になる。
     キャッチコピーが <br> のとおり2行で表示されるよう広げている。
     （2026-08-27 お客様のご指示による調整） */
  width: min(620px, 46vw);
  z-index: 2;
}
/* 行の分かれ目は <br> だけで決める。
   text-wrap:pretty は日本語だと任意の位置で折り返しを再調整するため無効化する */
.mb-hero__catch { text-wrap: wrap; }
.mb-hero--flip .mb-hero__copy {
  left: auto;
  right: clamp(24px, 5vw, 100px);
  text-align: right;
}

.mb-hero__catch {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: var(--fs-member-h1);
  line-height: 1.42;
  color: var(--c-offwhite);
  margin: 0;
  text-shadow: 0 2px 26px rgba(16, 28, 76, .55);
}

.mb-hero__rule {
  width: 56px;
  height: 2px;
  background: var(--line-offwhite);
  margin: clamp(26px, 3vw, 38px) 0 20px;
}
.mb-hero--flip .mb-hero__rule { margin-left: auto; }

.mb-hero__id { display: flex; align-items: baseline; gap: 14px; }
.mb-hero--flip .mb-hero__id { justify-content: flex-end; }

.mb-hero__initial {
  font-family: var(--f-en);
  font-weight: 900;
  font-style: italic;
  font-size: var(--fs-initial);
  line-height: 1;
  color: var(--c-offwhite);
  letter-spacing: var(--ls-en);
}
.mb-hero__joined {
  font-size: 13px;
  font-weight: 500;
  color: rgba(242, 243, 243, .85);
  letter-spacing: .04em;
}
.mb-hero__dept {
  font-size: 13px;
  font-weight: 600;
  color: rgba(242, 243, 243, .8);
  letter-spacing: .04em;
  margin-top: 10px;
}

/* --- 本文 ---------------------------------------------------------------- */
.mb-body {
  background: #fff;
  padding: clamp(48px, 10vw, 120px) clamp(20px, 8vw, 100px);
}
.mb-article { max-width: 760px; margin: 0 auto; }

.mb-chapter { margin-bottom: 56px; }
.mb-chapter:last-child { margin-bottom: 0; }

.mb-chapter__h {
  font-family: var(--f-head);
  font-size: var(--fs-h3);
  font-weight: 900;
  color: var(--c-navy);
  line-height: 1.5;
  margin: 0 0 20px;
}
.mb-chapter p {
  font-size: 16px;
  line-height: 2;
  color: var(--c-text);
  margin: 0 0 24px;
}
.mb-chapter p:last-child { margin-bottom: 0; }

/* --- 前後メンバー -------------------------------------------------------- */
.mb-nav {
  padding: 56px clamp(20px, 5vw, 100px) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 1.8vw, 24px);
  margin-top: 96px;
  border-top: 1px solid var(--line-navy);
}

.mb-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
/* .mb-card の写真は .fill-photo を併用 */
.mb-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(16,28,76,.92) 0%, rgba(16,28,76,.5) 48%, rgba(16,28,76,0) 100%);
}
.mb-card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 24px;
}
.mb-card__label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .75);
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.mb-card__catch {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 8px;
}
.mb-card__id {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .06em;
}
.mb-card__dept { margin-left: 10px; font-weight: 500; }

/* ==========================================================================
   SP（768px 以下）
   ========================================================================== */
@media (max-width: 768px) {
  .mb-hero { height: auto; min-height: 0; max-height: none; aspect-ratio: 3 / 4; }

  /* 覆いは下端から上へ。左右反転の指定も SP では使わない */
  .mb-hero__scrim,
  .mb-hero--flip .mb-hero__scrim {
    background: linear-gradient(to top,
      rgba(16,28,76,.78) 0%, rgba(16,28,76,.34) 30%, rgba(16,28,76,0) 58%);
  }

  .mb-hero__copy,
  .mb-hero--flip .mb-hero__copy {
    left: clamp(20px, 7vw, 40px);
    right: clamp(20px, 7vw, 40px);
    bottom: clamp(36px, 9vw, 52px);
    width: auto;
    text-align: left;
  }
  .mb-hero--flip .mb-hero__rule { margin-left: 0; }
  .mb-hero--flip .mb-hero__id { justify-content: flex-start; }

  .mb-hero__catch {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.5;
    text-shadow: 0 2px 22px rgba(16, 28, 76, .6);
  }

  .mb-article { max-width: none; }

  .mb-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 64px;
    padding: 40px 0 0;
  }
  .mb-card { aspect-ratio: 16 / 9; }
}
