/* ホームページらしい部品(2026-10-13)。閲覧側(.pb-*)と編集側(.xedit-crow--block)の両方がこれ 1 枚を読む。
   不要になったら、この 1 枚と profile-parts.js、partials/xview_blocks.html を外せば消える。
   色は style.css のトークンを使う - ページのテーマ(theme)が --primary を差し替えると一緒に変わる。 */
.pb { box-sizing: border-box; min-width: 0; white-space: normal; word-break: break-word; }
/* 改行を効かせるのは、利用者が複数行で書く本文だけ。部品の全体に pre-line を掛けると、テンプレートの
   改行・空白がそのまま空行になり、ヒーローの画像の上下や本文の間にすき間ができていた(2026-10-14)。 */
.pb-hero-text, .pb-card-text, .pb-faq-a { white-space: pre-line; }
.pb-heading { text-align: center; padding: 18px 12px 6px; }
.pb-kicker { font-size: 11px; font-weight: 800; letter-spacing: .28em; color: var(--primary-dark, #c9658f); text-transform: uppercase; }
.pb-title { margin: 4px 0 0; font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: .04em; }
.pb-rule { display: block; width: 44px; height: 3px; margin: 10px auto 0; border-radius: 3px; background: var(--primary-dark, #c9658f); }
.pb-heading[style*="text-align:left"] .pb-rule { margin-left: 0; }
.pb-heading[style*="text-align:right"] .pb-rule { margin-right: 0; margin-left: auto; }

.pb-hero { position: relative; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, var(--primary, #de7fa6), var(--primary-dark, #c9658f)); color: #fff; }
.pb-hero-img { display: block; width: 100%; height: auto; }
.pb-hero-body { padding: 26px 20px 24px; }
.pb-hero--img .pb-hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 20px; background: linear-gradient(to top, rgba(10,8,14,.78), rgba(10,8,14,0)); }
.pb-hero-title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.3; letter-spacing: .03em; }
.pb-hero-text { margin: 8px 0 0; font-size: 14px; line-height: 1.7; opacity: .95; }
.pb-btn { display: inline-block; margin-top: 14px; padding: 10px 22px; border-radius: 999px; background: #fff; color: #3a2630; font-size: 13px; font-weight: 800; text-decoration: none; letter-spacing: .06em; }
.pb-btn--ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }

.pb-card { display: block; overflow: hidden; border-radius: 14px; background: var(--pb-card-bg, #fff); border: 1px solid var(--pb-card-bd, #f1dde7); color: var(--pb-card-ink, #3f2f37); text-decoration: none; box-shadow: 0 6px 18px rgba(75,59,68,.06); }
.pb-card-img { display: block; width: 100%; height: auto; }
.pb-card-body { padding: 12px 14px 14px; }
.pb-card-title { font-size: 15px; font-weight: 800; line-height: 1.4; }
.pb-card-text { margin-top: 4px; font-size: 12.5px; line-height: 1.6; opacity: .82; }

.pb-price { padding: 14px 16px; border-radius: 14px; background: var(--pb-card-bg, #fff); border: 1px solid var(--pb-card-bd, #f1dde7); color: var(--pb-card-ink, #3f2f37); }
.pb-price-title { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--primary-dark, #c9658f); margin-bottom: 8px; }
.pb-price-list { list-style: none; margin: 0; padding: 0; }
.pb-price-list li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 14px; }
.pb-price-n { flex: 0 1 auto; font-weight: 700; }
.pb-price-dots { flex: 1; min-width: 12px; border-bottom: 2px dotted currentColor; opacity: .3; transform: translateY(-3px); }
.pb-price-v { flex: 0 0 auto; font-weight: 800; font-variant-numeric: tabular-nums; }


.pb-faq { border-radius: 12px; background: var(--pb-card-bg, #fff); border: 1px solid var(--pb-card-bd, #f1dde7); color: var(--pb-card-ink, #3f2f37); padding: 0 14px; }
.pb-faq > summary { cursor: pointer; padding: 13px 22px 13px 0; font-size: 14px; font-weight: 800; list-style: none; position: relative; }
.pb-faq > summary::-webkit-details-marker { display: none; }
.pb-faq > summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--primary-dark, #c9658f); }
.pb-faq[open] > summary::after { content: "−"; }
.pb-faq-a { padding: 0 0 14px; font-size: 13.5px; line-height: 1.8; opacity: .9; }

.pb-divider { height: 18px; position: relative; }
.pb-divider::before { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; border-top: 1.5px solid var(--primary, #de7fa6); opacity: .55; }
.pb-divider--dots::before { border-top: 3px dotted var(--primary, #de7fa6); }
.pb-divider--wave::before { border: 0; height: 8px; top: calc(50% - 4px); background: radial-gradient(circle at 8px -2px, transparent 6px, var(--primary, #de7fa6) 6.5px, var(--primary, #de7fa6) 8px, transparent 8.5px) 0 0 / 16px 8px repeat-x; opacity: .6; }
.pb-divider--ornament::before { left: 8%; right: 54%; }
.pb-divider--ornament::after { content: "◆"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 10px; color: var(--primary-dark, #c9658f); letter-spacing: 8px; }

.pb-footer { padding: 18px 14px; text-align: center; font-size: 11.5px; line-height: 1.8; opacity: .8; border-top: 1px solid rgba(0,0,0,.08); }
.pb-footer a { color: inherit; text-decoration: underline; }

.pb-nav { position: sticky; top: 0; z-index: 30; display: flex; gap: 8px; overflow-x: auto; padding: 8px 10px; background: var(--pb-nav-bg, rgba(255,255,255,.92)); color: var(--pb-card-ink, #3f2f37); backdrop-filter: blur(6px); border-radius: 999px; box-shadow: 0 4px 14px rgba(75,59,68,.1); scrollbar-width: none; }
.pb-nav::-webkit-scrollbar { display: none; }
.pb-nav:empty { display: none; }
.pb-nav a { flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.05); color: inherit; font-size: 12px; font-weight: 800; text-decoration: none; }
.pb-nav a.is-on { background: var(--primary-dark, #c9658f); color: #fff; }

/* 画像を押すと大きく見られる(profile-parts.js)。 */
.pb-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(8,6,10,.9); cursor: zoom-out; }
.pb-lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; }

/* ---- 編集画面の行 ---- */
.xedit-crow--block { display: flex; flex-direction: column; gap: 6px; align-items: stretch; padding: 24px 40px 12px 12px; }
.xedit-crow--block .xedit-bfield { width: 100%; box-sizing: border-box; border: 1px solid #ecdfe6; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; line-height: 1.5; background: #fff; color: #3f2f37; resize: vertical; }
.xedit-crow--block textarea.xedit-bfield { min-height: 3.4em; overflow: auto; }
.xedit-bhint { font-size: 12px; color: var(--muted, #6f5a64); line-height: 1.5; }
.xedit-bkind { align-self: flex-start; }
.xedit-bkind { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted, #6f5a64); }
.xedit-bimg { display: flex; align-items: center; gap: 10px; }
.xedit-bimg-pick { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; height: 56px; border: 1px dashed #d9bfcc; border-radius: 10px; font-size: 12px; font-weight: 800; color: var(--muted, #6f5a64); cursor: pointer; overflow: hidden; background: #fff8fb; }
.xedit-bimg-pick img { width: 84px; height: 56px; object-fit: cover; display: block; }
.xedit-crow--theme .xedit-theme-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.xedit-crow--theme label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #6b5a62; }
.xedit-crow--theme input[type=color] { width: 34px; height: 26px; padding: 0; border: 1px solid #ecdfe6; border-radius: 6px; background: #fff; }

/* お知らせ(profile-parts.js が、このページの投稿カードから最新の数件を並べる) */
.pb-news { font-size: 13.5px; padding: 14px 16px; border-radius: 14px; background: var(--pb-card-bg, #fff); border: 1px solid var(--pb-card-bd, #f1dde7); color: var(--pb-card-ink, #3f2f37); }
.pb-news-title { font-size: .96em; font-weight: 800; letter-spacing: .14em; color: var(--primary-dark, #c9658f); margin-bottom: 6px; }
.pb-news-list { list-style: none; margin: 0; padding: 0; }
.pb-news-list li { padding: 8px 0; border-top: 1px dashed rgba(0,0,0,.12); }
.pb-news-list li:first-child { border-top: 0; }
.pb-news-list a { display: block; color: inherit; text-decoration: none; }
.pb-news-time { display: block; font-size: .8em; opacity: .6; }
.pb-news-text { display: block; font-size: 1em; line-height: 1.6; }

/* ヘッダー写真が無いとき: 空の枠でなく、名前を載せた色の面(2026-10-13) */
.mypage-cover-fallback { display: flex; align-items: flex-end; box-sizing: border-box; padding: 24px 22px; color: #fff; font-size: 30px; font-weight: 800; letter-spacing: .04em; line-height: 1.25; background: linear-gradient(135deg, var(--primary, #de7fa6), var(--primary-dark, #c9658f)); }
.mypage-cover-fallback span { text-shadow: 0 2px 8px rgba(0,0,0,.25); word-break: break-word; }

/* 追加できる種類が増えて、コンテンツを追加のシートが画面より高くなった(2026-10-13、ユーザー報告
   「スクロールできるようにしないと上の方が見えない」)。シートの中だけで縦に動かせるようにする。
   下から出るシートなので、上へはみ出して見えなくなっていた。 */
.xcmodal-sheet { max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ---- 部品の編集: 行には部品の見本、設定はモーダル(2026-10-13) ---- */
.xedit-bhead { display: flex; align-items: center; gap: 8px; }
.xedit-bedit { appearance: none; border: 1px solid #ecdfe6; background: #fff; border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 11px; font-weight: 800; color: #8a6b76; cursor: pointer; }
.xedit-bpreview { cursor: pointer; pointer-events: auto; border-radius: 12px; outline: none; }
.xedit-bpreview:focus-visible { box-shadow: 0 0 0 2px #b04d78; }
.xedit-bpreview .pb { pointer-events: none; }
.xedit-bpreview .pb-nav { position: static; }
.xedit-bempty { padding: 18px 12px; border: 1px dashed #d9bfcc; border-radius: 12px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted, #6f5a64); background: #fff8fb; }
.xedit-bfaq-q { padding: 12px 0; font-size: 14px; font-weight: 800; }
.xedit-bpreview .pb-faq { padding: 0 14px 6px; }
.xedit-themeprev { padding: 16px 14px; border-radius: 12px; border: 1px solid rgba(0,0,0,.1); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.xedit-themeprev-t { font-size: 16px; font-weight: 800; }
.xedit-themeprev-a { display: inline-block; padding: 4px 12px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 800; }
.xedit-themeprev-h { width: 100%; font-size: 11.5px; color: var(--muted, #6f5a64); }
.xblock-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.xblock-field { display: flex; flex-direction: column; gap: 4px; }
.xblock-label { font-size: 11px; font-weight: 800; color: var(--muted, #6f5a64); letter-spacing: .06em; }
.xblock-fields input[type=text], .xblock-fields textarea, .xblock-fields select { width: 100%; box-sizing: border-box; border: 1px solid #ecdfe6; border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 14px; background: #fff; color: #3f2f37; }
.xblock-fields input[type=color] { width: 44px; height: 30px; padding: 0; border: 1px solid #ecdfe6; border-radius: 6px; background: #fff; }
.xblock-note { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted, #6f5a64); }
.xblock-imgpick { display: flex; align-items: center; justify-content: center; min-height: 90px; border: 1px dashed #d9bfcc; border-radius: 12px; font-size: 13px; font-weight: 800; color: var(--muted, #6f5a64); background: #fff8fb; cursor: pointer; overflow: hidden; }
.xblock-imgpick img { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.xedit-theme-clear { align-self: flex-start; appearance: none; border: 1px solid #ecdfe6; background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 12px; font-weight: 800; color: #6b5a62; cursor: pointer; }

/* 背景画像を設定しているページでは、部品の面も既存のカードと同じ薄い透過にそろえる(2026-10-13)。
   背景画像(.profile-bg)はテーマの背景色の上に出るので、色は画像の下に隠れる。 */
.has-profile-bg .pb-card, .has-profile-bg .pb-price, .has-profile-bg .pb-faq, .has-profile-bg .pb-news {
  background: rgba(255, 255, 255, 0.66); color: #3f2f37; border-color: rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* 背景ボタンの下の「テーマ」ボタン(2026-10-13)。背景ボタン(top:80px・高さ約30px)の下に並べる。
   決めてあるときは色を変えて、開かなくても分かるようにする。 */
.xedit-theme-pick { top: 80px; }   /* 旧「背景」ボタンの場所(統合した) */
.xedit-theme-pick.is-on { background: #b04d78; }

/* テーマのモーダル: 背景のサンプル(2026-10-13) */
/* 背景画像は縦長なので、サンプルの見本も縦向き(9:16)で並べる(2026-10-13、ユーザー指示)。 */
.xblock-bgsamples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.xblock-bgsample { appearance: none; border: 1.5px solid #ecdfe6; border-radius: 12px; aspect-ratio: 9 / 16; width: 100%; padding: 0; position: relative; overflow: hidden; cursor: pointer; font: inherit; }
.xblock-bgsample span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px; font-size: 10.5px; font-weight: 800; text-align: center; background: rgba(255,255,255,.82); color: #4b3b44; }
.xblock-bgsample.is-on { border-color: #b04d78; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #b04d78; }
.xblock-bgimg { display: flex; flex-direction: column; gap: 8px; }

/* 部品の行の Aa / ⇔ は、設定モーダルの中の入口へまとめた(2026-10-13)。ボタン自体は残す(既存の処理が使う)。 */
.xedit-crow--block .xedit-cstyle, .xedit-crow--block .xedit-cwidth { display: none; }
.xblock-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.xblock-action { appearance: none; width: 100%; text-align: left; border: 1px solid #ecdfe6; background: #fff; border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 13.5px; font-weight: 800; color: #6b5a62; cursor: pointer; }
.xblock-action::after { content: "›"; float: right; color: #c4b3bb; }
.xblock-action.is-on { border-color: #b04d78; color: #b04d78; }

/* 設定モーダルの開閉式の項目(見た目 / 幅と位置)。押すとその場で開く(2026-10-13)。 */
.xblock-acc { border: 1px solid #ecdfe6; border-radius: 12px; overflow: hidden; background: #fff; }
.xblock-acc-head { appearance: none; width: 100%; text-align: left; border: 0; background: transparent; padding: 12px 14px; font: inherit; font-size: 13.5px; font-weight: 800; color: #6b5a62; cursor: pointer; }
.xblock-acc-head::after { content: "＋"; float: right; color: #c4b3bb; }
.xblock-acc-head.is-open::after { content: "−"; }
.xblock-acc-head.is-on { color: #b04d78; }
.xblock-acc-body { padding: 4px 10px 10px; border-top: 1px solid #f3e6ec; }
.xblock-acc-body .xstyle-attrs { margin: 0; }

/* 前からある部品の行: Aa / ⇔ は隠し、「⋯」1 つにまとめた(2026-10-13)。位置は Aa があった所。 */
.xedit-crow:not(.xedit-crow--block) .xedit-cstyle,
.xedit-crow:not(.xedit-crow--block) .xedit-cwidth { display: none; }
.xedit-cset { position: absolute; top: 6px; right: 50px; width: 20px; height: 20px; padding: 0; border: none; border-radius: 50%;
  background: rgba(42, 36, 39, 0.10); color: #6f5a64; font-size: 13px; font-weight: 800; line-height: 18px; text-align: center; cursor: pointer; }
.xedit-cset.is-on { background: #d63384; color: #fff; }

/* リンクの入口も「⋯」のモーダルへまとめた(2026-10-13)。行の鎖ボタンとボタンの URL 欄は隠す(入力は残す)。 */
.xedit-crow--text .xedit-ctext-link, .xedit-crow--image .xedit-cimg-link, .xedit-crow--button .xedit-cbtn-url { display: none; }

/* 見た目シートの行は display:flex を持つので、hidden を付けても消えなかった
   (ボタン専用の行が他の部品にも出ていた、2026-10-13)。 */
.xstyle-attr[hidden], .xstyle-chip[hidden], .xstyle-iconthumb[hidden] { display: none; }

/* ボタンのアイコン画像(2026-10-13)。閲覧側の四角と、編集側の小さな四角。 */
.plink-iconbox--img { padding: 0; overflow: hidden; }
.plink-iconbox--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xedit-cbtn-icon { overflow: hidden; }
.xedit-cbtn-icon .xedit-cbtn-icon-img { display: none; width: 100%; height: 100%; object-fit: cover; }
.xedit-cbtn-icon.has-img .xedit-cbtn-icon-img { display: block; }
.xedit-cbtn-icon.has-img svg { display: none; }
.xstyle-iconthumb { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; border: 1px solid #ece4e8; }

/* 見出しに文字色を決めたときは、小さな英字(キッカー)もその色に従う(2026-10-14)。決めていないときは
   従来どおりのアクセント色。背景の濃いページで英字が溶けて読めなかった。 */
.pb-heading[style*="color:"] .pb-kicker { color: inherit; opacity: .72; }
