/* ============================================================
   中原総合法律事務所 写真中心デザイン改定案（旧miles-firm.jp風）
   このファイルは改定案（index_photo.html 等）専用の独立CSS。
   既存の design-system.css / site.css には依存しない。
   配色は旧サイト準拠：紺 #14375b ／ グレー #f2f2f2 ／ 罫線 #e9e9e9
   ============================================================ */

:root {
  --navy: #14375b;
  --navy-dark: #0e2a47;
  --gray-bg: #f2f2f2;
  --gray-line: #e9e9e9;
  --text: #333333;
  --text-sub: #545454;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 日本語の折り返し改善：対応ブラウザ（Chrome/Edge等）では文節単位で改行し、
   「ております」「ます」などが行頭に来るのを防ぐ。非対応ブラウザは従来通り */
.ph-hero-lead, .ph-detail-lead, .ph-vision-quote, .ph-vision-note, .ph-fee-note,
.ph-hub-desc, .ph-service-desc, .ph-svc-text, .ph-quote-box, .ph-message-text,
.ph-hero-title, .ph-sec-title strong, .ph-contact-band h3 {
  word-break: auto-phrase;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
ul, ol { list-style: none; }

/* 方眼紙パターン背景 */
.bg-grid { background: #fafafa url(../images/bg_header.png) repeat; }

.ph-container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------
   ヘッダー：白地・紺ロゴ・二段ラベルのナビ・右端に紺のCTA
   ------------------------------------------------------------ */
.ph-header {
  background: #fff url(../images/bg_header.png) repeat;
  border-bottom: 1px solid var(--gray-line);
  position: relative;
  z-index: 20;
}
.ph-header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: stretch; justify-content: space-between;
  padding: 0 20px; min-height: 72px;
}
.ph-logo { display: flex; align-items: center; }
.ph-logo img { width: 300px; max-width: 60vw; }
.ph-logo .ph-logo-text {
  font-size: 1.35rem; font-weight: 700; color: var(--navy); letter-spacing: 0.06em;
}
.ph-nav { display: flex; align-items: stretch; }
.ph-nav ul { display: flex; align-items: stretch; }
.ph-nav li { display: flex; }
.ph-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 18px; text-align: center;
  font-size: 0.85rem; font-weight: 600; color: var(--navy); line-height: 1.5;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.ph-nav a .en {
  display: block; font-size: 0.68rem; font-weight: 400; color: #8a8a8a; letter-spacing: 0.04em;
}
.ph-nav a:hover, .ph-nav a.is-active { border-bottom-color: var(--navy); }

.ph-nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin: 14px 14px 0 0;
  flex-direction: column; justify-content: center; gap: 6px;
}
.ph-nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

@media (max-width: 960px) {
  .ph-header-inner { flex-wrap: wrap; align-items: center; }
  .ph-nav {
    display: none; width: 100%;
    border-top: 1px solid var(--gray-line);
  }
  .ph-nav.is-open { display: block; }
  .ph-nav ul { flex-direction: column; align-items: stretch; }
  .ph-nav a { flex-direction: row; gap: 8px; justify-content: flex-start; padding: 13px 20px; border-bottom: 1px solid var(--gray-line); }
  .ph-nav-toggle { display: flex; }
}

/* ------------------------------------------------------------
   トップページヒーロー
   写真の上に文章を左寄せで配置し、読み込み時に静かに立ち上がる
   ------------------------------------------------------------ */
.ph-hero {
  position: relative; overflow: hidden;
  min-height: min(860px, 92vh);
  display: flex; align-items: center;
  background: var(--navy);
}

/* 写真：22秒かけてゆっくり引く（一度きり） */
.ph-hero-bg {
  position: absolute; inset: -4%;
  background: url(../images/top_mainbg.jpg) center 28% / cover no-repeat;
  animation: ph-hero-kenburns 22s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  will-change: transform;
}
@keyframes ph-hero-kenburns {
  from { transform: scale(1.1); }
  to   { transform: scale(1.0); }
}

/* 紺のグラデーション：左を濃く、右へ抜ける */
.ph-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(14,36,62,0.88) 0%,
    rgba(14,36,62,0.72) 34%,
    rgba(20,55,91,0.34) 62%,
    rgba(20,55,91,0.12) 100%);
}

/* 方眼紙モチーフ：白の細線がごく薄く漂う */
.ph-hero-grid {
  position: absolute; inset: 0; opacity: 0.10; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  rgba(255,255,255,0.9) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.9) 0 1px, transparent 1px 72px);
  animation: ph-hero-drift 80s linear infinite;
}
@keyframes ph-hero-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 72px 144px, 144px 72px; }
}

.ph-hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 96px 40px 120px; color: #fff;
}
.ph-hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.85);
  opacity: 0; animation: ph-hero-fade 0.8s ease-out 0.25s forwards;
}
.ph-hero-eyebrow::before {
  content: ""; height: 1px; background: rgba(255,255,255,0.75);
  width: 0; animation: ph-hero-rule 0.9s cubic-bezier(0.16,1,0.3,1) 0.35s forwards;
}
@keyframes ph-hero-rule { to { width: 56px; } }

.ph-hero-title {
  margin-top: 26px;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.5; letter-spacing: 0.1em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.ph-hero-title .line { display: block; overflow: hidden; }
.ph-hero-title .line > span {
  display: inline-block; transform: translateY(112%);
  animation: ph-hero-rise 1.0s cubic-bezier(0.16,1,0.3,1) forwards;
}
.ph-hero-title .line:nth-child(1) > span { animation-delay: 0.45s; }
.ph-hero-title .line:nth-child(2) > span { animation-delay: 0.62s; }
@keyframes ph-hero-rise { to { transform: translateY(0); } }

.ph-hero-lead {
  margin-top: 32px; max-width: 560px;
  font-size: 0.95rem; line-height: 2.15; color: rgba(255,255,255,0.92);
  text-wrap: pretty;
  opacity: 0; transform: translateY(14px);
  animation: ph-hero-up 0.9s ease-out 1.05s forwards;
}
.ph-hero-cta {
  margin-top: 36px;
  opacity: 0; transform: translateY(14px);
  animation: ph-hero-up 0.9s ease-out 1.3s forwards;
}
.ph-hero-cta-note { margin-top: 14px; font-size: 0.85rem; color: rgba(255,255,255,0.78); }
@keyframes ph-hero-fade { to { opacity: 1; } }
@keyframes ph-hero-up   { to { opacity: 1; transform: translateY(0); } }

/* Scrollインジケーター */
.ph-hero-scroll {
  position: absolute; z-index: 2; right: 42px; bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0; animation: ph-hero-fade 0.8s ease-out 1.6s forwards;
}
.ph-hero-scroll i {
  display: block; width: 1px; height: 72px; position: relative; overflow: hidden;
  background: rgba(255,255,255,0.25);
}
.ph-hero-scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 1px; height: 40%; background: #fff;
  animation: ph-hero-scrolline 2.2s cubic-bezier(0.4,0,0.2,1) infinite;
}
@keyframes ph-hero-scrolline {
  0%   { top: -40%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}

@media (max-width: 700px) {
  .ph-hero { min-height: min(680px, 88vh); }
  .ph-hero-inner { padding: 72px 24px 96px; }
  .ph-hero-shade {
    background: linear-gradient(160deg,
      rgba(14,36,62,0.86) 0%, rgba(14,36,62,0.6) 55%, rgba(20,55,91,0.3) 100%);
  }
  .ph-hero-scroll { right: 20px; }
  /* 画面が狭いと固定改行が二重に折り返されるため解除し、自然に流す */
  .ph-hero-lead br { display: none; }
  /* 罫線の常時アニメーションは電池を消費し続けるためスマホでは静止 */
  .ph-hero-grid { animation: none; }
}

/* 「視覚効果を減らす」設定の利用者にはアニメーションを止め、完成形を即表示 */
@media (prefers-reduced-motion: reduce) {
  .ph-hero *, .ph-hero { animation: none !important; }
  .ph-hero-bg { transform: none; }
  .ph-hero-eyebrow, .ph-hero-lead, .ph-hero-cta, .ph-hero-scroll { opacity: 1; transform: none; }
  .ph-hero-eyebrow::before { width: 56px; }
  .ph-hero-title .line > span { transform: none; }
}

/* メールCTAボタン（白抜き・紺文字） */
.ph-btn-mail {
  display: inline-block; background: #fff; color: var(--navy);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  padding: 14px 42px; border: 1px solid #fff;
  transition: background 0.2s, color 0.2s;
}
.ph-btn-mail:hover { background: transparent; color: #fff; }

/* 紺のメールCTA（白背景セクション用） */
.ph-btn-mail-navy {
  display: inline-block; background: var(--navy); color: #fff;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  padding: 14px 42px; border: 1px solid var(--navy);
  transition: background 0.2s, color 0.2s;
}
.ph-btn-mail-navy:hover { background: #fff; color: var(--navy); }

/* ------------------------------------------------------------
   セクション見出し：英字小ラベル＋紺の日本語＋下線
   ------------------------------------------------------------ */
.ph-section { padding: 72px 0; }
.ph-sec-title { text-align: center; margin-bottom: 44px; }
.ph-sec-title em {
  display: block; font-style: normal; font-size: 0.8rem; letter-spacing: 0.18em;
  color: var(--text-sub); margin-bottom: 6px;
}
.ph-sec-title strong {
  display: block; font-size: 1.55rem; font-weight: 700; color: var(--navy);
  letter-spacing: 0.12em; line-height: 1.6;
}
.ph-sec-title::after {
  content: ""; display: block; width: 44px; height: 2px; background: var(--navy);
  margin: 16px auto 0;
}

/* ------------------------------------------------------------
   サービス：写真カード
   ------------------------------------------------------------ */
.ph-service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.ph-service-card {
  display: block; background: #fff; border: 1px solid var(--gray-line);
  transition: box-shadow 0.25s, transform 0.25s;
}
.ph-service-card:hover { box-shadow: 0 10px 28px rgba(20,55,91,0.16); transform: translateY(-3px); }
.ph-service-card .photo { overflow: hidden; }
.ph-service-card .photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.4s;
}
.ph-service-card:hover .photo img { transform: scale(1.05); }
.ph-service-card .body { padding: 22px 20px 24px; text-align: center; }
.ph-service-num {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--navy);
}
.ph-service-title {
  margin-top: 6px; font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.55;
}
.ph-service-title::after {
  content: ""; display: block; width: 28px; height: 2px; background: var(--navy); margin: 10px auto 0;
}
.ph-service-desc {
  margin-top: 12px; font-size: 0.86rem; color: var(--text-sub); line-height: 1.85; text-align: left;
}
.ph-service-more {
  margin-top: 14px; font-size: 0.8rem; font-weight: 700; color: var(--navy); letter-spacing: 0.08em;
}
@media (max-width: 860px) {
  .ph-service-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ハブカード（IT・AI）：写真＋紺パネルの横並び */
.ph-hub-card {
  display: flex; margin-top: 26px; background: var(--navy);
  transition: box-shadow 0.25s, transform 0.25s;
}
.ph-hub-card:hover { box-shadow: 0 10px 28px rgba(20,55,91,0.25); transform: translateY(-3px); }
.ph-hub-card .photo { flex: 0 0 38%; }
.ph-hub-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-hub-card .body { flex: 1; color: #fff; padding: 34px 36px; }
.ph-hub-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; color: rgba(255,255,255,0.75); }
.ph-hub-title { margin-top: 8px; font-size: 1.2rem; font-weight: 700; color: #fff; }
.ph-hub-desc { margin-top: 12px; font-size: 0.87rem; line-height: 1.9; color: rgba(255,255,255,0.88); }
.ph-hub-more { margin-top: 14px; font-size: 0.8rem; font-weight: 700; color: #fff; letter-spacing: 0.08em; }
@media (max-width: 780px) {
  .ph-hub-card { flex-direction: column; }
  .ph-hub-card .photo img { aspect-ratio: 16 / 9; }
  .ph-hub-card .body { padding: 26px 22px; }
}

/* ------------------------------------------------------------
   代表者メッセージ：写真＋白ボックス
   ------------------------------------------------------------ */
.ph-message { display: flex; align-items: stretch; gap: 0; }
.ph-message-photo { flex: 0 0 42%; }
.ph-message-photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-message-body { flex: 1; background: #fff; padding: 40px 38px; border: 1px solid var(--gray-line); }
.ph-message-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); line-height: 1.7; margin-bottom: 18px; }
.ph-message-text { font-size: 0.92rem; color: var(--text); line-height: 2.0; }
.ph-message-sign { margin-top: 22px; font-weight: 700; color: var(--navy); text-align: right; }
@media (max-width: 780px) {
  .ph-message { flex-direction: column; }
  .ph-message-photo img { aspect-ratio: 4 / 3; }
  .ph-message-body { padding: 28px 22px; }
}

/* ------------------------------------------------------------
   お問い合わせ帯：グレー背景＋中央CTA
   ------------------------------------------------------------ */
.ph-contact-band { background: var(--gray-bg); padding: 60px 20px; text-align: center; }
.ph-contact-band h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); letter-spacing: 0.1em; }
.ph-contact-band .note { margin-top: 10px; font-size: 0.88rem; color: var(--text-sub); }
.ph-contact-btns {
  margin-top: 26px; display: flex; justify-content: center; align-items: center;
  gap: 18px; flex-wrap: wrap;
}
.ph-contact-tel {
  display: inline-block; background: #fff; border: 1px solid var(--navy);
  color: var(--navy); padding: 10px 34px; line-height: 1.6;
}
.ph-contact-tel .tel-num { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.05em; }
.ph-contact-tel .tel-sub { display: block; font-size: 0.75rem; color: var(--text-sub); }

/* ------------------------------------------------------------
   フッター：白地・センター揃え
   ------------------------------------------------------------ */
.ph-footer {
  background: #fff; border-top: 1px solid var(--gray-line);
  padding: 44px 20px 28px; text-align: center;
}
.ph-footer-firm { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.ph-footer p { font-size: 0.83rem; color: var(--text-sub); line-height: 1.9; }
.ph-footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px;
  margin: 22px 0 18px; padding-top: 22px; border-top: 1px solid var(--gray-line);
}
.ph-footer-nav a { font-size: 0.82rem; color: var(--navy); }
.ph-footer-nav a:hover { text-decoration: underline; }
.ph-footer-copy { font-size: 0.75rem; color: #9a9a9a; margin-top: 8px; }

/* ------------------------------------------------------------
   下層ページ用（今後の展開用に用意）
   パンくず＋ページタイトル：方眼紙背景＋紺下線
   ------------------------------------------------------------ */
.ph-page-hero {
  background: #fafafa url(../images/bg_header.png) repeat;
  padding: 30px 20px 0;
}
.ph-breadcrumb { max-width: 1080px; margin: 0 auto 26px; font-size: 0.78rem; color: var(--text-sub); }
.ph-breadcrumb a { color: var(--navy); }
.ph-page-title { text-align: center; max-width: 1080px; margin: 0 auto; }
.ph-page-title strong { display: block; font-size: 1.5rem; font-weight: 700; color: var(--navy); letter-spacing: 0.14em; }
.ph-page-title em { display: block; font-style: normal; font-size: 0.8rem; color: var(--text-sub); letter-spacing: 0.12em; margin-top: 2px; }
.ph-page-title::after {
  content: ""; display: block; height: 2px; background: var(--navy); margin-top: 26px;
}

/* ------------------------------------------------------------
   サービス関係図（リンク付きインラインSVG）
   ------------------------------------------------------------ */
.ph-diagram { max-width: 720px; margin: 0 auto 56px; }
.ph-diagram svg { width: 100%; height: auto; display: block; }
.ph-diagram a { cursor: pointer; }
.ph-diagram a .node-bg { transition: fill 0.2s; }
.ph-diagram a:hover .node-bg { fill: #e8eff7; }

/* ------------------------------------------------------------
   サービス一覧：写真＋説明の交互配置ブロック
   ------------------------------------------------------------ */
.ph-svc-block { display: flex; gap: 44px; align-items: center; margin-bottom: 64px; }
.ph-svc-block:last-child { margin-bottom: 0; }
.ph-svc-block.is-reverse { flex-direction: row-reverse; }
.ph-svc-photo { flex: 0 0 44%; }
.ph-svc-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph-svc-body { flex: 1; text-align: center; }
.ph-svc-num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; color: var(--navy); }
.ph-svc-title {
  margin-top: 6px; font-size: 1.15rem; font-weight: 700; color: var(--navy); line-height: 1.6;
}
.ph-svc-title::after {
  content: ""; display: block; width: 30px; height: 2px; background: var(--navy); margin: 12px auto 0;
}
.ph-svc-text { margin-top: 16px; font-size: 0.9rem; color: var(--text-sub); line-height: 1.95; text-align: left; }
.ph-svc-btn {
  display: inline-block; margin-top: 20px; border: 1px solid var(--navy); background: #fff;
  color: var(--navy); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 12px 44px; transition: background 0.2s, color 0.2s;
}
.ph-svc-btn:hover { background: var(--navy); color: #fff; }
@media (max-width: 780px) {
  .ph-svc-block, .ph-svc-block.is-reverse { flex-direction: column; gap: 20px; margin-bottom: 52px; }
  .ph-svc-photo { width: 100%; flex: none; }
}

/* ------------------------------------------------------------
   理念：引用＋写真3枚
   ------------------------------------------------------------ */
.ph-vision-quote {
  max-width: 760px; margin: 0 auto; text-align: center;
  font-size: 0.95rem; color: var(--text); line-height: 2.1;
}
.ph-vision-note { max-width: 760px; margin: 24px auto 0; text-align: center; font-size: 0.9rem; color: var(--text-sub); line-height: 2.0; }
.ph-vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.ph-vision-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) {
  .ph-vision-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ------------------------------------------------------------
   事務所概要：写真＋テーブル
   ------------------------------------------------------------ */
.ph-office-photo { margin-bottom: 36px; }
.ph-office-photo img { width: 100%; max-height: 420px; object-fit: cover; }
.ph-office-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ph-office-table th, .ph-office-table td {
  text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--gray-line); vertical-align: top;
}
.ph-office-table th {
  width: 8em; color: var(--navy); font-weight: 700; white-space: nowrap;
  border-bottom: 1px solid var(--navy);
}

/* ------------------------------------------------------------
   サービス詳細ページ
   ------------------------------------------------------------ */
.ph-detail { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.ph-detail-icon { display: flex; justify-content: center; margin-bottom: 14px; }
.ph-detail-icon svg { width: 56px; height: 56px; }
.ph-detail-eyebrow {
  text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--text-sub); margin-bottom: 8px;
}
.ph-detail-title {
  text-align: center; font-size: 1.5rem; font-weight: 700; color: var(--navy);
  letter-spacing: 0.1em; line-height: 1.6;
}
.ph-detail-title::after {
  content: ""; display: block; width: 44px; height: 2px; background: var(--navy);
  margin: 16px auto 0;
}
.ph-detail-photo { max-width: 560px; margin: 36px auto; }
.ph-detail-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph-detail-lead {
  max-width: 760px; margin: 0 auto 36px; font-weight: 700; color: var(--navy);
  font-size: 0.98rem; line-height: 2.2;
}
.ph-detail-lead .mk {
  background: linear-gradient(transparent 8%, #d6f0fa 8%, #d6f0fa 92%, transparent 92%);
  padding: 1px 2px;
}
.ph-detail p { font-size: 0.92rem; line-height: 2.0; color: var(--text); }
.ph-detail p + p { margin-top: 14px; }

/* 紺の縦バー付き見出し（主な関連分野・主な内容 等） */
.ph-bar-title {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  border-left: 4px solid var(--navy); padding: 4px 0 4px 14px;
  margin: 44px 0 18px;
}
/* 通し番号付きの大見出し（人事労務ページの1〜4） */
.ph-num-title {
  font-size: 1.2rem; font-weight: 700; color: var(--navy);
  border-bottom: 2px solid var(--navy); padding-bottom: 12px;
  margin: 60px 0 22px;
}
.ph-num-title:first-of-type { margin-top: 0; }

/* シンプルな行リスト（旧サイトの・区切り風） */
.ph-line-list { margin: 0; padding: 0; }
.ph-line-list li {
  font-size: 0.92rem; color: var(--text); line-height: 1.9;
  padding: 9px 0 9px 1.2em; position: relative; border-bottom: 1px solid var(--gray-line);
}
.ph-line-list li::before { content: "・"; position: absolute; left: 0; color: var(--navy); font-weight: 700; }
.ph-line-list li:last-child { border-bottom: none; }

/* 引用・強調ボックス */
.ph-quote-box {
  background: var(--gray-bg); border-left: 4px solid var(--navy);
  padding: 20px 26px; margin: 22px 0;
  font-size: 0.92rem; line-height: 2.0; color: var(--text);
}

/* 見出し直下の写真＋導入文 */
.ph-hr-intro { display: flex; gap: 30px; align-items: flex-start; margin-bottom: 18px; }
.ph-hr-intro .photo { flex: 0 0 38%; }
.ph-hr-intro .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph-hr-intro .body { flex: 1; }
.ph-hr-intro .body p:first-child { margin-top: 0; }
@media (max-width: 700px) {
  .ph-hr-intro { flex-direction: column; }
  .ph-hr-intro .photo { width: 100%; flex: none; }
}

/* 具体例ラベル */
.ph-ex-label { margin-top: 22px; font-weight: 700; color: var(--navy); }
.ph-note { font-size: 0.8rem; color: #8a8a8a; margin-top: 10px; }

/* サービスパック案内ボックス */
.ph-pack-box { border: 1px solid var(--navy); padding: 24px 26px; margin: 36px 0 0; }
.ph-pack-box + .ph-pack-box { margin-top: 20px; }
.ph-pack-label {
  display: inline-block; background: var(--navy); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 14px; margin-bottom: 10px;
}
.ph-pack-label.is-pending { background: #8a8a8a; }
.ph-pack-title { font-size: 1.02rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.ph-pack-box p { font-size: 0.9rem; margin-bottom: 10px; }
.ph-pack-box a.ext-link { font-size: 0.88rem; font-weight: 700; color: var(--navy); text-decoration: underline; }

/* ------------------------------------------------------------
   サービスパック一覧
   ------------------------------------------------------------ */
.ph-pack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ph-pack-card {
  border: 1px solid var(--navy); background: #fff; padding: 26px 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.ph-pack-card .ph-pack-label { align-self: flex-start; margin-bottom: 0; }
.ph-pack-card.is-pending { border-style: dashed; border-color: #9aa7b5; background: #fafafa; }
.ph-pack-field { font-size: 0.76rem; font-weight: 700; color: #54687e; letter-spacing: 0.05em; }
.ph-pack-card .ph-pack-title { margin-bottom: 0; }
.ph-pack-card p { font-size: 0.9rem; line-height: 1.9; color: var(--text); flex-grow: 1; margin: 0; }
.ph-pack-card a.ext-link { font-size: 0.88rem; font-weight: 700; color: var(--navy); text-decoration: underline; }
@media (max-width: 700px) { .ph-pack-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   弁護士紹介
   ------------------------------------------------------------ */
.ph-lawyer { margin-bottom: 80px; }
.ph-lawyer:last-child { margin-bottom: 0; }
.ph-lawyer-head { text-align: center; margin-bottom: 28px; }
.ph-lawyer-role { font-size: 0.85rem; color: var(--text-sub); letter-spacing: 0.14em; }
.ph-lawyer-name {
  font-size: 1.5rem; font-weight: 700; color: var(--navy);
  letter-spacing: 0.2em; margin-top: 4px;
}
.ph-lawyer-name::after {
  content: ""; display: block; width: 36px; height: 2px; background: var(--navy); margin: 14px auto 0;
}
.ph-lawyer-photo { max-width: 320px; margin: 0 auto 28px; }
.ph-lawyer-photo img { width: 100%; display: block; }
.ph-lawyer-info { max-width: 680px; margin: 0 auto; }
.ph-lawyer-belong { text-align: center; font-size: 0.85rem; color: #8a8a8a; margin-bottom: 18px; }
.ph-lawyer-intro { font-size: 0.92rem; line-height: 2.0; color: var(--text); }
.ph-exec-badge {
  display: inline-block; margin-top: 14px;
  border: 1px solid var(--navy); color: var(--navy);
  font-size: 0.8rem; font-weight: 600; padding: 6px 16px; border-radius: 20px;
}
.ph-lawyer-history { margin-top: 20px; }

/* ------------------------------------------------------------
   弁護士費用テーブル（旧サイトの料金表風）
   ------------------------------------------------------------ */
.ph-fee-note { text-align: center; font-size: 0.92rem; color: var(--text-sub); line-height: 2.0; margin-bottom: 36px; }
.ph-fee-table { width: 100%; max-width: 720px; margin: 0 auto; border-collapse: collapse; font-size: 0.95rem; }
.ph-fee-table th {
  background: var(--gray-bg); color: var(--text); font-weight: 500; text-align: left;
  width: 46%; padding: 20px 22px; border-bottom: 2px solid #fff; vertical-align: middle;
}
.ph-fee-table td {
  text-align: right; padding: 20px 24px; border-bottom: 1px solid var(--gray-line);
  color: var(--text); vertical-align: middle;
}
@media (max-width: 600px) {
  .ph-fee-table th { width: 42%; padding: 16px 14px; }
  .ph-fee-table td { padding: 16px 14px; }
}

/* ------------------------------------------------------------
   プライバシーポリシー
   ------------------------------------------------------------ */
.ph-policy { max-width: 800px; margin: 0 auto; }
.ph-policy p { font-size: 0.92rem; line-height: 2.0; color: var(--text); }
.ph-policy p + p { margin-top: 12px; }
.ph-policy-item { margin: 36px 0 0; }
.ph-policy-title {
  font-size: 1.02rem; font-weight: 700; color: var(--navy);
  border-left: 4px solid var(--navy); padding: 3px 0 3px 13px; margin-bottom: 12px;
}
.ph-dot-list { margin: 12px 0; padding: 0; }
.ph-dot-list li {
  font-size: 0.92rem; color: var(--text); line-height: 1.95;
  padding: 3px 0 3px 1.2em; position: relative;
}
.ph-dot-list li::before { content: "・"; position: absolute; left: 0; color: var(--navy); font-weight: 700; }
.ph-dot-list a { color: var(--navy); text-decoration: underline; word-break: break-all; }
.ph-policy-dates {
  margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--gray-line);
  text-align: right; font-size: 0.82rem; color: #8a8a8a;
}

/* サービス一覧へ戻るボタン */
.ph-back-btn {
  display: block; max-width: 400px; margin: 56px auto 0;
  border: 1px solid var(--navy); background: #fff; color: var(--navy);
  text-align: center; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 18px 20px; transition: background 0.2s, color 0.2s;
}
.ph-back-btn:hover { background: var(--navy); color: #fff; }
