/* 下層ページ共通（news.html・news-detail.html など）。site.css のあとに読む。
   ページの見出し（.ph）：冒頭と同じ白い地に三角の格子（格子と三角は sub.js が .shape に描く。色と、三角が1マスずつ色づく動きは site.css の .shape のまま）。
   模型は見せない（2026-11-26 確定）。見出しの下は白い地の本文、そのあとにフッター（トップページと同じ。夜の模型はここにだけ出る） */

:root{--msbg:#F4F7FC;--hh:86px;--ez:cubic-bezier(.2,.7,.1,1);
  --side:calc(var(--pad) + clamp(0px,calc((100vw - 1280px) * .35),72px));--col:100%}
/* --msbg＝うすい青（message.css と同じ値）。--hh＝ヘッダーの高さ（site.css と同じ）。--ez＝乗せたときの動きの緩急（トップの「お知らせ」と同じ。news.css の行の動きが使う）
   左右の余白はトップページの「会社概要」「お知らせ」と同じ：
   --side＝PC の左右の余白（1440px で 128px）。--col＝列の幅の上限（PC はなし。タブレットは中央の 760px の列）。見出し・一覧・記事はすべてこの列にそろえる */
@media (max-width:1279px){ :root{--side:var(--pad);--col:760px} }
[hidden]{display:none !important}   /* display を指定した要素でも、hidden を優先する */

/* いま開いているページのメニュー（お知らせなど）：帯の下の辺の金の線を出したままにする。開いたメニューでは金の字 */
.hd2__nav > a[aria-current]::after{transform:none}
.mnav__list a[aria-current]{color:var(--gold)}

/* ===== ページの見出し ===== */
.ph{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(380px,46svh,460px);background:#fff;color:var(--ink)}
.ph .shape .in,.is-in .ph .shape .in{transform:none;animation:none}   /* 面はすべり込ませない（見出しの全体が白い面なので）。三角だけが1マスずつ色づく */
.ph .face{filter:none}
/* 格子と三角は、見出しの文字より上だけ。文字の少し上（--gy。sub.js が測る）の 64px 上から白へぼかして消す */
.ph .shape{-webkit-mask-image:linear-gradient(#000 calc(var(--gy,100%) - 64px),transparent var(--gy,100%));mask-image:linear-gradient(#000 calc(var(--gy,100%) - 64px),transparent var(--gy,100%))}
/* 文字：一覧・記事と同じ列。左右の端をそろえる */
.ph__in{position:relative;z-index:5;width:min(calc(100% - var(--side) * 2),var(--col));margin-inline:auto;padding:0 0 clamp(56px,8svh,76px)}
.ph__en{display:flex;align-items:center;gap:12px;margin:0 0 clamp(8px,1.5svh,16px);font:600 var(--fs-caption)/var(--lh-caption) var(--font);letter-spacing:.2em}
.ph__en::before{content:"";width:26px;--mh:10px;--ms:5px;height:var(--mh);   /* 金の小さな印（site.css と同じ作り） */
  background:linear-gradient(90deg,transparent calc(var(--ms) / 2 - var(--aa) / 2),var(--gold) calc(var(--ms) / 2 + var(--aa) / 2) calc(100% - var(--ms) / 2 - var(--aa) / 2),transparent calc(100% - var(--ms) / 2 + var(--aa) / 2));
  transform:skewX(calc(atan2(var(--ms),var(--mh)) * -1))}
.ph__title{margin:0;font:600 var(--fs-h2)/var(--lh-h2) var(--hfont);letter-spacing:.06em;font-feature-settings:"palt"}
/* パンくず：見出しの下に小さく */
.crumb{margin-top:clamp(18px,2.6svh,26px)}
.crumb ol{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;margin:0;padding:0;list-style:none;font-size:var(--fs-caption);line-height:var(--lh-caption);letter-spacing:.06em;color:var(--sub)}
.crumb li{display:flex;align-items:center;min-width:0}
.crumb li + li::before{content:"";flex:none;width:6px;height:6px;margin:0 12px 0 10px;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg);opacity:.6}
.crumb a{color:inherit;text-decoration:none;transition:color .25s}
.crumb a:hover,.crumb a:focus-visible{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.crumb [aria-current]{color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 出かた：文字が下からふわっと（ラベル → 見出し → パンくず） */
.ph__in > *{opacity:0;transform:translateY(14px);transition:opacity .9s,transform 1s cubic-bezier(.2,.7,.1,1)}
.is-in .ph__in > *{opacity:1;transform:none}
.is-in .ph__in > :nth-child(1){transition-delay:.15s}.is-in .ph__in > :nth-child(2){transition-delay:.25s}.is-in .ph__in > :nth-child(3){transition-delay:.4s}

/* ===== 本文の地（白） ===== */
.sub-main{position:relative;z-index:1;margin-top:-4px;padding-top:4px;background:#fff}
/* 見出しと本文の間：全ページ共通。本文は見出し（パンくず）のすぐ下から始め、間は見出しの下の余白（.ph__in の padding-bottom）だけにする。
   ページごとに上の余白を足さない（お問い合わせで詰めた間に、全ページをそろえる） */
.sub-main > :first-child{padding-top:0}   /* 見出しとの境目に、後ろの模型が細い線で透けないよう 4px 重ねる（縮小表示や端数の倍率でも透けないように） */

/* 紺のボタン（トップの「お知らせ一覧へ」と同じ。形は service.css の .s4-btn） */
.btn-ink{--fill:var(--ink)}
.btn-ink span{color:#fff}
.btn-ink:focus-visible{outline:2px solid var(--ink);outline-offset:4px}

/* フッターの調整バー（トップページ用の仮のもの）は、下層ページでは出さない */
.ft-adj{display:none !important}

/* ===== スマホ・タブレット（site.css の「スマホ・タブレットの構成」と同じ条件） ===== */
@media (max-width:900px),(max-aspect-ratio:1/1) and (max-width:1279px){
  :root{--hh:68px}
  .ph{min-height:calc(var(--hh) + 260px)}
  .ph__in{padding-bottom:40px}
  .ph__en::before{width:22px;--mh:9px}
}
@media (min-width:600px) and (max-width:900px),(min-width:600px) and (max-aspect-ratio:1/1) and (max-width:1279px){
  :root{--hh:112px}
  .ph__in{padding-bottom:56px}
}
@media (max-width:520px){ :root{--hh:62px} }
@media (prefers-reduced-motion:reduce){ .ph__in > *{opacity:1;transform:none;transition:none} }
