/* =====================================================
   member.css — スキルショーケース
   青系メイン・読みやすくスタイリッシュ
   スキルはチェックボックスごとに色分け（維持）
   ===================================================== */

:root {
    --blue-main:    #2563eb;
    --blue-dark:    #1d4ed8;
    --blue-light:   #3b82f6;
    --blue-bg:      #eff6ff;
    --blue-border:  #bfdbfe;
    --orange-main:  #ea580c;
    --orange-dark:  #c2410c;
    --text-dark:    #1e293b;
    --text-body:    #475569;
    --text-muted:   #64748b;
    --bg-page:      #f8fafc;
    --bg-card:      #ffffff;
    --radius:       8px;
    --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow:       0 1px 3px rgba(0, 0, 0, 0.08);
    --space:        1.5rem;
}

/* -------------------------------------------------------
   スキルタグ：チェックボックスで選ぶスキルはそれぞれ別色
   （必ず維持）
   ------------------------------------------------------- */

.skill-tag,
.category-color-list-wrapper .post-category-item {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}

.skill-tag:hover,
.category-color-list-wrapper .post-category-item a:hover {
    opacity: 0.92;
}

/* カテゴリー色タグ（タクソノミーで色指定した場合）・ホバーで濃い色 */
.skill-tag--cat {
    background: var(--cat-bg-color, #64748b);
}

.skill-tag--cat:hover,
.category-color-list-wrapper .post-category-item:hover {
    filter: brightness(0.88);
}

/* スキル別カラー（チェックボックス選択肢ごと） */
.skill--line       { background: #059669; }
.skill--sales      { background: #7c3aed; }
.skill--video      { background: #dc2626; }
.skill--design     { background: #db2777; }
.skill--writing    { background: #ea580c; }
.skill--marketing  { background: #ca8a04; }
.skill--ads        { background: #0891b2; }
.skill--data       { background: #4f46e5; }
.skill--meo        { background: #0891b2; }
.skill--secretary  { background: #64748b; }
.skill--biz-mid    { background: #94a3b8; }
.skill--biz-adv    { background: #475569; }
.skill--default    { background: #64748b; }

/* カテゴリリスト（上部）：スキルごと色 = --cat-bg-color をそのまま使用 */
.category-color-list-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.category-color-list-wrapper .post-category-item {
    background-color: var(--cat-bg-color, #64748b);
    padding: 0;
}

.category-color-list-wrapper .post-category-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 12px;
    display: block;
}

/* -------------------------------------------------------
   共通：ボタン（青系）
   ------------------------------------------------------- */

.btn-primary,
.elementor-button.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--orange-main);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background: var(--orange-dark);
    color: #fff;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 2px solid var(--blue-main);
    color: var(--blue-main);
    background: transparent;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background: var(--blue-main);
    color: #fff;
}

.elementor-button-content-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* アイコンは必ず小さく表示（巨大化防止） */
.elementor-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25em;
    height: 1.25em;
}

.elementor-button-icon svg {
    width: 1em;
    height: 1em;
    max-width: 18px;
    max-height: 18px;
    flex-shrink: 0;
    fill: currentColor;
    vertical-align: middle;
}

/* タブ・ボタン内のアイコンも同様に固定 */
.tabs__nav-item .elementor-button-icon svg,
.btn-primary .elementor-button-icon svg,
.btn-secondary .elementor-button-icon svg {
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
}

/* -------------------------------------------------------
   TOP：メンバー一覧カード
   ------------------------------------------------------- */

.members-archive {
    padding: 2rem 1rem;
    background: var(--bg-page);
    min-height: 60vh;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.member-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.member-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.member-card__photo {
    aspect-ratio: 5/4;
    overflow: hidden;
}
.member-card__photo img,
.member-card__no-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-card__no-photo {
    background: var(--blue-bg);
    min-height: 100%;
}

.member-card__body {
    padding: 1.25rem;
}

.member-card__name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
}

.member-card__catchphrase {
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-card__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
}

.member-card__skills a.skill-tag {
    text-decoration: none;
    color: #fff;
}

/* スキルカテゴリーアーカイブ（/skill/スラッグ/） */
.taxonomy-skill-category__header {
    margin-bottom: 1.5rem;
    text-align: center;
}
.taxonomy-skill-category__title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}
.taxonomy-skill-category__badge {
    display: inline-block;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    background: var(--cat-bg-color, #64748b);
    color: #fff;
    font-weight: 600;
}
.taxonomy-skill-category__desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}
.taxonomy-skill-category__empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------
   個別ページ：レイアウト・余白
   ------------------------------------------------------- */

/* コンテンツは中央配置・グレー背景は余白で見せる（修正依頼５） */
.member-profile {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.member-profile--showcase {
    max-width: 900px;
    padding-top: 2rem;
}

.member-profile__inner {
    padding: 0;
}

/* 行間は1.6に統一・改行ごとの1行余白をやめる */
.member-profile__inner.entry-content {
    line-height: 1.6;
}

.member-profile__inner.entry-content p {
    margin-top: 0;
    margin-bottom: 0.55em;
}

.member-profile__inner.entry-content p:last-child {
    margin-bottom: 0;
}

/* 指定していない改行（br）を消す（修正依頼５・４） */
.member-profile__inner.entry-content p + br,
.service-block__description p + br,
.service-block__description h3 + br,
.service-block__description div + br {
    display: none !important;
}

.service-block__description br {
    display: none !important;
}

/* 投稿メタ（非表示） */
.entry-meta.member-profile__meta {
    display: none;
}

/* -------------------------------------------------------
   プロフィールヘッダー（名前・写真・スキル・CTA）
   ------------------------------------------------------- */

.profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.profile-header--showcase {
    padding-bottom: 2rem;
}

/* 左右 7:3（テキスト:写真） */
.profile-header--showcase .profile-header__info { order: 1; flex: 7 1 0%; min-width: 0; }
.profile-header--showcase .profile-header__photo { order: 2; flex: 3 0 0%; min-width: 0; }

/* 右側の写真をコンテナ幅いっぱいに表示（円形のまま） */
.profile-header--showcase .profile-header__photo {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid var(--blue-border);
}
.profile-header--showcase .profile-header__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-header--showcase .profile-header__photo .profile-header__no-photo {
    width: 100%;
    height: 100%;
    min-height: 120px;
}

.profile-header__photo img,
.profile-header__no-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--blue-border);
}

.profile-header__no-photo {
    background: var(--blue-bg);
}

.profile-header__name,
.profile-header__name.entry-title,
.member-profile .entry-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.profile-header__catchphrase {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.profile-header__skills-label {
    display: none;
}

.profile-header__skills-list {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.8;
    margin: 0 0 1.25rem;
}

.profile-header__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
}

/* スキル一覧を色付きタグで表示（各スキル別色） */
.profile-header__skills--tags .skill-tag {
    margin: 0;
}

.profile-header__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-consult {
    margin-top: 0;
}

/* -------------------------------------------------------
   タブ（プロフィール / サービスについて / 他の人と比較する）タブ風デザイン
   ------------------------------------------------------- */

.tabs {
    margin-bottom: 2rem;
}

/* タブはセクションタイトルと同じ幅（コンテンツ幅に合わせる） */

.tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid var(--blue-border);
}

.tabs__nav--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem;
    border-bottom: none;
}

/* タブ風：横並び・下線でアクティブ表示 */
.tabs__nav--tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.tabs__nav--tabs .tabs__nav-item {
    margin-bottom: -2px;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--blue-bg);
    color: var(--blue-dark);
}
.tabs__nav--tabs .tabs__nav-item:hover {
    background: var(--blue-border);
    color: var(--blue-dark);
}
.tabs__nav--tabs .tabs__nav-item.is-active,
.tabs__nav--tabs .tabs__nav-item--anchor.is-active {
    background: #fff;
    color: var(--blue-main);
    border-bottom-color: var(--blue-main);
    font-weight: 600;
}
.tabs__nav--tabs .tabs__nav-item--link {
    background: var(--blue-bg);
    color: var(--blue-dark);
}
.tabs__nav--tabs .tabs__nav-item--link:hover {
    background: var(--blue-border);
    color: var(--blue-dark);
}

.tabs__nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: var(--blue-bg);
    color: var(--blue-dark);
    border: 1px solid var(--blue-border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tabs__nav-item:hover {
    background: var(--blue-border);
    color: var(--blue-dark);
}

.tabs__nav-item.is-active {
    background: var(--blue-main);
    color: #fff;
    border-color: var(--blue-main);
}

.tabs__nav-item--link {
    background: var(--blue-main);
    color: #fff;
    border-color: var(--blue-main);
}

.tabs__nav-item--link:hover {
    background: var(--blue-dark);
    color: #fff;
    border-color: var(--blue-dark);
}

/* タブはスクロール用のみ。全セクション常に表示（表示切替なし） */
.tabs__panel,
.tabs__section {
    display: block;
    padding: 1.5rem 0;
}

.tabs__content {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.85;
}

.tabs__content h2,
.tabs__content h3 {
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.tabs__ctas {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.tabs__ctas .elementor-button {
    width: 50%;
    min-width: 200px;
    justify-content: center;
    line-height: 1.4;
    font-size: 1.05em;
}
.tabs__ctas .elementor-button.elementor-size-sm {
    padding-top: 1.1em;
    padding-bottom: 1.1em;
    min-height: 2.75em;
    box-sizing: border-box;
}

.member-section__ctas,
.member-section__ctas--grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.member-section__ctas--grid {
    justify-content: flex-start;
}

/* -------------------------------------------------------
   セクション共通（支援可能なサービス・単価・出演動画など）
   ------------------------------------------------------- */

.member-section {
    margin-top: 2rem;
    padding-top: 2rem;
}

.member-section .section-title,
.member-section .elementor-heading-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

/* セクション見出しの下に青の線 */
.member-section-divider {
    margin-bottom: 1rem;
}

.member-section-divider .elementor-divider-separator {
    display: block;
    height: 0;
    border: none;
    border-top: 2px solid var(--blue-main);
}

.member-section__content {
    color: var(--text-body);
    line-height: 1.85;
}

.member-section__lead {
    margin: 0 0 1rem;
    color: var(--text-body);
    line-height: 1.75;
}

/* 支援可能なサービス */
.service-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-block {
    padding: 1.25rem;
    background: var(--blue-bg);
    border-radius: var(--radius);
}

.service-block__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--blue-main);
    margin: 0 0 0.5rem;
}

.service-block__description {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.8;
    margin: 0;
}

/* pの直後のbrを非表示・段落間はちょうどいい行間に */
.service-block__description p {
    margin: 0 0 0.55em 0;
}

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

.services-content h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1.25rem 0 0.5rem;
}

.services-content h3:first-child { margin-top: 0; }
.services-content p { margin: 0 0 0.75rem; }
.services-content ul { margin: 0.5rem 0 1rem; padding-left: 1.5rem; }
.services-content li { margin-bottom: 0.25rem; }

/* サービス単価 */
.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-list__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--blue-border);
    font-size: 1rem;
}

.pricing-list__item:last-child { border-bottom: none; }

.pricing-list__label { font-weight: 600; color: var(--text-dark); }
.pricing-list__amount { color: var(--blue-main); font-weight: 600; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.pricing-grid__item {
    margin: 0;
    padding: 1rem;
    background: var(--blue-bg);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--text-body);
}

.pricing-grid__item p {
    margin: 0;
    line-height: 1.2;
}

.pricing-grid__item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.2;
}

.pricing-grid__item .pricing-grid__price {
    display: block;
    margin-top: 0.15em;
    line-height: 1.2;
}

/* 出演動画 */
.video-embed {
    position: relative;
    padding-top: 56.25%;
    margin-top: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--text-dark);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 出演動画：2列表示。1本だけでも1列目幅は同じ */
.appearance-videos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.appearance-videos .video-embed {
    margin-top: 0;
}

/* 担当者をご指名いただけます（支援領域が近いの直上・ピンクバナー） */
.member-section--designate {
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
}
.member-section--designate .section-title {
    display: none;
}
.designate-banner {
    background: #fce8ec;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    width: 100%;
    max-width: none;
}
.designate-banner__text {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a1a;
}
.designate-banner__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.designate-banner__ctas .elementor-button {
    white-space: nowrap;
    width: 80%;
    font-size: 1.15em;
    justify-content: center;
    box-sizing: border-box;
}
.designate-banner__ctas .elementor-button.elementor-size-sm {
    padding-left: 1.75em !important;
    padding-right: 1.75em !important;
}
/* 担当者ご指名バナー内ボタン：白背景・青枠・青文字（画像デザイン）・ホバーで青塗り */
body .member-profile .designate-banner__ctas .btn-designate,
.designate-banner__ctas .btn-designate {
    background: #fff !important;
    color: var(--blue-main) !important;
    border: 2px solid var(--blue-main) !important;
    border-radius: var(--radius);
}
body .member-profile .designate-banner__ctas .btn-designate .elementor-button-icon svg,
.designate-banner__ctas .btn-designate .elementor-button-icon svg {
    fill: var(--blue-main) !important;
}
body .member-profile .designate-banner__ctas .btn-designate:hover,
.designate-banner__ctas .btn-designate:hover {
    background: var(--blue-main) !important;
    color: #fff !important;
    border-color: var(--blue-main) !important;
}
body .member-profile .designate-banner__ctas .btn-designate:hover .elementor-button-icon svg,
.designate-banner__ctas .btn-designate:hover .elementor-button-icon svg {
    fill: #fff !important;
}

/* 無料で相談する：オレンジ背景・白文字（画像デザイン） */
body .member-profile .designate-banner__ctas .btn-designate--consult,
.designate-banner__ctas .btn-designate--consult {
    background: var(--orange-main) !important;
    color: #fff !important;
    border: 2px solid var(--orange-main) !important;
}
body .member-profile .designate-banner__ctas .btn-designate--consult .elementor-button-icon svg,
.designate-banner__ctas .btn-designate--consult .elementor-button-icon svg {
    fill: #fff !important;
}
body .member-profile .designate-banner__ctas .btn-designate--consult:hover,
.designate-banner__ctas .btn-designate--consult:hover {
    background: var(--orange-dark) !important;
    color: #fff !important;
    border-color: var(--orange-dark) !important;
}
body .member-profile .designate-banner__ctas .btn-designate--consult:hover .elementor-button-icon svg,
.designate-banner__ctas .btn-designate--consult:hover .elementor-button-icon svg {
    fill: #fff !important;
}

/* 支援領域が近い：スキルボタン（青系で統一しても、リンク先はスキル別・表示は青でOK） */
.related-skills,
.related-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
}

/* 支援領域が近い：フォントサイズ0.8倍 */
.member-section--related .section-title,
.member-section--related .elementor-heading-title {
    font-size: 1rem;
}
.member-section--related .related-skill-btn {
    font-size: 0.7rem;
}
.member-section--related .related-next,
.member-section--related .related-next a {
    font-size: 0.75rem;
}

.related-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

/* 支援領域ボタンは青系でスタイリッシュに */
.related-skill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: var(--blue-bg);
    color: var(--blue-dark);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--blue-border);
    transition: background 0.2s, color 0.2s;
}

a.related-skill-btn:hover {
    background: var(--blue-main);
    color: #fff;
    border-color: var(--blue-main);
}

/* すべてのスキルカテゴリーをカテゴリー色で表示 */
.related-skill-btn--cat {
    background: var(--cat-bg-color, var(--blue-bg));
    color: #fff;
    border-color: var(--cat-bg-color, var(--blue-border));
}

/* 支援領域が近い：ホバーで青にせず、それぞれのカテゴリー色の濃い色のみ */
a.related-skill-btn--cat:hover {
    background: var(--cat-bg-color, #64748b) !important;
    border-color: var(--cat-bg-color, #64748b) !important;
    filter: brightness(0.88);
    color: #fff !important;
}

.related-next {
    margin: 0;
    font-size: 0.9375rem;
}

.related-next a {
    color: var(--blue-main);
    font-weight: 600;
    text-decoration: none;
}

.related-next a:hover { text-decoration: underline; }

/* 投稿ナビ「次 ○○」 */
.post-navigation {
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.post-navigation .nav-links { display: flex; justify-content: flex-end; }

.post-navigation .nav-next a {
    color: var(--blue-main);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
}

.post-navigation .nav-next a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.post-navigation .ast-post-nav {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.post-navigation .nav-next p { margin: 0.35em 0 0; font-weight: 500; }

/* -------------------------------------------------------
   SNS・リンク / PDF
   ------------------------------------------------------- */

.sns-links {
    margin-top: 2rem;
    padding-top: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem;
}

.sns-links__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sns-links__list a {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--blue-main);
    color: var(--blue-main);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.sns-links__list a:hover {
    background: var(--blue-main);
    color: #fff;
}

.pdf-viewer {
    width: 100%;
    background: var(--bg-page);
    border: 1px solid var(--blue-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-sizing: border-box;
}

.pdf-loading {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
    padding: 2rem 0;
    margin: 0;
}

#pdf-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pdf-page {
    max-width: 100%;
    height: auto;
    box-shadow: var(--shadow);
}

/* -------------------------------------------------------
   スキル一覧（✅ リスト）・その他
   ------------------------------------------------------- */

.skills-list {
    background: var(--blue-bg);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.skills-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.skills-list li {
    font-size: 0.9375rem;
    color: var(--text-body);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.elementor-button.elementor-size-sm {
    padding: 10px 18px;
    font-size: 0.875rem;
}

/* -------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------- */

@media (max-width: 640px) {
    .member-profile,
    .member-profile--showcase {
        padding: 1.25rem 1rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    /* スマホ：tabs__ctas のボタン幅80％・中央揃え */
    .tabs__ctas {
        align-items: center;
    }
    .tabs__ctas .elementor-button {
        width: 80%;
        min-width: 0;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* スマホ：画像を上、その下にテキスト・ボタン */
    .profile-header--showcase .profile-header__photo { order: 1; }
    .profile-header--showcase .profile-header__info { order: 2; }

    .profile-header__photo img,
    .profile-header__no-photo {
        width: 120px;
        height: 120px;
    }

    .profile-header__name {
        font-size: 1.375rem;
    }

    .profile-header__skills,
    .category-color-list-wrapper {
        justify-content: center;
    }

    /* スマホ：ヘッダーのボタンを1.5倍・中央揃え */
    .profile-header__ctas {
        justify-content: center;
    }
    .profile-header__ctas .elementor-button,
    .profile-header__ctas .elementor-button.elementor-size-sm {
        padding: 15px 27px !important;
        font-size: 1.05rem;
    }
    .profile-header__ctas .elementor-button-icon svg {
        width: 1.05em;
        height: 1.05em;
        max-width: 20px;
        max-height: 20px;
    }

    .tabs__nav--grid {
        grid-template-columns: 1fr;
    }

    .tabs__nav--tabs {
        flex-wrap: wrap;
    }
    .tabs__nav--tabs .tabs__nav-item {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 12px;
        font-size: 0.875rem;
    }

    .appearance-videos,
    body .member-profile .appearance-videos {
        grid-template-columns: 1fr !important;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .related-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .members-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 420px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   確実に反映させるオーバーライド（修正依頼・他テーマ優先を上書き）
   body + .member-profile で詳細度を上げて適用
   ===================================================== */
/* １消す（修正依頼５）・個別ページのメタ・ラベルを確実に非表示 */
body .member-profile .entry-meta.member-profile__meta,
body .member-profile .profile-header__skills-label,
body.single .entry-meta,
body.single-member .entry-meta,
body.single-post .entry-meta,
body.single .entry-header + .entry-meta,
body.single .entry-meta + .entry-content,
body.single-member .entry-header + .entry-meta,
body.single-member .entry-meta + .entry-content,
.site-content .entry-meta {
    display: none !important;
}

/* コンテンツは中央に（左寄せにしない） */
body.single .site-content,
body.single-member .site-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}
body #site-main.member-profile,
body .member-profile.member-profile--showcase {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    display: block !important;
}

body .member-profile .profile-header__name,
body .member-profile .profile-header__name.entry-title,
body .member-profile .member-profile__inner .entry-title {
    color: var(--text-dark) !important;
}

body .member-profile .btn-primary,
body .member-profile .elementor-button.btn-primary {
    background: var(--orange-main) !important;
    color: #fff !important;
}

body .member-profile .btn-primary:hover,
body .member-profile .elementor-button.btn-primary:hover {
    background: var(--orange-dark) !important;
    color: #fff !important;
}

body .member-profile .member-profile__inner.entry-content {
    line-height: 1.6 !important;
}

body .member-profile .member-section-divider {
    display: block !important;
    margin-bottom: 1rem !important;
}

body .member-profile .member-section-divider .elementor-divider-separator {
    display: block !important;
    height: 0 !important;
    border: none !important;
    border-top: 2px solid var(--blue-main) !important;
}

body .member-profile .service-block {
    border-left: none !important;
}

body .member-profile .service-block__title {
    color: var(--blue-main) !important;
}

body .member-profile .related-skills-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* 出演動画：説明文は非表示・2列表示・動画下のボタンは非表示 */
body .member-profile .member-section--appearance .member-section__lead {
    display: none !important;
}
body .member-profile .member-section--appearance .member-section__ctas {
    display: none !important;
}
body .member-profile .appearance-videos {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
}

body .member-profile .skill-tag--cat:hover,
body .member-profile .category-color-list-wrapper .post-category-item:hover {
    filter: brightness(0.88) !important;
}

/* 支援領域が近い：ホバーで青を出さない・カテゴリー色の濃い色のみ */
body .member-profile a.related-skill-btn--cat:hover,
body .member-profile .member-section--related a.related-skill-btn--cat:hover {
    background: var(--cat-bg-color, #64748b) !important;
    border-color: var(--cat-bg-color, #64748b) !important;
    filter: brightness(0.88) !important;
    color: #fff !important;
}

/* 通常の改行（Enter）でちょうどいい行間に・pの直後のbrは非表示 */
body .member-profile .member-profile__inner.entry-content p {
    margin-top: 0 !important;
    margin-bottom: 0.55em !important;
}

body .member-profile .member-profile__inner.entry-content p:last-child {
    margin-bottom: 0 !important;
}

body .member-profile .member-profile__inner.entry-content p + br,
body .member-profile .service-block__description p + br,
body .member-profile .service-block__description br {
    display: none !important;
}

body .member-profile .service-block__description p {
    margin-bottom: 0.55em !important;
}

body .member-profile .service-block__description p:last-child {
    margin-bottom: 0 !important;
}

/* サービス単価：名前と価格の間の1行空きをなくす */
body .member-profile .pricing-grid__item p {
    margin: 0 !important;
    line-height: 1.2 !important;
}

body .member-profile .pricing-grid__item strong {
    margin-bottom: 0 !important;
}

body .member-profile .pricing-grid__item .pricing-grid__price {
    display: block !important;
    margin-top: 0.15em !important;
    line-height: 1.2 !important;
}

/* 一覧ページ（カード）の「スキルシートを見る」もオレンジ */
body .members-archive .member-card .btn-primary {
    background: var(--orange-main) !important;
    color: #fff !important;
}

body .members-archive .member-card .btn-primary:hover {
    background: var(--orange-dark) !important;
    color: #fff !important;
}
