/* inner.css — 下層ページ共通（page-hero / 各コンテンツブロック）
   common.css に続けて読み込む。新デザイン styles.css の下層該当部を焼き直し。
   カラーは --accent に集約。新トップ階層で未使用の signal-board 系は移植対象外。 */

/* ---------- ページヒーロー ---------- */

/* タイトル帯（page-hero）の geometry（padding/border）はここが唯一の定義＝単一ソース。
   カテゴリトップ各ページで padding を再定義しない（ドリフト防止）。
   意図的に異なるヒーローのみ scoped 変種で上書き：interview(Frame79 40/0)・ir-detail(白/罫線)。 */
.c-PageHero {
  padding: clamp(40px, 4.17vw, 60px) 0 clamp(24px, 2.78vw, 40px);
  border-bottom: 0;
  background: var(--paper);
}

/* カテゴリトップ共通の grey ヒーロー修飾子（背景のみ差分。padding/border は base を継承）。
   company/contact/ma/technology/careers/news/ir・ir-doc が使用。 */
.c-PageHero--alt {
  background: var(--paper-alt);
}

.c-PageHero.dark {
  border-bottom: 0;
  background: var(--night);
  color: #fff;
}

.c-PageHero__inner {
  display: grid;
  max-width: 1180px;
  align-items: end;
  grid-template-columns: minmax(0, 0.75fr) minmax(260px, 0.45fr);
  gap: 36px;
  margin: 0 auto;
  padding: 0 24px;
}

/* パンくず＝Figma: YuMincho Medium(500) / 16 / lh28(1.75) / #000。全ページ共通の単一ソース
   （帯 child の typography はここに一本化。個別ページ CSS で再定義しない＝ドリフト/染み出し防止）。 */
.c-Breadcrumb {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
}

.c-PageHero.dark .c-Breadcrumb,
.c-PageHero.dark .c-PageHero__lead {
  color: rgba(255, 255, 255, 0.7);
}

.c-PageHero h1 {
  margin: 0;
  font-family: var(--font-serif-en);
  font-size: clamp(54px, 9vw, 122px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.98;
}

/* ページ個別: Figma準拠のYu Minchoタイトル（現状 Management のみ適用） */
.c-PageHero h1.c-PageHero__titleMincho {
  font-family: var(--font-mincho);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  /* Figma 実測 1.0 を採用（デザイナー確認 2026-06-23・Figma優先）。旧 1.05 から変更 */
  line-height: 1.0;
}

/* タイトル頭文字アクセント（下層共通。S3で per-page 9ファイルから集約） */
.c-PageHero__titleAccent { color: var(--accent); }

.c-PageHero__lead {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.c-PageHero__metaCard {
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding: 24px;
  box-shadow: none;
}

.c-PageHero.dark .c-PageHero__metaCard {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.c-PageHero__metaCard span,
.c-PageHero__metaCard strong {
  display: block;
}

.c-PageHero__metaCard span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.c-PageHero.dark .c-PageHero__metaCard span {
  color: rgba(255, 255, 255, 0.6);
}

.c-PageHero__metaCard strong {
  margin-top: 4px;
  font-family: var(--font-serif-en);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.25;
}

.c-VisualPlaceholder {
  display: grid;
  min-height: 280px;
  place-items: center;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 0;
  background:
    repeating-linear-gradient(135deg, rgba(192, 161, 113, 0.1) 0 12px, rgba(146, 149, 150, 0.1) 12px 24px),
    #fff;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
}

.l-Section__titleRow + .l-FeatureGrid,
.l-Section__titleRow + .c-CompanyList,
.l-Section__titleRow + .l-JobGrid {
  margin-top: 20px;
}

/* ---------- 会社情報（profile / c-Timeline / c-CompanyList） ---------- */

.l-InfoLayout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  gap: 22px;
}

.c-TableCard {
  padding: 0;
  overflow: hidden;
}

.c-ProfileList {
  margin: 0;
}

.c-ProfileList div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 22px;
  border-bottom: 1px solid var(--line);
}

.c-ProfileList div:last-child {
  border-bottom: 0;
}

.c-ProfileList dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.c-ProfileList dd {
  margin: 0;
  color: var(--ink-soft);
}

.c-Timeline {
  padding: 26px;
  border-radius: 0;
  background: var(--night);
  color: #fff;
}

.c-Timeline h3 {
  margin: 0 0 18px;
  font-family: var(--font-serif-en);
  font-size: 30px;
  font-weight: 300;
}

.c-Timeline ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-Timeline li {
  display: grid;
  align-items: center;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.c-Timeline span {
  color: #fff;
  font-weight: 800;
}

.c-CompanyList {
  display: grid;
  gap: 12px;
}

.c-CompanyList article {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.35fr);
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.c-CompanyList h3,
.c-CompanyList p {
  margin: 0;
}

.c-CompanyList p {
  color: var(--muted);
  font-weight: 700;
}

/* ---------- 経営陣（message / values / team） ---------- */

.c-MessageBlock {
  display: grid;
  align-items: start;
  grid-template-columns: 0.8fr 1.1fr;
  gap: 32px;
  margin-bottom: 22px;
  padding: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 0;
  background: transparent;
}

.c-MessageBlock h3 {
  margin: 0;
  font-family: var(--font-serif-en);
  font-size: 34px;
  font-weight: 300;
  line-height: 1.35;
}

.c-MessageBlock p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.l-TeamLayout {
  display: grid;
  grid-template-columns: minmax(160px, 0.26fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.c-TeamHeading h2 {
  margin: 0;
  font-family: var(--font-mincho);
  font-size: clamp(34px, 4.4vw, 48px);   /* Company の基準 Profile と統一（旧 min32px）。c-TeamHeading は Company専用 */
  font-weight: 500;
  line-height: 1.333;
  white-space: nowrap;
}

.l-TeamGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 40px;
}

.l-ValuesGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.l-ValuesGrid article {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding: 18px;
}

.l-ValuesGrid h3 {
  margin: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.l-ValuesGrid p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.c-PersonCard {
  border: 0;
  background: transparent;
  padding: 0;
}

.c-Avatar {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  background: var(--paper-alt);
}

/* 実写真（役員・顧問）＝3:4ポートレート */
img.c-Avatar {
  height: auto;
  object-fit: cover;
  object-position: top center;
}

.c-PersonCard h3 {
  margin: 22px 0 0;
  font-family: var(--font-mincho);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.1;
}

.c-PersonCard p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 2;
}

/* 会社情報の実写真（l-InfoLayout 右カラム） */
.c-InfoVisual {
  margin: 0;
}

.c-InfoVisual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 1px solid var(--line);
  object-fit: cover;
}

/* ---------- M&A（l-MaLayout / strategy / record） ---------- */

.l-MaLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.c-StrategyPanel,
.c-RecordPanel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  padding: clamp(24px, 4vw, 38px);
}

.c-StrategyPanel h3,
.c-RecordPanel h3 {
  margin: 0;
  font-family: var(--font-serif-en);
  font-size: 36px;
  font-weight: 300;
}

.c-StrategyPanel p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.c-RecordPanel ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.c-RecordPanel li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.c-RecordPanel span {
  min-width: 70px;
  color: #fff;
  font-weight: 800;
}

/* ---------- Technology（l-ProductGrid / l-HiringStrip / c-RoleTags） ---------- */

.l-ProductGrid article {
  min-height: 238px;
  padding: 24px;
}

.l-ProductGrid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.l-HiringStrip {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-alt);
}

.l-HiringStrip h3 {
  margin: 0;
  font-family: var(--font-serif-en);
  font-size: 32px;
  font-weight: 300;
}

.c-RoleTags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.c-RoleTags a,
.l-PeopleStrip span,
.c-Tab {
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.c-RoleTags a,
.l-PeopleStrip span {
  padding: 8px 12px;
}

/* ---------- News（c-Tab / l-NewsGrid） ---------- */

.c-TabList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.c-Tab {
  min-height: 40px;
  padding: 7px 14px;
  cursor: pointer;
}

.c-Tab.is-active {
  border-color: var(--night);
  background: var(--night);
  color: #fff;
}

.l-NewsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.c-NewsCard {
  min-height: 210px;
  padding: 24px;
}

.c-NewsCard time,
.c-NewsCard span {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.c-NewsCard span {
  margin-left: 10px;
  color: var(--accent);
}

.c-NewsCard.is-hidden {
  display: none;
}

/* ---------- IR（l-IrLayout / c-ReleaseList / faq / l-LinkMatrix） ---------- */

.l-IrLayout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.35fr);
  gap: 22px;
}

.l-Section__titleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.l-Section__titleRow h3 {
  margin: 0;
  font-family: var(--font-serif-en);
  font-size: 34px;
  font-weight: 300;
}

.c-ReleaseList {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.c-ReleaseList li {
  display: grid;
  align-items: center;
  grid-template-columns: 104px 70px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.c-ReleaseList li:last-child {
  border-bottom: 0;
}

.c-ReleaseList time,
.c-ReleaseList span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.c-ReleaseList a {
  color: var(--ink-soft);
  font-weight: 700;
}

.c-FaqCard {
  padding: 26px;
}

.l-LinkMatrix {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.l-LinkMatrix a {
  display: flex;
  min-height: 64px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Careers（l-JobGrid / l-PeopleStrip） ---------- */

.l-JobGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.l-JobGrid article {
  min-height: 230px;
  padding: 24px;
}

.l-PeopleStrip {
  display: grid;
  align-items: center;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.l-PeopleStrip h3 {
  margin: 0;
  font-family: var(--font-serif-en);
  font-size: 30px;
  font-weight: 300;
}

.l-PeopleStrip div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.l-RelatedGrid {
  margin-top: 22px;
}

/* ---------- Contact（l-ContactGrid） ---------- */

.l-ContactGrid article {
  min-height: 150px;
  padding: 22px;
}

.l-ContactGrid h3 {
  font-size: 17px;
}

/* ---------- 財務グラフ（XJ Storage 公開グラフ画像） ---------- */

.c-FeatureCard .graph {
  margin: 16px 0 0;
}

.c-FeatureCard .graph img {
  display: block;
  width: 100%;
  height: auto;
}

.c-FeatureCard .graph figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- 成長戦略図（Figma書き出し画像） ---------- */

.c-StrategyFigure {
  margin: 0;
  text-align: center;
}

.c-StrategyFigure img {
  width: 100%;
  max-width: 660px;
  height: auto;
}

/* ---------- XJ Storage ニュース/IRウィジェット ---------- */

.xj-news {
  margin-top: 8px;
}

.xj-news .yearSelect {
  margin-bottom: 12px;
}

/* ---------- 経営陣メッセージ（CEO Message / ご挨拶） ---------- */

.c-ExecMessage__section {
  padding: clamp(56px, 8vw, 80px) 0;
  background: var(--paper-alt);
}

.c-ExecMessage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 600px);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.c-ExecMessage--reverse .c-ExecMessage__figure {
  order: -1;
}

.c-ExecMessage__body h2 {
  margin: 0 0 24px;
  font-family: var(--font-mincho);
  font-size: clamp(34px, 4.4vw, 48px);   /* Company の基準 Profile と統一（旧 min30px）。c-ExecMessage は Company専用 */
  font-weight: 500;
  line-height: 1.333;
}

.c-ExecMessage__text p {
  margin: 0 0 1.4em;
  font-family: var(--font-mincho);
  color: var(--ink);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.75;
}

.c-ExecMessage__sign {
  margin: 12px 0 0;
  font-family: var(--font-mincho);
  font-size: clamp(16px, 1.8vw, 20px);
  text-align: right;
}

.c-ExecMessage__figure {
  margin: 0;
  min-width: 0;
}

.c-ExecMessage__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 600 / 800;
  height: auto;
  object-fit: cover;
}

@media (max-width: 900px) {
  .c-ExecMessage {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .c-ExecMessage--reverse .c-ExecMessage__figure {
    order: 0;
  }

  .c-ExecMessage__figure {
    /* 縦積み時は写真をページ幅いっぱいにストレッチ（旧 max-width:360px＝幅固定で左寄せだった）。
       全幅ゆえ左右センタリングも兼ねる。2026-07-07 デザイナー指定。c-ExecMessage は Company専用。 */
    max-width: none;
  }
}

/* IR資料一覧(.c-Xj--list)の明朝フォントは common.css の .c-Xj 基底に集約（命名統一リファクタ 2026-07-04）。
   旧 .ir-list への font 直付けは廃止。配下の date/txt/dt/dd は .c-Xj 基底から継承。 */

/* ---------- レスポンシブ（下層） ---------- */

@media (max-width: 980px) {
  .l-TeamLayout,
  .c-PageHero__inner,
  .c-MessageBlock,
  .l-InfoLayout,
  .l-MaLayout,
  .l-HiringStrip,
  .l-IrLayout,
  .l-PeopleStrip {
    grid-template-columns: 1fr;
  }

  /* 下層グリッドの段組（基本定義がこのファイルにあるため、レスポンシブもここで上書き） */
  .l-TeamGrid,
  .l-ValuesGrid,
  .l-ProductGrid,
  .l-NewsGrid,
  .l-JobGrid,
  .l-ContactGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .l-LinkMatrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .c-PageHero__inner {
    grid-template-columns: 1fr;
    padding: 0 18px;
  }

  .l-TeamGrid,
  .l-ValuesGrid,
  .l-ProductGrid,
  .l-NewsGrid,
  .l-JobGrid,
  .l-ContactGrid {
    grid-template-columns: 1fr;
  }

  .l-LinkMatrix {
    grid-template-columns: 1fr;
  }

  .c-ProfileList div,
  .c-CompanyList article,
  .c-ReleaseList li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- Contact 帯（technology / careers / ma 共通CTA） ----------
   旧: c-TechContact / c-CareersContact / c-MaContact に同値を3重定義していた（別名クラスのドリフト）
       → 単一ソースへ共通化。inner.css 常駐＝この帯を持つ inner 3ページにのみ適用（global 汚染なし）。
   Figma 実測: 見出し「Contact」= YuMincho 48px/500/lh64px(#000)、リンク = YuMincho 32px/500(#000)。
   size は clamp で desktop=48/32 一致・狭幅のみ縮小。link の下線(border-bottom)と lh1.4 は現状踏襲。
   見出し文言/リンク文言は各ページ固有のため HTML 側で保持（ma のみ M&A 文言）。 */
.c-ContactBand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.c-ContactBand__h2 {
  margin: 0;
  white-space: nowrap;
  font-family: var(--font-mincho);
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 500;
  line-height: 1.333;
  color: var(--ink);
}
.c-ContactBand__link {
  font-family: var(--font-mincho);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
}
.c-ContactBand__link:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) {
  .c-ContactBand { flex-direction: column; align-items: flex-start; gap: 20px; }
  /* 2026-07-07 デザイナー指定の例外（M&A/Technology/Careers 共有の .c-ContactBand のみ）:
     帯が縦積みになる狭幅で、2列目の CTA リンクを中央寄せし、長文(M&A「…お問い合わせはこちら」)が
     2行に折り返すのをフォント縮小で1行に収める。1列目の「Contact」見出しは left のまま。
     nowrap＋vw連動サイズで各幅とも1行かつ溢れ0（他ページ・汎用ルールへは非波及）。 */
  .c-ContactBand__link {
    align-self: center;
    white-space: nowrap;
    font-size: clamp(15px, 4.4vw, 22px);
  }
}

/* 2026-07-07 デザイナー指定の例外（desktop・汎用レスポンシブの例外＝完全カスタム制御）:
   Contact 2列目(CTA)の左端を「直上帯の右列オブジェクト」の左端に揃える。揃え先は各ページで
   異なるため直上グリッドを mirror（同じ .l-Section__inner 内＝左端・幅が一致するので col2 が揃う）。
   狭幅(≤900)は上の縦積みルールが担当＝この例外は desktop のみ。body[data-page] でページ限定。 */
@media (min-width: 901px) {
  /* Careers: 直上 .l-CareersSplit--iv(197px/689px, space-between) を mirror → CTA左端=Interview列(x=671@1440) */
  body[data-page="careers"] .c-ContactBand {
    display: grid;
    grid-template-columns: 197px 689px;
    justify-content: space-between;
    align-items: center;
  }
  body[data-page="careers"] .c-ContactBand__link { justify-self: start; }

  /* Technology: 直上 .c-TechBlog__layout(1fr/703px) を mirror → CTA左端=Blogバナー列(x=657@1440) */
  body[data-page="technology"] .c-ContactBand {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 703px);
    gap: clamp(24px, 3vw, 40px);
    align-items: center;
  }
  body[data-page="technology"] .c-ContactBand__link { justify-self: start; }

  /* M&A: 直上 .l-MaSplit--story(1fr/740px, Figma2カラム) を mirror → CTA左端=カード右列左端。
     gap は Story帯(base .l-MaSplit)と同値 clamp(32,5vw,80) で col2 左端を一致させる（2026-07-07 Story2カラム復帰に追随）。 */
  body[data-page="ma"] .c-ContactBand {
    display: grid;
    grid-template-columns: 1fr minmax(0, 740px);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
  }
  body[data-page="ma"] .c-ContactBand__link { justify-self: start; }
}
