/* 代表メッセージ（message.html）
   IR資料のトップメッセージのように、大きな見出しと数字・年表・図で見せ、本文は短く区切る */
.p-message { --msg-navy: #0b2a52; --msg-blue: #0a5fd0; --msg-ink: #12233a; --msg-sub: #3a4452; --msg-or: #e8730c; --font-serif: "Shippori Mincho B1", "Noto Serif JP", "Yu Mincho", serif; --font-num: "Barlow Semi Condensed", "Noto Sans JP", sans-serif; }
.p-message main { word-break: keep-all; overflow-wrap: anywhere; }
.msg-wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.msg-wrap--narrow { max-width: 880px; }
.msg-sec { padding-block: clamp(60px, 9vw, 104px); }
.msg-sec--gray { background: #f3f6fa; }
.msg-h2 { margin: 0 0 clamp(28px, 4vw, 44px); font: 800 clamp(26px, 3.2vw, 38px)/1.5 var(--font-serif); letter-spacing: .03em; color: var(--msg-ink); }

/* 最初の画面：白いスタジオ背景の代表写真を画面いっぱいに置き、左の白い余白に見出し（IR資料のトップメッセージの組み方） */
.msg-hero { position: relative; min-height: clamp(560px, 46vw, 940px); display: flex; align-items: center; background: #f4f5f7; overflow: hidden; }
.msg-hero__ph { position: absolute; inset: 0; margin: 0; }
.msg-hero__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 12%; }
.msg-hero__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .6) 34%, rgba(255, 255, 255, 0) 58%); }
.msg-hero__in { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter); }
.msg-hero__text { max-width: 600px; }
.msg-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--msg-navy); }
.msg-eyebrow span { font: 600 15px/1 var(--font-num); letter-spacing: .28em; color: var(--msg-or); }
.msg-eyebrow span::after { content: ""; display: inline-block; width: 36px; height: 2px; margin-left: 14px; vertical-align: middle; background: var(--msg-or); }
.msg-title { margin: 0; font: 800 clamp(36px, 4.6vw, 62px)/1.38 var(--font-serif); letter-spacing: .04em; color: var(--msg-navy); }
.msg-title em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 1.28em; color: var(--msg-blue); }
.msg-hero__lead { margin: 26px 0 0; font-size: clamp(16px, 1.45vw, 18px); font-weight: 700; line-height: 1.95; color: #24334a; }
.msg-sign { display: grid; gap: 2px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(11, 42, 82, .18); max-width: 360px; }
.msg-sign span { font-size: 14px; font-weight: 700; color: #3a4a60; letter-spacing: .06em; }
.msg-sign b { font: 800 clamp(28px, 2.8vw, 36px)/1.35 var(--font-serif); letter-spacing: .18em; color: var(--msg-navy); }
.msg-age { font-style: normal; font-size: 14px; font-weight: 700; color: #3a4a60; letter-spacing: .04em; }
.msg-sign i { justify-self: start; margin-top: 8px; padding: 4px 14px; background: var(--msg-navy); border-radius: 99px; font-style: normal; font-size: 13px; font-weight: 700; color: #fff; }

/* 数字で見る */

.msg-kpi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.msg-kc { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 24px; background: #fff; border-radius: 14px; border-top: 5px solid var(--msg-blue); box-shadow: 0 6px 20px rgba(18, 35, 58, .07); }
.msg-kc--wide { grid-column: 1 / -1; }
.msg-kc-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.msg-kpi-k { margin: 0; font-size: 17px; font-weight: 900; line-height: 1.55; color: var(--msg-ink); }
.msg-kpi-v { margin: 0; display: flex; align-items: baseline; gap: 0 3px; color: var(--msg-blue); white-space: nowrap; }
.msg-kpi-v b { font: 700 clamp(46px, 5vw, 62px)/1 var(--font-num); letter-spacing: -.01em; }
.msg-kpi-v small { font-size: 17px; font-weight: 900; }
.msg-ar { margin: 0 8px; align-self: center; font-size: 26px; font-weight: 900; color: var(--msg-or); }
.msg-kpi-n { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.7; color: var(--msg-sub); }
.msg-em { color: var(--msg-or); font-size: 17px; }
.msg-key { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; padding: 2px 10px; background: #eef3f9; border-radius: 99px; color: var(--msg-ink); white-space: nowrap; }
.msg-key svg { width: 15px; height: 15px; fill: var(--msg-blue); }
.msg-key--or svg { fill: var(--msg-or); }
.msg-key-y { display: inline-block; width: 13px; height: 13px; background: var(--msg-blue); border-radius: 2px; }
/* 17年：1マス＝1年 */
.msg-years { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)) auto; gap: 5px; align-items: stretch; }
.msg-years i { height: 40px; background: linear-gradient(180deg, #2f7fe0, var(--msg-blue)); border-radius: 4px; }
.msg-years-end { display: grid; place-items: center; margin-left: 8px; padding: 0 12px; background: var(--msg-or); color: #fff; border-radius: 6px; font-size: 13px; font-weight: 900; line-height: 1.3; text-align: center; }
/* 円グラフ */
.msg-pie { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 16px; }
.msg-donut { width: 132px; height: 132px; }
.msg-donut-v { font: 700 34px/1 var(--font-num); fill: var(--msg-ink); }
.msg-donut-k { font-size: 12px; font-weight: 700; fill: var(--msg-sub); }
.msg-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.msg-leg li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; line-height: 1.45; color: var(--msg-ink); }
.msg-leg i { width: 12px; height: 12px; border-radius: 3px; }
.msg-leg b { font-family: var(--font-num); font-size: 15px; color: var(--msg-ink); }
.msg-leg small { font-size: 12.5px; }
/* ピクトグラム（人・工場を並べる） */
.msg-picto { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.msg-picto svg { width: 100%; height: auto; aspect-ratio: 1; }
.msg-picto--blue svg { fill: var(--msg-blue); }
.msg-picto--or svg { fill: var(--msg-or); }
.msg-picto--s { gap: 1px 2px; }
.msg-picto--l { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 300px; }
/* 事業：1つ→5つ */
.msg-stack { display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.msg-stack-col { display: flex; flex-direction: column; gap: 4px; flex: 1 1 0; min-width: 0; }
.msg-stack-col:first-child { flex: 0 0 26%; }
.msg-stack-b { padding: 8px 10px; background: var(--msg-blue); color: #fff; border-radius: 5px; font-size: 13px; font-weight: 700; line-height: 1.45; }
.msg-stack-b.is-old { height: 42px; background: #9fb0c4; }
.msg-stack-col span { margin-top: 6px; text-align: center; font-size: 14px; font-weight: 900; color: var(--msg-ink); }
.msg-sec--gray .msg-note { margin-top: 16px; }

/* 歩み（年表） */
.msg-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.msg-tl::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 4px; background: linear-gradient(90deg, #b9cde6, var(--msg-blue)); border-radius: 2px; }
.msg-tl li { position: relative; min-width: 0; padding-right: 18px; }
.msg-tl-when { margin: 0; height: 36px; font: 700 26px/36px var(--font-num); color: var(--msg-blue); white-space: nowrap; }
.msg-tl-dot { width: 20px; height: 20px; margin: 4px 0 18px; border-radius: 50%; background: #fff; border: 5px solid var(--msg-blue); position: relative; z-index: 1; }
.msg-tl li.is-now .msg-tl-dot { background: var(--msg-or); border-color: var(--msg-or); box-shadow: 0 0 0 6px rgba(232, 115, 12, .2); }
.msg-tl-body h3 { margin: 0 0 8px; font: 800 19px/1.55 var(--font-serif); color: var(--msg-ink); }
.msg-tl-body p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--msg-sub); }

/* 本文 */
.msg-body { padding-top: clamp(64px, 9vw, 104px); }
.msg-ch + .msg-ch { margin-top: clamp(64px, 9vw, 100px); }
.msg-ch-no { margin: 0; font: 600 clamp(48px, 6vw, 72px)/1 var(--font-num); color: var(--msg-or); letter-spacing: .04em; }
.msg-ch-h { margin: 10px 0 22px; font: 800 clamp(28px, 3.6vw, 42px)/1.5 var(--font-serif); letter-spacing: .03em; color: var(--msg-ink); }
.msg-p { margin: 0; font-size: 17px; font-weight: 500; line-height: 2.05; color: #2c3440; }
.msg-walls { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.msg-walls li { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: #f3f6fa; border-radius: 14px; }
.msg-walls img { flex-shrink: 0; width: 64px; height: 64px; }
.msg-walls p { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.7; color: var(--msg-ink); }
.msg-quote { margin: 30px 0 0; padding: clamp(24px, 4vw, 40px); background: var(--msg-navy); color: #fff; border-radius: 16px; position: relative; }
.msg-quote::before { content: "“"; position: absolute; top: -18px; left: 22px; font: 900 96px/1 Georgia, serif; color: var(--msg-or); }
.msg-quote p { margin: 0; font: 800 clamp(21px, 2.6vw, 29px)/1.8 var(--font-serif); letter-spacing: .02em; }
.msg-quote b { color: #ffd28f; }
.msg-chart { margin-top: 32px; padding: clamp(22px, 3.5vw, 36px); border: 2px solid #d6e3f2; border-radius: 16px; }
.msg-chart-t { margin: 0 0 18px; font-size: 17px; font-weight: 700; line-height: 1.7; }
.msg-chart-t b { font: 900 clamp(22px, 2.6vw, 28px)/1.5 var(--font-head); }
.msg-chart .res-bars { margin-bottom: 0; }
.msg-note { margin: 18px 0 0; font-size: 14px; line-height: 1.85; color: var(--msg-sub); }
.msg-biz { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.msg-biz a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 22px; background: #fff; border: 2px solid #d6e3f2; border-radius: 12px; color: var(--msg-ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.msg-biz a:hover { border-color: var(--msg-blue); transform: translateX(4px); }
.msg-biz-no { font: 700 18px/1 var(--font-mono); color: var(--msg-blue); }
.msg-biz b { font-size: 18px; line-height: 1.6; }
.msg-biz-go { font-size: 20px; font-weight: 700; color: var(--msg-blue); }

/* これから */
.msg-close { padding-block: clamp(64px, 9vw, 104px); background: linear-gradient(160deg, var(--msg-navy), #0a3f86); color: #fff; }
.msg-wish { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.msg-wish li { padding-left: 22px; border-left: 4px solid var(--msg-or); font: 800 clamp(21px, 2.7vw, 30px)/1.7 var(--font-serif); letter-spacing: .02em; }
.msg-close-p { margin: 36px 0 0; font-size: 18px; font-weight: 700; line-height: 1.9; color: #e3ecf8; }
.msg-sign--end { justify-items: end; text-align: right; margin-left: auto; border-top-color: rgba(255, 255, 255, .3); }
.msg-close .msg-sign span { color: #cfdcef; }
.msg-close .msg-sign b { color: #fff; }
.msg-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 48px; }

@media (prefers-reduced-motion: reduce) { .msg-biz a { transition: none; } }

@media (max-width: 960px) {
  .msg-hero { display: block; min-height: 0; background: #fff; }
  .msg-hero__ph { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .msg-hero__ph img { object-position: 74% 30%; }
  .msg-hero__ph::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, #fff 100%); }
  .msg-hero__in { padding-top: 6px; }
  .msg-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msg-kc--wide2 { grid-column: 1 / -1; }
  .msg-stack-col { width: min(100%, 360px); }
  .msg-hero__in { grid-template-columns: 1fr; }
  .msg-hero__ph { order: -1; max-width: 640px; }
  .msg-tl { grid-template-columns: 1fr; gap: 0; }
  .msg-tl::before { left: 8px; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; background: linear-gradient(180deg, #b9cde6, var(--msg-blue)); }
  .msg-tl li { display: grid; grid-template-columns: 20px 1fr; column-gap: 18px; padding: 0 0 26px; }
  .msg-tl-dot { grid-row: 1 / span 2; grid-column: 1; margin: 6px 0 0; }
  .msg-tl-when { grid-column: 2; height: auto; line-height: 1.5; }
  .msg-tl-body { grid-column: 2; }
  .msg-tl-when:empty, .msg-tl li:first-child .msg-tl-when { display: none; }
  .msg-tl li:first-child .msg-tl-dot { grid-row: 1; }
}
@media (max-width: 640px) {
  .msg-kpi { grid-template-columns: 1fr; gap: 12px; }
  .msg-kc { padding: 18px 16px; }
  .msg-years { gap: 3px; }
  .msg-years i { height: 30px; border-radius: 3px; }
  .msg-years-end { margin-left: 4px; padding: 0 6px; font-size: 12.5px; }
  .msg-pie { grid-template-columns: 112px 1fr; gap: 12px; }
  .msg-donut { width: 112px; height: 112px; }
  .msg-walls { grid-template-columns: 1fr; }
  .msg-walls li { padding: 16px 18px; }
  .msg-walls img { width: 52px; height: 52px; }
  .msg-walls br, .msg-wish br { display: none; }
  .msg-p { font-size: 16px; }
  .msg-biz a { padding: 16px; gap: 12px; }
  .msg-biz b { font-size: 16px; }
  .msg-cta .c-btn { width: 100%; justify-content: center; }
}
