/* 代表者紹介（/profile/）。共通部分は pages.css
   本文はブロックエディタのまま（2カラム：左に写真、右に名前・ご挨拶・スタンス・経歴・家族・趣味）。 */
body.otf-profile{--eyebrow:"Profile"}

body.otf-profile .article .entry-content{font-size:15.5px}
body.otf-profile .article .entry-content p{font-size:15.5px;line-height:2.1;color:var(--sumi2);margin:0 0 1.25em}
body.otf-profile .article .entry-content a{color:var(--sumi);text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--rule)}
body.otf-profile .article .entry-content a:hover{color:var(--warm-t);text-decoration-color:currentColor}

/* ---- 2カラム ---- */
body.otf-profile .article .wp-block-columns{gap:56px;align-items:flex-start;margin:0}
body.otf-profile .article .wp-block-column:first-child{position:sticky;top:24px}
body.otf-profile .article .wp-block-column:first-child .wp-block-image{margin:0 0 14px}
body.otf-profile .article .wp-block-column:first-child img{
  display:block;width:100%;height:auto;box-shadow:none!important;border-radius:0!important;
  filter:saturate(.92)
}

/* ---- 名前（肩書きの段落 .otf-name-role ＋ 名前の見出し .otf-name） ---- */
body.otf-profile .article .entry-content p.otf-name-role{
  font-family:var(--f-min);font-size:14.5px;line-height:1.8;letter-spacing:.12em;color:var(--sumi2);margin:0 0 4px
}
body.otf-profile .article .entry-content h4.otf-name{
  font-family:var(--f-min);font-weight:500;font-size:clamp(28px,3vw,36px);line-height:1.4;letter-spacing:.24em;color:var(--sumi);
  background:none;border:0;border-bottom:1px solid var(--rule);border-radius:0;padding:0 0 22px;margin:0 0 36px
}
/* 古い形（1行の見出し）のままでも崩れないように */
body.otf-profile .article .wp-block-column:last-child > h4:first-child{
  font-family:var(--f-min);font-weight:500;font-size:17px;line-height:1.8;letter-spacing:.12em;color:var(--sumi);
  background:none;border:0;border-bottom:1px solid var(--rule);border-radius:0;padding:0 0 18px;margin:0 0 32px
}

/* ---- 区切りの見出し（「ご挨拶」「当事務所のスタンス」「経歴」：太字だけの段落） ---- */
body.otf-profile .article .entry-content p:has(> strong:only-child){
  display:flex;align-items:center;gap:12px;margin:52px 0 18px;
  font-size:14px;line-height:1.6;letter-spacing:.18em;color:var(--sage-t)
}
body.otf-profile .article .entry-content p:has(> strong:only-child) strong{font-weight:500;color:inherit}
body.otf-profile .article .entry-content p:has(> strong:only-child)::after{content:"";flex:1;height:1px;background:var(--rule)}
body.otf-profile .article .entry-content h4.otf-name + p:has(> strong:only-child),
body.otf-profile .article .wp-block-column:last-child > h4:first-child + p:has(> strong:only-child){margin-top:0}

/* 小見出し（家族・趣味） */
body.otf-profile .article .wp-block-column:last-child > h4:not(:first-child):not(.otf-name){
  font-family:var(--f-min);font-weight:500;font-size:17px;letter-spacing:.14em;color:var(--sumi);
  background:none;border:0;border-radius:0;padding:0;margin:40px 0 10px
}
body.otf-profile .article .entry-content h4::before,
body.otf-profile .article .entry-content h4::after{content:none}

/* 区切り線 */
body.otf-profile .article .wp-block-separator{border:0;border-top:1px solid var(--rule);height:0;margin:52px 0;opacity:1;background:none;width:100%}

/* note への案内 */
body.otf-profile .article .entry-content p.has-box-style,
body.otf-profile .article .entry-content p.is-style-light-box{
  background:#fff;border:1px solid var(--rule);border-left:3px solid var(--warm);border-radius:0;box-shadow:none;
  padding:14px 18px;margin:28px 0;font-size:14px;line-height:1.9;color:var(--sumi2)
}

/* ---- 経歴（年月入りのリスト） ---- */
body.otf-profile .article .entry-content ul.wp-block-list{list-style:none;margin:0 0 20px;padding:0}
body.otf-profile .article .entry-content ul.wp-block-list li{position:relative;margin:0;line-height:1.85}
body.otf-profile .article .entry-content ul.wp-block-list li::before,
body.otf-profile .article .entry-content ul.wp-block-list li::marker{content:none}
body.otf-profile .article .entry-content ul.wp-block-list:has(strong) li{
  padding:14px 0 14px 0;border-top:1px solid var(--rule);font-size:14.5px;color:var(--sumi2)
}
body.otf-profile .article .entry-content ul.wp-block-list:has(strong) li:last-child{border-bottom:1px solid var(--rule)}
body.otf-profile .article .entry-content ul.wp-block-list:has(strong) li strong{
  font-family:var(--f-min);font-weight:500;font-size:15.5px;letter-spacing:.06em;color:var(--warm-t)
}
/* 資格・登録 */
body.otf-profile .article .entry-content ul.wp-block-list:not(:has(strong)){margin:18px 0 8px}
body.otf-profile .article .entry-content ul.wp-block-list:not(:has(strong)) li{padding:3px 0 3px 1.2em;font-size:13.5px;color:var(--mute)}
body.otf-profile .article .entry-content ul.wp-block-list:not(:has(strong)) li::before{
  content:"";position:absolute;left:.1em;top:1.05em;width:7px;height:1px;background:var(--sage)
}

/* ---- スマートフォン（カラムが縦に並ぶ幅） ---- */
@media (max-width:781px){
  body.otf-profile .article .wp-block-columns{gap:32px}
  body.otf-profile .article .wp-block-column:first-child{
    position:static;display:grid;grid-template-columns:1.25fr 1fr;gap:10px;align-items:start
  }
  body.otf-profile .article .wp-block-column:first-child .wp-block-image{margin:0}
  body.otf-profile .article .wp-block-column:first-child img{aspect-ratio:3/4;object-fit:cover}
  body.otf-profile .article .wp-block-column:first-child .wp-block-image:nth-child(2){margin-top:22%}
  body.otf-profile .article .entry-content h4.otf-name{margin-bottom:28px;padding-bottom:18px}
  body.otf-profile .article .entry-content p:has(> strong:only-child){margin-top:44px}
}
