/* ============================================================
   Fortuna Family Office — コラム記事 共通スタイル
   index.html のデザイントークンを踏襲
   ============================================================ */

:root {
  --gold: #C5A258;
  --gold-light: #D4B978;
  --gold-dark: #A88B3D;
  --navy: #1B365D;
  --navy-deep: #0F1F38;
  --white: #FFFFFF;
  --off-white: #FAFAF8;
  --cream: #F5F2EC;
  --text: #333333;
  --text-light: #666666;
}

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

body {
  font-family: "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  color: var(--text);
  background: var(--white);
  line-height: 2.05;
  -webkit-font-smoothing: antialiased;
}

.en { font-family: "EB Garamond", "Georgia", serif; }

/* ============================================================
   日本語タイポグラフィ - 禁則処理
   単語途中での改行・行末1〜2文字の孤立を防ぐ。
   BudouX（budoux-ja.min.js）と併用するため text-align: justify は使わない。
   ============================================================ */
:where(h1, h2, h3, h4, p, li, dt, dd, blockquote, figcaption) {
  word-break: auto-phrase;
  text-wrap: pretty;
}

:where(h1, h2, h3) { text-wrap: balance; }

budoux-ja {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.nowrap { white-space: nowrap; }

img { max-width: 100%; }

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(197,162,88,0.15);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-main {
  font-family: "EB Garamond", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 3px;
  line-height: 1.2;
  text-decoration: none;
  display: block;
}

.logo-sub {
  font-size: 10px;
  color: var(--gold);
  opacity: 0.7;
  letter-spacing: 2px;
}

.header-back {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.header-back:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ===== ARTICLE HERO ===== */
.article-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 180px 40px 90px;
  text-align: center;
  overflow: hidden;
}

/* 背景写真。画像が無い場合は下地のネイビーがそのまま出る */
.article-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
}

/* ネイビーのオーバーレイ。写真の上に重ねて白文字の可読性を確保する */
.article-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 54, 93, 0.86) 0%,
    rgba(27, 54, 93, 0.74) 45%,
    rgba(15, 31, 56, 0.88) 100%
  );
}

.article-hero > .kicker,
.article-hero > h1,
.article-hero > .gold-line,
.article-hero > .subtitle {
  position: relative;
  z-index: 2;
}

.article-hero .kicker {
  font-family: "EB Garamond", serif;
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.article-hero h1 {
  font-size: 34px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 2px;
  max-width: 760px;
  margin: 0 auto;
}

.article-hero .subtitle {
  font-size: 16.5px;
  line-height: 2.1;
  color: rgba(255,255,255,0.78);
  letter-spacing: 1px;
  max-width: 640px;
  margin: 32px auto 0;
}

.gold-line {
  width: 50px;
  height: 1px;
  background: var(--gold-light);
  margin: 36px auto;
}

/* ===== ARTICLE BODY ===== */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 40px 40px;
}

.lead {
  font-size: 18.5px;
  line-height: 2.15;
  color: var(--text);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(197,162,88,0.25);
  margin-bottom: 56px;
}

.article-body h2 {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--navy);
  letter-spacing: 1px;
  margin: 72px 0 28px;
  padding-left: 62px;
  position: relative;
}

.article-body h2::before {
  content: attr(data-num);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: "EB Garamond", serif;
  font-size: 19px;
  letter-spacing: 3px;
  color: var(--gold);
}

.article-body h2:first-of-type { margin-top: 0; }

.article-body h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 1px;
  margin: 44px 0 18px;
}

.article-body p {
  font-size: 17px;
  line-height: 2.15;
  margin-bottom: 26px;
  letter-spacing: 0.4px;
}

.article-body p:last-child { margin-bottom: 0; }

/* 引用。強調は背景の淡色化と余白で行う（アクセントボーダーは使わない） */
blockquote {
  margin: 48px 0;
  padding: 40px 40px 34px;
  background: var(--cream);
}

blockquote p {
  font-size: 18px;
  line-height: 2.15;
  margin-bottom: 0;
  color: var(--navy);
}

blockquote cite {
  display: block;
  margin-top: 20px;
  text-align: right;
  font-size: 13.5px;
  font-style: normal;
  color: var(--text-light);
  letter-spacing: 1px;
}

blockquote cite::before {
  content: "\2014\2009";
  color: var(--gold);
}

/* 箇条書き */
.article-body ul {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.article-body ul li {
  font-size: 17px;
  line-height: 2.1;
  padding-left: 22px;
  margin-bottom: 12px;
  position: relative;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}


/* 対談。話者は名前の色と余白で区別する（アクセントボーダーは使わない） */
.dialogue {
  margin-bottom: 38px;
}

.dialogue .speaker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.dialogue .speaker.morihara { color: var(--gold-dark); }
.dialogue .speaker.murata   { color: var(--navy); }

.dialogue p {
  margin-bottom: 20px;
}

.dialogue p:last-child { margin-bottom: 0; }

/* 対談から離れて書き手の見解を述べる区間の注記 */
.section-note {
  background: var(--off-white);
  padding: 20px 24px;
  font-size: 15px !important;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* 対談の前に置く導入文 */
.dialogue-intro {
  margin-bottom: 44px;
}

/* 差し絵 */
.article-figure {
  margin: 52px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure figcaption {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

/* 要点ボックス */
.point-box {
  margin: 48px 0;
  padding: 36px 36px 30px;
  border: 1px solid rgba(197,162,88,0.35);
  background: var(--off-white);
}

.point-box .point-title {
  font-family: "EB Garamond", serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.point-box ul { margin-bottom: 0; }

/* 記事末尾 */
.article-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 40px 100px;
}

/* 取材者プロフィール。区切りは gold-line（サイト既存の装飾モチーフ）と余白で行う */
.profile-box {
  padding-top: 8px;
  margin-top: 8px;
}

.profile-box .profile-label {
  font-family: "EB Garamond", serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 26px;
  text-align: center;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 26px;
}

.profile-photo {
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name-block {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-box .profile-role {
  font-size: 13.5px;
  letter-spacing: 2px;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.profile-box h4 {
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 2px;
  margin-bottom: 0;
}

.profile-box .profile-motto {
  font-size: 16px;
  line-height: 2.05;
  color: var(--navy);
  background: var(--cream);
  padding: 24px 26px;
  margin-bottom: 26px;
}

.profile-box p {
  font-size: 15px;
  line-height: 2.05;
  color: var(--text-light);
  margin-bottom: 18px;
}

.profile-box p:last-child { margin-bottom: 0; }

.profile-box .profile-section {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--navy);
  margin-top: 26px;
  margin-bottom: 10px;
}

/* 関連記事 */
.related {
  background: var(--cream);
  padding: 80px 40px;
}

.related-inner {
  max-width: 720px;
  margin: 0 auto;
}

.related-label {
  font-family: "EB Garamond", serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 32px;
}

.related-card {
  display: block;
  background: var(--white);
  border: 1px solid rgba(197,162,88,0.2);
  padding: 36px 34px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s, transform 0.3s;
}

.related-card:hover {
  box-shadow: 0 8px 40px rgba(197,162,88,0.12);
  transform: translateY(-3px);
}

.related-card h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.8;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.related-card p {
  font-size: 15px;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 0;
}

.related-card .read-more {
  display: inline-block;
  margin-top: 20px;
  font-family: "EB Garamond", serif;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 2px;
}

/* CTA */
.article-cta {
  background: var(--navy);
  color: var(--white);
  padding: 80px 40px;
  text-align: center;
}

.article-cta .cta-lead {
  font-size: 19px;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.article-cta p {
  font-size: 16.5px;
  line-height: 2.2;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.5px;
  max-width: 660px;
  margin: 0 auto;
}

/* 1文を1行に。折り返しが要る幅では文節と読点でだけ切る */
.article-cta .cta-line { display: block; }

/* 紺地に埋もれないよう金で塗り、文字は濃紺で読ませる */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding: 18px 52px;
  font-family: "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--navy-deep);
  background: var(--gold);
  border: 1px solid var(--gold);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}

.cta-button::after {
  content: "\2192";
  transition: transform 0.3s;
}

.cta-button:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.cta-button:hover::after { transform: translateX(4px); }

.cta-button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 48px 40px;
}

.footer-logo {
  font-family: "EB Garamond", serif;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.footer-company {
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.footer-copy {
  font-family: "EB Garamond", serif;
  font-size: 11px;
  margin-top: 16px;
  opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { padding: 12px 20px; }
  .logo-main { font-size: 17px; letter-spacing: 2px; }
  .logo-sub { font-size: 9px; }
  .header-back { font-size: 11px; }

  .article-hero { padding: 130px 24px 64px; }
  .article-hero h1 { font-size: 24px; line-height: 1.95; letter-spacing: 1px; }
  .article-hero .kicker { font-size: 11px; letter-spacing: 4px; }
  .article-hero .subtitle { font-size: 14px; margin-top: 26px; }

  .article-body { padding: 56px 24px 32px; }
  .lead { font-size: 17px; padding-bottom: 36px; margin-bottom: 44px; }
  .article-body h2 {
    font-size: 20px;
    margin: 56px 0 22px;
    padding-left: 0;
    padding-top: 30px;
  }
  .article-body h2::before { top: 0; }
  .article-body h3 { font-size: 17.5px; }
  .article-body p { font-size: 16.5px; }
  .article-body ul li { font-size: 16.5px; }

  .dialogue { margin-bottom: 32px; }
  .dialogue .speaker { font-size: 13.5px; margin-bottom: 8px; }

  .article-figure { margin: 40px 0; }
  .article-figure figcaption { font-size: 13px; margin-top: 12px; }

  blockquote { padding: 24px 22px; margin: 36px 0; }
  blockquote p { font-size: 16.5px; }

  .point-box { padding: 28px 24px 24px; }
  .article-footer { padding: 20px 24px 72px; }
  .profile-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .profile-photo { flex-basis: 116px; width: 116px; height: 116px; }
  .profile-box h4 { font-size: 20px; }
  .profile-box .profile-motto { font-size: 15px; padding: 20px 20px; }

  .related { padding: 64px 24px; }
  .related-card { padding: 28px 24px; }
  .related-card h3 { font-size: 17.5px; }

  .article-cta { padding: 64px 24px; }
  footer { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .article-hero h1 { font-size: 21px; }
  .header-inner { gap: 10px; }
}

/* ============================================================
   下層ページ（事業領域）専用
   ============================================================ */

/* 章立てのない導入文 */
.page-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 40px 0;
}

.page-intro p {
  font-size: 18.5px;
  line-height: 2.15;
  margin-bottom: 26px;
}

.page-intro p:last-child { margin-bottom: 0; }

/* 淡色地の節。区切りは背景色で行う（アクセントボーダーは使わない） */
.band {
  background: var(--cream);
  padding: 76px 40px;
  margin-top: 80px;
}

.band + .band { margin-top: 0; }

.band-inner {
  max-width: 720px;
  margin: 0 auto;
}

.band h2,
.article-body .plain-h2 {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--navy);
  letter-spacing: 1px;
  margin-bottom: 28px;
  padding-left: 0;
}

.band h2::before,
.article-body .plain-h2::before { content: none; }

.band p {
  font-size: 17px;
  line-height: 2.15;
  margin-bottom: 26px;
  letter-spacing: 0.4px;
}

.band p:last-child { margin-bottom: 0; }

/* 段階・項目の一覧 */
.steps {
  margin-top: 40px;
}

.step {
  background: var(--white);
  padding: 34px 36px;
  margin-bottom: 20px;
}

.band .step { background: var(--white); }
.article-body .step { background: var(--off-white); }

.step:last-child { margin-bottom: 0; }

.step-label {
  font-family: "EB Garamond", serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.step p {
  font-size: 16px;
  line-height: 2.1;
  color: var(--text);
  margin-bottom: 0;
}

/* 分野の一覧（提携ネットワーク） */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.field {
  background: var(--white);
  padding: 30px 30px 26px;
}

.field h3 {
  font-size: 17.5px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.field p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 0;
}

/* 下層ページのヒーローは記事より浅く */
.page-hero { padding: 170px 40px 80px; }

@media (max-width: 768px) {
  .page-intro { padding: 56px 24px 0; }
  .page-intro p { font-size: 17px; }

  .band { padding: 56px 24px; margin-top: 56px; }
  .band h2, .article-body .plain-h2 { font-size: 21px; margin-bottom: 22px; }
  .band p { font-size: 16.5px; }

  .step { padding: 26px 24px; }
  .step h3 { font-size: 17.5px; }
  .step p { font-size: 15.5px; }

  .field-grid { grid-template-columns: 1fr; gap: 16px; }
  .field { padding: 24px 22px 22px; }

  .page-hero { padding: 120px 24px 56px; }
}

/* 分野カードが奇数枚のとき、最後の1枚を中央に寄せる（2列で1枚だけ残る行の偏りを防ぐ） */
@media (min-width: 769px) {
  .field-grid .field:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 20px) / 2);
  }
}

/* ============================================================
   サービス詳細ページ：本文から関連ページへ送るボタン
   （2026-10-01 本番公開時に追加。トップページの紺ボタンと見た目をそろえる）
   ============================================================ */
.page-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.page-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 240px;
  padding: 15px 36px;
  font-family: "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 1.5px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}

.page-link-button::after {
  content: "\2192";
  transition: transform 0.3s;
}

.page-link-button:hover,
.page-link-button:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
}

.page-link-button:hover::after,
.page-link-button:focus-visible::after { transform: translateX(4px); }

.page-link-button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .page-link-buttons { flex-direction: column; }
  .page-link-button { width: 100%; min-width: 0; padding: 15px 20px; }
}

/* 問い合わせボタン：幅の狭いスマホ（360px前後）で末尾の1文字だけが次の行に落ちないようにする */
.cta-button { white-space: nowrap; }

@media (max-width: 480px) {
  .cta-button { padding: 18px 32px; letter-spacing: 1px; }
}

/* 出典・注記（本文の後ろ、問い合わせ欄の前に置く小さな文字の欄） */
.page-note {
  max-width: 720px;
  margin: 64px auto 72px;
  padding: 0 40px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--text-light);
}

.page-note a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .page-note { margin: 48px auto 56px; padding: 0 24px; }
}

/* 項目の中で段落が続くときの余白（.step p は margin-bottom: 0 のため、続く段落が詰まって見えていた） */
.step p + p { margin-top: 14px; }
