/* 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-soft .chips { gap: 4px 0; }
.prof-soft .chip { min-height: 0; padding: 0; background: none; box-shadow: none; font-weight: 700; color: var(--ink); }
.prof-soft .chip:not(:last-child)::after { content: "/"; margin: 0 10px; font-weight: 400; color: var(--sky-deep); }
.prof-sns { flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-top: 4px; margin-left: 0; } /* スマホのフッター用 .sns { margin-left: auto } で右に寄らないように */
.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-body { border-top: 1.5px solid var(--sky-soft); }
.w-year { border-bottom: 1.5px solid var(--sky-soft); }
.w-year-t { display: flex; align-items: center; gap: 12px; padding: 18px 4px; cursor: pointer; list-style: none; }
.w-year-t::-webkit-details-marker { display: none; }
.w-year-t:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 2px; border-radius: 8px; }
.w-year-n { font-family: var(--f-en); font-size: 22px; font-weight: 600; letter-spacing: .04em; color: var(--brown); }
.w-year-ico { position: relative; width: 18px; height: 18px; margin-left: auto; flex: none; }
.w-year-ico::before, .w-year-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: var(--sky-deep); transform: translate(-50%, -50%); transition: transform .25s var(--ease-pop); }
.w-year-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.w-year[open] .w-year-ico::after { transform: translate(-50%, -50%) rotate(0deg); }
.w-year-t:hover .w-year-n { color: var(--sky-deep); }
.w-year-b { padding: 0 4px 18px; }
.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 0 0 1.3em; list-style: disc; }
.w-clients li { padding: 3px 0; font-size: 15px; line-height: 1.8; color: var(--ink); overflow-wrap: anywhere; }
.w-clients li::marker { color: var(--sky-deep); }
@media (max-width: 767px) { .w-clients li { font-size: 14px; } }

/* ---------- 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; }

/* 料金シミュレーターへの入口のカード（js/pages.js） */
a.card.p-sim { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 260px; padding: 32px 24px; text-align: center; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, var(--sky-pale), var(--egg-soft)); border-color: var(--sky-soft); }
.p-sim-ico svg { width: 52px; height: 52px; color: var(--sky-deep); display: block; }
.p-sim-t { font-size: 20px; font-weight: 700; color: var(--brown); }
.p-sim-s { max-width: 22em; font-size: 14px; line-height: 1.8; color: var(--ink-soft); word-break: auto-phrase; }
.p-sim .btn { margin-top: 6px; }

/* ---------- PRICE 2026-11 案3: 横長の 1 行ずつ（js/pages.js の price） ---------- */
.p-rows { display: flex; flex-direction: column; max-width: 1040px; margin: 0 auto; }
.p-row { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: start; padding: 32px 0; border-bottom: 2px dotted #7cc4e8; }
.p-row:first-child { padding-top: 0; }
.p-row.no-media { grid-template-columns: minmax(0, 1fr); }
.p-row-m .pg-tiles { margin: 0; }
.p-row-m .pg-tiles.is-multi > .pg-media { max-height: 460px; }
.p-row-t { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 4px; }
.p-row-t .h3 { margin: 0; font-size: 19px; line-height: 1.5; color: var(--brown); }
.p-row-t .price-num { margin-top: -4px; font-size: 30px; line-height: 1.2; }
.p-opts { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.p-opt { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; line-height: 1.7; }
.p-opt-n { min-width: 0; }
.p-opt-dots { flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted var(--sky-soft); transform: translateY(-5px); }
.p-opt-v { flex: none; white-space: nowrap; font-weight: 700; color: var(--brown); }
.p-nt { margin-top: 2px; }
.p-nt > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; color: var(--sky-deep); }
.p-nt > summary::-webkit-details-marker { display: none; }
.p-nt > summary::before { content: ""; width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; transition: transform .2s; }
.p-nt[open] > summary::before { transform: rotate(90deg); }
.p-nt .p-notes { margin: 6px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--sky-mist); }
.p-row-t .p-link { align-self: flex-start; margin-top: 6px; }
/* 料金シミュレーター: 最後に横長の帯で */
.p-rows > a.card.p-sim { margin-top: 32px; min-height: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 18px; padding: 26px 24px; }
.p-rows > a.card.p-sim .p-sim-s { max-width: 26em; }
@media (max-width: 767px) {
  .p-row { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 26px 0; }
  .p-row-t .price-num { font-size: 26px; }
  .p-opt { font-size: 14px; }
  .p-rows > a.card.p-sim { flex-direction: column; }
}

/* 料金表の補足（2026-11）: 見出しにお花、開いたら見出しを水色に */
.p-acc[open] > .acc-t { background: var(--sky-mist); }
.p-acc .acc-b { padding: 16px 20px 18px; }
.p-acc { overflow: hidden; }

/* ---- プロフィールシート（PDF）。ボタンはカードの下。シートは印刷のときだけ出る（A4・1 枚） ---- */
.prof-dl { max-width: 760px; margin: 20px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.prof-dl-b { gap: 10px; padding-left: 12px; box-shadow: inset 0 0 0 2px var(--sky), 0 10px 22px -16px rgba(108, 188, 227, .9); }
.prof-dl-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sky-pale); color: var(--sky-deep); }
.prof-dl .note { margin: 0; flex: 1 1 260px; }
.ps-sheet { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body > *:not(main), main > *:not(.ps-sheet), .skip-link { display: none !important; }
  html, body { background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-sheet { display: block; }
  .ps { width: 210mm; height: 296mm; overflow: hidden; display: flex; flex-direction: column; color: #4a443d; font-size: 9.5pt; line-height: 1.7; }
  .ps-top { display: flex; align-items: center; gap: 9mm; padding: 14mm 14mm 6mm; background: linear-gradient(180deg, #eaf6fc, #fff); }
  .ps-ico { width: 42mm; height: 42mm; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2.4mm #fff; flex: none; }
  .ps-ruby { font-family: var(--f-en); font-size: 10pt; font-weight: 600; letter-spacing: .2em; color: #4da6d6; text-transform: uppercase; }
  .ps-name { font-size: 26pt; font-weight: 700; line-height: 1.25; color: #69625a; }
  .ps-job { font-size: 10pt; color: #7a7268; }
  .ps-catch { display: inline-block; margin-top: 3mm; padding: 1mm 5mm; border-radius: 999px; background: #ffe9a8; font-size: 10pt; font-weight: 700; color: #69625a; }
  .ps-h { display: flex; align-items: center; gap: 3mm; margin: 0 0 2mm; font-family: var(--f-en); font-size: 10.5pt; font-weight: 600; letter-spacing: .22em; color: #4da6d6; }
  .ps-h::after { content: ""; flex: 1; height: .5mm; background: #cfeaf8; }
  .ps-mid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8mm; padding: 2mm 14mm 0; }
  .ps-about { margin: 0; font-size: 9pt; line-height: 1.85; white-space: pre-line; }
  .ps-chips { display: flex; flex-wrap: wrap; gap: 1.6mm; margin: 0 0 4mm; }
  .ps-chips span { padding: .3mm 3.6mm; border-radius: 999px; background: #eaf6fc; color: #2c7aa8; font-size: 8.5pt; font-weight: 700; }
  .ps-works { padding: 5mm 14mm 0; }
  .ps-hl { margin: 0 0 4mm; padding-left: 5mm; columns: 2; column-gap: 8mm; font-size: 8.5pt; line-height: 1.75; }
  .ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
  .ps-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2.5mm; }
  .ps-foot { margin: auto 14mm 11mm; padding: 5mm 7mm; border-radius: 5mm; background: #fff; box-shadow: inset 0 0 0 .9mm #a2d8f2; display: grid; grid-template-columns: auto 1fr; gap: 1mm 8mm; align-items: center; }
  .ps-foot-name { padding-right: 8mm; border-right: .6mm dashed #cfeaf8; }
  .ps-foot-name b { display: block; font-size: 15pt; line-height: 1.3; color: #69625a; }
  .ps-foot-name span { font-size: 8pt; color: #7a7268; }
  .ps-foot-list { display: grid; gap: 1mm; }
  .ps-foot-row { display: flex; align-items: center; gap: 3mm; font-size: 10.5pt; }
  .ps-foot-lb { width: 14mm; font-family: var(--f-en); font-size: 8.5pt; font-weight: 600; letter-spacing: .18em; color: #4da6d6; }
  .ps-foot-v { font-family: var(--f-en); font-weight: 600; letter-spacing: .03em; color: #4a443d; }
  .ps-date { grid-column: 1 / -1; text-align: right; font-size: 8pt; color: #7a7268; }
}
