/* サロぽん 口コミ投稿（3サイト共通）。色はサイトごとに --sr-* を public.php が入れる */
.sr, .sr-sec, .sr-page { --sr-accent: #9a4f2f; --sr-accent-ink: #7e3f24; --sr-soft: #f6e6dc; --sr-line: #e3d7ca; --sr-ink: #2b2320; --sr-sub: #5f524a; --sr-star: #9a4f2f; --sr-err: #b3261e; --sr-r: 12px; }
.sr { margin: 12px 0 0; color: var(--sr-ink); }
.sr *, .sr *::before, .sr *::after { box-sizing: border-box; }
.sr-after { margin-top: 4px; }
.sr-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ボタン */
.sr-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 16px; border-radius: var(--sr-r); border: 1.5px solid var(--sr-accent); background: #fff; color: var(--sr-accent-ink) !important; font-weight: 700; font-size: 16px; line-height: 1.35; font-family: inherit; text-decoration: none !important; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sr-btn[hidden] { display: none; }
.sr-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-btn:hover { background: var(--sr-soft); }
.sr-btn:focus-visible { outline: 3px solid var(--sr-accent); outline-offset: 2px; }
.sr-btn--main { background: var(--sr-accent); color: #fff !important; min-height: 52px; font-size: 17px; }
.sr-btn--main:hover { background: var(--sr-accent-ink); }
.sr-btn--main[disabled] { opacity: .6; cursor: progress; }
.sr-btn--open[aria-expanded="true"] { background: var(--sr-soft); }

/* フォームの枠（JS が無いときは #sr-form へのリンクで開く） */
.sr-panel { margin-top: 12px; padding: 16px; border: 1px solid var(--sr-line); border-radius: 14px; background: #fff; }
.sr [hidden]:not(.sr-panel) { display: none !important; }
.sr-panel[hidden] { display: none; }
.sr:not(.sr-js) .sr-panel[hidden]:target { display: block; }   /* JS が無いときだけ（#sr-form へのリンクで開く） */
.sr-panel:focus { outline: none; }
.sr-h3 { margin: 0 0 4px; padding: 0; border: 0; background: none; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--sr-ink); }
.sr-h3::before, .sr-h3::after { content: none !important; }
.sr-lead { margin: 0 0 12px; font-size: 14px; color: var(--sr-sub); }
.sr-lead b { color: var(--sr-ink); }
.sr-owner { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: var(--sr-err); font-size: 14px; font-weight: 700; }

.sr-form { margin: 0; }
.sr-field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.sr-field > label, .sr-field > legend { display: block; margin: 0 0 6px; padding: 0; font-size: 15px; font-weight: 700; color: var(--sr-ink); }
.sr-req, .sr-opt { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.sr-req { background: var(--sr-soft); color: var(--sr-accent-ink); }
.sr-opt { background: #f1f1f1; color: #666; }
.sr-form input[type="text"], .sr-form input[type="email"], .sr-form select, .sr-form textarea {
  display: block; width: 100%; max-width: 100%; min-height: 48px; margin: 0; padding: 10px 12px; border: 1.5px solid var(--sr-line); border-radius: 10px; background: #fff; color: var(--sr-ink);
  font-size: 16px; line-height: 1.6; font-family: inherit; box-shadow: none; -webkit-appearance: none; appearance: none; }
.sr-form select { background-image: linear-gradient(45deg, transparent 50%, var(--sr-sub) 50%), linear-gradient(135deg, var(--sr-sub) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.sr-form textarea { min-height: 170px; resize: vertical; }
.sr-form input:focus, .sr-form select:focus, .sr-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--sr-accent) 35%, transparent); outline-offset: 0; border-color: var(--sr-accent); }
.sr-form [aria-invalid="true"] { border-color: var(--sr-err) !important; }
.sr-help { margin: 4px 0 6px; font-size: 13px; line-height: 1.6; color: var(--sr-sub); }
.sr-field > .sr-help:last-of-type { margin-bottom: 0; }
.sr-count { margin: 4px 0 0; font-size: 13px; color: var(--sr-sub); text-align: right; font-variant-numeric: tabular-nums; }
.sr-count.is-bad { color: var(--sr-err); font-weight: 700; }
.sr-err { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--sr-err); }
.sr-err[hidden] { display: none; }
.sr-alert { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: var(--sr-err); font-size: 14px; font-weight: 700; line-height: 1.6; }
.sr-alert[hidden] { display: none; }

/* 星を選ぶ（右から 5→1 の順に並べて、選んだ星とそれより左を塗る） */
.sr-rate__stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.sr-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.sr-rate__stars label { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0; cursor: pointer; border-radius: 8px; }
.sr-rate__stars svg { width: 38px; height: 38px; fill: #fff; stroke: var(--sr-line); stroke-width: 1.4; stroke-linejoin: round; transition: transform .1s; }
.sr-rate__stars input:checked ~ label svg, .sr-rate__stars input:checked + label svg { fill: var(--sr-star); stroke: var(--sr-star); }
@media (hover: hover) { .sr-rate__stars label:hover svg, .sr-rate__stars label:hover ~ label svg { fill: color-mix(in srgb, var(--sr-star) 55%, #fff); stroke: var(--sr-star); } }
.sr-rate__stars input:focus-visible + label { outline: 3px solid var(--sr-accent); outline-offset: 1px; }
.sr-rate__stars label:active svg { transform: scale(.9); }
.sr-rate__word { margin: 2px 0 0; font-size: 13px; color: var(--sr-sub); }

.sr-terms { margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px; background: #faf8f6; font-size: 13px; line-height: 1.7; color: var(--sr-sub); }
.sr-terms summary { cursor: pointer; font-weight: 700; color: var(--sr-ink); }
.sr-terms ul { margin: 8px 0 0; padding-left: 1.2em; }
.sr-terms li { margin: 2px 0; }
.sr-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.6; cursor: pointer; }
.sr-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--sr-accent); }
.sr-note { margin: 8px 0 0; font-size: 12px; color: var(--sr-sub); text-align: center; }

.sr-done { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--sr-soft); color: var(--sr-ink); font-size: 15px; line-height: 1.7; font-weight: 700; }
.sr-done:focus { outline: none; }
.sr-empty { margin: 0 0 4px; font-size: 14px; color: var(--sr-sub); }

/* 口コミの一覧（ネイル。美容室・リラクはテーマの .spb-reviews） */
.sr-sec .sr-n { margin-left: 8px; font-size: 14px; font-weight: 400; color: var(--sr-sub); }
.sr-summary { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.sr-summary b { font-size: 24px; line-height: 1; color: var(--sr-ink); font-variant-numeric: tabular-nums; }
.sr-summary span { font-size: 13px; color: var(--sr-sub); }
.sr-sub { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: var(--sr-sub); }
.sr-stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.sr-stars i { width: 15px; height: 15px; background: #e2dcd8; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.sr-summary .sr-stars i { width: 20px; height: 20px; }
.sr-stars i.is-on { background: var(--sr-star); }
.sr-stars i.is-half { background: linear-gradient(90deg, var(--sr-star) 50%, #e2dcd8 50%); }
.sr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sr-list li { margin: 0; padding: 12px 14px; background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.sr-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 4px; font-size: 13px; color: var(--sr-sub); }
.sr-item__nick { color: var(--sr-ink); font-size: 14px; }
.sr-item__menu { margin: 0 0 4px; font-size: 13px; color: var(--sr-sub); }
.sr-item__text { margin: 0; font-size: 15px; line-height: 1.8; color: var(--sr-ink); overflow-wrap: anywhere; }
.sr-item__date { margin: 6px 0 0; font-size: 12px; color: var(--sr-sub); }
.sr-more { margin-top: 10px; }
.sr-more summary { cursor: pointer; font-weight: 700; color: var(--sr-accent-ink); padding: 8px 0; }

/* 美容室・リラク: テーマの口コミの本文の改行を活かす */
.spb-reviews li p:last-child { white-space: pre-line; overflow-wrap: anywhere; }
.spb-reviews .spb-reviews__menu { margin: 0 0 4px; font-size: 12px; color: var(--spb-sub, #5f524a); white-space: normal; }

/* JS が無い人・出し直しの画面（テーマを通さない） */
.sr-page { margin: 0; background: #f7f5f3; color: var(--sr-ink); font-family: var(--sr-font, sans-serif); -webkit-text-size-adjust: 100%; }
.sr-page__head { background: var(--sr-accent); padding: 12px 16px; }
.sr-page__head a { color: #fff; text-decoration: none; font-size: 15px; }
.sr-page__head b { font-size: 20px; margin-right: 6px; }
.sr-page__main { max-width: 640px; margin: 0 auto; padding: 16px; }
.sr-page__card { background: #fff; border-radius: 14px; padding: 18px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.sr-page__h1 { margin: 0 0 10px; font-size: 20px; }
.sr-page__ok { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--sr-soft); line-height: 1.7; font-weight: 700; }
.sr-page__back { margin: 16px 0 0; text-align: center; font-size: 14px; }
.sr-page__back a { color: var(--sr-accent-ink); }
.sr-btn--line { margin-top: 8px; }
