@charset "UTF-8";
/* =============================================================
   company.html（会社情報）の刷新（design-refresh ブランチ・2026-11-16）
   読む順番：style.css → page.css → company.css → refresh.css → refresh-common.css → この file
   既存の CSS は触らず、ここで上書きする。company.html だけが読む。動きの一部は js/refresh-p-company.js。

   方針（トップと同じ）
   - 見出しと数字を大きく、情報の強弱をはっきり
   - カードの箱・上端の色の帯・丸いピルをやめ、濃い線で始まる罫線の格子で揃える
   - 線が引かれる・面がめくれる・順に上がる、の「設計された」動き。ぼかさない
   地の並び：見出し 白 → MESSAGE グレー → ADVISOR 白 → OUTLINE グレー → COMMUNITY 白 → HISTORY グレー
   ページ見出し・相談（.gd-cta）の組みは about.html（refresh-p-about.css）と同じ
   ============================================================= */

:root {
  --rp-hair: rgba(16, 42, 67, .16);          /* 細い罫線 */
  --rp-hair-navy: rgba(255, 255, 255, .18);  /* 濃紺の上の罫線 */
  --rp-on-navy: #7fdbe4;                     /* 濃紺の上のティール（#102a43 に対して 9:1） */
  --rp-ease: cubic-bezier(.19, 1, .22, 1);
  --rp-wipe: cubic-bezier(.77, 0, .18, 1);
  --rp-hist-col: clamp(240px, 30%, 440px);   /* 沿革の年の列の幅 */
}

/* -------------------------------------------------------------
   0. 地と余白
   ------------------------------------------------------------- */
main > section:nth-of-type(even) { background: var(--rf-band); }
main > .sec { padding-block: var(--rf-sec-y); }
#community { padding-bottom: var(--rf-sec-y); }
.page-head + .sec { padding-top: clamp(80px, 8vw, 120px); }
.page-head::after {
  background: linear-gradient(to bottom, rgba(242,246,249,0) 0%, rgba(242,246,249,.72) 62%, var(--rf-band) 100%);
}

/* -------------------------------------------------------------
   1. ページ見出し（about と同じ）
   ------------------------------------------------------------- */
.page-head .crumb {
  margin-bottom: clamp(32px, 3.4vw, 52px);
  font-size: 14px;
  color: var(--rf-muted);
}
.page-head .crumb a { color: var(--rf-muted); transition: color .2s ease; }
.page-head .crumb a:hover { color: var(--hp-sky); }
.page-head .sec-en {
  font-size: clamp(56px, 8.2vw, 128px);
  line-height: .9;
  letter-spacing: -.05em;
}
.page-head .sec-jp {
  margin-top: 28px;
  font-size: clamp(17px, 1.5vw, 22px);
  letter-spacing: .1em;
}
.page-head .page-lead {
  margin-top: clamp(32px, 3vw, 44px);
  max-width: 34em;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 2.1;
  letter-spacing: .03em;
  color: var(--rf-body);
}
.page-head::before {
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, transparent 46%, rgba(0,0,0,.5) 58%, #000 70%),
    linear-gradient(to bottom, #000 0%, #000 40%, transparent 96%);
          mask-image:
    linear-gradient(to right, transparent 0%, transparent 46%, rgba(0,0,0,.5) 58%, #000 70%),
    linear-gradient(to bottom, #000 0%, #000 40%, transparent 96%);
}
@media (prefers-reduced-motion: no-preference) {
  .page-head::before { animation: rpHeadIn 2.2s var(--rp-ease) .1s backwards; }
}
@keyframes rpHeadIn { from { opacity: 0; transform: scale(1.08); } }

/* -------------------------------------------------------------
   2. MESSAGE：写真を大きく、本文の横で止まって付いてくる。最初のひと言を大きく
   ------------------------------------------------------------- */
.cp-msg {
  margin-top: clamp(56px, 5vw, 88px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 112px);
}
.cp-msg-photo {
  position: sticky; top: 120px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--cream-2);
}
.cp-msg-photo img { transform: scale(1.08); transition: transform 1.8s var(--rp-ease) .1s; }
.cp-msg-photo.rf-clip-in img { transform: none; }
.cp-name {
  padding-top: 22px;
  border-top: 2px solid var(--ink-900);
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-900);
}
.cp-msg-txt .cp-name + p {
  margin-top: clamp(28px, 2.6vw, 40px);
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: .01em;
  color: var(--ink-900);
  text-wrap: balance;
}
.cp-msg-txt p:not(.cp-name):not(.cp-name + p) {
  font-size: clamp(15px, 1.12vw, 16.5px);
  line-height: 2.15;
  letter-spacing: .03em;
  color: var(--rf-body);
}
.cp-msg-txt p + p { margin-top: 28px; }

/* -------------------------------------------------------------
   3. ADVISOR：白いカード・上端の色の帯・丸いラベルをやめ、濃い線で始まる2列の罫線に
   ------------------------------------------------------------- */
.cp-advisors {
  margin-top: clamp(56px, 5vw, 88px);
  column-gap: 0;
  border-top: 2px solid var(--ink-900);
}
.cp-advisors .cp-adv,
.cp-adv-legal {
  padding: clamp(36px, 3.4vw, 52px) clamp(28px, 3.6vw, 64px) 8px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.cp-advisors .cp-adv + .cp-adv {
  padding: clamp(36px, 3.4vw, 52px) 0 8px clamp(28px, 3.6vw, 64px);
  border-left: 1px solid var(--rp-hair);
}
.cp-advisors .cp-adv-head { grid-template-columns: 144px minmax(0, 1fr); gap: 28px; min-height: 0; }
.cp-advisors .cp-adv-pic img,
.cp-adv-pic img {
  width: 144px; height: 144px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  background: var(--rf-band);
}
/* 肩書き：丸いピルをやめ、細い線の四角いラベルに（トップのお知らせの分類と同じ） */
.cp-adv-role,
.cp-adv-legal .cp-adv-role,
.cp-advisors .cp-adv-role {
  padding: 5px 10px;
  border: 1px solid var(--hp-sky);
  border-radius: 4px;
  background: none;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--hp-sky);
}
.cp-advisors .cp-adv-name {
  margin-top: 16px;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.3;
}
.cp-advisors .cp-adv-name span { margin-top: 10px; font-size: 13px; letter-spacing: .1em; color: var(--rf-muted); }
.cp-adv-affiliation { margin-top: 12px; font-size: 14px; color: var(--rf-body); }
.cp-advisors .cp-adv-lead { font-size: clamp(15px, 1.12vw, 16px); line-height: 2; color: var(--rf-body); }
.cp-advisors .cp-adv-career-title { margin-top: 16px; font-size: 16px; }
.cp-adv-career-title span { font-size: 13px; letter-spacing: .16em; }
/* 経歴：番号の四角とグラデの行をやめ、細い罫線の行に（番号は意味がないので出さない） */
.cp-adv-career { gap: 0; border-bottom: 1px solid var(--rp-hair); }
.cp-adv-career li,
.cp-advisors .cp-adv-career li {
  display: block;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--rp-hair);
  border-radius: 0;
  background: none;
}
.cp-adv-career li::before,
.cp-advisors .cp-adv-career li::before { content: none; }
.cp-adv-career b { display: block; font-size: 16px; font-weight: 900; }
.cp-adv-career span { display: block; margin-top: 4px; font-size: 15px; color: var(--rf-body); }
.cp-adv-specialty { font-size: 15px; line-height: 1.9; color: var(--rf-body); }

/* -------------------------------------------------------------
   4. OUTLINE：見出しを左に止め、右に濃い線で始まる罫線の表（トップのお知らせと同じ組み）
   ------------------------------------------------------------- */
#outline .inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 0 clamp(40px, 6vw, 112px);
  align-items: start;
}
#outline .sec-head { position: sticky; top: 130px; }
.cp-table {
  margin-top: 0;
  max-width: none;
  border-top: 2px solid var(--ink-900);
}
.cp-table > div {
  grid-template-columns: clamp(120px, 12vw, 180px) minmax(0, 1fr);
  gap: 24px;
  padding: clamp(22px, 2vw, 30px) 0;
  border-bottom: 1px solid var(--rp-hair);
}
.cp-table dt { font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--rf-muted); padding-top: 2px; }
.cp-table dd { font-size: clamp(16px, 1.25vw, 18px); font-weight: 700; line-height: 1.85; color: var(--ink-900); }
.cp-table .cp-sub { font-size: 14px; font-weight: 500; color: var(--rf-muted); }

/* -------------------------------------------------------------
   5. COMMUNITY：言い切りを大きく。写真は大小を互い違いに、めくれて出る
   ------------------------------------------------------------- */
.cp-com-layout {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 112px);
  margin-top: clamp(56px, 5vw, 88px);
}
.cp-com { max-width: none; }
.cp-com-lead {
  padding-top: 24px;
  border-top: 2px solid var(--ink-900);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .01em;
  text-wrap: balance;
}
.cp-com p:not(.cp-com-lead) {
  margin-top: 24px;
  font-size: clamp(15px, 1.12vw, 16.5px);
  line-height: 2.1;
  letter-spacing: .03em;
  color: var(--rf-body);
}
.cp-com-gallery {
  max-width: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 32px);
}
.cp-com-gallery figure + figure { margin-top: clamp(64px, 8vw, 140px); }
.cp-com-gallery img { border-radius: 6px; box-shadow: none; }
/* 地域の写真は元の比率（3:2）のまま見せる。縦長に切ると人や会場が切れるため（親が戻した） */
.cp-com-gallery figcaption {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rp-hair);
  font-size: 14px;
  color: var(--rf-muted);
}

/* -------------------------------------------------------------
   6. HISTORY：年を大きな数字に。月の列の左の線が、読み進むほどティールで満ちる
   ------------------------------------------------------------- */
.cp-history {
  position: relative;
  margin-top: clamp(56px, 5vw, 88px);
  border-top: 2px solid var(--ink-900);
}
/* 縦の線（下地の細線は各行の ul が持ち、満ちる線はここ） */
.cp-history::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: var(--rp-hist-col);
  width: 2px; margin-left: -1px;
  background: var(--hp-sky);
  transform: scaleY(var(--rp-hist, 1)); transform-origin: top;
  pointer-events: none;
}
.cp-year {
  grid-template-columns: var(--rp-hist-col) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border-left: 0;
  border-bottom: 1px solid var(--rp-hair);
}
.cp-year:last-child { border-bottom: 0; }
.cp-year::before { content: none; }
.cp-year-head { padding: clamp(32px, 3vw, 48px) 32px clamp(32px, 3vw, 48px) 0; }
.cp-year-head b {
  font-size: clamp(48px, 5.6vw, 92px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.05em;
}
.cp-year-head span {
  margin-top: 16px;
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 700;
  color: var(--ink-900);
}
.cp-year.is-now .cp-year-head span { color: var(--hp-sky); }
.cp-year > ul {
  position: relative;
  padding: clamp(32px, 3vw, 48px) 0 clamp(32px, 3vw, 48px) clamp(32px, 4vw, 64px);
  border-left: 1px solid var(--rp-hair);
}
/* 年の位置の目盛り（ひし形）。行が出るとティールになる */
.cp-year > ul::before {
  content: ""; position: absolute; left: -5px; top: calc(clamp(32px, 3vw, 48px) + 12px);
  width: 9px; height: 9px;
  background: var(--rf-band);
  box-shadow: inset 0 0 0 2px var(--ink-900);
  transform: rotate(45deg);
  z-index: 1;
  transition: background-color .4s ease .3s, box-shadow .4s ease .3s;
}
.cp-year.rp-in > ul::before { background: var(--hp-sky); box-shadow: inset 0 0 0 2px var(--hp-sky); }
.cp-year > ul > li { grid-template-columns: 64px minmax(0, 1fr); gap: 24px; }
.cp-year > ul > li + li { margin-top: 0; padding-top: 16px; }
.cp-year > ul > li:not(:last-child) { padding-bottom: 16px; border-bottom: 1px solid var(--rp-hair); }
.cp-year > ul > li i { font-size: 15px; font-weight: 500; }
.cp-year > ul > li p {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.85;
  color: var(--ink-900);
}

/* 出方（JS が .rp-hist-js を付けたときだけ。年の数字はせり上がり、月の行は順に上がる） */
@media (prefers-reduced-motion: no-preference) {
  .cp-history.reveal { opacity: 1; transform: none; }
  .rp-hist-js .cp-year-head b,
  .rp-hist-js .cp-year-head span {
    clip-path: inset(0 0 100% 0);
    transform: translateY(40%);
    transition: clip-path 1s var(--rp-ease), transform 1s var(--rp-ease);
  }
  .rp-hist-js .cp-year-head span { transition-delay: .12s; }
  .rp-hist-js .cp-year > ul > li {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--rf-ease), transform .7s var(--rf-ease);
  }
  .rp-hist-js .cp-year > ul > li:nth-child(1) { transition-delay: .2s; }
  .rp-hist-js .cp-year > ul > li:nth-child(2) { transition-delay: .28s; }
  .rp-hist-js .cp-year > ul > li:nth-child(3) { transition-delay: .36s; }
  .rp-hist-js .cp-year > ul > li:nth-child(4) { transition-delay: .44s; }
  .rp-hist-js .cp-year.rp-in .cp-year-head b,
  .rp-hist-js .cp-year.rp-in .cp-year-head span { clip-path: inset(0 0 -10% 0); transform: none; }
  .rp-hist-js .cp-year.rp-in > ul > li { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------
   7. 相談（.gd-cta）：濃紺の板に大きな言い切り（about と同じ組み）
   ------------------------------------------------------------- */
.gd-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0 clamp(32px, 5vw, 96px);
  align-items: end;
  margin-top: clamp(72px, 7vw, 120px);
  padding: clamp(52px, 6vw, 100px) clamp(28px, 5.4vw, 88px);
  border-radius: 12px;
  background: var(--ink-900);
  color: #fff;
  text-align: left;
}
.gd-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  pointer-events: none;
}
.gd-cta h2 {
  grid-column: 1 / -1;
  padding-bottom: clamp(32px, 3vw, 48px);
  margin-bottom: clamp(32px, 3vw, 48px);
  border-bottom: 1px solid var(--rp-hair-navy);
  font-size: clamp(30px, 4.6vw, 72px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #fff;
  word-break: auto-phrase;
  text-wrap: balance;
}
.gd-cta p { margin: 0; font-size: clamp(15px, 1.15vw, 17px); color: rgba(255,255,255,.9); }
.gd-cta .s-btn { justify-self: end; }
.gd-cta .btn { margin-top: 0; }
.gd-cta .btn::before { background: #fff; }
.gd-cta .btn.btn-dark:hover { background: var(--hp-sky); color: var(--ink-900); }
.gd-cta .btn.btn-dark:hover .arw { border-left-color: rgba(16,42,67,.2); }

/* -------------------------------------------------------------
   8. 動きを減らす設定
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cp-msg-photo img { transform: none; transition: none; }
  .cp-history::after { transform: none; }
}

/* -------------------------------------------------------------
   9. 画面が狭いとき
   ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .cp-msg { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; }
  #outline .inner { grid-template-columns: 1fr; }
  #outline .sec-head { position: static; }
  .cp-table { margin-top: 48px; }
  .cp-com-layout { grid-template-columns: 1fr; gap: 48px; }
  .gd-cta { grid-template-columns: 1fr; }
  .gd-cta .s-btn { justify-self: start; margin-top: 32px; }
}
@media (max-width: 1050px) {
  .cp-advisors { border-top: 0; row-gap: 0; }
  .cp-advisors .cp-adv,
  .cp-advisors .cp-adv + .cp-adv { padding: 36px 0 48px; border-left: 0; border-top: 2px solid var(--ink-900); }
  .cp-advisors .cp-adv-career { grid-auto-rows: auto; }
}
@media (max-width: 767px) {
  .cp-msg { grid-template-columns: 1fr; gap: 32px; }
  .cp-msg-photo { position: relative; top: 0; max-width: none; margin: 0; }

  .cp-table > div { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }

  .cp-com-gallery { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; max-width: none; }
  .cp-com-gallery figure + figure { margin-top: 56px; }

  :root { --rp-hist-col: 0px; }
  .cp-history::after { left: 0; margin-left: 0; }
  .cp-year { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .cp-year-head { padding: 32px 0 20px 28px; }
  .cp-year-head b { font-size: 52px; }
  .cp-year > ul { padding: 0 0 32px 28px; }
  .cp-year > ul::before { top: 6px; }
  .cp-year > ul > li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }

  .gd-cta { padding-inline: 22px; border-radius: 10px; }
  .gd-cta .s-btn { width: 100%; }
  .gd-cta .btn { width: 100%; min-width: 0; padding: 0 0 0 20px; gap: 0; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
  .gd-cta .btn .arw { width: 52px; margin-left: 8px; flex: none; }
}
@media (max-width: 600px) {
  .cp-advisors .cp-adv-head { grid-template-columns: 112px minmax(0, 1fr); gap: 20px; justify-items: start; text-align: left; align-items: start; }
  .cp-advisors .cp-adv-pic img { width: 112px; height: 112px; }
  .cp-advisors .cp-adv-id { min-height: 0; }
  .cp-advisors .cp-adv-name { margin-top: 12px; font-size: 24px; }
  .cp-advisors .cp-adv-name span { font-size: 12px; }
  .cp-advisors .cp-adv-role { font-size: 12px; padding: 4px 8px; }
  .cp-advisors .cp-adv,
  .cp-advisors .cp-adv + .cp-adv { padding: 32px 0 40px; }
  .cp-advisors .cp-adv-career li { padding: 14px 0; }
}
@media (max-width: 480px) {
  .cp-com-gallery { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; max-width: none; }
}
