/* 
Theme Name: RealEstateVibe
Theme URI: https://example.com/realestatevibe
Author: Your Name
Author URI: https://example.com
Description: ITに不慣れな担当者でも更新しやすい不動産会社向けオリジナルテーマ。ブロックエディタ前提で、ヒーロー/強み/物件/声/CTA/お知らせの構成を標準機能で実装。
Version: 1.0.2
License: GNU General Public License v2 or later
Text Domain: realestatevibe
*/

:root {
  --color-base: #FFFFFF;
  --color-main: #1A345F;
  --color-accent-blue: #A0D8EF;
  --color-accent-beige: #F0EBE3;
  --color-text: #222;
  --color-muted: #6b7280;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-base);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-main); text-decoration: none; }
a:hover { opacity: .85; }

h1, h2, h3 { margin: 0 0 .6em; font-weight: 700; color: var(--color-main); line-height: 1.35; }
p { margin: 0 0 1.2em; color: var(--color-text); }

.container { width: 100%; max-width: var(--container); padding: 0 20px; margin: 0 auto; }

.site-header { background: #fff; color: var(--color-main); border-bottom: 1px solid #e5e7eb; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; position: relative; }
.site-title a { color: var(--color-main); font-weight: 700; font-size: 20px; }
.global-nav { display: flex; align-items: center; gap: 18px; }
.global-nav ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.global-nav a { color: var(--color-main); font-weight: 600; padding: 8px 6px; border-radius: 4px; }
.global-nav a:hover { background: rgba(26,52,95,.08); }

/* 右側カスタムリンク */
.header-links { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.header-links a { color: var(--color-main); font-weight: 600; padding: 8px 6px; border-radius: 4px; }

/* ハンバーガー */
.nav-toggle { display: none; width: 40px; height: 36px; border: 0; background: transparent; position: relative; cursor: pointer; }
.nav-toggle:focus { outline: 2px solid rgba(26,52,95,.35); outline-offset: 2px; }
.nav-toggle-bar { position: absolute; left: 6px; right: 6px; height: 2px; background: var(--color-main); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle-bar:nth-child(1) { top: 10px; }
.nav-toggle-bar:nth-child(2) { top: 17px; }
.nav-toggle-bar:nth-child(3) { top: 24px; }
.is-nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.is-nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ナビ表示（ヘッダー右寄せ） */
.global-nav { display: block; }

.site-footer { background: var(--color-main); color: #fff; padding: 24px 0; text-align: center; font-size: 14px; }

.hero { position: relative; min-height: 90vh; display: grid; place-items: center; color: #fff; text-align: center; background-size: cover; background-position: center; }
.hero::before { content: none; }
.hero .hero-inner { position: relative; z-index: 2; padding: 60px 20px; }
.hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: .4em; }
.hero p { color: #f3f4f6; font-size: clamp(15px, 2.2vw, 18px); }

/* ヒーロースライダー */
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.hero-slide.is-active img { animation: heroZoom 6s ease-out forwards; }
@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.section { padding: 60px 0; }
.section h2.section-title { text-align: center; font-size: clamp(22px, 3.2vw, 28px); margin-bottom: 28px; }
.section .section-desc { text-align: center; margin-top: -16px; margin-bottom: 20px; color: var(--color-muted); font-size: 15px; font-weight: 400; }

.section--strengths { background: var(--color-main); color: #fff; }
.section--strengths h2.section-title { color: #fff; }
.section--strengths .wp-block-columns { gap: 24px; }
.section--strengths .wp-block-column { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 20px; }

.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.property-card { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.property-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,.08); }
.property-thumb { aspect-ratio: 16/9; background: #f3f4f6; overflow: hidden; display:flex; align-items:center; justify-content:center; color:#9ca3af; font-size:12px; }
.property-body { padding: 14px 16px 16px; }
.property-title { margin-bottom: 6px; font-size: 18px; }
.property-meta { font-size: 14px; color: var(--color-muted); margin-bottom: 10px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 999px; font-weight: 700; line-height: 1; transition: opacity .2s ease, transform .05s ease; }
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary { background: var(--color-main); color: #fff; }
.btn-outline { border: 2px solid var(--color-main); color: var(--color-main); background: #fff; }

.testimonials-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.balloon { position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px 18px 16px; }
.balloon::after { content: ""; position: absolute; left: -10px; top: 30px; border: 10px solid transparent; border-right-color: #fff; }

.section--cta { background: var(--color-accent-blue); }
.cta-buttons { display: flex; gap: 14px; justify-content: center; margin-top: 14px; }
.cta-note { text-align: center; color: #374151; }

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e5e7eb; }
.news-list li { display: flex; gap: 12px; align-items: baseline; border-bottom: 1px solid #e5e7eb; padding: 12px 0; }
.news-date { font-size: 13px; color: var(--color-muted); min-width: 96px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; background: #fff; }
.faq-q { font-weight: 700; color: var(--color-main); margin-bottom: 6px; }
.faq-a { color: var(--color-text); }

.entry { border-bottom: 1px solid #e5e7eb; padding: 18px 0; }
.entry-title { margin-bottom: 6px; font-size: 20px; }
.entry-meta { font-size: 13px; color: var(--color-muted); margin-bottom: 8px; }

/* 売買実績（横一列・罫線区切り） */
.results-section { background: #fff; position: relative; }
.results-lined { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e5e7eb; }
.results-lined .result-row { border-bottom: 1px solid #e5e7eb; }
.results-lined .result-row > a { display: flex; align-items: center; gap: 14px; padding: 12px 2px; color: inherit; text-decoration: none; }
.result-thumb { flex: 0 0 auto; width: 140px; aspect-ratio: 16/9; background: #f3f4f6; border-radius: 8px; overflow: hidden; display:flex; align-items:center; justify-content:center; color:#9ca3af; font-size:12px; }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-body { flex: 1 1 auto; min-width: 0; }
.result-title { font-weight: 700; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-desc { margin-top: 2px; font-size: 14px; color: var(--color-muted); line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-cta { flex: 0 0 auto; margin-left: auto; color: var(--color-main); font-weight: 700; white-space: nowrap; }

/* 事業内容 */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px; background: #fff; text-align: center; }
.service-media { margin-bottom: 10px; }
.service-media img { max-height: 120px; margin: 0 auto; }
.service-placeholder { height: 120px; display:flex; align-items:center; justify-content:center; background:#f3f4f6; color:#9ca3af; border-radius:8px; }
.service-title { font-size: 18px; margin: 8px 0; color: var(--color-main); }
.service-text { color: var(--color-text); font-size: 14px; }

/* 事業内容（新レイアウト） */
.about-section { background: #fff; position: relative; z-index: 1; padding-bottom: 0; }
.about-inner { display: grid; grid-template-columns: 0.4fr 0.6fr; align-items: center; gap: 36px; }
.about-title { font-size: clamp(22px, 3.6vw, 34px); color: var(--color-main); }
.about-text { font-size: 16px; color: var(--color-text); }
.about-figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.10); position: relative; z-index: 2; }
.about-figure img, .about-placeholder { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.about-placeholder { background: linear-gradient(135deg, #e5e7eb, #f3f4f6); }
/* 下のダークセクションに少し重ねる */
.about-figure { margin-bottom: -60px; }
.about-overlap-spacer { height: 0; }

.capabilities-section { background: var(--color-main); color: #fff; position: relative; z-index: 0; padding-top: 100px; padding-bottom: 60px; }
.capabilities-inner { }
.capabilities-section .section-title { color: #fff; text-align: center; }
.cap-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.cap-item { text-align: center; }
.cap-circle { position: relative; width: 140px; height: 140px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: radial-gradient(120px 120px at 30% 30%, rgba(255,255,255,.28), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.28); }
.cap-circle .cap-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cap-circle::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,.18)); z-index: 1; }
.cap-copy { color: #fff; font-weight: 800; letter-spacing: .06em; font-size: 16px; position: relative; z-index: 2; }
.cap-desc { color: #e5e7eb; font-size: 14px; line-height: 1.7; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .global-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid #e5e7eb; display: none; flex-direction: column; gap: 0; padding: 10px 20px; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav li a { display: block; padding: 12px 4px; }
  body.is-nav-open .global-nav { display: flex; }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-wrap { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-figure { margin-bottom: -40px; }
  .capabilities-section { padding-top: 80px; }
  .cap-features { grid-template-columns: repeat(2, 1fr); }
  .cap-circle { width: 120px; height: 120px; }
  .result-thumb { width: 120px; }
}
@media (max-width: 640px) {
  .global-nav ul { flex-wrap: wrap; gap: 10px; }
  .properties-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .about-figure { margin-bottom: -30px; }
  .capabilities-section { padding-top: 70px; }
  .cap-features { grid-template-columns: 1fr; }
  .cap-circle { width: 110px; height: 110px; }
  .results-lined .result-row > a { gap: 12px; padding: 12px 0; }
  .result-thumb { width: 104px; }
  .result-title { font-size: 15px; }
}

/* キャッチコピーセクション */
.catchcopy { position: relative; min-height: 32vh; display: grid; place-items: center; color: var(--catch-text-color, #111); overflow: hidden; }
.catchcopy-bg { position: absolute; inset: 0; z-index: 0; }
.catchcopy-bg img, .catchcopy-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.catchcopy-bg img { filter: brightness(1.1) saturate(0.9); transform: scale(1.03); }
.catchcopy-placeholder { background: #eef6fb; }
/* フェード（ハイキー・ソフト、水色と白のやさしいグラデ） */
.catchcopy-overlay { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(160,216,239,0.35) 40%, rgba(255,255,255,0.75)),
    radial-gradient(80% 60% at 50% 10%, rgba(255,255,255,0.65), rgba(255,255,255,0.0));
}
.catchcopy-inner { position: relative; z-index: 1; text-align: center; padding: 24px 20px; }
.catchcopy-text { font-weight: 700; color: var(--catch-text-color, #111); font-size: clamp(22px, 4.2vw, 36px); letter-spacing: .02em; }
/* フォント切替（キャッチコピー） */
.catchcopy-text.font-noto { font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", Meiryo, sans-serif; }
.catchcopy-text.font-yu-gothic { font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック体", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif; }
.catchcopy-text.font-meiryo { font-family: Meiryo, "メイリオ", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", Arial, sans-serif; }
.catchcopy-text.font-hiragino-kaku { font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "ヒラギノ角ゴ ProN W3", "Yu Gothic Medium", Meiryo, Arial, sans-serif; }
.catchcopy-text.font-mincho { font-family: "Hiragino Mincho ProN", "Yu Mincho", "游明朝", "MS PMincho", "MS 明朝", serif; }
.catchcopy-text.font-system-sans { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", Meiryo, sans-serif; }
.catchcopy-text.is-italic { font-style: italic; }

/* ==============================
   Results (最近の実績一覧) width
   ============================== */
@media (min-width: 1024px) {
  .results-section .container {
    max-width: 65vw;
  }
}
/* 日本地図のシルエット（任意画像）を左余白に透かし表示 */
@media (min-width: 1024px) {
  .results-section.has-results-map::before {
    content: "";
    position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 60vw; pointer-events: none; z-index: 0;
    background-image: var(--results-map);
    background-repeat: no-repeat;
    /* JSで --results-parallax を更新して背景位置を僅かに上下させる */
    background-position: center calc(50% + var(--results-parallax, 0px));
    background-size: contain;
    opacity: var(--results-map-opacity, .08);
  }
  /* パララックス（デスクトップのみ有効） */
  .results-section.has-results-map.is-parallax::before { background-attachment: scroll; }
  .results-section .results-container { position: relative; z-index: 1; }
}

/* ==============================
   FAQ layout (PC: start at ~25%)
   ============================== */
@media (min-width: 1024px) {
  #faq .container { max-width: 100vw; padding-left: 0; padding-right: 0; }
  /* タイトルは中央のまま（既定の中央寄せ） */
  #faq .faq-list { width: 75vw; margin-left: 25vw; }
}

/* ==============================
   Works section (施工実績 2カラム)
   ============================== */
.works-section { background: #292E3D; color: #fff; }
.works-section .container { }
@media (min-width: 1024px) {
  .works-section .container { max-width: 65vw; }
}
.works-inner { display: flex; gap: 28px; align-items: stretch; }
.works-left { flex: 0 0 30%; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.works-title { font-size: clamp(22px, 3.2vw, 32px); font-weight: 800; line-height: 1.2; color: #fff; }
.works-sub { font-size: 14px; letter-spacing: 0.16em; opacity: .9; color: #E5E7EB; }
.works-divider { width: 3px; height: 32px; background: #5DD8FF; display: inline-block; border-radius: 2px; }
.btn-ghost-white { color: #fff; border: 2px solid #fff; background: transparent; border-radius: 8px; }

.works-right { flex: 1 1 70%; }
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.work-card { background: transparent; color: #fff; }
.work-thumb { aspect-ratio: 16/9; width: 100%; background: #3A4156; border-radius: 8px; display:flex; align-items:center; justify-content:center; color:#9FA6B2; font-size:12px; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.work-title { margin-top: 8px; font-size: 14px; font-weight: 700; color: #E5E7EB; }
.work-meta { margin-top: 8px; font-size: 12px; color: #C7D2FE; }
.work-desc { margin-top: 4px; font-size: 14px; color: #EEF2FF; }

@media (max-width: 960px) {
  .works-inner { flex-direction: column; }
  .works-left { flex-basis: auto; }
  .works-grid { grid-template-columns: 1fr; }
}

/* ==============================
   Voices section (お客様の声 2カラム + 右2×2カード)
   ============================== */
.voices-section { }
.voices-section .container {}
@media (min-width: 1024px) {
  .voices-section .container { max-width: 65vw; }
}
.voices-inner { display: flex; gap: 28px; align-items: stretch; }
.voices-left { flex: 0 0 30%; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.voices-title { font-size: clamp(22px, 3.2vw, 32px); font-weight: 800; line-height: 1.2; color: #fff; }
.voices-sub { font-size: 14px; letter-spacing: 0.16em; opacity: .9; color: #E5E7EB; text-transform: uppercase; }
.voices-divider { width: 3px; height: 32px; background: var(--color-accent-blue); display: inline-block; border-radius: 2px; }
.voices-button { border-radius: 8px; }

.voices-right { flex: 1 1 70%; }
.voices-grid { display: grid; grid-template-columns: repeat(2, auto); gap: 2rem; align-content: start; }

/* カードは現状の約35〜40%に縮小（固定最大幅 + 小さめのサムネ） */
.voice-card { display: flex; gap: 12px; align-items: flex-start; max-width: 320px; background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.voice-thumb { flex: 0 0 150px; width: 150px; height: 100px; background: #f3f4f6; display:flex; align-items:center; justify-content:center; color:#9FA6B2; font-size:12px; border-radius: 8px; overflow: hidden; }
.voice-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.voice-body { flex: 1 1 auto; min-width: 0; }
.voice-title { font-size: 14px; font-weight: 800; color: var(--voices-item-color, #ffffff); margin: 0 0 4px; }
.voice-desc { font-size: 13px; color: var(--voices-item-color, #ffffff); }

@media (max-width: 960px) {
  .voices-inner { flex-direction: column; }
  .voices-left { flex-basis: auto; }
  .voices-grid { grid-template-columns: 1fr; }
  .voice-card { max-width: none; }
}

/* ==============================
   Full background image section
   ============================== */
.fullbg-section { min-height: 100vh; background-size: cover; background-position: center; background-repeat: no-repeat; padding: 0; }
.fullbg-section.is-parallax { background-attachment: fixed; will-change: background-position; }
/* ==============================
   Scroll reveal (fade-in)
   ============================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s ease-out, transform 1s ease-out; transition-delay: var(--rv-delay, 0s); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
/* Left-to-right variant */
.reveal-ltr { opacity: 0; transform: translateX(-16px); transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: var(--rv-delay, 0s); will-change: opacity, transform; }
.reveal-ltr.is-visible { opacity: 1; transform: none; }
/* Faster fade variant */
.reveal-fast { transition-duration: .6s !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; }
  .reveal-ltr { transition: none !important; }
}
@media (max-width: 960px) {
  /* モバイルは固定背景が効かない環境が多いため通常スクロールにフォールバック */
  .fullbg-section.is-parallax { background-attachment: scroll; }
}
.fullbg-placeholder { height: 100vh; display:flex; align-items:center; justify-content:center; background: #eef2f7; color: #6b7280; font-weight: 700; }

/* ==============================
   Staff Introduction
   ============================== */
.staff-section { position: relative; margin-top: -100px; padding-bottom: 60px; }
.staff-inner { width: 92%; max-width: 960px; margin: 0 auto; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.12); padding: 28px; position: relative; z-index: 2; }
@media (min-width: 1024px) { .staff-inner { max-width: 60vw; } }
.staff-header { text-align: center; margin-bottom: 18px; }
.staff-title-en { color: #6b7280; letter-spacing: .16em; font-size: 14px; text-transform: uppercase; }
.staff-title-ja { color: var(--color-main); font-size: clamp(22px, 3.2vw, 28px); margin-top: 6px; }
.staff-text { color: #374151; margin-top: 8px; font-size: 15px; line-height: 1.9; }

.staff-list { display: grid; gap: 24px; margin-top: 8px; }
.staff-profile { display: flex; gap: 14px; align-items: center; justify-content: flex-start; max-width: none; width: 100%; margin: 0; }
.staff-profile.is-reverse { flex-direction: row-reverse; }
.staff-profile-text { }
.staff-name { font-size: 18px; color: var(--color-main); margin: 0 0 6px; }
.staff-bio { color: #374151; margin: 0; font-size: 14px; line-height: 1.8; }
.staff-profile-media { display: flex; align-items: center; justify-content: center; }
.staff-ellipse { width: clamp(96px, 15.6%, 132px); aspect-ratio: 3/4; border-radius: 50% / 50%; background: #e5e7eb; display:flex; align-items:center; justify-content:center; overflow: hidden; }
.staff-ellipse img { width: 100%; height: 100%; object-fit: cover; }
.staff-ellipse span { color: #9ca3af; font-weight: 700; letter-spacing: .12em; font-size: 10px; }

@media (max-width: 960px) {
  .staff-section { margin-top: -70px; }
  .staff-inner { padding: 22px; }
  /* Extend row backgrounds to the edges of the staff inner padding (22px) */
  .staff-list { margin-left: -22px; margin-right: -22px; }
  .staff-profile { flex-direction: column; max-width: 600px; }
  .staff-profile.is-reverse { flex-direction: column; }
  .staff-profile-media { order: -1; }
  .staff-ellipse { width: clamp(87px, 15.6%, 111px); margin: 0 auto; }
}

/* Desktop alignment: flex row (image left, text right) */
@media (min-width: 961px) {
  /* Extend row backgrounds to the edges of the staff inner padding (28px) */
  .staff-list { margin-left: -28px; margin-right: -28px; }
  /* Shift ellipse + text roughly 15–16 characters to the right within each row */
  .staff-profile { padding-left: 15.5ch; }
  .staff-profile { display: flex; align-items: center; justify-content: flex-start; gap: 16px; }
  .staff-profile-media { order: 0; flex: 0 0 clamp(96px, 15.6%, 132px); justify-content: center; align-self: center; }
  .staff-profile-text  { order: 1; flex: 1 1 auto; max-width: 640px; align-self: center; }
  .staff-profile.is-reverse .staff-profile-media { order: 0; }
  .staff-profile.is-reverse .staff-profile-text  { order: 1; }

}

/* (Reverted) desktop-specific grid layout removed */

/* ==============================
   Profile List (flex aligned)
   ============================== */
.profile-list-section { padding: 24px 0; }
.profile-list { display: flex; flex-direction: column; gap: 16px; }
.profile-item { display: flex; align-items: center; }
.profile-avatar { flex: 0 0 80px; width: 80px; height: 80px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar span { color: #9ca3af; font-weight: 700; letter-spacing: .08em; }
.profile-content { flex: 1 1 auto; margin-left: 16px; }
.profile-name { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #111827; }
.profile-desc { margin: 0; font-size: 14px; line-height: 1.7; color: #374151; }

@media (max-width: 480px) {
  .profile-avatar { flex-basis: 64px; width: 64px; height: 64px; }
}
