/* 個人紹介ページ（/about/shota/・/about/yu/）専用。body.p-profile 配下のみ。
   色は index-mock.css の --im-* 変数（紺・金・生成り）だけを使う。
   構成: 個人ゾーン（生成り: ヒーロー〜著書）→ メルマガ帯（紺）→ 会社ゾーン（紺: SERVICE）
   カード・影は使わず、余白と細い罫線で区切る */

body.p-profile {
  --pf-rule: rgb(from var(--im-gold) r g b / 0.35);
  --pf-gutter: 1.5rem;
}
body.p-profile .l-main { overflow-x: clip; }

/* ---------- 共通部品 ---------- */
body.p-profile .pf-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: var(--pf-gutter);
  padding-right: var(--pf-gutter);
}
body.p-profile .pf-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 2;
  max-width: 40em;
  margin: 0;
  overflow-wrap: anywhere;
}
body.p-profile .pf-h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.75;
  color: var(--im-navy);
  margin: 0 0 0.75rem;
  overflow-wrap: anywhere;
}
body.p-profile .pf-num {
  display: block;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  color: var(--im-gold);
}

/* 節見出し: 英字小見出し + 日本語見出し */
body.p-profile .pf-head { margin: 0 0 2.25rem; }
body.p-profile .pf-head_en {
  display: block;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: 0.3em;
  line-height: 1;
  color: var(--im-gold);
  margin-bottom: 0.75rem;
}
body.p-profile .pf-head_ja {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--im-navy);
  overflow-wrap: anywhere;
}

/* 個人ゾーンの節: 余白 + 細い罫線 */
body.p-profile .pf-sec { padding: 2.25rem 0; background: var(--im-cream); color: var(--im-text); }
body.p-profile .pf-sec + .pf-sec .pf-wrap { position: relative; }
body.p-profile .pf-sec + .pf-sec .pf-wrap::before {
  content: "";
  position: absolute;
  top: -2.25rem;
  left: var(--pf-gutter);
  right: var(--pf-gutter);
  height: 1px;
  background: var(--pf-rule);
}
body.p-profile .pf-sec:has(+ .pf-cta) { padding-bottom: 4.5rem; }
/* 著書の共通余白・見出しは維持し、それ以外の節だけに読書のリズムを作る。 */
body.p-profile .pf-sec:not(.pf-book_section) { padding: 56px 0; }
body.p-profile .pf-sec:not(.pf-book_section) + .pf-sec:not(.pf-book_section) .pf-wrap::before { top: -56px; }
body.p-profile .pf-sec:not(.pf-book_section) .pf-head { margin-bottom: 32px; }
body.p-profile .pf-sec:not(.pf-book_section) .pf-head_ja { font-size: 24px; }
body.p-profile .pf-sec:not(.pf-book_section) .pf-head_en { font-size: 12px; line-height: 1.4; }

/* ---------- ヒーロー ---------- */
body.p-profile .pf-hero {
  display: flex;
  flex-direction: column;
  background: var(--im-cream);
  color: var(--im-text);
}
body.p-profile .pf-hero_photo { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
body.p-profile .pf-hero_photo picture { display: block; width: 100%; height: 100%; }
body.p-profile .pf-hero_photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 0;
}
body.p-profile .pf-hero_body { padding: 36px var(--pf-gutter) 8px; }
body.p-profile .pf-hero_inner { max-width: 40rem; }
body.p-profile .pf-hero_role {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--im-text-light);
  margin: 0 0 16px;
}
body.p-profile .pf-hero_name {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--im-navy);
  margin: 0;
}
body.p-profile .pf-hero_yomi {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--im-text-light);
  margin-top: 0.5rem;
}
body.p-profile .pf-hero_roman {
  font-family: "DM Serif Display", serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--im-gold);
  margin: 0.75rem 0 0;
}
body.p-profile .pf-hero_catch {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.8;
  color: var(--im-navy);
  margin: 24px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--pf-rule);
  word-break: auto-phrase;
  text-wrap: balance;
}
body.p-profile .pf-hero_lead {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 2;
  max-width: 40em;
  margin: 0;
  overflow-wrap: anywhere;
}

/* ---------- 専門テーマ（3列 / SP 1列） ---------- */
body.p-profile .pf-themes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
body.p-profile .pf-theme { min-width: 0; border-top: 1px solid var(--pf-rule); padding-top: 24px; }
body.p-profile .pf-theme .pf-num { margin-bottom: 20px; }

/* ---------- 考え方（番号付き縦並び） ---------- */
body.p-profile .pf-think { list-style: none; margin: 0; padding: 0; }
body.p-profile .pf-think_item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--pf-rule);
}
body.p-profile .pf-think_item .pf-num { flex: none; width: 36px; font-size: 32px; line-height: 1.1; }
body.p-profile .pf-think_item:last-child { padding-bottom: 0; }
body.p-profile .pf-think_body { min-width: 0; flex: 1; }

/* ---------- 経歴（縦タイムライン） ---------- */
body.p-profile .pf-career { list-style: none; margin: 0; padding: 0; }
body.p-profile .pf-career_row {
  position: relative;
  padding: 0 0 32px 88px;
  min-height: 2rem;
}
body.p-profile .pf-career_row:last-child { padding-bottom: 0; }
body.p-profile .pf-career_row::before {
  content: "";
  position: absolute;
  left: 70px;
  top: 14px;
  bottom: -14px;
  width: 1px;
  background: var(--pf-rule);
}
body.p-profile .pf-career_row:last-child::before { display: none; }
body.p-profile .pf-career_row::after {
  content: "";
  position: absolute;
  left: 67px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--im-gold);
  transform: translateY(-50%);
}
body.p-profile .pf-career_year {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 2;
  color: var(--im-navy);
  white-space: nowrap;
}
body.p-profile .pf-career_text {
  font-size: 15px;
  line-height: 2;
  max-width: 40em;
  margin: 0;
  overflow-wrap: anywhere;
}

/* ---------- 著書 ---------- */
body.p-profile .pf-book_section { padding-top: 3.5rem; }
body.p-profile .pf-book_layout {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  column-gap: clamp(2.5rem, 6vw, 5rem);
}
body.p-profile .pf-book_layout > .pf-head { margin: 0; }
body.p-profile .pf-books { min-width: 0; list-style: none; margin: 0; padding: 0; }
body.p-profile .pf-books li {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--im-navy);
  max-width: 40em;
  overflow-wrap: anywhere;
}

/* 書影つきの著書（表紙とボタンからAmazonへ） */
body.p-profile .pf-book {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
}
body.p-profile .pf-books > .pf-book { max-width: none; }
body.p-profile .pf-book_cover {
  display: block;
  width: min(100%, 200px);
  margin: 0 auto;
  color: var(--im-navy);
}
body.p-profile .pf-book_cover img { display: block; width: 100%; height: auto; }
body.p-profile .pf-book_cover:focus-visible {
  outline: 3px solid var(--im-gold);
  outline-offset: 6px;
}
body.p-profile .pf-book_body { min-width: 0; padding-bottom: 0.25rem; }
body.p-profile .pf-book_title {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(28px, 2.4vw, 30px);
  line-height: 1.55;
  color: var(--im-navy);
  margin: 0 0 0.75rem;
  overflow-wrap: anywhere;
}
body.p-profile .pf-book_note {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--im-text-light);
  letter-spacing: 0.04em;
  margin: 0 0 2rem;
}
body.p-profile .pf-book_button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  width: min(100%, 240px);
  min-height: 54px;
  padding: 12px 24px;
  border: 1px solid var(--im-navy);
  border-radius: 999px;
  background: var(--im-cream);
  color: var(--im-navy);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, color 0.2s ease;
}
body.p-profile .pf-book_arrow { flex: 0 0 auto; width: 24px; height: 12px; }
body.p-profile .pf-book_button:hover { background: var(--im-navy); color: var(--im-cream); }
body.p-profile .pf-book_button:focus-visible {
  outline: 3px solid var(--im-gold);
  outline-offset: 4px;
}
@media (max-width: 900px) {
  body.p-profile .pf-book_section { padding-top: 2.75rem; }
  body.p-profile .pf-book_layout { display: block; }
  body.p-profile .pf-book_layout > .pf-head { margin-bottom: 2.5rem; }
  body.p-profile .pf-book { display: block; }
  body.p-profile .pf-book_cover { width: 180px; max-width: 100%; margin-bottom: 2.25rem; }
  body.p-profile .pf-book_body { padding: 0; }
  body.p-profile .pf-book_title { font-size: 26px; line-height: 1.55; }
  body.p-profile .pf-book_note { margin-bottom: 1.75rem; }
  body.p-profile .pf-book_button { width: 100%; max-width: 240px; }
}

/* ---------- メルマガ帯（横幅いっぱい・紺） ---------- */
body.p-profile .pf-cta { background: var(--im-navy-mid); color: var(--im-cream); padding: 44px 0; }
body.p-profile .pf-cta_inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pf-gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
body.p-profile .pf-cta_text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 2;
  max-width: 36em;
  margin: 0;
  color: var(--im-cream);
}
/* 著書のボタンと同じ輪郭・寸法。紺の帯では生成りに反転する。 */
body.p-profile .pf-cta_button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  gap: 24px;
  box-sizing: border-box;
  width: min(100%, 272px);
  min-height: 54px;
  padding: 12px 24px;
  border: 1px solid var(--im-cream);
  border-radius: 999px;
  background: var(--im-navy-mid);
  color: var(--im-cream);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
body.p-profile .pf-cta_arrow { flex: 0 0 auto; width: 24px; height: 12px; }
body.p-profile .pf-cta_button:hover { background: var(--im-cream); color: var(--im-navy); }
body.p-profile .pf-cta_button:focus-visible { outline: 3px solid var(--im-gold); outline-offset: 4px; }

/* ---------- 会社ゾーン（紺・生成り文字） ---------- */
body.p-profile .pf-company { background: var(--im-navy); color: var(--im-cream); padding: 64px 0; }
body.p-profile .pf-company .pf-head { margin-bottom: 20px; }
body.p-profile .pf-company .pf-head_ja { color: var(--im-cream); font-size: 24px; line-height: 1.6; text-wrap: balance; }
body.p-profile .pf-company .pf-head_en { font-size: 12px; line-height: 1.4; }
body.p-profile .pf-company .pf-h3,
body.p-profile .pf-company .pf-text { color: var(--im-cream); }
body.p-profile .pf-company .pf-company_intro { margin: 0 0 40px; font-size: 13px; }
body.p-profile .pf-consult {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
body.p-profile .pf-consult_item {
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid var(--pf-rule);
}
body.p-profile .pf-company_note {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.9;
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--pf-rule);
  color: var(--im-cream);
}
body.p-profile .pf-company_note > span { display: block; max-width: 38em; }

/* ---------- PC ---------- */
@media (min-width: 751px) {
  body.p-profile { --pf-gutter: 2.5rem; }
  body.p-profile .pf-text,
  body.p-profile .pf-career_text { font-size: 16px; }

  body.p-profile .pf-h3 { font-size: 20px; }
  body.p-profile .pf-num { font-size: 44px; }
  /* 著書に使われる共通の見出しと節余白は承認済みの値を維持。 */
  body.p-profile .pf-head { margin-bottom: 3rem; }
  body.p-profile .pf-head_en { font-size: 1rem; }
  body.p-profile .pf-head_ja { font-size: 1.875rem; }
  body.p-profile .pf-sec { padding: 3.75rem 0; }
  body.p-profile .pf-sec + .pf-sec .pf-wrap::before { top: -3.75rem; }
  body.p-profile .pf-sec:has(+ .pf-cta) { padding-bottom: 7.5rem; }
  body.p-profile .pf-sec:not(.pf-book_section) { padding: 80px 0; }
  body.p-profile .pf-sec:not(.pf-book_section) + .pf-sec:not(.pf-book_section) .pf-wrap::before { top: -80px; }
  body.p-profile .pf-sec:not(.pf-book_section) .pf-head { margin-bottom: 40px; }
  body.p-profile .pf-sec:not(.pf-book_section) .pf-head_ja { font-size: 28px; }

  /* 写真の寸法は文章量に引き伸ばされないよう固定。 */
  body.p-profile .pf-hero { flex-direction: row; min-height: clamp(400px, 56vh, 560px); align-items: center; }
  body.p-profile .pf-hero_photo {
    width: 36vw;
    flex: none;
    aspect-ratio: auto;
    height: clamp(400px, 56vh, 560px);
  }
  body.p-profile .pf-hero_body {
    flex: 1;
    min-width: 0;
    padding: 32px 5vw;
  }
  body.p-profile .pf-hero_inner { max-width: 640px; }
  body.p-profile .pf-hero_role { font-size: 12px; letter-spacing: 0.16em; }
  body.p-profile .pf-hero_name { font-size: 44px; }
  body.p-profile .pf-hero_roman { font-size: 22px; }
  body.p-profile .pf-hero_catch { font-size: 24px; }

  body.p-profile .pf-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
  body.p-profile .pf-think_item { gap: 28px; padding: 32px 0; }
  body.p-profile .pf-think_item .pf-num { width: 44px; font-size: 36px; }

  body.p-profile .pf-career_row { padding-left: 112px; padding-bottom: 36px; }
  body.p-profile .pf-career_row::before { left: 88px; }
  body.p-profile .pf-career_row::after { left: 85px; }
  body.p-profile .pf-career_year { width: 72px; font-size: 16px; }

  body.p-profile .pf-cta { padding: 56px 0; }
  body.p-profile .pf-cta_inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }

  body.p-profile .pf-company { padding: 88px 0; }
  body.p-profile .pf-company .pf-head_ja { font-size: 28px; }
  body.p-profile .pf-company .pf-company_intro { margin-bottom: 48px; }
  body.p-profile .pf-consult { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
  body.p-profile .pf-consult_item .pf-h3 { min-height: 3.5em; }
  body.p-profile .pf-company_note { margin-top: 56px; padding-top: 36px; font-size: 20px; }
}

/* 最も長い見出しに合わせ、3項目の本文の開始位置をそろえる。 */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 751px) {
    body.p-profile .pf-consult { row-gap: 16px; }
    body.p-profile .pf-consult_item {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 2;
    }
    body.p-profile .pf-consult_item .pf-h3 { min-height: 0; margin-bottom: 0; }
  }
}

/* 著書と同じ左の見出し軸に、考え方・経歴をそろえる。 */
@media (min-width: 901px) {
  body.p-profile .pf-sec--editorial .pf-wrap {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    column-gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
  }
  body.p-profile .pf-sec--editorial .pf-think_item:first-child { border-top: 0; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.p-profile .pf-cta_button { transition: none; }
}

/* 会社ゾーン（紺）と共通お問い合わせブロックの間の生成りの空白を詰める */
body.p-profile .l-section:has(.o-common-cta) { margin-top: 0; }

/* 共通のお問い合わせも、この2ページだけ細枠の導線にそろえる。 */
body.p-profile .o-common-cta { height: auto; min-height: 200px; padding: 48px var(--pf-gutter); }
body.p-profile .o-common-cta_content-inner { flex-wrap: wrap; gap: 28px; max-width: 1036px; }
body.p-profile .o-common-cta .a-heading_text-one {
  font-family: "DM Serif Display", serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.3em;
  color: var(--im-gold);
}
body.p-profile .o-common-cta .a-heading_text-two {
  font-family: "Noto Serif JP", serif;
  font-size: 28px;
  line-height: 1.6;
  color: var(--im-cream);
}
body.p-profile .o-common-cta_buttons { width: 272px; max-width: 100%; min-width: 0; }
body.p-profile .o-common-cta_buttons-item { width: 100%; height: auto; }
body.p-profile .o-common-cta .a-button {
  --change-color-bg: var(--im-cream);
  --change-color-text: var(--im-navy);
  --change-color-border: var(--im-cream);
  box-sizing: border-box;
  width: min(100%, 272px);
  min-height: 54px;
  height: auto;
  margin: 0 auto;
  padding: 12px 24px;
  border: 1px solid var(--im-cream);
  border-radius: 999px;
  background: var(--im-navy-mid);
  color: var(--im-cream);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
body.p-profile .o-common-cta .a-button:hover { background: var(--im-cream); color: var(--im-navy); }
body.p-profile .o-common-cta .a-button:focus-visible { outline: 3px solid var(--im-gold); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  body.p-profile .o-common-cta .a-button { transition: none; }
}
