@charset "UTF-8";
/* ============================================================
   代表紹介ページ (page-representative.php) 専用スタイル
   ※ 全セレクタを .p-representative 配下にスコープ
     （共通スタイル／ヘッダー／フッター／FV／CTA に影響を与えない）
   ※ FV(p-lowerFv) は theme/template/lowerFv が共通CSSで出力するため
     本ファイルには含めない
   配置: wp-content/themes/4040vision/assets/css/representative.css
   ============================================================ */

.p-representative {
  /* 4040 VISION デザイントークン */
  --c-primary: #124675;
  --c-primary-light: #1AA1E6;
  --c-accent: #e8831a;
  --c-text: #333;
  --c-text-sub: #666;
  --c-text-muted: #909090;
  --c-bg: #ffffff;
  --c-bg-blue-pale: #f1f5f8;
  --c-bg-blue-soft: #e3edf4;
  --c-bg-blue-mid: #D6E7EE;
  --c-border: #dde3ea;
  --c-eg-title: rgba(18, 70, 117, 0.08);

  --ff-main: "Noto Sans JP", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --ff-eg: "Cormorant Infant", serif;
  --ff-mincho: "Shippori Mincho B1", "Noto Serif JP", serif;

  --container: 1200px;
  --container-narrow: 1030px;
  --container-text: 800px;

  font-family: var(--ff-main);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.9;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}
/* リセットは box-sizing のみ。
   margin/padding はテーマ共通のリセットに任せる
   （.l-inner 等の共通コンテナの中央寄せ・余白を打ち消さないため） */
.p-representative *,
.p-representative *::before,
.p-representative *::after {
  box-sizing: border-box;
}

.p-representative .container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.p-representative .container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

/* ============ COMMON: Section Header ============ */
.p-representative .sec-head { position: relative; margin-bottom: 64px; }
.p-representative .sec-head__eg {
  font-family: var(--ff-eg);
  font-size: 96px;
  font-weight: 500;
  color: var(--c-eg-title);
  line-height: 1;
  letter-spacing: 0.02em;
  font-style: italic;
  margin-bottom: -52px;
  user-select: none;
}
.p-representative .sec-head__jp {
  font-family: var(--ff-mincho);
  font-size: 32px;
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.5;
  letter-spacing: 0.08em;
  position: relative;
  padding-left: 24px;
}
.p-representative .sec-head__jp::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 1px;
  background: var(--c-accent);
}

/* ============ PROFILE HEAD ============ */
.p-representative .p-profile { padding: 110px 0 90px; background: #fff; }
.p-representative .p-profile__inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: center;
}
.p-representative .p-profile__photo {
  aspect-ratio: 3 / 4;
  background: var(--c-bg-blue-pale);
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(18, 70, 117, 0.12);
}
.p-representative .p-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.p-representative .p-profile__photoPlaceholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  font-size: 12.5px;
  text-align: center;
  padding: 24px;
  line-height: 1.9;
}
.p-representative .p-profile__photo.is-empty .p-profile__photoPlaceholder { display: flex; }
.p-representative .p-profile__company {
  font-size: 13px;
  color: var(--c-text-sub);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.p-representative .p-profile__role {
  font-size: 13px;
  color: var(--c-text-sub);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.p-representative .p-profile__name {
  font-family: var(--ff-mincho);
  color: var(--c-primary);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}
.p-representative .p-profile__nameEn {
  font-family: var(--ff-eg);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: var(--c-text-muted);
  letter-spacing: 0.16em;
}
.p-representative .p-profile__titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 32px;
}
.p-representative .p-profile__title {
  display: inline-block;
  font-family: var(--ff-mincho);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #000;
  background: transparent;
  border: none;
  padding: 0;
}
.p-representative .p-profile__lead {
  font-size: 15px;
  line-height: 2.05;
  color: var(--c-text);
  padding-left: 18px;
  border-left: 3px solid var(--c-accent);
}
.p-representative .p-profile__lead strong {
  font-family: var(--ff-mincho);
  font-size: 1.15em;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.04em;
}
.p-representative .p-profile__affiliations {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}
.p-representative .p-profile__affiliationsLabel {
  font-family: var(--ff-eg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-text-sub);
  margin-bottom: 16px;
  text-transform: uppercase;
  position: relative;
  padding-left: 18px;
}
.p-representative .p-profile__affiliationsLabel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 1px;
  background: var(--c-accent);
}
.p-representative .p-profile__affiliationsList {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.p-representative .p-profile__affiliationItem {
  display: flex;
  align-items: center;
  height: 56px;
  position: relative;
}
.p-representative .p-profile__affiliationLink {
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.p-representative .p-profile__affiliationLink:hover { opacity: 0.65; }
.p-representative .p-profile__affiliationItem img {
  max-height: 100%;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.p-representative .p-profile__affiliationFallback {
  display: none;
  font-size: 12px;
  color: var(--c-text-sub);
  padding: 8px 14px;
  border: 1px dashed var(--c-border);
  border-radius: 2px;
  background: var(--c-bg-blue-pale);
  letter-spacing: 0.04em;
}
.p-representative .p-profile__affiliationItem.is-empty img { display: none; }
.p-representative .p-profile__affiliationItem.is-empty .p-profile__affiliationFallback { display: inline-block; }

/* ============ SECTION COMMON ============ */
.p-representative .p-rpSection { padding: 130px 0; }

/* ============ STORY ============ */
.p-representative .story { background: var(--c-bg); }
.p-representative .story-body {
  font-family: var(--ff-main);
  font-size: 16px;
  line-height: 2.2;
  color: var(--c-text);
  max-width: var(--container-text);
}
.p-representative .story-body p { margin-bottom: 1.8em; }
.p-representative .story-body p:last-of-type { margin-bottom: 0; }
.p-representative .story-body strong {
  font-weight: 700;
  font-size: 1.2em;
  color: var(--c-primary);
  background: linear-gradient(transparent 65%, rgba(232, 131, 26, 0.2) 65%);
  padding: 0 3px;
}
.p-representative .story-note {
  background: #fffaf0;
  border-left: 4px solid var(--c-accent);
  padding: 16px 22px;
  margin-top: 40px;
  font-size: 12.5px;
  color: #8a5a18;
  line-height: 1.85;
  max-width: var(--container-text);
}

/* ============ CAREER ============ */
.p-representative .career { background: var(--c-bg-blue-pale); }
.p-representative .timeline {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(18, 70, 117, 0.06);
  padding: 16px 48px;
  max-width: 900px;
}
.p-representative .timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px dotted var(--c-border);
  align-items: baseline;
}
.p-representative .timeline-item:last-child { border-bottom: none; }
.p-representative .timeline-year {
  font-family: var(--ff-mincho);
  font-size: 20px;
  color: var(--c-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.p-representative .timeline-body {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.85;
}
.p-representative .timeline-item.is-pivot { position: relative; }
.p-representative .timeline-item.is-pivot .timeline-year { color: var(--c-accent); }
.p-representative .timeline-item.is-pivot .timeline-year::before {
  content: "●";
  color: var(--c-accent);
  font-size: 9px;
  margin-right: 8px;
  vertical-align: middle;
}
.p-representative .timeline-item.is-pivot .timeline-body {
  color: var(--c-primary);
  font-weight: 700;
}
.p-representative .lead-box {
  background: #fff;
  border-left: 5px solid var(--c-primary);
  padding: 28px 32px;
  margin-top: 40px;
  box-shadow: 0 2px 12px rgba(18,70,117,0.07);
  font-size: 15.5px;
  line-height: 2;
  max-width: 900px;
  border-radius: 0 4px 4px 0;
}
.p-representative .lead-box strong { color: var(--c-primary); font-weight: 700; }
.p-representative .qualification {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--c-text-sub);
  max-width: 900px;
  padding-left: 4px;
  letter-spacing: 0.04em;
}
.p-representative .qualification__label {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 2px;
  letter-spacing: 0.12em;
  margin-right: 12px;
  vertical-align: middle;
}

/* ============ MEDIA ============ */
.p-representative .media { background: var(--c-bg); }
.p-representative .media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: var(--container-narrow);
}
.p-representative .media-card {
  display: block;
  padding: 44px 40px 40px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-primary);
  text-decoration: none;
  color: var(--c-text);
  transition: all 0.35s ease;
  position: relative;
}
.p-representative .media-card:hover {
  border-color: var(--c-primary);
  border-top-color: var(--c-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(18, 70, 117, 0.1);
}
.p-representative .media-card__label {
  font-family: var(--ff-eg);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--c-primary-light);
  margin-bottom: 12px;
  font-weight: 500;
}
.p-representative .media-card__title {
  font-family: var(--ff-mincho);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  color: var(--c-primary);
}
.p-representative .media-card__desc {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.95;
}
.p-representative .media-card__arrow {
  margin-top: 28px;
  font-size: 12px;
  color: var(--c-primary);
  letter-spacing: 0.18em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.3s ease;
}
.p-representative .media-card__arrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-accent);
  transition: width 0.3s ease;
}
.p-representative .media-card:hover .media-card__arrow { gap: 16px; }
.p-representative .media-card:hover .media-card__arrow::after { width: 36px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .p-representative .p-profile { padding: 64px 0 56px; }
  .p-representative .p-profile__inner {
    grid-template-columns: 1fr; gap: 32px; max-width: 480px; margin-inline: auto;
  }
  .p-representative .p-profile__name { font-size: 28px; gap: 12px; }
  .p-representative .p-profile__nameEn { font-size: 15px; }
  .p-representative .p-profile__lead { font-size: 14px; line-height: 1.95; }
  .p-representative .p-profile__title { font-size: 16px; letter-spacing: 0.1em; }
  .p-representative .p-profile__affiliationsList { gap: 24px; }
  .p-representative .p-profile__affiliationItem { height: 44px; }
  .p-representative .p-profile__affiliationItem img { max-width: 180px; }

  .p-representative .p-rpSection { padding: 80px 0; }
  .p-representative .sec-head { margin-bottom: 44px; }
  .p-representative .sec-head__eg { font-size: 60px; margin-bottom: -34px; }
  .p-representative .sec-head__jp { font-size: 22px; }
  .p-representative .story-body { font-size: 15px; line-height: 2.05; }
  .p-representative .timeline { padding: 8px 24px; }
  .p-representative .timeline-item { grid-template-columns: 86px 1fr; gap: 18px; padding: 18px 0; }
  .p-representative .timeline-year { font-size: 17px; }
  .p-representative .timeline-body { font-size: 13.5px; }
  .p-representative .lead-box { padding: 22px 24px; font-size: 14.5px; }
  .p-representative .media-grid { grid-template-columns: 1fr; gap: 20px; }
  .p-representative .media-card { padding: 32px 28px; }
  .p-representative .media-card__title { font-size: 19px; }

  .p-representative .container, .p-representative .container-narrow { padding: 0 22px; }
}
