/* message.css */

/* 既存の header / menu を壊さないためmessage.cssではheader系は触らない */

/* ===== Message layout ===== */
.p_member .ttl .row{
  position: relative;
}

    .ttl .txt {
        top: 30%;
}

.ttl__name{
color:#fff;
}

/* 名前ブロック */
.p_member .ttl__name{
  position: absolute;
  right: 0px;        /* 右端からの距離（PC） */
  bottom: 15px;       /* 下からの距離（PC） */
  text-align: right;
  color: #fff;
  z-index: 3;         /* 画像・テキストより前 */
}

/* 役職 */
.p_member .ttl__nameRole{
  display: block;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .08em;
}

/* 名前 */
.p_member .ttl__nameTxt{
  display: block;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .1em;
}

/* ===== SP調整 ===== */
@media (max-width: 768px){
.p_member .msgQuote__lead {
    font-size: 4.8vw;
}
.ttl .txt {
    top: 0;
}
  .p_member .ttl__name{
    bottom: 0px;
  }

}

@media (max-width: 480px){
.p_member .ttl__nameRole {
    font-size: 14px;
}
.p_member .ttl__nameTxt {
    margin-top: 0;
    font-size: 22px;
}
}

.p_member .member{
  padding: 60px 0 0;
}


.p_member .msgGrid__fig{
  position: relative;
  z-index: 2;
}

.p_member .msgGrid__body{
  position: relative;
  z-index: 1;
}

.p_member .msgQuote__lead{
  position: relative;
  margin: 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: transparent; 
  border: 0;            
  color: #0b3b84;
  font-weight: 800;
  line-height: 1.7;
}

/* ▼調整用：写真カラム幅の90%青を潜らせる */
:root{
  --msg-photo-overlap: 350px; /* ←ここだけ調整すればOK（写真幅×0.9目安） */
}

/* 左に写真があるパターン（sec1, sec3） */
.p_member .msgGrid--left .msgQuote__lead::before{
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--msg-photo-overlap) * -1);
  width: calc(100% + var(--msg-photo-overlap));
  height: 100%;
  background: #eef3fb;
  border-radius: 18px 0 0 18px;
  z-index: -1;
}

/* 右に写真があるパターン（sec2） */
.p_member .msgGrid--right .msgQuote__lead::before{
  content: "";
  position: absolute;
  top: 0;
  right: calc(var(--msg-photo-overlap) * -1);
  width: calc(100% + var(--msg-photo-overlap));
  height: 100%;
  background: #eef3fb;
  border-radius: 0 18px 18px 0;
  z-index: -1;
}

/* 画面が狭い時は被り量を少し減らす（崩れ防止） */
@media (max-width: 1200px){
  :root{ --msg-photo-overlap: 420px; }
}

@media (max-width: 980px){
  /* 1カラムなら普通の帯に戻す */
  .p_member .msgGrid--left .msgQuote__lead::before,
  .p_member .msgGrid--right .msgQuote__lead::before{
    left: 0;
    right: auto;
    width: 100%;
  }
}
/* ===== ここまで ===== */


/* セクション余白 */
.p_member .msgSec{
  padding: 56px 0;
}
.p_member .msgSec__ttl{
  margin: 0 0 50px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 768px){
.p_member .msgSec {
    padding: 10px 0 56px 0;
}
}
/* 2カラム */
.p_member .msgGrid{
  display: grid;
  gap: 32px;
  align-items: start;
}
.p_member .msgGrid--left{
  grid-template-columns: 360px 1fr;
}
.p_member .msgGrid--right{
  grid-template-columns: 1fr 420px;
}

/* 画像枠 */
.p_member .msgGrid__fig,.p_member .msgGrid__fig_sp{
  border-radius: 18px;
  overflow: hidden;
  background: #f2f5fa;
      margin-top: 40px;
}
.p_member .msgGrid__fig img{
  width: 100%;
  height: auto;
  display: block;
}

/* 引用ボックス（青っぽい帯） */
.p_member .msgQuote{
  margin: 0 0 46px;
}
.p_member .msgQuote__lead{
  margin: 0;
  padding: 30px 22px ;
  border-radius: 18px;
  color: #1E55B2;
  font-weight: 500;
  line-height: 1.7;
  font-size:24px;
          font-weight: 700;	
}
.msgSec--alt .msgGrid__fig_sp{
display:none;
}

@media (max-width: 768px){
.msgSec--alt .msgGrid__fig{
display:none;
}
.msgSec--alt .msgGrid__fig_sp{
display:block;
}
.p_member .msgQuote {
        margin: 30px 0 30px;
}

.p_member .msgSec__ttl {
    font-size: 6.4vw;
	margin-bottom: 0px;
}
.p_member .msgGrid__fig {
/*    margin-top: 0;*/
}
.p_member .msgQuote__lead {
    font-size: 4.8vw;
}
}


@media (max-width: 480px){
.p_member .msgQuote__lead {
    font-size: 4.8vw;
}
}

/* 本文 */
.p_member .msgText{
margin-left:20px;
}

.p_member .msgText p{
  margin: 0 0 14px;
  color: #333;
    line-height: 170%;
    font-size: 16px;

}
.p_member .msgText p:last-child{ margin-bottom: 0; }

/* 横長画像（セクション間） */
.p_member .msgWide{
  margin: 160px 0 0;
}
.p_member .msgWide img{
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px){
.p_member .msgText p{
	font-size:4vw;

}
.p_member .msgWide {
    margin: 60px 0 0;
}
}

/* 横長画像（type2 キャプション） */
.p_member .msgWide--type2{
  position: relative;
  margin-top: 56px;
}
.p_member .msgWide__cap{
  position: absolute;
  left: 6%;
  bottom: 14%;
  width: 88%;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.05;
  color: rgba(255,255,255,.40);
  text-shadow: 0 16px 34px rgba(2,6,23,.28);
  pointer-events: none;
}

.p_member .msgWide--overlap{
  z-index: 5;
    margin: 130px 0 50px 0;
}

.p_member .footer_top{
  position: relative;
  z-index: 1;
  padding-top: 170px; 
}

/* 念のため：重なり時に画像が隠れないよう footer_top の前に来させる */
.p_member .msgWide--overlap img{
  position: relative;
  z-index: 6;
}

/* レスポンシブ */
@media (max-width: 980px){
  .p_member .msgGrid--left,
  .p_member .msgGrid--right{
    grid-template-columns: 1fr;
	gap:0;
  }
  .p_member .msgWide--overlap{
    margin-bottom: -90px; 
  }
  .p_member .footer_top{
    padding-top: 140px;
  }
}
@media (max-width: 480px){
  .p_member .msgWide--overlap{
    margin-bottom: -76px;
  }
  .p_member .footer_top{
    padding-top: 130px;
  }
}


/*セクション02青帯延長*/
.p_member .sec_02 .msgQuote__lead::before{
  left: calc(50% - 50vw);                 /* 画面左端まで */
  right: calc(var(--msg-photo-overlap) * -1.15); /* 写真へ90%潜り込み */
  width: auto;
  border-radius: 0 18px 18px 0;
}

@media (max-width: 768px){
  .p_member .sec_02 .msgQuote__lead::before{
    left: calc(50% - 50vw);
    right: 16px;          /* ← 右側に余白を残す */
    width: auto;
  }
}
