@charset "UTF-8";
/* 専門家紹介 ページ専用のスタイル（共通は common/site.css・common/page.css） */

/* 税理士パネル（左は余白、右は画面端まで） */
.expert-list { display: grid; gap: 16px; margin-left: 8%; }
.expert { position: relative; display: block; aspect-ratio: 1651 / 830; overflow: hidden; color: #fff; container-type: inline-size; }
.expert > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transform-origin: 50% 20%; transition: transform .6s; } /* 現デザイン：少し寄せて腰から上 */
.expert:hover > img { transform: scale(1.1); }
.expert-role { position: absolute; top: 14px; left: 14px; z-index: 2; writing-mode: vertical-rl; font-size: 22px; letter-spacing: .12em; line-height: 1.2; text-shadow: 0 0 8px rgba(0,0,0,.35); }
.expert-name { position: absolute; right: -1.2cqw; bottom: -1.7cqw; /* 名前の下端がパネルの下にくっついて少し切れる */ z-index: 2; text-align: right; line-height: 1; }
.expert-roma { display: block; font-size: clamp(13px, 1.45cqw, 26px); letter-spacing: .42em; margin: 0 0 2.6cqw; padding-left: 1.6cqw; text-align: left; text-shadow: 0 0 8px rgba(0,0,0,.35); } /* 文字の間隔と名前との間をゆったり */
.expert-jp { display: block; font-size: 11.5cqw; /* 現デザイン：パネル幅の約11.5%（右端・下端で少し切れる） */ font-weight: 100; letter-spacing: .08em; white-space: nowrap; text-shadow: 0 0 14px rgba(0,0,0,.25); }
.expert-comment { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 14px; max-width: 46%; color: #333; }
.expert-comment img { width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; }
.expert-bubble { position: relative; padding-top: 14px; }
.expert-label { position: absolute; z-index: 2; top: 0; left: 16px; display: inline-block; color: #fff; font-size: 13px; font-weight: 700; padding: 3px 14px; border-radius: 20px; white-space: nowrap; }
.expert-text { margin: 0; padding: 26px 28px 18px; border-radius: 8px; font-size: 15.5px; line-height: 1.85; }
.expert--orange .expert-label { background: var(--orange); } .expert--orange .expert-text { --bubble: rgba(253,243,231,.96); }
.expert--teal .expert-label { background: var(--teal); }   .expert--teal .expert-text { --bubble: rgba(231,244,247,.96); }
.expert--purple .expert-label { background: #6b5cae; }      .expert--purple .expert-text { --bubble: rgba(238,236,248,.96); }
/* 吹き出しの口（現デザイン：人物側に出る 10×14px の三角） */
.expert-text { position: relative; background: var(--bubble); }
.expert-text::before { content: ""; position: absolute; top: 22px; left: -10px; border-style: solid; border-width: 7px 10px 7px 0; border-color: transparent var(--bubble) transparent transparent; }

/* 専門分野一覧 */
.field-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); font-size: var(--font-size-18px); line-height: 1.8; } /* 現デザイン：18px */
.field-table th, .field-table td { border: 1px solid var(--line); padding: 18px 30px; text-align: left; font-weight: 400; }
.field-table thead th { background: var(--gray-bg); text-align: center; font-weight: 500; }
.field-table tbody th { background: #FFF; width: 27%; }
.field-table td:last-child { width: 27%; }

/* 名前はパネル幅に合わせて自動で縮む（cqw） */
@media (max-width: 900px) {
  /* タブレット・スマホ：写真の高さをそろえ、名前は全員「写真の下端」に同じ位置で置く。コメントは写真の下に出して名前と重ならないようにする */
  .expert-list { margin-left: 0; gap: 40px; }
  .expert { --ph-h: 440px; aspect-ratio: auto; height: auto; padding-top: var(--ph-h); overflow: visible; }
  .expert > img { inset: 0 0 auto 0; height: var(--ph-h); transform: none; }
  .expert:hover > img { transform: none; }
  .expert-name { top: var(--ph-h); bottom: auto; right: 0; translate: 0 calc(-100% - 18px); }
  .expert-jp { font-size: 72px; }
  .expert-comment { position: static; max-width: none; margin: 16px 14px 0; }
}
@media (max-width: 640px) {
  .expert-comment img { width: 60px; height: 60px; }
  .expert-text { font-size: 13.5px; padding: 22px 16px 14px; }
  .expert { --ph-h: 400px; }
  .expert-jp { font-size: 52px; }
  .expert-roma { display: block; font-size: clamp(13px, 1.45cqw, 26px); letter-spacing: .42em; margin: 0 0 2.6cqw; padding-left: 1.6cqw; text-align: left; text-shadow: 0 0 8px rgba(0,0,0,.35); } /* 文字の間隔と名前との間をゆったり */
  .field-table { font-size: 14px; }
  .field-table th, .field-table td { padding: 12px 12px; }
}

/* 写真にデザインデータと同じ黒の半透明（5%）を重ねる */
.expert::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(0 0 0 / 0.05); pointer-events: none; }
@media screen and (max-width: 880px) { .expert::after { bottom: auto; height: var(--ph-h); } }
