/* サンプル「出られなかった電話の用件を、メモにして担当へ」専用の見た目。作業報告の sample-report.css を写して接頭辞を ph- に替え、電話の記録・話した人ごとの書き起こし・届ける担当・担当を選ぶ欄を足した。色と書体は main.css の変数を使う */
.ph-page {
  --ph-head: 73px;
  --ph-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  --ph-unsure-ink: #92400E; --ph-unsure-bg: #FEF3C7;
  --ph-sku-ink: #991B1B; --ph-sku-bg: #FEE2E2;
  --ph-over-ink: #9A3412; --ph-over-bg: #FFEDD5;
  --ph-ok-ink: #115E59; --ph-ok-bg: #CCFBF1;
  --ph-muted: #475569;
}
.ph-page *:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 2px; }
.ph-page p { margin: 0; }
:where(.ph-page) :where(button, input, textarea) { font: inherit; color: inherit; }
html:has(#ph-app :focus-visible) { scroll-padding-top: 9.75rem; }
html:has(.ph-finish.is-ready) { scroll-padding-bottom: 10rem; }
.skip-link { top: -5rem; }
.ph-wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); width: 100%; }
.ph-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* トップの「たとえば」節の部品（index.html の #can から写す） */
.can-eyebrow { display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 2vw, .75rem); word-break: auto-phrase; margin: 0 0 1rem !important; font-size: .85rem; font-weight: 600; letter-spacing: .16em; color: var(--cp-primary); text-align: center; }
.can-eyebrow::before, .can-eyebrow::after { content: ""; display: inline-block; flex: none; width: clamp(1rem, 5vw, 2rem); height: 1.5px; background: var(--cp-accent); }
.can-title { font-size: clamp(1.7rem, 3.2vw, 2.8rem); color: var(--cp-primary); line-height: 1.45; text-wrap: balance; word-break: auto-phrase; text-align: center; }
.can-title::after { content: ""; display: block; width: 64px; height: 2px; margin: 1.1rem auto 0; background: var(--cp-accent); }
.can-card__no { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .5rem; background: var(--cp-navy-deep); color: #fff; font-family: var(--ff-display); font-size: 1rem; font-weight: 600; letter-spacing: .06em; border-bottom: 2px solid var(--cp-accent); flex: none; }
.can-invite { position: relative; padding: clamp(1.5rem, 4vw, 3rem); background: var(--cp-white); border: 1px solid var(--cp-line); border-top: 3px solid var(--cp-accent); border-radius: 2px; box-shadow: var(--cp-shadow); }
.can-invite__title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.55; color: var(--cp-primary); text-wrap: balance; word-break: auto-phrase; }
.can-invite__text { margin-top: 1rem !important; font-size: 1rem; line-height: 1.95; text-wrap: pretty; }
.can-cta { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 2rem; width: 100%; background: var(--cp-primary); color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: .06em; text-decoration: none; border-radius: 2px; border-bottom: 2px solid var(--cp-accent); transition: background-color .3s ease, box-shadow .3s ease; word-break: auto-phrase; }
.can-cta:hover { background: var(--cp-navy-deep); box-shadow: var(--cp-shadow); }
.can-cta svg { width: 1.15rem; height: 1.15rem; transition: transform .3s ease; }
.can-cta:hover svg { transform: translateX(3px); }

/* プライバシーポリシーと同じヘッダーの戻るリンクとフッター */
.policy-header__back { font-size: 0.92rem; font-weight: 600; letter-spacing: 0.04em; color: var(--cp-primary); border-bottom: 1px solid currentColor; padding-bottom: 0.1rem; white-space: nowrap; }
.policy-header__back:hover { color: var(--cp-navy-deep); }
.policy-footer .site-footer__inner { grid-template-columns: 1.2fr 1fr 1.1fr; }

/* 説明 */
.ph-intro { padding: clamp(1.75rem, 4vw, 3.25rem) 0 clamp(1.75rem, 3.5vw, 2.5rem); background: radial-gradient(60rem 30rem at 85% -5%, color-mix(in oklab, var(--cp-accent) 12%, transparent), transparent 70%), linear-gradient(180deg, var(--cp-white) 0%, var(--cp-bg) 100%); }
.ph-hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ph-hero .can-eyebrow { justify-content: flex-start; }
.ph-hero .can-eyebrow::before { display: none; }
.ph-hero .can-title { text-align: left; font-size: clamp(1.7rem, 2.9vw, 2.45rem); }
.ph-hero .can-title::after { margin-left: 0; }
.ph-lead { margin: 1.1rem 0 0 !important; font-size: 1.02rem; line-height: 1.9; text-wrap: pretty; }
.ph-lead-act { margin-top: 1.25rem !important; }
.ph-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem 1.25rem; margin: clamp(1.25rem, 3vw, 2rem) 0 0; padding-top: .9rem; border-top: 1px solid var(--cp-line); }
.ph-step { display: flex; align-items: baseline; gap: .55rem; }
.ph-step__no { flex: none; font-family: var(--ff-display); font-size: .95rem; font-weight: 600; letter-spacing: .06em; color: var(--cp-accent-ink); }
.ph-step__text { font-size: .95rem; font-weight: 600; line-height: 1.6; color: var(--cp-text); word-break: auto-phrase; }
.ph-note { margin-top: clamp(1rem, 2.5vw, 1.5rem); padding: .9rem 1.25rem 1rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; }
.ph-note__title { font-size: .98rem; color: var(--cp-primary); margin-bottom: .45rem; }
.ph-note__list { list-style: disc; padding-left: 1.3em; }
.ph-note__list li { font-size: .92rem; line-height: 1.75; margin-bottom: .2em; overflow-wrap: anywhere; }
.ph-note__list li::marker { color: var(--cp-primary); }
.ph-run { margin-top: .55rem !important; font-size: .82rem; line-height: 1.6; color: var(--ph-muted); font-family: var(--ph-sans); }

/* 触ってみる */
.ph-tool { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem); background: var(--cp-cream); border-top: 1px solid var(--cp-line); border-bottom: 1px solid var(--cp-line); }
.ph-tool__title { font-size: clamp(1.35rem, 2.6vw, 1.8rem); color: var(--cp-primary); }
.ph-tool__title:focus { outline: none; }
.ph-tool__lead { margin-top: .25rem !important; font-size: .98rem; color: var(--cp-text); }
.ph-tool__notice { margin-top: .35rem !important; font-size: .9rem; line-height: 1.7; color: var(--cp-text); }
.ph-noscript { margin-top: 1rem !important; padding: 1rem; background: var(--cp-white); border: 1px solid var(--cp-line); }
.ph-app { margin-top: 1rem; }

.ph-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; margin-top: 1rem; }

/* 左: 写真 */
.ph-srccol { position: sticky; top: calc(var(--ph-head) + .75rem); background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; box-shadow: var(--cp-shadow); padding: .75rem; }
.ph-srccol__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.ph-srccol__title { font-size: 1.02rem; color: var(--cp-primary); }

/* 右: 見比べの結果 */
.ph-count { position: sticky; top: var(--ph-head); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; padding: .55rem 1rem; background: var(--cp-navy-deep); color: #fff; border-bottom: 2px solid var(--cp-accent); border-radius: 2px; }
.ph-count__main { display: flex; align-items: baseline; gap: .4rem; min-width: 0; white-space: nowrap; font-weight: 600; font-size: 1rem; }
.ph-count__num { font-family: var(--ph-sans); font-size: 2.1rem; font-weight: 700; line-height: 1.1; color: #fff; }
.ph-count__sub { min-width: 0; font-size: .92rem; color: #cbd5e1; overflow-wrap: anywhere; }
.ph-count__sub b { font-family: var(--ph-sans); font-size: 1.15rem; color: #fff; font-weight: 700; }

/* 直した行を、少しの間だけ色で知らせる */
.is-just-fixed { animation: ph-fixed 2s ease-out; }
@keyframes ph-fixed { 0%, 35% { background-color: var(--ph-ok-bg); } 100% { background-color: var(--cp-white); } }
.ph-diff { margin-top: .25rem !important; font-size: .9rem; color: var(--ph-ok-ink); line-height: 1.6; font-family: var(--ph-sans); overflow-wrap: anywhere; }
.ph-tags { display: flex; flex-wrap: wrap; gap: .3rem .4rem; }
.ph-tags--row .ph-link { min-height: 44px; margin-left: .3rem; }

.ph-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; font-family: var(--ph-sans); font-size: .82rem; font-weight: 700; line-height: 1.6; border: 1px solid currentColor; border-radius: 2px; }
.ph-tag svg { width: .85rem; height: .85rem; flex: none; }
.ph-tag--unsure { color: var(--ph-unsure-ink); background: var(--ph-unsure-bg); }
.ph-tag--ok { color: var(--ph-ok-ink); background: var(--ph-ok-bg); }
.ph-by { font-size: .84rem; color: var(--ph-muted); font-family: var(--ph-sans); align-self: center; }

/* 確かめる所 */
.ph-block { margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--cp-line); scroll-margin: 8rem; }
.ph-block__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .1rem; }
.ph-block__field { font-size: .92rem; font-weight: 600; color: var(--cp-primary); }
.ph-say { margin-top: .5rem !important; font-size: .95rem; line-height: 1.75; overflow-wrap: anywhere; }
.ph-say b { font-family: var(--ph-sans); font-weight: 700; }
.ph-why { margin-top: .15rem !important; font-size: .9rem; color: var(--ph-muted); line-height: 1.7; overflow-wrap: anywhere; font-family: var(--ph-sans); }
.ph-group-label { margin-top: .6rem !important; font-size: .88rem; font-weight: 600; color: var(--cp-text); }
.ph-choices { display: grid; gap: .4rem; margin-top: .35rem; }
.ph-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-width: 0; overflow-wrap: anywhere; min-height: 44px; padding: .45rem .95rem; font-weight: 600; font-size: .95rem; line-height: 1.5; letter-spacing: .02em; border-radius: 2px; border: 1.5px solid var(--cp-primary); background: var(--cp-white); color: var(--cp-primary); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.ph-btn--primary { background: var(--cp-primary); color: #fff; }
.ph-btn--quiet { border-color: var(--cp-line); color: var(--cp-text); font-weight: 500; }
/* タッチの端末で押したあとに濃い色が残らないように */
@media (hover: hover) {
  .ph-btn:hover { background: var(--cp-primary); color: #fff; }
  .ph-btn--primary:hover { background: var(--cp-navy-deep); border-color: var(--cp-navy-deep); }
  .ph-btn--quiet:hover { background: var(--cp-cream); color: var(--cp-text); border-color: var(--cp-muted); }
}
.ph-btn--small { padding-inline: .7rem; font-size: .88rem; white-space: nowrap; }
.ph-btn:disabled, .ph-btn:disabled:hover { background: var(--cp-line); border-color: var(--cp-line); color: var(--ph-muted); cursor: not-allowed; }
.ph-type { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; margin-top: .35rem; }
.ph-input { width: 100%; min-height: 44px; padding: .4rem .65rem; font-family: var(--ph-sans); font-size: 16px; line-height: 1.4; background: #fff; border: 1.5px solid var(--cp-muted); border-radius: 2px; }
.ph-textarea { display: block; min-height: 5.6rem; resize: vertical; }
.ph-type:has(.ph-textarea) { grid-template-columns: minmax(0, 1fr); }
.ph-input[aria-invalid="true"] { border-color: var(--ph-sku-ink); }
.ph-err { margin-top: .3rem !important; font-size: .88rem; font-weight: 600; color: var(--ph-sku-ink); }
.ph-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: var(--cp-primary); font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.ph-link:hover { color: var(--cp-navy-deep); }

/* 行を直す */
.ph-editor { margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--cp-line); }
.ph-editor__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .75rem; margin-top: .5rem; }
.ph-editor__field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .15rem; }
.ph-editor__field--wide { grid-column: 1 / -1; }
.ph-editor__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }

/* 確定 */
.ph-finish { margin-top: .9rem; padding: .9rem 1rem 1rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-top: 3px solid var(--cp-accent); border-radius: 2px; }
.ph-finish.is-ready { position: sticky; bottom: 0; z-index: 4; box-shadow: 0 -6px 18px rgba(15, 23, 42, .12); }
.ph-finish__msg { font-size: .95rem; line-height: 1.75; margin-bottom: .6rem !important; text-wrap: pretty; }
.ph-finish .ph-btn--primary { width: 100%; min-height: 50px; font-size: 1.02rem; }
.ph-done__title { font-size: 1.3rem; color: var(--cp-primary); }
/* 1〜2 字だけ次の行に折れないように */
.ph-done__title, .ph-btn:not(.ph-btn--small), .ph-done__cta, .ph-paper__meta, .ph-done__saved { word-break: auto-phrase; text-wrap: balance; }
.ph-done__title:focus { outline: none; }
.ph-done__lead { margin-top: .35rem !important; font-size: .95rem; line-height: 1.75; }
.ph-tablewrap { overflow-x: auto; margin-top: .75rem; background: var(--cp-white); border: 1px solid var(--cp-line); -webkit-overflow-scrolling: touch; }
.ph-table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.6; font-family: var(--ph-sans); }
.ph-table th, .ph-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--cp-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.ph-table thead th { background: var(--cp-cream); color: var(--cp-text); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.ph-table tr:last-child td { border-bottom: 0; }
.ph-table .is-num { text-align: right; white-space: nowrap; }
.ph-tnote { display: block; font-size: .86em; color: var(--ph-muted); }
.ph-done__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.ph-done__actions .ph-btn--primary { flex: 1 1 100%; min-height: 50px; font-size: 1.02rem; }
.ph-done__saved { margin-top: .5rem !important; font-size: .9rem; color: var(--ph-ok-ink); font-weight: 600; font-family: var(--ph-sans); overflow-wrap: anywhere; }
.ph-done__next { margin-top: .85rem !important; padding-top: .75rem; border-top: 1px solid var(--cp-line); font-size: .92rem; line-height: 1.8; }
.ph-done__cta { margin-top: .6rem; min-height: 44px; }
.ph-reset { margin-top: 1rem; text-align: right; }

.ph-paper { position: relative; margin-top: .75rem; padding: .9rem 1rem 1rem; background: #fff; border: 1px solid var(--cp-line); font-family: var(--ph-sans); }
.ph-paper__mark { position: absolute; right: .75rem; top: .75rem; padding: .05rem .5rem; border: 1px solid var(--cp-text); font-size: .79rem; font-weight: 700; }
.ph-paper__title { font-size: 1.15rem; font-weight: 700; letter-spacing: .08em; padding-right: 8.5rem; }
.ph-paper__meta { margin-top: .35rem !important; font-size: .86rem; color: var(--ph-muted); overflow-wrap: anywhere; }
/* 狭い画面では札を題の上に置き、題が言葉の途中で折れないようにする */
@media (max-width: 400px) {
  .ph-paper__mark { position: static; display: inline-block; margin-bottom: .35rem !important; }
  .ph-paper__title { padding-right: 0; }
}
.ph-table tbody tr:last-child td { border-bottom: 1px solid var(--cp-line); }

/* 相談へ */
.ph-next { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.ph-next__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.5rem; }
.ph-next__actions .can-cta { width: auto; flex: 0 1 auto; }
.ph-next__sub { min-height: 44px; }

@media (max-width: 1024px) {
  .ph-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .ph-note__list { columns: 2; column-gap: 2.5rem; }
  .ph-note__list li { break-inside: avoid; }
}
@media (max-width: 860px) {
  .ph-hero { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .ph-fig { min-height: 0; }
}
@media (max-width: 900px) {
  .ph-panel { grid-template-columns: minmax(0, 1fr); }
  .ph-srccol { position: static; box-shadow: none; padding: .65rem .75rem; }
}
@media (max-width: 768px) {
  .policy-footer .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ph-page { --ph-head: 63px; }
  .ph-table { font-size: .86rem; }
  .ph-table th, .ph-table td { padding: .5rem .4rem; }
  .policy-footer .site-footer__inner { grid-template-columns: 1fr; }
  .ph-lead { text-align: left; }
  .ph-steps { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .ph-step__text { font-size: .92rem; }
  .ph-hero .can-eyebrow { margin-bottom: .6rem !important; }
  .ph-note { padding: .85rem .9rem .9rem; }
  .ph-tool { padding-top: 1.1rem; scroll-margin-top: -1.25rem; }
  .ph-app { margin-top: .75rem; }
  .ph-count { padding: .35rem .75rem; gap: 0 .5rem; }
  .ph-count__main { font-size: .92rem; gap: .25rem; }
  .ph-count__sub { font-size: .86rem; }
  .ph-finish.is-ready { padding: .6rem .75rem .7rem; }
  .ph-finish.is-ready .ph-finish__msg { font-size: .88rem; line-height: 1.6; margin-bottom: .4rem !important; }
  .ph-count__num { font-size: 1.7rem; }
  .ph-choices--2 { grid-template-columns: minmax(0, 1fr); }
  .ph-editor__grid { grid-template-columns: minmax(0, 1fr); }
  .ph-next__actions .can-cta, .ph-next__sub { width: 100%; }
  .ph-reset { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .is-just-fixed { animation: none; }
  .can-cta:hover svg { transform: none; }
}
@media (max-width: 340px) {

  .ph-tool__lead { display: none; }
  .ph-count__co { display: none; }
  .ph-done__cta { padding-inline: .5rem; letter-spacing: 0; }
}
/* 高さの低い画面では、下の確定の帯を固定しない（上の帯と合わせて画面を塞ぐので） */
@media (max-height: 700px) {
  .ph-finish.is-ready { position: static; box-shadow: none; }
  html:has(.ph-finish.is-ready) { scroll-padding-bottom: 1rem; }
}
/* 横向きなど高さのない画面では、固定の帯で作業の場所が狭くならないようにする */
@media (max-height: 500px) {
  .site-header, .ph-count { position: static; }
  html:has(#ph-app :focus-visible) { scroll-padding-top: 1rem; }
}
/* 見出しの近くの図 */
.ph-fig { margin: 0; padding: .85rem .95rem .95rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; box-shadow: var(--cp-shadow); }
.ph-fig__cap { font-size: .9rem; font-weight: 600; color: var(--cp-primary); margin-bottom: .4rem !important; line-height: 1.6; }

.ph-table td { white-space: normal; }


/* ---------- ここから作業報告の形（作業報告の CSS から写したもの。報告書は電話のメモに読み替える） ---------- */
/* 左: 録音 */
.ph-srccol__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; }
.ph-srccol__when { font-family: var(--ph-sans); font-size: .84rem; font-weight: 500; color: var(--ph-muted); }
.ph-srccol__note { margin-top: .5rem !important; font-size: .9rem; color: var(--ph-muted); font-family: var(--ph-sans); line-height: 1.6; }
.ph-audio { display: block; width: 100%; min-height: 44px; }
.ph-heard { margin-top: .65rem; padding: .6rem .75rem; background: var(--cp-cream); border: 1px solid var(--cp-line); border-radius: 2px; }
.ph-heard__cap { font-size: .82rem; font-weight: 700; color: var(--cp-primary); font-family: var(--ph-sans); }
.ph-heard__hint { font-size: .8rem; color: var(--ph-muted); font-family: var(--ph-sans); line-height: 1.5; }
.ph-heard__text { margin-top: .25rem !important; max-height: 15rem; overflow-y: auto; font-family: var(--ph-sans); font-size: .9rem; line-height: 1.8; overflow-wrap: anywhere; }
.ph-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin-top: .65rem; }
.ph-strip__btn { display: grid; gap: .1rem; min-height: 52px; padding: .35rem .45rem; border: 2px solid var(--cp-line); border-radius: 2px; background: #fff; color: var(--cp-text); text-align: left; cursor: pointer; font-family: var(--ph-sans); }
.ph-strip__btn.is-current { border-color: var(--cp-accent); box-shadow: 0 0 0 2px var(--cp-accent); }
.ph-strip__no { font-size: .86rem; font-weight: 700; color: var(--cp-primary); }
.ph-strip__state { font-size: .79rem; color: var(--ph-muted); line-height: 1.4; }
.ph-strip__btn.is-confirmed .ph-strip__state { color: var(--ph-ok-ink); font-weight: 700; }
@media (hover: hover) { .ph-strip__btn:hover { border-color: var(--cp-accent); } }

/* 右: 報告書の下書き */
.ph-memo { margin-top: .75rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; padding: .8rem .95rem .95rem; }
.ph-memo.has-marks { border-left: 4px solid var(--cp-primary); box-shadow: var(--cp-shadow); }
.ph-memo__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem .75rem; }
.ph-memo__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; font-weight: 700; font-size: 1.02rem; color: var(--cp-primary); }
.ph-memo__who { font-family: var(--ph-sans); font-size: .84rem; font-weight: 500; color: var(--ph-muted); }
.ph-vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem .6rem; margin: .55rem 0 0; font-family: var(--ph-sans); font-size: .9rem; line-height: 1.55; }
.ph-val { min-width: 0; padding: .2rem .45rem; border-left: 3px solid var(--cp-line); }
.ph-val dt { font-size: .79rem; color: var(--ph-muted); font-weight: 600; }
.ph-val dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; word-break: auto-phrase; }
.ph-val--wide { grid-column: 1 / -1; }
.ph-val.is-marked { border-left-color: var(--ph-sku-ink); background: var(--ph-sku-bg); }
.ph-val.is-marked.is-sel { box-shadow: 0 0 0 2px var(--cp-accent); }
.ph-match { margin-top: .45rem !important; font-size: .9rem; color: var(--ph-ok-ink); font-family: var(--ph-sans); }
.ph-accepted { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .2rem .4rem; margin-right: .6rem; }
.ph-memo .ph-tags--row { margin-top: .45rem; align-items: center; }
.ph-play { flex: none; }
.ph-play svg { width: .95rem; height: .95rem; flex: none; }
.ph-play[aria-pressed="true"] { background: var(--cp-primary); color: #fff; }

/* 印の色 */
.ph-tag--find { color: var(--ph-sku-ink); background: var(--ph-sku-bg); }
.ph-tag--diff { color: var(--ph-over-ink); background: var(--ph-over-bg); }

/* 確定のあとの報告書 */
.ph-paper .ph-table { margin-top: .6rem; }
.ph-table th[scope="row"] { width: 7.5em; background: var(--cp-cream); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.ph-table tr.is-marked td { color: var(--ph-over-ink); font-weight: 600; }
.ph-tnote { display: block; margin-top: .2rem; font-size: .82rem; font-weight: 500; color: var(--ph-muted); }
.ph-done__all { margin-top: .5rem !important; font-size: .92rem; font-weight: 600; color: var(--ph-ok-ink); }

/* 見出しの近くの図 */
.ph-fig__heard { padding: .5rem .65rem; background: var(--cp-cream); border: 1px solid var(--cp-line); font-family: var(--ph-sans); font-size: .86rem; line-height: 1.75; overflow-wrap: anywhere; }
.ph-fig__arrow { text-align: center; color: var(--cp-accent-ink); font-weight: 700; line-height: 1.4; margin: .2rem 0 !important; }
.ph-fig__tablewrap { overflow-x: auto; border: 1px solid var(--cp-line); }
.ph-fig__table { width: 100%; border-collapse: collapse; font-family: var(--ph-sans); font-size: .84rem; line-height: 1.5; }
.ph-fig__table th, .ph-fig__table td { padding: .3rem .45rem; border-top: 1px solid var(--cp-line); text-align: left; vertical-align: top; }
.ph-fig__table thead th { border-top: 0; background: var(--cp-cream); font-size: .79rem; white-space: nowrap; }
.ph-fig__table td { overflow-wrap: anywhere; }
.ph-fig__table td:first-child { white-space: nowrap; }
/* 作業日と始めた時刻は途中で折らない（お客様の列だけ折れる） */
.ph-fig__table td.ph-fig__nowrap { white-space: nowrap; overflow-wrap: normal; }
.ph-fig__table td.is-marked { background: var(--ph-over-bg); }
.ph-fig__marksrow td { border-top: 0; padding-top: 0; }
.ph-fig__markline { display: block; font-size: .79rem; line-height: 1.7; }
.ph-fig__markline + .ph-fig__markline { margin-top: .2rem; }
.ph-fig__markline .ph-tag { font-size: 13px; padding: 0 .35rem; white-space: nowrap; }
.ph-fig__note { margin: -.2rem 0 .4rem !important; font-family: var(--ph-sans); font-size: .82rem; color: var(--ph-muted); line-height: 1.6; }
.ph-fig__more { margin-top: .4rem !important; font-family: var(--ph-sans); font-size: .8rem; color: var(--ph-muted); line-height: 1.6; }

@media (max-width: 900px) {
  .ph-heard__text { max-height: 9rem; }
}
@media (max-width: 560px) {
  .ph-vals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-memo { padding: .7rem .75rem .85rem; }
  .ph-block__top { flex-wrap: wrap; }
  .ph-strip__btn { padding: .3rem .35rem; }
}
@media (max-width: 360px) {
  .ph-vals { grid-template-columns: minmax(0, 1fr); }
}


/* ---------- ここから電話の形 ---------- */
.ph-log { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .75rem; margin: 0 0 .25rem; font-family: var(--ph-sans); font-size: .88rem; }
.ph-log dt { font-size: .79rem; font-weight: 600; color: var(--ph-muted); }
.ph-log dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ph-out { display: inline-block; margin-left: .4rem; padding: 0 .4rem; font-size: .79rem; font-weight: 700; color: var(--ph-over-ink); background: var(--ph-over-bg); border: 1px solid currentColor; border-radius: 2px; }
.ph-log__note { margin: 0 0 .55rem !important; font-size: .9rem; color: var(--ph-muted); font-family: var(--ph-sans); line-height: 1.6; }
.ph-turns { list-style: none; margin: .3rem 0 0; padding: 0; max-height: 17rem; overflow-y: auto; font-family: var(--ph-sans); font-size: .9rem; line-height: 1.7; }
.ph-turn { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .4rem; padding: .25rem 0; border-top: 1px dashed var(--cp-line); }
.ph-turn:first-child { border-top: 0; }
.ph-turn__who { font-size: .79rem; font-weight: 700; text-align: center; padding: .05rem 0; border-radius: 2px; align-self: start; }
.ph-turn--desk .ph-turn__who { color: var(--cp-primary); background: #E0E7FF; }
.ph-turn--caller .ph-turn__who { color: var(--ph-ok-ink); background: var(--ph-ok-bg); }
.ph-turn__text { overflow-wrap: anywhere; }
.ph-strip__when { font-size: .79rem; color: var(--ph-muted); line-height: 1.3; }
.ph-staff { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; margin-top: .5rem !important; padding: .35rem .5rem; background: var(--cp-cream); border-left: 3px solid var(--cp-accent); font-family: var(--ph-sans); font-size: .92rem; }
.ph-staff__label { font-size: .79rem; font-weight: 600; color: var(--ph-muted); }
.ph-staff b { font-size: 1.02rem; }
.ph-staff.is-none { border-left-color: var(--ph-sku-ink); background: var(--ph-sku-bg); }
.ph-tags { flex-direction: column; align-items: flex-start; gap: .35rem; }
.ph-tags--row { flex-direction: row; flex-wrap: wrap; }
.ph-tagpair { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem .45rem; }
.ph-select { appearance: auto; background: #fff; }
.ph-fig__heard { list-style: none; margin: 0; padding: .45rem .65rem; background: var(--cp-cream); border: 1px solid var(--cp-line); font-family: var(--ph-sans); font-size: .9rem; line-height: 1.7; overflow-wrap: anywhere; }
.ph-fig__heard li + li { margin-top: .15rem; }
@media (max-width: 900px) {
  .ph-turns { max-height: 15rem; }
}
/* 高さの低い PC では、左の欄の下のタブまで画面に入れる */
@media (min-width: 901px) and (max-height: 800px) {
  .ph-turns { max-height: 9rem; }
}
@media (max-width: 560px) {
  .ph-log { grid-template-columns: minmax(0, 1fr); }
  .ph-strip__btn { min-height: 64px; }
}
/* 狭い画面では「通話 N」を行の見出しとして上に置き、残り 3 列を 1 行に入れる（番号は折らない） */
@media (max-width: 400px) {
  .ph-fig { padding-inline: .7rem; }
  .ph-fig__table, .ph-fig__table thead, .ph-fig__table tbody { display: block; }
  .ph-fig__table tr { display: grid; grid-template-columns: minmax(0, 1fr) 7.6em 3.2em; column-gap: .4rem; padding-inline: .35rem; border-top: 1px solid var(--cp-line); }
  .ph-fig__table thead tr { border-top: 0; background: var(--cp-cream); }
  .ph-fig__table tr.ph-fig__marksrow { display: block; border-top: 0; padding-bottom: .25rem; }
  .ph-fig__table th, .ph-fig__table td { padding: .2rem 0; border-top: 0; min-width: 0; }
  .ph-fig__table thead th:first-child { display: none; }
  .ph-fig__table td:first-child { grid-column: 1 / -1; font-weight: 700; padding-bottom: 0; }
  .ph-fig__table thead th { white-space: normal; word-break: auto-phrase; line-height: 1.3; }
  .ph-fig__table .ph-fig__marksrow td:first-child { font-weight: 400; padding-top: 0; }
  .ph-hero .can-eyebrow { letter-spacing: .08em; text-align: left; }
  .ph-hero .can-eyebrow::after { display: none; }
  .ph-type { grid-template-columns: minmax(0, 1fr); }
  .ph-textarea { min-height: 6.8rem; }
  .ph-fig__table td.is-marked { padding-inline: .2rem; margin-inline: -.2rem; }
}

/* 全サンプル共通の整え（2026-11-06）: 最後の行に 1〜2 字だけ残さない・語の途中で折らない。押す所は 44px。word-break は Safari で効かないので、数字や日付など絶対に割りたくない所は nowrap の span にする */
main { text-wrap: pretty; }
main :where(p, li, h1, h2, h3, h4, dd, dt, figcaption, button, a, label, summary, caption) { word-break: auto-phrase; overflow-wrap: break-word; }
.policy-header__back { display: inline-flex; align-items: center; min-height: 44px; margin-block: -3px; }
.site-header .brand { min-height: 44px; margin-block: -3px; }
.policy-footer .site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* このサンプルの 3 周目（2026-11-06） */
/* 番号・日付・札の言葉は途中で折らない（JS が nowrap の span に入れる） */
.ph-nb { white-space: nowrap; }
/* 小さい字（っ・ゃ）と長音（ー）を行の頭に置かない。Safari は word-break:auto-phrase が効かないので、これで守る */
.ph-page { line-break: strict; }
/* 流れの 4 行は語の切れ目（html の wbr）だけで折る。nowrap の span は境目に Safari の代わりの WebKit ですき間が出た */
.ph-step__text { word-break: keep-all; }
.ph-table td { word-break: auto-phrase; }
/* タブの日時は pretty だと Safari で 3 行に増えてタブが高くなるので、ふつうの折り返しに戻す */
.ph-strip__when, .ph-strip__state { text-wrap: wrap; }
/* ロゴが 48px ある幅では高さの指定は要らない。負の余白でヘッダーが 6px 低くなり、帯を止める位置（--ph-head）とずれるので戻す */
@media (min-width: 561px) {
  .site-header .brand { min-height: 0; margin-block: 0; }
}
/* 確定のあとの表は 3 行以上続く所があるので、説明と同じ字の大きさにする */
@media (max-width: 560px) {
  .ph-table { font-size: .9rem; }
  .ph-tnote { font-size: .9rem; }
}
/* 狭い画面では欄の名前を値の上に置き、値を横いっぱいに読めるようにする */
@media (max-width: 460px) {
  .ph-paper .ph-table, .ph-paper .ph-table tbody, .ph-paper .ph-table tr, .ph-paper .ph-table th, .ph-paper .ph-table td { display: block; width: auto; }
  .ph-paper .ph-table th[scope="row"] { padding: .2rem .5rem; border-bottom: 0; }
  .ph-paper .ph-table td { padding: .3rem .5rem .45rem; }
}

/* Safari（auto-phrase が効かない）では text-wrap の pretty / balance と wbr・nowrap が重なると同じ字が 2 回描かれるので、折り方を普通に戻す（2026-11-07） */
@supports not (word-break:auto-phrase){main,main *,.policy-footer,.policy-footer *{text-wrap-style:auto!important}}
/* Safari（auto-phrase が効かない）は語の途中で折らない。折れる所は html と JS が入れた wbr と空白だけで、幅に入らない長い語だけ端で折る（2026-11-07） */
@supports not (word-break:auto-phrase) {
  main, main *, .policy-footer p { word-break: keep-all; }
  main, .policy-footer p { overflow-wrap: break-word; }
  main input, main textarea { word-break: normal; }
  /* nowrap の span と wbr が重なると WebKit で同じ字が 2 回描かれる。Safari では nowrap を使わず、JS が入れた折れない空白と keep-all で守る */
  .ph-nb { white-space: normal; }
}
/* 押した「その所を聞く」の下に出す、録音を読み込めなかったときの知らせ */
.ph-audio-err { margin-top: .35rem !important; }
