/* =========================================
   記事パーツ（事例記事用）
   -----------------------------------------
   【MT.net】事例紹介・体験談ブログ のインデックステンプレート
   出力ファイル名: article.css
   ※MT側が正。このローカルファイルは参照用コピー。
   ※style.css → custom.css の後に読み込むこと。
   ========================================= */

.page-head {
  background: #fff;
  border-bottom: 3px solid #0156B3;
  padding-top: 112px;
  padding-bottom: 36px;
  margin-bottom: 28px;
}
@media (min-width: 1024px) {
  .page-head {
    padding-top: 128px;
    padding-bottom: 44px;
  }
}
/* 帯の中では見出し下の余白を持たせない */
.page-head .section-masthead {
  margin-bottom: 0;
}

/* パンくず（見出し帯の下） */
.entry-crumb {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 28px;
  overflow-x: auto;
  white-space: nowrap;
}

/* =========================================
   セクション見出し（一覧ページ・記事詳細で共通）
   ※記事詳細では h1 が記事タイトルに使われているため、
     ここは <p> で組んで見出しの重複を避けている。
   ========================================= */
.section-masthead {
  text-align: center;
  margin-bottom: 40px;
}
.section-masthead__eyebrow {
  display: block;
  color: #0156B3;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.section-masthead__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.6;
  margin: 0;
}
@media (min-width: 768px) {
  .section-masthead__title { font-size: 2.25rem; }
}

/* =========================================
   記事ヘッダー（パンくずの下：タイトル→日付→サムネイル）
   ========================================= */

/* タイトル */
.entry-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5 !important;
  color: #0156B3;
  margin: 0 0 12px;
}
/* PCレイアウト時のみ大きくする。スマホは 1.5rem のまま。 */
@media (min-width: 768px) {
  .entry-title { font-size: 2.3rem; }
}

/* 日付（タイトルの下・右寄せ）。下はサムネイルが続く。 */
.entry-meta {
  margin-bottom: 24px;
}
.entry-date {
  display: block;
  text-align: right;
  margin: 0;
  font-size: 0.8125rem;
  color: #6B7280;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* =========================================
   5. 記事パーツ（事例記事用）
   ========================================= */

/* リード文 */
.article-lead {
  font-size: 1rem;
  line-height: 1.9;
  color: #4B5563;
  background: #f0f8ff;
  border-left: 4px solid #0156B3;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 2rem;
}

/* プロフィールボックス
   画像を絶対配置にし、左側に画像ぶんの余白を空ける。
   こうすると .profile-info の囲みが無くても、右側の要素が何個でも
   画像の下に回り込まず1カラムに揃う（＝ブロックエディタで組みやすい）。
   囲みがある従来の書き方でも同じ見た目になる。 */
.profile-box {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px 24px 24px 148px;  /* 左＝24 + 画像100 + 余白24 */
  min-height: 148px;              /* 画像100 + 上下padding48 */
  margin: 2rem 0;
  /* 1枚だけ置くときに横に伸びすぎないよう上限を設ける。
     2カラムや狭い列の中では効かない（列幅の方が狭いため）。 */
  max-width: 720px;
}
.profile-image {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 100px;
  height: 100px;
}
@media (max-width: 640px) {
  .profile-box {
    padding: 24px;
    min-height: 0;
    text-align: center;
  }
  .profile-image {
    position: static;
    margin: 0 auto 14px;
  }
}
.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  margin: 0;
}
/* .prose p / .prose h3 の余白に負けないよう詳細度を上げている。
   グリッドではマージンが相殺されないため、値は明示的に指定する。 */
.profile-box .profile-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6B7280;
  margin: 0 0 4px;
  letter-spacing: 0.05em;
}
.profile-box .profile-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px;
}
.profile-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: #4B5563;
}
.profile-box li {
  margin-bottom: 4px;
  line-height: 1.6;
}

/* --- マルチカラムブロック（MTブロックエディタ標準）の列を等幅にする ---
   出力は <div class="mt-be-columns" style="display:flex"><div class="mt-be-column">…
   列に幅指定が無く「中身の分だけの幅」になるため、等分して伸びるようにする。 */
.mt-be-columns {
  gap: 20px;
  /* stretch（既定値）にすることで列の高さが最も高い列に揃う。
     これに .profile-box { height: 100% } を組み合わせて左右の高さを一致させる。 */
  align-items: stretch;
}
.mt-be-column {
  flex: 1 1 0;
  min-width: 0;
}
/* 狭い画面では縦積み（display:flex はインライン指定なので wrap で折り返す） */
@media (max-width: 767px) {
  .mt-be-columns {
    flex-wrap: wrap;
  }
  .mt-be-column {
    flex-basis: 100%;
  }
}
/* 列の中のプロフィールカードは列幅いっぱいに。
   height:100% で、文章量が違っても左右のカードの高さが揃う。 */
.mt-be-column .profile-box {
  max-width: none;
  margin: 0;
  height: 100%;
}

/* --- プロフィールカードを横に2つ並べる ---
   .profile-row で囲むと2カラム。囲まなければ従来どおり1カラム。
   幅が狭いときは自動で縦積みになる。 */
.profile-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 2rem 0;
}
/* 並べたときはカード個別の上下マージンを消し、幅の上限も外す */
.profile-row .profile-box {
  margin: 0;
  max-width: none;
}
/* 2カラムは1枚あたりが狭くなるので、画像を少し小さくして余白を詰める */
@media (min-width: 768px) {
  .profile-row .profile-box {
    padding-left: 120px;   /* 20 + 画像80 + 余白20 */
    padding-right: 20px;
    min-height: 120px;     /* 画像80 + 上下padding40 */
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .profile-row .profile-image {
    left: 20px;
    top: 20px;
    width: 80px;
    height: 80px;
  }
}
/* タブレット以下は縦積み（1枚あたりの幅を確保する） */
@media (max-width: 767px) {
  .profile-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   吹き出し（インタビュー会話）
   向き : .talk--left / .talk--right
   背景色: .talk--blue / --orange / --green / --gray（省略時は青）
   出力HTML:
   <dl class="talk talk--left talk--blue">
     <dt class="talk__person">
       <span class="talk__face"><img src="…" alt=""></span>
       <span class="talk__name">お名前</span>
     </dt>
     <dd class="talk__text"><p>…</p></dd>
   </dl>
   PC  : アイコンが左（右）、吹き出しが横。尻尾は横向き。
   スマホ: アイコン＋名前が上の行、吹き出しは画面幅いっぱい。尻尾は上向き。
   色はCSS変数で持たせている。色ごとに全ルールを複製せずに済むため。
   ========================================= */
.talk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 1.5rem 0;
  /* 既定色（青）。色クラスが付いていればそちらで上書きされる。 */
  --talk-bg: #F0F8FF;
  --talk-ring: #DCEAF8;
  --talk-accent: #0156B3;
}
.talk--right {
  flex-direction: row-reverse;
}

/* --- 背景色バリエーション --- */
.talk--blue {
  --talk-bg: #F0F8FF;
  --talk-ring: #DCEAF8;
  --talk-accent: #0156B3;
}
.talk--orange {
  --talk-bg: #FFF7ED;
  --talk-ring: #FFE0B8;
  --talk-accent: #C2410C;
}
.talk--green {
  --talk-bg: #F0FAF4;
  --talk-ring: #CCE9D8;
  --talk-accent: #15803D;
}
.talk--gray {
  --talk-bg: #ECEFF3;
  --talk-ring: #DADEE5;
  --talk-accent: #4B5563;
}

/* 話し手（アイコン＋名前） */
.talk__person {
  flex-shrink: 0;
  width: 84px;
  margin: 0;
  text-align: center;
}
.talk__face {
  display: block;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  margin: 0 auto 6px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--talk-bg);
  border: 2px solid var(--talk-ring);
}
.talk__face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.talk__name {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--talk-accent);
}

/* 吹き出し本体 */
.talk__text {
  position: relative;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 26px 22px;
  border-radius: 16px;
  background: var(--talk-bg);
  font-size: 1rem;
  line-height: 2.1;
  color: #111827;
}
.talk__text p {
  margin: 0 0 1.15em;
  /* custom.css の .prose p { line-height: 1.8 } は p に直接マッチするため、
     親（.talk__text）の line-height は継承されない。p にも明示する。 */
  line-height: 2.1;
}
.talk__text p:last-child {
  margin-bottom: 0;
}
.talk__text strong {
  color: var(--talk-accent);
}

/* 尻尾（三角）。border だけで作るので画像は不要。
   PCは横向き＝アイコン側に向けて出す。 */
.talk__text::before {
  content: '';
  position: absolute;
  top: 26px;
  border-style: solid;
  border-color: transparent;
}
.talk--left .talk__text::before {
  left: -12px;
  border-width: 10px 12px 10px 0;
  border-right-color: var(--talk-bg);
}
.talk--right .talk__text::before {
  right: -12px;
  border-width: 10px 0 10px 12px;
  border-left-color: var(--talk-bg);
}

/* --- スマホ：アイコン＋名前を上の行に置き、吹き出しを全幅で使う --- */
@media (max-width: 640px) {
  .talk {
    display: block;
  }
  .talk__person {
    display: flex;
    align-items: center;
    gap: 9px;
    width: auto;
    margin: 0 0 12px;
    text-align: left;
  }
  /* 右向きはアイコンと名前を右寄せ（row-reverse の主軸開始位置が右になる） */
  .talk--right .talk__person {
    flex-direction: row-reverse;
  }
  .talk__face {
    width: 54px;
    height: 54px;
    margin: 0;
  }
  .talk__name {
    font-size: 0.875rem;
  }
  .talk__text {
    padding: 23px 17px;
  }
  /* 尻尾は上向きにして、アイコンの真下から出す */
  .talk__text::before {
    top: -12px;
    border-width: 0 10px 12px 10px;
  }
  .talk--left .talk__text::before {
    left: 17px;
    border-right-color: transparent;
    border-bottom-color: var(--talk-bg);
  }
  .talk--right .talk__text::before {
    left: auto;
    right: 17px;
    border-left-color: transparent;
    border-bottom-color: var(--talk-bg);
  }
}

/* Q&Aブロック */
.qa-block {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.qa-q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #EEF4FC;
  padding: 14px 18px;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.6;
}
.qa-a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  padding: 16px 18px;
}
.icon-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0156B3;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  font-style: normal;
  margin-top: 1px;
}
.icon-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FF8C02;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  font-style: normal;
  margin-top: 1px;
}
.qa-text {
  flex: 1;
  font-size: 0.9375rem;
  color: #111827;
  line-height: 1.8;
}
.qa-text p {
  margin-bottom: 0.75rem;
}
.qa-text p:last-child {
  margin-bottom: 0;
}

/* オレンジ強調テキスト */
.text-orange {
  color: #FF8C02;
  font-weight: 700;
}

/* ポイントボックス */
.point-box {
  background: #fff9f0;
  border: 2px solid #FF8C02;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 2rem 0;
}
.point-box-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #FF8C02;
  margin: 0 0 14px;
  text-align: center;
}
.point-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.point-box li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9375rem;
  color: #111827;
  line-height: 1.6;
}
.point-box li::before {
  content: '✓';
  color: #FF8C02;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 引用（blockquote） */
.prose blockquote {
  border-left: none;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 20px 24px 20px 60px;
  position: relative;
  margin: 2rem 0;
  color: #111827;
  font-style: normal;
}
.prose blockquote::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 3rem;
  color: #0156B3;
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}
.prose blockquote p { margin-bottom: 0; }

/* figure / figcaption */
.prose figure {
  margin: 2rem 0;
}
.prose figure img {
  border-radius: 12px;
  margin: 0 0 8px;
}
.prose figcaption {
  font-size: 0.8125rem;
  color: #6B7280;
  text-align: center;
  padding-top: 6px;
}
