/* pages.css — PROFILE / WORKS / PRICE 共通。base.css・ui.css の次に読む。 */

/* ---------- 画像・動画（WORKS の主な実績・PRICE のカード） ---------- */
.pg-media { margin: -6px -8px 14px; border-radius: 16px; overflow: hidden; background: var(--sky-pale); }
.pg-media img, .pg-media video { display: block; width: 100%; height: auto; }
/* WORKS の主な実績: 絵の縦横が違っても同じ 16:9 の枠に収め、余りは同じ絵のぼかしで埋める（切り抜かない） */
.pg-frame { position: relative; aspect-ratio: 16 / 9; }
.pg-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pg-frame .pg-bg { object-fit: cover; filter: blur(18px); transform: scale(1.15); opacity: .7; }
/* 料金表のタイル。1 枚なら幅いっぱい。2 枚以上は横に並べ、横幅を縦横比（--ar・JS が付ける）に比例させて高さをそろえる（スマホでも横並び。縦 1 列だと絵だけで画面が埋まるため） */
.pg-tiles { display: grid; gap: 8px; margin: -6px -8px 14px; }
.pg-tiles.is-multi { display: flex; align-items: flex-start; }
.pg-tiles.is-multi > .pg-media { flex: var(--ar, 1.7778) 1 0%; min-width: 0; }
.pg-tiles .pg-media { margin: 0; }
/* 縦並び（layout: "stack"）: 1 列に積み、各タイルをカードの幅いっぱいにする */
.pg-tiles.is-stack > .pg-media { width: 100%; }

/* ---------- PROFILE ---------- */
.prof-card { max-width: 760px; margin: 0 auto; padding: 32px 36px; }
.prof-in { display: flex; align-items: flex-start; gap: 32px; }
.prof-ico { flex: none; }
.prof-ico .avatar { width: 188px; height: 188px; }
.prof-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.prof-name { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--brown); }
.prof-info .en-sub { margin-top: -10px; }
.prof-job { font-size: 14px; color: var(--ink-soft); }
.prof-catch { margin: 0; font-weight: 700; }
.prof-row { display: flex; flex-direction: column; gap: 6px; }
.prof-lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-soft); }
.prof-row .chips { margin: 0; padding: 0; list-style: none; }
.prof-sns { flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.prof-sns a { width: auto; height: auto; min-width: 36px; min-height: 36px; max-width: 100%; padding: 6px 16px 6px 13px; border-radius: 999px; gap: 7px; grid-auto-flow: column; justify-content: start; background: var(--sky); box-shadow: none; color: #fff; }
.prof-sns a:hover { background: var(--sky-deep); transform: translateY(-2px); }
.prof-sns .prof-sns-t { min-width: 0; font-family: var(--f-ja); font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: .04em; overflow-wrap: anywhere; }
.prof-about { max-width: 760px; margin: 0 auto; gap: 30px; }
.prof-about .h2 { margin-bottom: 12px; }
@media (max-width: 767px) {
  .prof-card { padding: 24px 18px; }
  .prof-in { flex-direction: column; align-items: center; gap: 20px; }
  .prof-ico .avatar { width: 148px; height: 148px; }
  .prof-info { width: 100%; }
}

/* ---------- WORKS ---------- */
.w-card { display: flex; flex-direction: column; gap: 4px; }
.w-card .h3 { font-size: 17px; margin-bottom: 4px; }
.w-card .link-arrow { margin-top: 8px; }
.w-meta { font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.w-years { margin-bottom: 26px; }
.w-year + .w-year { margin-top: 28px; }
.w-year .h3 { font-family: var(--f-en); font-size: 20px; letter-spacing: .04em; color: var(--brown); padding-bottom: 6px; border-bottom: 1.5px dashed var(--sky-soft); margin-bottom: 8px; }
.w-rows li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.w-rows .chip-sm { flex: none; align-self: center; }
.w-text { flex: 1 1 14em; min-width: 0; overflow-wrap: anywhere; }
.w-rows .link-arrow { flex: none; font-size: 13px; }
.w-clients { margin: 0; padding: 0; list-style: none; }
.w-clients .chip { white-space: normal; min-height: 34px; padding: 8px 15px; line-height: 1.4; }

/* ---------- PRICE ---------- */
.p-card { display: flex; flex-direction: column; gap: 10px; }
.p-card .h3 { font-size: 17px; margin: 0; }
.p-card .price-num { line-height: 1.2; }
.p-actions { margin-top: 24px; }
.p-card .list { padding-left: 1.2em; }
.p-card .list li { margin: 2px 0; font-size: 14px; line-height: 1.7; }
.p-notes { margin-top: 2px; }
/* カード最下部のリンクボタン（余りの高さを上に回して下端にそろえ、中央に置く） */
.p-card .p-link { margin-top: auto; align-self: center; }
.p-notes li { font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); }
.p-est { padding: 14px 20px; border-radius: 22px; background: var(--white); border: 1.5px solid var(--line-soft); box-shadow: var(--sh-card); }
.p-est .tbl th { width: 55%; color: var(--ink); }
.p-est .tbl tr:last-child th, .p-est .tbl tr:last-child td { border-bottom: 0; }
.p-est .tbl td { font-family: var(--f-en); font-weight: 600; font-size: 15px; letter-spacing: .02em; color: var(--brown); white-space: nowrap; }
.p-est .note { margin: 6px 0 4px; }
@media (max-width: 767px) {
  .p-est { padding: 8px 14px; border-radius: 18px; }
  .p-est .tbl th { width: auto; white-space: normal; }
  .p-est .tbl td { white-space: normal; }
  .prof-about { gap: 24px; }
}

.prof-about .list, .p-card .list { list-style: disc; }
