/* Scoped video placements. Existing service, intake and player styles stay independent. */
.cv-section {
  --cv-ink: #18252e;
  --cv-muted: #5b666d;
  --cv-line: #dcdedb;
  --cv-red: #9d2533;
  --cv-stage: #10212e;
  margin-block: 38px;
  padding-block: 26px;
  border-block: 1px solid var(--cv-line);
  color: var(--cv-ink);
  scroll-margin-top: 100px;
  min-width: 0;
}
.cv-section *, .cv-section *::before, .cv-section *::after { box-sizing: border-box; }
.cv-section [hidden] { display: none !important; }
.cv-section :is(a, button, summary, video):focus-visible { outline: 3px solid #377c9d; outline-offset: 4px; }
.cv-section :is(a, button, summary) { touch-action: manipulation; }
.cv-section .cv-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.cv-section .cv-eyebrow { display: block; color: var(--cv-red); font-size: .76rem; font-weight: 750; letter-spacing: .1em; margin: 0 0 9px; }
.cv-section .cv-header h2 { font-size: clamp(1.42rem, 2.4vw, 1.95rem); line-height: 1.55; margin: 0; letter-spacing: .01em; }
.cv-section .cv-header p { max-width: 460px; margin: 0; font-size: .89rem; color: var(--cv-muted); line-height: 1.9; }
.cv-section .cv-reveal { margin: 0; padding: 0; border: 1px solid #ccd3d5; border-radius: 10px; overflow: hidden; background: #fff; }
.cv-section .cv-reveal > summary { display: flex; align-items: center; gap: 18px; position: relative; padding: 17px 20px; list-style: none; cursor: pointer; line-height: 1.6; color: var(--cv-ink); background: #f6f7f5; }
.cv-section .cv-reveal > summary::-webkit-details-marker { display: none; }
.cv-section .cv-reveal > summary::after { content: "+"; display: grid; place-items: center; flex: 0 0 28px; height: 28px; margin-left: auto; border: 1px solid #a8b2b7; border-radius: 50%; color: var(--cv-red); font-size: 21px; font-weight: 400; line-height: 1; }
.cv-section .cv-reveal[open] > summary::after { content: "−"; }
.cv-section .cv-summary-copy { min-width: 0; }
.cv-section .cv-reveal > summary strong, .cv-section .cv-reveal > summary small { display: block; }
.cv-section .cv-reveal > summary strong { font-size: .94rem; font-weight: 700; }
.cv-section .cv-reveal > summary small { margin-top: 4px; font-size: .76rem; font-weight: 400; color: var(--cv-muted); }
.cv-section .cv-summary-image { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; flex: 0 0 120px; border-radius: 4px; background: var(--cv-stage); }
.cv-section .cv-content { padding: 20px; }
.cv-section .cv-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr); align-items: start; gap: 24px; }
.cv-section .cv-stage { min-width: 0; overflow: hidden; border: 1px solid #263d4b; border-radius: 7px; background: var(--cv-stage); }
.cv-section .cv-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 560px; background: var(--cv-stage); color: #fff; }
.cv-section .cv-stage-caption { display: flex; justify-content: space-between; gap: 14px; padding: 10px 13px; color: #dbe3e7; font-size: .72rem; line-height: 1.7; }
.cv-section .cv-detail { min-width: 0; }
.cv-section .cv-detail h3 { font-size: 1.1rem; line-height: 1.65; margin: 0 0 12px; letter-spacing: .01em; }
.cv-section .cv-detail p { font-size: .86rem; line-height: 1.9; margin: 0 0 13px; }
.cv-section .cv-meta, .cv-section .cv-credit, .cv-section .cv-note, .cv-section .cv-status { font-size: .76rem; line-height: 1.85; color: var(--cv-muted); }
.cv-section .cv-status { margin: 10px 0 0; }
.cv-section .cv-status:empty { display: none; }
.cv-section .cv-boundary { padding: 12px 14px; border-left: 2px solid #c4c9c6; background: #f5f6f3; }
.cv-section .cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.cv-section .cv-actions .button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; max-width: 100%; padding: 12px 18px; font-size: .84rem; line-height: 1.65; white-space: normal; text-align: center; }
.cv-section .cv-link { font-size: .8rem; line-height: 1.75; text-decoration: underline; text-underline-offset: 4px; }
.cv-section .cv-transcript { border: 0; border-top: 1px solid var(--cv-line); border-radius: 0; margin: 20px 0 0; padding: 0; background: #fff; }
.cv-section .cv-transcript > summary { cursor: pointer; padding: 14px 0; font-size: .83rem; font-weight: 650; line-height: 1.7; }
.cv-section [data-cv-transcript] { max-height: 330px; overflow-y: auto; padding: 2px 12px 12px 0; font-size: .85rem; line-height: 1.95; overflow-wrap: anywhere; white-space: pre-line; }
.cv-section [data-cv-transcript] p { margin: 0 0 13px; }
.cv-section [data-cv-transcript] h4 { font-size: .9rem; margin: 20px 0 8px; }
.cv-section [data-cv-transcript] :first-child { margin-top: 0; }
.cv-section .cv-choices-heading { margin: 0 0 12px; font-size: .88rem; font-weight: 700; }
.cv-section .cv-choices { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0 0 20px; }
.cv-section [data-cv-choice] { position: relative; display: flex; flex-direction: column; gap: 0; overflow: hidden; min-width: 0; border: 1px solid #cfd5d6; border-radius: 6px; background: #fff; padding: 0; font: inherit; color: var(--cv-ink); text-align: left; cursor: pointer; }
.cv-section [data-cv-choice] > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cv-stage); }
.cv-section .cv-choice-copy { display: block; padding: 10px 11px 11px; }
.cv-section [data-cv-choice] strong { display: block; margin: 0; font-size: .8rem; line-height: 1.65; font-weight: 650; }
.cv-section [data-cv-choice] small { display: block; font-size: .71rem; line-height: 1.65; color: var(--cv-muted); margin-top: 4px; }
.cv-section [data-cv-choice]:hover { border-color: #7b929e; background: #f7fafb; }
.cv-section [data-cv-choice][aria-pressed="true"] { border-color: var(--cv-red); box-shadow: inset 0 0 0 1px var(--cv-red); background: #fcf6f6; }
.cv-section [data-cv-choice][aria-pressed="true"]::before { content: "選択中"; position: absolute; top: 7px; left: 7px; background: #8c2030; color: #fff; padding: 3px 7px; border-radius: 3px; font-size: .65rem; line-height: 1.5; font-weight: 700; }
.cv-section .cv-no-script { font-size: .82rem; line-height: 1.85; margin-top: 16px; }
@media (max-width: 900px) {
  .cv-section .cv-layout { grid-template-columns: minmax(0, 1.35fr) minmax(200px, 1fr); gap: 20px; }
  .cv-section .cv-header { display: block; }
  .cv-section .cv-header p { max-width: 680px; margin-top: 12px; }
  .cv-section .cv-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .cv-section { margin-block: 26px; padding-block: 22px; }
  .cv-section .cv-header { margin-bottom: 16px; }
  .cv-section .cv-header h2 { font-size: 1.4rem; }
  .cv-section .cv-header p { font-size: .85rem; }
  .cv-section .cv-reveal > summary { padding: 14px 12px; gap: 12px; }
  .cv-section .cv-reveal > summary strong { font-size: .88rem; }
  .cv-section .cv-reveal > summary small { font-size: .72rem; }
  .cv-section .cv-summary-image { width: 80px; flex-basis: 80px; }
  .cv-section .cv-reveal > summary::after { flex-basis: 24px; height: 24px; font-size: 18px; }
  .cv-section .cv-content { padding: 12px; }
  .cv-section .cv-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cv-section .cv-stage-caption { padding: 8px 10px; font-size: .67rem; }
  .cv-section .cv-detail h3 { font-size: 1.01rem; margin-bottom: 9px; }
  .cv-section .cv-detail p { font-size: .82rem; }
  .cv-section .cv-actions { align-items: stretch; gap: 12px; }
  .cv-section .cv-actions .button { width: 100%; font-size: .81rem; padding: 11px 12px; }
  .cv-section .cv-link { font-size: .76rem; }
  .cv-section .cv-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  .cv-section [data-cv-choice] { justify-content: center; min-height: 54px; }
  .cv-section [data-cv-choice] > img { display: none; }
  .cv-section .cv-choice-copy { padding: 7px 9px; }
  .cv-section [data-cv-choice] strong { font-size: .76rem; }
  .cv-section [data-cv-choice] small { margin-top: 2px; font-size: .67rem; }
  .cv-section [data-cv-choice][aria-pressed="true"]::before { content: "✓"; top: 6px; right: 8px; left: auto; padding: 0; background: none; color: var(--cv-red); }
  .cv-section [data-cv-choice][aria-pressed="true"] .cv-choice-copy { padding-right: 23px; }
}
@media (max-width: 350px) {
  .cv-section .cv-summary-image { width: 62px; flex-basis: 62px; }
  .cv-section .cv-reveal > summary { gap: 9px; }
  .cv-section .cv-stage-caption { display: block; }
  .cv-section .cv-stage-caption > span { display: block; }
}
