/* サンプル「届いた予約の希望を、予約表と見比べて」専用の見た目。シフトのサンプルの sample-shift.css の前半を写して接頭辞を rv- に替え、届いた文・予約の欄・予約表の形を足した。色と書体は main.css の変数を使う */
.rv-page {
  --rv-head: 73px;
  --rv-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  --rv-unsure-ink: #92400E; --rv-unsure-bg: #FEF3C7;
  --rv-sku-ink: #991B1B; --rv-sku-bg: #FEE2E2;
  --rv-over-ink: #9A3412; --rv-over-bg: #FFEDD5;
  --rv-ok-ink: #115E59; --rv-ok-bg: #CCFBF1;
  --rv-muted: #475569;
}
.rv-page *:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 2px; }
.rv-page p { margin: 0; }
:where(.rv-page) :where(button, input) { font: inherit; color: inherit; }
html:has(#rv-app :focus-visible) { scroll-padding-top: 9.75rem; }
html:has(.rv-finish.is-ready) { scroll-padding-bottom: 10rem; }
.skip-link { top: -5rem; }
.rv-wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); width: 100%; }
.rv-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; }

/* 説明 */
.rv-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%); }
.rv-hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.rv-hero .can-eyebrow { justify-content: flex-start; }
.rv-hero .can-eyebrow::before { display: none; }
.rv-hero .can-title { text-align: left; font-size: clamp(1.7rem, 2.9vw, 2.45rem); }
.rv-hero .can-title::after { margin-left: 0; }
.rv-lead { margin: 1.1rem 0 0 !important; font-size: 1.02rem; line-height: 1.9; text-wrap: pretty; }
.rv-lead-act { margin-top: 1.25rem !important; }
.rv-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); }
.rv-step { display: flex; align-items: baseline; gap: .55rem; }
.rv-step__no { flex: none; font-family: var(--ff-display); font-size: .95rem; font-weight: 600; letter-spacing: .06em; color: var(--cp-accent-ink); }
.rv-step__text { font-size: .95rem; font-weight: 600; line-height: 1.6; color: var(--cp-text); word-break: auto-phrase; }
.rv-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; }
.rv-note__title { font-size: .98rem; color: var(--cp-primary); margin-bottom: .45rem; }
.rv-note__list { list-style: disc; padding-left: 1.3em; }
.rv-note__list li { font-size: .92rem; line-height: 1.75; margin-bottom: .2em; overflow-wrap: anywhere; }
.rv-note__list li::marker { color: var(--cp-primary); }
.rv-run { margin-top: .55rem !important; font-size: .85rem; line-height: 1.6; color: var(--rv-muted); font-family: var(--rv-sans); }

/* 触ってみる */
.rv-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); }
.rv-tool__title { font-size: clamp(1.35rem, 2.6vw, 1.8rem); color: var(--cp-primary); }
.rv-tool__lead { margin-top: .25rem !important; font-size: .98rem; color: var(--cp-text); }
.rv-tool__notice { margin-top: .35rem !important; font-size: .9rem; line-height: 1.7; color: var(--cp-text); }
.rv-noscript { margin-top: 1rem !important; padding: 1rem; background: var(--cp-white); border: 1px solid var(--cp-line); }
.rv-app { margin-top: 1rem; }


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

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

/* 右: 見比べの結果 */
.rv-count { position: sticky; top: var(--rv-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; }
.rv-count__main { display: flex; align-items: baseline; gap: .4rem; min-width: 0; white-space: nowrap; font-weight: 600; font-size: 1rem; }
.rv-count__num { font-family: var(--rv-sans); font-size: 2.1rem; font-weight: 700; line-height: 1.1; color: #fff; }
.rv-count__sub { display: flex; flex-wrap: wrap; gap: 0 1em; min-width: 0; font-size: .92rem; color: #cbd5e1; overflow-wrap: anywhere; }
.rv-count__sub b { font-family: var(--rv-sans); font-size: 1.15rem; color: #fff; font-weight: 700; }
.rv-prior { margin-top: .35rem !important; font-size: .9rem; color: var(--cp-text); line-height: 1.7; }


.rv-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin-top: .75rem; }
.rv-rowitem { position: relative; background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; padding: .6rem .9rem; }
.rv-rowitem.has-marks { border-left: 4px solid var(--cp-primary); box-shadow: var(--cp-shadow); padding: .8rem .95rem .95rem; }
.rv-rowitem.is-done { border-left: 4px solid var(--rv-ok-ink); }
/* 直した行を、少しの間だけ色で知らせる */
.is-just-fixed { animation: rv-fixed 2s ease-out; }
@keyframes rv-fixed { 0%, 35% { background-color: var(--rv-ok-bg); } 100% { background-color: var(--cp-white); } }
.rv-name { font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.rv-tags { display: flex; flex-wrap: wrap; gap: .3rem .4rem; }
.rv-rowitem .rv-tags--row { margin-top: .3rem; align-items: center; }
.rv-tags--row .rv-link { min-height: 44px; margin-left: .3rem; }

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

/* 確かめる所 */
.rv-block { margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--cp-line); scroll-margin: 8rem; }
.rv-block__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .1rem; }
.rv-block__field { font-size: .92rem; font-weight: 600; color: var(--cp-primary); }
/* border を付けると内側の縦横比がずれて切り抜きが動くので、枠は box-shadow で描く */
.rv-say { margin-top: .5rem !important; font-size: .95rem; line-height: 1.75; overflow-wrap: anywhere; }
.rv-say b { font-family: var(--rv-sans); font-weight: 700; }
.rv-why { margin-top: .15rem !important; font-size: .9rem; color: var(--rv-muted); line-height: 1.7; overflow-wrap: anywhere; font-family: var(--rv-sans); }
.rv-group-label { margin-top: .6rem !important; font-size: .88rem; font-weight: 600; color: var(--cp-text); }
.rv-choices { display: grid; gap: .4rem; margin-top: .35rem; }
.rv-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rv-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; }
.rv-btn--primary { background: var(--cp-primary); color: #fff; }
.rv-btn--quiet { border-color: var(--cp-line); color: var(--cp-text); font-weight: 500; }
/* タッチの端末で押したあとに濃い色が残らないように */
@media (hover: hover) {
  .rv-btn:hover { background: var(--cp-primary); color: #fff; }
  .rv-btn--primary:hover { background: var(--cp-navy-deep); border-color: var(--cp-navy-deep); }
  .rv-btn--quiet:hover { background: var(--cp-cream); color: var(--cp-text); border-color: var(--cp-muted); }
}
.rv-btn--small { padding-inline: .7rem; font-size: .88rem; white-space: nowrap; }
.rv-btn:disabled, .rv-btn:disabled:hover { background: var(--cp-line); border-color: var(--cp-line); color: var(--rv-muted); cursor: not-allowed; }
.rv-input { width: 100%; min-height: 44px; padding: .4rem .65rem; font-family: var(--rv-sans); font-size: 16px; line-height: 1.4; background: #fff; border: 1.5px solid var(--cp-muted); border-radius: 2px; }
.rv-input[aria-invalid="true"] { border-color: var(--rv-sku-ink); }
.rv-err { margin-top: .3rem !important; font-size: .88rem; font-weight: 600; color: var(--rv-sku-ink); }
.rv-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; }
.rv-link:hover { color: var(--cp-navy-deep); }
.rv-block__top .rv-link { flex: none; white-space: nowrap; }

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

/* 確定 */
.rv-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; }
.rv-finish.is-ready { position: sticky; bottom: 0; z-index: 4; box-shadow: 0 -6px 18px rgba(15, 23, 42, .12); }
.rv-finish__msg { font-size: .95rem; line-height: 1.75; margin-bottom: .6rem !important; text-wrap: pretty; }
.rv-finish .rv-btn--primary { width: 100%; min-height: 50px; font-size: 1.02rem; }
.rv-done__title { font-size: 1.3rem; color: var(--cp-primary); }
.rv-done__title:focus { outline: none; }
.rv-done__lead { margin-top: .35rem !important; font-size: .95rem; line-height: 1.75; }
.rv-tablewrap { overflow-x: auto; margin-top: .75rem; background: var(--cp-white); border: 1px solid var(--cp-line); -webkit-overflow-scrolling: touch; }
.rv-table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.6; font-family: var(--rv-sans); }
.rv-table th, .rv-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--cp-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.rv-table thead th { background: var(--cp-cream); color: var(--cp-text); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.rv-table tr:last-child td { border-bottom: 0; }
.rv-table .is-num { text-align: right; white-space: nowrap; }
.rv-tnote { display: block; font-size: .86em; color: var(--rv-muted); }
.rv-done__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.rv-done__actions .rv-btn--primary { flex: 1 1 100%; min-height: 50px; font-size: 1.02rem; }
.rv-done__saved { margin-top: .5rem !important; font-size: .9rem; color: var(--rv-ok-ink); font-weight: 600; font-family: var(--rv-sans); overflow-wrap: anywhere; }
.rv-done__next { margin-top: .85rem !important; padding-top: .75rem; border-top: 1px solid var(--cp-line); font-size: .92rem; line-height: 1.8; }
.rv-done__cta { margin-top: .6rem; min-height: 44px; }
.rv-reset { margin-top: 1rem; text-align: right; }

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

/* 全体を拡大して見る */
.rv-zoom { width: min(96vw, 1100px); height: min(94dvh, 100%); max-width: none; max-height: none; padding: 0; border: 1px solid var(--cp-line); border-radius: 2px; background: var(--cp-white); color: var(--cp-text); font-family: var(--ff-serif); overflow: hidden; }
.rv-zoom[open] { display: flex; flex-direction: column; }
.rv-zoom::backdrop { background: rgba(2, 6, 23, .72); }
.rv-zoom__bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding: .4rem .6rem; border-bottom: 1px solid var(--cp-line); background: var(--cp-white); }
.rv-zoom__title { font-size: .98rem; font-weight: 600; color: var(--cp-primary); margin: 0; }
.rv-zoom__ctrl { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.rv-zoom__pct { min-width: 3.2em; text-align: center; font-family: var(--rv-sans); font-size: .88rem; }
.rv-zoom__scroll { flex: 1; min-height: 0; overflow: auto; background: var(--cp-cream); -webkit-overflow-scrolling: touch; }
.rv-zoom__scroll:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: -3px; }
/* main.css の「動きを減らす」は全部に短い transition を付ける。大きさが遅れて変わると中心の計算がずれるので切る */
.rv-zoom__page { position: relative; margin-inline: auto; background: #fff; transition: none !important; }
.rv-zoom__page img { display: block; width: 100%; height: 100%; max-width: none; }
html.rv-noscroll { overflow: hidden; }

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

@media (max-width: 1024px) {
  .rv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .rv-note__list { columns: 2; column-gap: 2.5rem; }
  .rv-note__list li { break-inside: avoid; }
}
@media (max-width: 860px) {
  .rv-hero { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .rv-fig { min-height: 0; }
}
@media (max-width: 900px) {
  .rv-panel { grid-template-columns: minmax(0, 1fr); }
  .rv-srccol { position: static; display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: .75rem; align-items: center; box-shadow: none; padding: .55rem .75rem; }
  .rv-srccol__head { display: block; margin: 0; grid-column: 2; grid-row: 1; }
}
@media (max-width: 768px) {
  .policy-footer .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .rv-page { --rv-head: 63px; }
  .rv-table { font-size: .86rem; }
  .rv-table th, .rv-table td { padding: .5rem .4rem; }
  .policy-footer .site-footer__inner { grid-template-columns: 1fr; }
  .rv-lead { text-align: left; }
  .rv-steps { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .rv-step__text { font-size: .92rem; }
  .rv-hero .can-eyebrow { margin-bottom: .6rem !important; }
  .rv-note { padding: .85rem .9rem .9rem; }
  .rv-tool { padding-top: 1.1rem; scroll-margin-top: -1.25rem; }
  .rv-app { margin-top: .75rem; }
  .rv-count { padding: .35rem .75rem; gap: 0 .5rem; }
  .rv-count__main { font-size: .92rem; gap: .25rem; }
  .rv-count__sub { font-size: .86rem; }
  .rv-finish.is-ready { padding: .6rem .75rem .7rem; }
  .rv-finish.is-ready .rv-finish__msg { font-size: .88rem; line-height: 1.6; margin-bottom: .4rem !important; }
  .rv-count__num { font-size: 1.7rem; }
  .rv-rowitem { padding: .55rem .7rem; }
  .rv-rowitem.has-marks { padding: .7rem .75rem .85rem; }
  .rv-choices--2 { grid-template-columns: minmax(0, 1fr); }
  .rv-editor__grid { grid-template-columns: minmax(0, 1fr); }
  .rv-next__actions .can-cta, .rv-next__sub { width: 100%; }
  .rv-reset { text-align: center; }
  .rv-zoom { width: 100vw; height: 100dvh; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .is-just-fixed { animation: none; }
  .can-cta:hover svg { transform: none; }
}
@media (max-width: 340px) {
  .rv-srccol { grid-template-columns: 4rem minmax(0, 1fr); }
  .rv-tool__lead { display: none; }
}
/* 横向きなど高さのない画面では、固定の帯で作業の場所が狭くならないようにする */
@media (max-height: 500px) {
  .site-header, .rv-count, .rv-finish.is-ready { position: static; }
  html:has(#rv-app :focus-visible), html:has(.rv-finish.is-ready) { scroll-padding-top: 1rem; scroll-padding-bottom: 1rem; }
}
/* 見出しの近くの図 */
.rv-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); }
.rv-fig__cap { font-size: .86rem; font-weight: 600; color: var(--cp-primary); margin-bottom: .4rem !important; line-height: 1.6; }

.rv-name { font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.rv-table td { white-space: normal; }




/* ---------- ここから届いた文・予約の欄・予約表の形（シフトの CSS の前半の後に足したもの） ---------- */
/* 左: 届いた文（メッセージのアプリの画面の形は作らない。文字のまま出す） */
.rv-srccol__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; }
.rv-srccol__title:focus { outline: none; }
.rv-srccol__when { font-family: var(--rv-sans); font-size: .84rem; font-weight: 500; color: var(--rv-muted); }
.rv-srccol__note { margin-top: .45rem !important; font-size: .9rem; color: var(--rv-muted); font-family: var(--rv-sans); }
.rv-msg { padding: .8rem .9rem; background: #fff; border: 1px solid var(--cp-line); border-radius: 2px; font-family: var(--rv-sans); }
/* 札が次の行へ折れても字下げが残らないよう、余白は margin でなく gap で取る */
.rv-msg__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; font-size: .84rem; color: var(--rv-muted); margin-bottom: .2rem !important; overflow-wrap: anywhere; }
.rv-msg__mark { padding: 0 .4rem; border: 1px solid var(--cp-text); font-size: .8rem; font-weight: 700; color: var(--cp-text); }
.rv-msg__text { margin-top: .5rem !important; font-size: 1rem; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-msg__text mark { background: var(--rv-unsure-bg); color: inherit; box-shadow: inset 0 -2px 0 var(--rv-unsure-ink); padding: 0 .1em; }
.rv-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; margin-top: .6rem; }
.rv-strip__btn { display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; min-height: 44px; padding: .3rem .5rem .35rem; border: 2px solid var(--cp-line); border-radius: 2px; background: #fff; cursor: pointer; text-align: left; color: var(--cp-text); font-family: var(--rv-sans); }
.rv-strip__btn.is-current { border-color: var(--cp-accent); box-shadow: 0 0 0 2px var(--cp-accent); }
.rv-strip__btn.is-decided { background: var(--cp-cream); }
.rv-strip__no { font-size: .8rem; font-weight: 700; color: var(--cp-primary); }
.rv-strip__from { font-size: .86rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.rv-strip__st { font-size: .8rem; font-weight: 700; color: var(--rv-muted); }
.rv-strip__st.is-open { color: var(--rv-sku-ink); }
.rv-strip__st.is-done { color: var(--rv-ok-ink); }
@media (hover: hover) { .rv-strip__btn:hover { border-color: var(--cp-accent); } }

/* 右: 見出し */
.rv-sec { margin-top: 1.1rem; font-size: 1.05rem; color: var(--cp-primary); }
.rv-sec + .rv-why { margin-top: .2rem !important; }
.rv-reqtitle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; }
.rv-reqtitle:focus { outline: none; }
.rv-reqtitle__sub { font-family: var(--rv-sans); font-size: .82rem; font-weight: 500; color: var(--rv-muted); }

/* 予約の欄 */
.rv-fields th { width: 7.5rem; white-space: nowrap; background: var(--cp-cream); font-size: .84rem; }
.rv-fields td { font-weight: 600; }
.rv-fields .rv-val { display: block; }
.rv-fields .rv-tags { margin-top: .2rem; font-weight: 700; }
.rv-fields tr.is-marked td { background: var(--rv-sku-bg); }
.rv-fields tr.is-unsure td { background: var(--rv-unsure-bg); }
.rv-fields tr.is-human td { box-shadow: inset 3px 0 0 var(--rv-ok-ink); }
.rv-fields .rv-tnote { font-weight: 500; }
.rv-fieldact { display: flex; justify-content: flex-end; margin-top: .4rem; }
.rv-hits { list-style: disc; padding-left: 1.3em; margin-top: .25rem; font-family: var(--rv-sans); font-size: .92rem; line-height: 1.7; }
.rv-choices--1 { grid-template-columns: minmax(0, 1fr); }
.rv-choices .rv-btn small { display: block; font-size: .8rem; font-weight: 500; }
.rv-choices .rv-btn { flex-direction: column; gap: 0; }

/* 決める */
.rv-decide { margin-top: .8rem; padding: .8rem .9rem .9rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-left: 4px solid var(--cp-primary); border-radius: 2px; }
.rv-decide.is-done { border-left-color: var(--rv-ok-ink); }
.rv-decide__msg { font-size: .95rem; line-height: 1.75; overflow-wrap: anywhere; }
.rv-decide__msg:focus { outline: none; }
.rv-decide__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.rv-decide__actions .rv-btn { flex: 1 1 14rem; }
.rv-decide__actions .rv-link { flex: none; }
.rv-decide__actions .rv-btn { flex-direction: column; gap: 0; }
.rv-decide__actions .rv-btn small { display: block; font-size: .85rem; font-weight: 500; }
.rv-tag--human { color: var(--cp-primary); background: var(--cp-cream); }
.rv-tag--guide { color: #1E3A8A; background: #DBEAFE; }
.rv-tag--clash { color: var(--rv-sku-ink); background: var(--rv-sku-bg); }

/* 欄を直す */
.rv-editor { margin-top: .7rem; padding: .7rem .8rem .8rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-top: 3px solid var(--cp-accent); border-radius: 2px; scroll-margin: 8rem; }
.rv-editor__title { font-size: .98rem; font-weight: 700; color: var(--cp-primary); }
.rv-editor__title:focus { outline: none; }
.rv-edhint { display: block; font-size: .8rem; font-weight: 600; color: var(--rv-unsure-ink); }
select.rv-input { appearance: auto; }

/* 予約表 */
.rv-sched { width: 100%; min-width: 27rem; border-collapse: collapse; font-family: var(--rv-sans); font-size: .86rem; line-height: 1.5; background: #fff; }
.rv-sched th, .rv-sched td { padding: .4rem .5rem; border: 1px solid var(--cp-line); text-align: left; vertical-align: top; }
.rv-sched thead th { background: var(--cp-cream); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.rv-sched th[scope="row"] { white-space: nowrap; font-weight: 700; width: 5.8rem; }
.rv-scale { position: relative; display: block; height: 1rem; margin-top: .2rem; font-size: .79rem; font-weight: 600; color: var(--rv-muted); }
.rv-scale span { position: absolute; transform: translateX(-50%); }
.rv-scale span:first-child { transform: none; }
.rv-scale span:last-child { transform: translateX(-100%); }
.rv-bar { position: relative; height: 1.1rem; background: repeating-linear-gradient(90deg, #F8FAFC 0 calc(100% / 12 - 1px), var(--cp-line) calc(100% / 12 - 1px) calc(100% / 12)); border: 1px solid var(--cp-line); }
.rv-seg { position: absolute; top: 0; bottom: 0; }
.rv-seg.is-base { background: #64748B; }
.rv-seg.is-added { background: var(--rv-ok-ink); }
.rv-seg.is-plan { background: transparent; border: 2px dashed var(--cp-primary); top: -3px; bottom: -3px; }
.rv-seg.is-plan.is-bad { border-color: var(--rv-sku-ink); background: color-mix(in oklab, var(--rv-sku-bg) 60%, transparent); }
.rv-items { margin-top: .3rem; font-size: .8rem; line-height: 1.5; }
.rv-items li { overflow-wrap: anywhere; }
.rv-items li.is-added { color: var(--rv-ok-ink); font-weight: 700; }
.rv-items li.is-plan { color: var(--cp-primary); font-weight: 700; }
.rv-items li.is-plan.is-bad { color: var(--rv-sku-ink); }
.rv-items li.is-empty { color: var(--rv-muted); }
.rv-itemnote { display: inline-block; margin-left: .35rem; padding: 0 .3rem; border: 1px solid currentColor; font-size: .8rem; line-height: 1.4; }
.rv-sched td.is-planned { box-shadow: inset 0 0 0 2px var(--cp-accent); }
.rv-sched__dow { white-space: nowrap; }
.rv-sched tr.is-closed th, .rv-closedcell { background: #F1F5F9; color: var(--rv-muted); }
.rv-closedcell { font-weight: 700; }

/* 確定のあと */
.rv-guidelist { list-style: disc; padding-left: 1.3em; margin-top: .4rem; font-family: var(--rv-sans); font-size: .92rem; line-height: 1.75; }
.rv-guidelist .rv-tnote { display: block; }
.rv-paper ul.rv-paper__meta { list-style: disc; padding-left: 1.2em; }

/* 印の色 */
.rv-tag--find, .rv-tag--rule { color: var(--rv-sku-ink); background: var(--rv-sku-bg); }
.rv-where { font-weight: 700; font-size: 1rem; font-family: var(--rv-sans); overflow-wrap: anywhere; }
.rv-quote { margin-top: .5rem !important; padding: .45rem .65rem; border-left: 3px solid var(--rv-unsure-ink); background: var(--cp-cream); font-family: var(--rv-sans); font-size: .92rem; line-height: 1.7; overflow-wrap: anywhere; }
.rv-accepted { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .2rem .4rem; margin-right: .6rem; }
.rv-match { margin-top: .6rem !important; font-size: .9rem; color: var(--rv-ok-ink); font-family: var(--rv-sans); line-height: 1.7; }
.rv-tnote { display: block; font-size: .9rem; font-weight: 500; line-height: 1.6; color: var(--rv-muted); }

/* 見出しの近くの図 */
.rv-fig__msg { padding: .55rem .7rem; background: #fff; border: 1px solid var(--cp-line); font-family: var(--rv-sans); font-size: .88rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-fig__arrow { text-align: center; color: var(--cp-accent-ink); font-weight: 700; line-height: 1.4; margin: .2rem 0 !important; }
.rv-fig__tablewrap { overflow-x: auto; border: 1px solid var(--cp-line); }
.rv-fig__table { width: 100%; border-collapse: collapse; font-family: var(--rv-sans); font-size: .86rem; line-height: 1.5; background: #fff; }
.rv-fig__table th, .rv-fig__table td { padding: .3rem .5rem; border-top: 1px solid var(--cp-line); text-align: left; vertical-align: top; }
.rv-fig__table tr:first-child th, .rv-fig__table tr:first-child td { border-top: 0; }
.rv-fig__table th { width: 6rem; background: var(--cp-cream); font-size: .8rem; white-space: nowrap; }
.rv-fig__mark { padding: .5rem .65rem; background: var(--rv-sku-bg); border: 1px solid var(--rv-sku-ink); font-family: var(--rv-sans); font-size: .86rem; line-height: 1.6; }
.rv-fig__mark p { margin-top: .2rem !important; font-weight: 600; }
.rv-fig__more { margin-top: .45rem !important; font-family: var(--rv-sans); font-size: .9rem; color: var(--rv-muted); line-height: 1.6; }

@media (max-width: 900px) {
  .rv-srccol { display: block; padding: .65rem .75rem; }
  .rv-srccol__head { margin-bottom: .5rem; }
  .rv-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .rv-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-fields th { width: 5.6rem; white-space: normal; }
  .rv-decide__actions .rv-btn { flex-basis: 100%; }
}
@media (max-width: 340px) {
  .rv-srccol { display: block; }
}

/* 2 周目の点検（2026-11-06）：スマホの見出し上の小さな文・予約表の幅・図・帯 */
.rv-scrollhint { margin-top: .75rem !important; }
.rv-scrollhint + .rv-tablewrap { margin-top: .25rem; }
.rv-paper .rv-scrollhint { margin-top: .35rem !important; }
@media (max-width: 400px) {
  .rv-hero .can-eyebrow { letter-spacing: .08em; text-align: left; }
  .rv-hero .can-eyebrow::after { display: none; }
}
/* 件数の帯を 2 行までにする：狭い幅は言葉を縮め、さらに狭い幅は 1 項目にする */
@media (max-width: 430px) {
  .rv-count__long { display: none; }
  .rv-count__sub { gap: 0 .7em; }
}
@media (max-width: 370px) {
  .rv-count__extra { display: none; }
}
/* 確定後の表は 320px 前後だと列が狭く、目盛りの 18 と 21 がくっつくので、9・15・21 だけにする */
@media (max-width: 340px) {
  .rv-paper .rv-scale span:nth-child(even) { display: none; }
}
@media (max-width: 560px) {
  .rv-fig__sp-hide { display: none; }
  /* 予約表を横に動かさずに 2 部屋とも見せる */
  .rv-sched { min-width: 0; table-layout: fixed; }
  .rv-sched th, .rv-sched td { padding-inline: .3rem; }
  .rv-sched thead th { white-space: normal; }
  .rv-sched tbody th, .rv-sched thead th:first-child { width: 4.4rem; white-space: normal; }
  .rv-sched__md, .rv-sched__dow { display: block; }
  .rv-items { overflow-wrap: anywhere; }
  .rv-itemnote { display: block; width: fit-content; margin-left: 0; }
  .rv-sched__room, .rv-sched__cap { display: block; }
  .rv-sched__paren { display: none; }
  .rv-done__cta { padding-inline: .75rem; }
  .rv-paper { padding-inline: .5rem; }
  .rv-finish:has(.rv-paper) { padding-inline: .6rem; }
}
/* 高さの低い画面では確定の帯を固定しない（件数の帯とヘッダーの固定は残す） */
@media (max-height: 700px) {
  .rv-finish.is-ready { position: static; box-shadow: none; }
  html:has(.rv-finish.is-ready) { scroll-padding-bottom: 1rem; }
}

/* 全サンプル共通の整え（2026-11-06）: 最後の行に 1〜2 字だけ残さない・語の途中で折らない。押す所は 44px。この本は下の keep-all と JS の wbr で語を守る */
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）: 共通の整えがヘッダーを 6px 低くするので、広い画面では打ち消す（帯の位置 --rv-head: 73px と合わせる。幅 560px 以下はヘッダーの高さが変わらない） */
@media (min-width: 561px) { .site-header .brand { margin-block: 0; } }
/* 語の途中で折らない（設計 §6）。JS が字の種類の変わり目に <wbr> を入れるので、ほかの字の間では折らない。入りきらない長い語だけ折る */
main.rv-phrased { overflow-wrap: break-word; }
main.rv-phrased, main.rv-phrased * { word-break: keep-all; }
/* 数のかたまりは箱にする。nowrap は使わない（WebKit で text-wrap:pretty と重なると字が 2 回描かれた） */
:where(.rv-nb, .rv-nowrap) { display: inline-block; } /* 帯の補足を 320px で隠す指定を上書きしないよう、強さ 0 にする */
/* 予約表のますは、入る時刻を「〜」で割らない（WebKit は text-wrap:pretty だと 1 行に入る時刻まで割った） */
.rv-items { text-wrap: wrap; }
/* PC の左の固定の列を画面の高さに収める。入りきらないときは届いた文の欄だけを動かし、下の 6 件のボタンを隠さない */
@media (min-width: 901px) {
  .rv-srccol { display: flex; flex-direction: column; max-height: calc(100vh - var(--rv-head) - 1.5rem); max-height: calc(100dvh - var(--rv-head) - 1.5rem); }
  .rv-srccol > * { flex: none; }
  /* 下に続きがあるときだけ、欄の下に薄い影が出る（文といっしょに動く白い帯が、いちばん下で影を隠す） */
  .rv-srccol > .rv-msg { flex: 0 1 auto; min-height: 7rem; overflow-y: auto; background: linear-gradient(#fff, #fff) bottom / 100% 1.2rem no-repeat local, linear-gradient(transparent, rgba(15, 23, 42, .12)) bottom / 100% .7rem no-repeat scroll, #fff; }
}

/* ページの下の欄も、HTML に書いた wbr の所で折る（語の途中や「ま／す。」で折らない） */
.policy-footer .site-footer__tagline, .policy-footer .site-footer__contact p { word-break: keep-all; overflow-wrap: anywhere; }

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